1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- version: 1.0.10
- git_url: https://github.com/hlandau/svcutils.git
- git_hash: c25dac49e50cbbcbef8c81b089f56156f4067729
- filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
- build: '[% c("projects/go/var/build_go_lib") %]'
- var:
- container:
- use_container: 1
- go_lib: gopkg.in/hlandau/svcutils.v1
- go_lib_install:
- - gopkg.in/hlandau/svcutils.v1
- - gopkg.in/hlandau/svcutils.v1/caps
- - gopkg.in/hlandau/svcutils.v1/chroot
- - gopkg.in/hlandau/svcutils.v1/dupfd
- - gopkg.in/hlandau/svcutils.v1/exepath
- - gopkg.in/hlandau/svcutils.v1/passwd
- - gopkg.in/hlandau/svcutils.v1/pidfile
- - gopkg.in/hlandau/svcutils.v1/setuid
- - gopkg.in/hlandau/svcutils.v1/systemd
- build_go_lib_pre: |
- [% IF c("var/cgo") %]
- [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
- [% IF c("var/linux") %]
- tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
- export PATH="/var/tmp/dist/binutils/bin:$PATH"
- [% END -%]
- [% IF c("var/osx") -%]
- export CGO_CFLAGS="[% c("var/FLAGS") %] -mmacosx-version-min=10.7"
- export CGO_CXXFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
- export CGO_LDFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
- export CC="$clangdir/bin/clang"
- export CXX="$clangdir/bin/clang++"
- [% END -%]
- [% END -%]
- export CGO_ENABLED=[% c("var/cgo") %]
- targets:
- linux:
- var:
- cgo: 1
- linux-i686:
- var:
- arch_deps:
- - libcap-dev:i386
- linux-x86_64:
- var:
- arch_deps:
- - libcap-dev
- osx-x86_64:
- var:
- cgo: 0
- windows:
- var:
- cgo: 0
- input_files:
- - project: container-image
- - name: go
- project: go
- - name: '[% c("var/compiler") %]'
- project: '[% c("var/compiler") %]'
- enable: '[% c("var/cgo") %]'
- - name: binutils
- project: binutils
- enable: '[% c("var/linux") && c("var/cgo") %]'
|