modernc.org/99c@v1.0.1-0.20181109153923-a9e8197063d9/lib/xcb/generator_linux.go (about)

     1  // Copyright 2017 The 99c Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:generate wget --no-clobber http://xcb.freedesktop.org/dist/libxcb-1.12.tar.gz
     6  //go:generate rm -rf libxcb-1.12/
     7  //go:generate tar xzf libxcb-1.12.tar.gz
     8  //go:generate sh -c "cd libxcb-1.12/ && ./configure CC=99c --prefix=$HOME/.99c"
     9  //go:generate make -C libxcb-1.12/ install
    10  
    11  // Package xcb installs a 99c version of libxcb on your system.
    12  //
    13  // Run
    14  //
    15  //     $ go generate
    16  //
    17  // to download and install the package on your system. The package will be
    18  // installed in '$HOME/.99c'. Currently supported only on Linux.
    19  package xcb // import "modernc.org/99c/lib/xcb"