build: add some build options to customise library functionality

This commit is contained in:
2026-04-01 19:02:04 +01:00
parent 6b04920d29
commit 467c13e161
5 changed files with 49 additions and 22 deletions
+4 -2
View File
@@ -50,11 +50,13 @@ function(add_fx_module)
target_compile_definitions(fx-${module_name} PUBLIC
${module_preproc_token}
FX_EXPORT=1)
FX_EXPORT=1
FX_ENABLE_FLOATING_POINT=${fx_enable_floating_point})
target_compile_definitions(fx-${module_name}-s PUBLIC
${module_preproc_token}
FX_EXPORT=1
FX_STATIC=1)
FX_STATIC=1
FX_ENABLE_FLOATING_POINT=${fx_enable_floating_point})
set_target_properties(fx-${module_name}
PROPERTIES POSITION_INDEPENDENT_CODE ON)