Commits

Anonymous committed 27e4601

add wscript

  • Participants
  • Parent commits 5c6aa16
  • Branches waffle-branch

Comments (0)

Files changed (1)

+# -*- python -*-
+
+import waflib.Logs as msg
+
+PACKAGE = {
+    'name': 'GaudiKernel',
+    'author': ['Gaudi collaboration'],
+}
+
+def configure(ctx):
+    msg.debug ('[configure] package name: '+PACKAGE['name'])
+
+    return
+
+def build(ctx):
+
+    ctx.build_linklib(
+        name = 'GaudiKernel',
+        source = 'Lib/*.cpp',
+        use = ['Reflex',
+               'ROOT',
+               'boost-thread', 'boost-date_time',
+               'boost-system', 'boost-filesystem',],
+        )
+
+    o = ctx.build_app(
+        name     = 'genconf',
+        source   = 'Util/genconf.cpp',
+        use      = ['GaudiKernel', 'Reflex',
+                    'boost-thread', 'boost-date_time',
+                    'boost-system', 'boost-filesystem', 'boost-program_options',
+                    'boost',
+                    ],
+        do_test  = False,
+        )
+    genconf_exe = o.path.find_or_declare(o.target).abspath()
+    ctx.env['GENCONF'] = genconf_exe
+    #ctx.add_group()
+    
+
+    ctx.build_pymodule(source=['python/GaudiKernel/*.py',],
+                       # override default b/c python files
+                       # already under 'PACKAGE_NAME' == 'GaudiKernel'
+                       install_path_root='${INSTALL_AREA}/python')
+
+    ctx.build_reflex_dict(
+        name = 'GaudiKernel',
+        source = 'dict/dictionary.h',
+        selection_file = 'dict/dictionary.xml',
+        use  = [
+            'GaudiKernel',
+            'Reflex',
+            'boost',
+            'pthread', 'rt',
+            ],
+        )
+