mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Also set up build defines.
This commit is contained in:
parent
ac2c9a78a7
commit
b6fa7a355b
10
SCsub
10
SCsub
@ -52,14 +52,17 @@ sources = [
|
||||
"mlpp/wgan/wgan.cpp",
|
||||
]
|
||||
|
||||
if env.pmlpp_build_tests:
|
||||
if module_env.pmlpp_build_tests:
|
||||
module_env.Prepend(CPPDEFINES=["TESTS_ENABLED"])
|
||||
|
||||
sources += [
|
||||
"test/mlpp_tests.cpp",
|
||||
"test/mlpp_matrix_tests.cpp",
|
||||
]
|
||||
|
||||
if env.pmlpp_build_old_classes:
|
||||
print("asdasdasd")
|
||||
if module_env.pmlpp_build_old_classes:
|
||||
module_env.Prepend(CPPDEFINES=["OLD_CLASSES_ENABLED"])
|
||||
|
||||
sources += [
|
||||
"mlpp/wgan/wgan_old.cpp",
|
||||
"mlpp/output_layer/output_layer_old.cpp",
|
||||
@ -101,6 +104,5 @@ if env.pmlpp_build_old_classes:
|
||||
]
|
||||
|
||||
|
||||
|
||||
module_env.add_source_files(env.modules_sources, sources)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user