diff options
author | Marius Kintel <marius@kintel.net> | 2011-01-21 21:39:34 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-01-21 21:39:34 (GMT) |
commit | 5a1fc30fc6cecd8620d32c514cc69292d0da95e5 (patch) | |
tree | 715575a9bf8516fe48196106bcdb55b74407a63f | |
parent | 46fde22b32c5fa1625c41e00983853d238153242 (diff) |
Added support for specifying a VARIANT variable
-rw-r--r-- | openscad.pro | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openscad.pro b/openscad.pro index 0e94eb0..ee237c5 100644 --- a/openscad.pro +++ b/openscad.pro @@ -1,3 +1,13 @@ +# Auto-include config_<variant>.pri if the VARIANT variable is give on the +# command-line, e.g. qmake VARIANT=mybuild +!isEmpty(VARIANT) { + message("Variant: $${VARIANT}") + exists(config_$${VARIANT}.pri) { + message("Including config_$${VARIANT}.pri") + include(config_$${VARIANT}.pri) + } +} + win32 { isEmpty(VERSION) VERSION = $$system(date /t) } else { |