s4-waf: added 'waf dist' to our standalone libs as well
authorAndrew Tridgell <tridge@samba.org>
Sun, 4 Apr 2010 00:06:34 +0000 (10:06 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:25 +0000 (20:27 +1000)
buildtools/wafsamba/samba_dist.py
buildtools/wafsamba/wafsamba.py
lib/talloc/wscript
lib/tdb/wscript
lib/tevent/wscript
source4/lib/ldb/wscript

index 88268b53cea11e85951c9f0c4f4cbfc832c2ff6e..87ea8ccbefe905e154bc159fcbdcc4a43446348a 100644 (file)
@@ -1,7 +1,7 @@
 # customised version of 'waf dist' for Samba tools
 # uses git ls-files to get file lists
 
-import Utils, os, sys, tarfile, stat
+import Utils, os, sys, tarfile, stat, Scripting
 from samba_utils import *
 
 def add_tarfile(tar, fname, abspath):
@@ -16,10 +16,10 @@ def add_tarfile(tar, fname, abspath):
     fh.close()
 
 
-def dist(appname='', version=''):
+def dist():
 
-    if not appname: appname = Utils.g_module.APPNAME
-    if not version: version = Utils.g_module.VERSION
+    appname = Utils.g_module.APPNAME
+    version = Utils.g_module.VERSION
 
     env = LOAD_ENVIRONMENT()
     srcdir = os.path.normpath(os.path.join(os.path.dirname(Utils.g_module.root_path), Utils.g_module.srcdir))
@@ -65,3 +65,5 @@ def DIST_DIRS(conf, dirs):
     '''set the directories to package, relative to top srcdir'''
     if not conf.env.DIST_DIRS:
         conf.env.DIST_DIRS = dirs
+
+Scripting.dist = dist
index 2cfbe7a58355e5db96196bdef2a064f8835b5375..f9cb1a882fded206a26446c77d3212ebb40c96f4 100644 (file)
@@ -23,6 +23,7 @@ import samba_conftests
 import tru64cc
 import irixcc
 import generic_cc
+import samba_dist
 
 # some systems have broken threading in python
 if os.environ.get('WAF_NOTHREADS') == '1':
index 4cc21c94d30b9b1a1f62d62595c48cb56ce0ea79..f264513916960acab1a23b0e4722344384dd763b 100644 (file)
@@ -18,7 +18,7 @@ def set_options(opt):
     opt.recurse(LIBREPLACE_DIR)
 
 def configure(conf):
-    conf.DIST_DIRS('lib/talloc:. buildtools:buildtools')
+    conf.DIST_DIRS('lib/talloc:. lib/replace:lib/replace buildtools:buildtools')
     conf.sub_config(LIBREPLACE_DIR)
 
     if conf.CHECK_BUNDLED_SYSTEM('talloc', minversion=VERSION,
index d16516b8b5c25e89527e722a1fa4e93da635a4d5..87bdcdf79df7e9760d90914a0981c9b26f6d82dc 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 
-VERSION='1.2.1'
+APPNAME = 'tdb'
+VERSION = '1.2.1'
 
 srcdir = '../..'
 blddir = 'bin'
@@ -18,6 +19,7 @@ def set_options(opt):
     opt.recurse(LIBREPLACE_DIR)
 
 def configure(conf):
+    conf.DIST_DIRS('lib/tdb:. lib/replace:lib/replace buildtools:buildtools')
     conf.sub_config(LIBREPLACE_DIR)
 
     if conf.CHECK_BUNDLED_SYSTEM('tdb', minversion=VERSION,
index 30db216de11957e6c5777c7d72f3c628cecf991d..1298eb458802d19d6ef7c552455ccfc838355364 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+APPNAME = 'tevent'
 VERSION = '0.9.8'
 
 srcdir = '../..'
@@ -19,6 +20,7 @@ def set_options(opt):
     opt.recurse(LIBTALLOC_DIR)
 
 def configure(conf):
+    conf.DIST_DIRS('lib/tevent:. lib/replace:lib/replace lib/talloc:lib/talloc buildtools:buildtools')
     conf.sub_config(LIBREPLACE_DIR)
     conf.sub_config(LIBTALLOC_DIR)
 
index de70fa454ae472d213587a66a99064b8f67f7191..311672fe2848cd9d7f0f3a4aa89b856ed576cf39 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+APPNAME = 'ldb'
 VERSION = '0.9.10'
 
 srcdir = '../../..'
@@ -21,6 +22,8 @@ def set_options(opt):
     opt.recurse(LIBTEVENT_DIR)
 
 def configure(conf):
+    conf.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
+                      lib/tdb:lib/tdb lib/tevent:lib/tevent buildtools:buildtools''')
     conf.sub_config(LIBTDB_DIR)
     conf.sub_config(LIBTEVENT_DIR)
     conf.sub_config(LIBPOPT_DIR)