summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-28 14:09:36 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:12 +1000
commitf6a7d5b90762fee39ae117dc2bf926eac0dbab8a (patch)
tree659a17727a0b138f7e476ab4863521a7a55348eb /buildtools/wafsamba/wscript
parent00825ecf34c94da50892a071547f0051f1668efe (diff)
downloadsamba-f6a7d5b90762fee39ae117dc2bf926eac0dbab8a.tar.gz
samba-f6a7d5b90762fee39ae117dc2bf926eac0dbab8a.tar.bz2
samba-f6a7d5b90762fee39ae117dc2bf926eac0dbab8a.zip
build: added support for controlling library types
added: --bundled-library-extension : control library extension for bundled libraries --builtin-libraries : force a list of libraries to be builtin (non-shared)
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript19
1 files changed, 18 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 563aa52ee0..dbe06f2477 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -4,13 +4,25 @@
import sys, wafsamba
import Options, os, preproc
+from samba_utils import *
def set_options(opt):
opt.tool_options('compiler_cc')
opt.tool_options('gnu_dirs')
+
+ opt.add_option('--bundled-libraries',
+ help=("list of bundled libraries. Can be 'NONE' or 'ALL' [auto]"),
+ action="store", dest='BUNDLED_LIBS', default='')
+ opt.add_option('--bundled-library-extension',
+ help=("name extension for bundled libraries [auto]"),
+ action="store", dest='BUNDLED_EXTENSION', default=None)
+ opt.add_option('--builtin-libraries',
+ help=("list of libraries to build directly into binaries [none]"),
+ action="store", dest='BUILTIN_LIBRARIES', default='')
+
opt.add_option('--libdir',
- help=("object code libraries [PREFIX/lib"),
+ help=("object code libraries [PREFIX/lib]"),
action="store", dest='LIBDIR', default='${PREFIX}/lib')
opt.add_option('--bindir',
help=("user executables [PREFIX/bin]"),
@@ -73,9 +85,14 @@ def configure(conf):
conf.env.BINDIR = Options.options.BINDIR
conf.env.SBINDIR = Options.options.SBINDIR
conf.env.MODULESDIR = Options.options.MODULESDIR
+ conf.env.BUNDLED_LIBS = Options.options.BUNDLED_LIBS.split(',')
+ conf.env.BUILTIN_LIBRARIES = Options.options.BUILTIN_LIBRARIES.split(',')
conf.env.DISABLE_SHARED = Options.options.disable_shared
+ if Options.options.BUNDLED_EXTENSION:
+ conf.env.BUNDLED_EXTENSION = Options.options.BUNDLED_EXTENSION
+
# see if we can compile and run a simple C program
conf.CHECK_CODE('printf("hello world\\n")',
define='HAVE_SIMPLE_C_PROG',