config 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. version: 1.0.10
  2. git_url: https://github.com/hlandau/svcutils.git
  3. git_hash: c25dac49e50cbbcbef8c81b089f56156f4067729
  4. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
  5. build: '[% c("projects/go/var/build_go_lib") %]'
  6. var:
  7. container:
  8. use_container: 1
  9. go_lib: gopkg.in/hlandau/svcutils.v1
  10. go_lib_install:
  11. - gopkg.in/hlandau/svcutils.v1
  12. - gopkg.in/hlandau/svcutils.v1/caps
  13. - gopkg.in/hlandau/svcutils.v1/chroot
  14. - gopkg.in/hlandau/svcutils.v1/dupfd
  15. - gopkg.in/hlandau/svcutils.v1/exepath
  16. - gopkg.in/hlandau/svcutils.v1/passwd
  17. - gopkg.in/hlandau/svcutils.v1/pidfile
  18. - gopkg.in/hlandau/svcutils.v1/setuid
  19. - gopkg.in/hlandau/svcutils.v1/systemd
  20. build_go_lib_pre: |
  21. [% IF c("var/cgo") %]
  22. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  23. [% IF c("var/linux") %]
  24. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  25. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  26. [% END -%]
  27. [% IF c("var/osx") -%]
  28. export CGO_CFLAGS="[% c("var/FLAGS") %] -mmacosx-version-min=10.7"
  29. export CGO_CXXFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
  30. export CGO_LDFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
  31. export CC="$clangdir/bin/clang"
  32. export CXX="$clangdir/bin/clang++"
  33. [% END -%]
  34. [% END -%]
  35. export CGO_ENABLED=[% c("var/cgo") %]
  36. targets:
  37. linux:
  38. var:
  39. cgo: 1
  40. linux-i686:
  41. var:
  42. arch_deps:
  43. - libcap-dev:i386
  44. linux-x86_64:
  45. var:
  46. arch_deps:
  47. - libcap-dev
  48. osx-x86_64:
  49. var:
  50. cgo: 0
  51. windows:
  52. var:
  53. cgo: 0
  54. input_files:
  55. - project: container-image
  56. - name: go
  57. project: go
  58. - name: '[% c("var/compiler") %]'
  59. project: '[% c("var/compiler") %]'
  60. enable: '[% c("var/cgo") %]'
  61. - name: binutils
  62. project: binutils
  63. enable: '[% c("var/linux") && c("var/cgo") %]'