config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. version: '[% c("abbrev") %]'
  2. git_url: https://github.com/hlandau/service.git
  3. git_hash: 0496f910e39ef577ba805f512f6e1b80d652c4b9
  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/service.v2
  10. go_lib_deps:
  11. - gosvcutils
  12. - goeasyconfig
  13. build_go_lib_pre: |
  14. [% IF c("var/cgo") %]
  15. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  16. [% IF c("var/linux") %]
  17. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  18. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  19. [% END -%]
  20. [% IF c("var/osx") -%]
  21. export CGO_CFLAGS="[% c("var/FLAGS") %] -mmacosx-version-min=10.7"
  22. export CGO_CXXFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
  23. export CGO_LDFLAGS="[% c("var/FLAGS") %] -stdlib=libc++ -mmacosx-version-min=10.7"
  24. export CC="$clangdir/bin/clang"
  25. export CXX="$clangdir/bin/clang++"
  26. [% END -%]
  27. [% END -%]
  28. export CGO_ENABLED=[% c("var/cgo") %]
  29. targets:
  30. linux:
  31. var:
  32. cgo: 1
  33. linux-i686:
  34. var:
  35. arch_deps:
  36. - libcap-dev:i386
  37. linux-x86_64:
  38. var:
  39. arch_deps:
  40. - libcap-dev
  41. osx-x86_64:
  42. var:
  43. cgo: 0
  44. windows:
  45. var:
  46. go_lib_deps:
  47. - gowinsvc
  48. - gosvcutils
  49. - goeasyconfig
  50. cgo: 0
  51. input_files:
  52. - project: container-image
  53. - name: go
  54. project: go
  55. - name: '[% c("var/compiler") %]'
  56. project: '[% c("var/compiler") %]'
  57. enable: '[% c("var/cgo") %]'
  58. - name: binutils
  59. project: binutils
  60. enable: '[% c("var/linux") && c("var/cgo") %]'
  61. - name: gowinsvc
  62. project: gowinsvc
  63. enable: '[% c("var/windows") %]'
  64. - name: gosvcutils
  65. project: gosvcutils
  66. - name: goeasyconfig
  67. project: goeasyconfig