From 40d2f95a57b631838025254d3063606a4201e35c Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 27 Apr 2023 19:38:50 +0200 Subject: [PATCH] Now build old classes and build tests are command line settings. --- SCsub | 9 +++++++++ config.py | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SCsub b/SCsub index 9efa17c..b0e1a96 100644 --- a/SCsub +++ b/SCsub @@ -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", diff --git a/config.py b/config.py index ba05547..9d1bccd 100644 --- a/config.py +++ b/config.py @@ -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 [