diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -38,7 +38,7 @@ from attoconf.lib.c import Cxx from attoconf.lib.install import Install from attoconf.lib.config_hash import ConfigHash from attoconf.lib.templates import Templates -from attoconf.types import enum, filepath +from attoconf.types import enum, filepath, ShellList yesno = enum('yes', 'no') @@ -78,6 +78,9 @@ class Configuration(Cxx, Install, ConfigHash, Templates): self.add_option('--enable-rpath', init='none', type=enum('none', 'relative', 'absolute'), check=lambda build, ENABLE_RPATH: None, help='Use rpaths to find libraries', hidden=False) + self.add_bool_feature('shared', init='yes', + check=lambda build, ENABLE_SHARED: None, + help='Build shared libraries instead of static (required for debug, DOES NOT WORK WITH CLANG)') def vars(self): super(Configuration, self).vars() @@ -85,6 +88,9 @@ class Configuration(Cxx, Install, ConfigHash, Templates): # http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog type=filepath, check=lambda build, GTEST_DIR: None, help='Location of Google Test sources, must contain src/gtest-all.cc (linking to a precompiled library is NOT supported)', hidden=False) + self.add_option('GDB', init=['gdb'], + type=ShellList, check=lambda build, GDB: None, + help='debugger to run tests', hidden=False) def add_bool_feature(self, arg, hidden=False, **kwargs): positive = '--enable-' + arg |