add autoscaler and build for go code
This commit is contained in:
parent
7912242231
commit
cf1dbdc07a
4 changed files with 144 additions and 0 deletions
|
|
@ -22,3 +22,5 @@ libscaler = static_library('scaler',
|
|||
include_directories: [incdir],
|
||||
dependencies: libscaler_deps,
|
||||
install: true)
|
||||
|
||||
subdir('providers')
|
||||
|
|
|
|||
34
src/autoscaler/providers/meson.build
Normal file
34
src/autoscaler/providers/meson.build
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
go_env = environment()
|
||||
go_env.set('BUILDTYPE', get_option('buildtype'))
|
||||
go_env.set('FIX_ENVARS','CGO_CFLAGS CGO_LDFLAGS')
|
||||
go_env.set('DEPENDENCIES','thread math')
|
||||
go_env.set('ENVARS', 'CURRENT_SOURCE_DIR BUILD_ROOT')
|
||||
|
||||
apiserver = custom_target('bcctool',
|
||||
input: 'baidu/src/bcctool/main.go',
|
||||
output: 'bcctool',
|
||||
command: [env_program,
|
||||
'CURRENT_SOURCE_DIR="@CURRENT_SOURCE_DIR@"',
|
||||
'BUILD_ROOT="@BUILD_ROOT@"',
|
||||
go_build_program,
|
||||
'@INPUT@', '@OUTPUT@'],
|
||||
env: go_env,
|
||||
install: true,
|
||||
install_dir: get_option('prefix') / 'bin')
|
||||
|
||||
scripts = [
|
||||
'./baidu/scripts/getReturnRequests.sh',
|
||||
'./baidu/scripts/getAvailableTemplates.sh',
|
||||
'./baidu/scripts/getRequestStatus.sh',
|
||||
'./baidu/scripts/requestReturnMachines.sh',
|
||||
'./baidu/scripts/getAvailableMachines.sh',
|
||||
'./baidu/scripts/requestMachines.sh',
|
||||
'./baidu/postprovision/lsf/example_user_data.sh',
|
||||
]
|
||||
|
||||
install_data(scripts,
|
||||
install_dir: 'share/bcctool/scripts')
|
||||
|
||||
# FIXME: support installation of configuration
|
||||
# file later
|
||||
Loading…
Add table
Add a link
Reference in a new issue