Added variables to be able to control some parts of the build.

This commit is contained in:
Relintai 2023-04-27 17:55:56 +02:00
parent 4ce26ff55a
commit ac2c9a78a7
2 changed files with 51 additions and 42 deletions

14
SCsub
View File

@ -50,7 +50,17 @@ sources = [
"mlpp/uni_lin_reg/uni_lin_reg.cpp", "mlpp/uni_lin_reg/uni_lin_reg.cpp",
"mlpp/utilities/utilities.cpp", "mlpp/utilities/utilities.cpp",
"mlpp/wgan/wgan.cpp", "mlpp/wgan/wgan.cpp",
]
if env.pmlpp_build_tests:
sources += [
"test/mlpp_tests.cpp",
"test/mlpp_matrix_tests.cpp",
]
if env.pmlpp_build_old_classes:
print("asdasdasd")
sources += [
"mlpp/wgan/wgan_old.cpp", "mlpp/wgan/wgan_old.cpp",
"mlpp/output_layer/output_layer_old.cpp", "mlpp/output_layer/output_layer_old.cpp",
"mlpp/multi_output_layer/multi_output_layer_old.cpp", "mlpp/multi_output_layer/multi_output_layer_old.cpp",
@ -88,10 +98,8 @@ sources = [
"mlpp/cost/cost_old.cpp", "mlpp/cost/cost_old.cpp",
"mlpp/convolutions/convolutions_old.cpp", "mlpp/convolutions/convolutions_old.cpp",
"mlpp/activation/activation_old.cpp", "mlpp/activation/activation_old.cpp",
]
"test/mlpp_tests.cpp",
"test/mlpp_matrix_tests.cpp",
]
module_env.add_source_files(env.modules_sources, sources) module_env.add_source_files(env.modules_sources, sources)

View File

@ -2,7 +2,8 @@ def can_build(env, platform):
return True return True
def configure(env): def configure(env):
pass env.pmlpp_build_old_classes = True
env.pmlpp_build_tests = True
def get_doc_classes(): def get_doc_classes():
return [ return [