fix(python): fully working and portable python build
This commit is contained in:
@@ -2,7 +2,8 @@ composition_p = subproject('libcomposition',
|
||||
default_options: [
|
||||
'pkg_config=' + get_option('pkg_config').to_string(),
|
||||
'build_tests=' + get_option('build_tests').to_string(),
|
||||
'build_examples=false'
|
||||
'build_examples=false',
|
||||
'build_python=' + get_option('build_python').to_string()
|
||||
])
|
||||
comp_dep = composition_p.get_variable('composition_dep')
|
||||
libcomposition = composition_p.get_variable('libcomposition')
|
||||
|
||||
@@ -2,6 +2,7 @@ config_p = subproject('libconfig',
|
||||
default_options:[
|
||||
'pkg_config=' + get_option('pkg_config').to_string(),
|
||||
'build_tests=' + get_option('build_tests').to_string(),
|
||||
'build_examples=false'
|
||||
])
|
||||
'build_examples=false',
|
||||
'build_python=' + get_option('build_python').to_string()
|
||||
])
|
||||
config_dep = config_p.get_variable('config_dep')
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
const_p = subproject('libconstants', default_options: [
|
||||
'pkg_config=' + get_option('pkg_config').to_string(),
|
||||
'build_tests=' + get_option('build_tests').to_string(),
|
||||
'build_examples=false'
|
||||
])
|
||||
'build_examples=false',
|
||||
'build_python=' + get_option('build_python').to_string()
|
||||
])
|
||||
const_dep = const_p.get_variable('const_dep')
|
||||
libconst = const_p.get_variable('libconst')
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
logging_p = subproject('liblogging', default_options: [
|
||||
'pkg_config=' + get_option('pkg_config').to_string(),
|
||||
'build_tests=' + get_option('build_tests').to_string(),
|
||||
'build_examples=false'
|
||||
'build_examples=false',
|
||||
'build_python=' + get_option('build_python').to_string()
|
||||
])
|
||||
liblogging = logging_p.get_variable('liblogging')
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
if get_option('build_lib_comp') or get_option('build_lib_all') or get_option('build_python')
|
||||
subdir('libcomposition')
|
||||
endif
|
||||
if get_option('build_lib_config') or get_option('build_lib_all') or get_option('build_python')
|
||||
subdir('libconfig')
|
||||
endif
|
||||
if get_option('build_lib_const') or get_option('build_lib_all') or get_option('build_python')
|
||||
subdir('libconstants')
|
||||
endif
|
||||
if get_option('build_lib_log') or get_option('build_lib_all')
|
||||
if get_option('build_lib_log') or get_option('build_lib_all') or get_option('build_python')
|
||||
subdir('liblogging')
|
||||
endif
|
||||
if get_option('build_lib_plugin') or get_option('build_lib_all')
|
||||
if get_option('build_lib_comp') or get_option('build_lib_all') or get_option('build_python')
|
||||
subdir('libcomposition')
|
||||
endif
|
||||
if get_option('build_lib_plugin') or get_option('build_lib_all') and not get_option('build_python')
|
||||
subdir('libplugin')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user