fix(python): fully working and portable python build

This commit is contained in:
2026-06-11 13:58:17 -04:00
parent 0e4cdcd278
commit 1540d2c4b8
13 changed files with 84 additions and 23 deletions

View File

@@ -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')

View File

@@ -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')

View File

@@ -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')

View File

@@ -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')

View File

@@ -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