support shared libxce(for api server)
This commit is contained in:
parent
924bc1517b
commit
280c22671f
5 changed files with 18 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ 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',
|
||||
bcctool = custom_target('bcctool',
|
||||
input: 'baidu/src/bcctool/main.go',
|
||||
output: 'bcctool',
|
||||
command: [env_program,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@ incdir = include_directories('.', '../include', '../lib',
|
|||
|
||||
controller_deps = [
|
||||
libxce_dep,
|
||||
c_capnproto_dep,
|
||||
math_dep,
|
||||
tinylog_dep,
|
||||
thread_dep
|
||||
]
|
||||
|
||||
|
|
@ -48,7 +50,8 @@ xce_test_deps = [
|
|||
struct2json_dep,
|
||||
readline_dep,
|
||||
history_dep,
|
||||
ncurses_dep
|
||||
ncurses_dep,
|
||||
tinylog_dep,
|
||||
]
|
||||
xce_test = executable('xce_test',
|
||||
xce_test_src,
|
||||
|
|
|
|||
|
|
@ -53,12 +53,18 @@ ssl_dep = dependency('openssl')
|
|||
|
||||
libxce_deps = [c_capnproto_dep, ssl_dep, tinylog_dep, thread_dep]
|
||||
|
||||
libxce_shared = shared_library('xce',
|
||||
libxce_src,
|
||||
include_directories: [incdir, build_inc],
|
||||
dependencies: libxce_deps,
|
||||
install: true)
|
||||
libxce = static_library('xce',
|
||||
libxce_src,
|
||||
include_directories: [incdir, build_inc],
|
||||
dependencies: libxce_deps,
|
||||
install: true)
|
||||
|
||||
|
||||
libxce_dep = declare_dependency(link_with: libxce)
|
||||
|
||||
libxce_test_src = ['testsuite/test.c',
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ incdir = include_directories('src',
|
|||
scheduler_deps = [
|
||||
libxce_dep,
|
||||
math_dep,
|
||||
tinylog_dep,
|
||||
thread_dep
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ xcecd_worker_deps = [
|
|||
elogind_dep,
|
||||
sqlite3_dep,
|
||||
struct2json_dep,
|
||||
yaml_deps
|
||||
yaml_deps,
|
||||
tinylog_dep,
|
||||
]
|
||||
|
||||
xcecd_worker = executable('xcecd_worker',
|
||||
|
|
@ -52,7 +53,10 @@ xrun_srcs = [
|
|||
'src/xrun.c'
|
||||
]
|
||||
|
||||
xrun_deps = [libxce_dep]
|
||||
xrun_deps = [
|
||||
libxce_dep,
|
||||
tinylog_dep,
|
||||
]
|
||||
|
||||
xrun = executable('xrun',
|
||||
xrun_srcs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue