Now build old classes and build tests are command line settings.

This commit is contained in:
Relintai 2023-04-27 19:38:50 +02:00
parent d5d3ac9e9c
commit 40d2f95a57
2 changed files with 10 additions and 2 deletions

9
SCsub
View File

@ -4,6 +4,15 @@ Import('env')
module_env = env.Clone()
module_env.pmlpp_build_old_classes = True
module_env.pmlpp_build_tests = True
if ARGUMENTS.get('pmlpp_build_old_classes', 'yes') == 'no':
module_env.pmlpp_build_old_classes = False
if ARGUMENTS.get('pmlpp_build_tests', 'yes') == 'no':
module_env.pmlpp_build_tests = False
sources = [
"register_types.cpp",

View File

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