Commits

Sebastien Binet  committed 68071d8

add wscript

  • Participants
  • Parent commits 89802c5
  • Branches waffle-branch

Comments (0)

Files changed (1)

+# -*- python -*-
+
+import waflib.Logs as msg
+
+PACKAGE = {
+    'name': 'GaudiPython',
+    'author': ['Gaudi collaboration'],
+}
+
+def configure(ctx):
+    msg.debug ('[configure] package name: '+PACKAGE['name'])
+    return
+
+def build(ctx):
+
+    ctx.build_linklib(
+        name = 'GaudiPythonLib',
+        source = 'Lib/*.cpp',
+        use = ['GaudiKernel',
+               'GaudiAlgLib',
+               'GaudiUtilsLib',
+               'CLHEP',
+               'AIDA',
+               'ROOT',
+               'python',
+               ]
+        )
+
+    ctx.build_complib(
+        name = 'GaudiPython',
+        source = 'Services/*.cpp',
+        use  = ['GaudiKernel',
+                'GaudiAlgLib',
+                'GaudiUtilsLib',
+                'GaudiPythonLib',
+                'CLHEP',
+                'Reflex',
+                'AIDA',
+                'python',
+                ]
+        )
+
+    ctx.build_reflex_dict(
+        name = 'GaudiPython',
+        source = 'dict/kernel.h',
+        selection_file = 'dict/selection_kernel.xml',
+        use  = [
+            'GaudiAlgLib',
+            'GaudiUtilsLib',
+            'GaudiPythonLib',
+            'CLHEP',
+            'Reflex',
+            'AIDA',
+            'python',
+            ],
+        #lib = ['GaudiAlgLib', 'GaudiUtilsLib', 'GaudiPythonLib',]
+        )
+
+    ctx.build_pymodule(
+        source=['python/GaudiPython/*.py',],
+        # override default b/c python files
+        # already under 'PACKAGE_NAME' == 'GaudiPython'
+        install_path_root='${INSTALL_AREA}/python')
+
+    # ctx.build_pymodule(
+    #     source = [#'python/*.py',
+    #               'python/GaudiPython/*.py',]
+    #     )
+    return
+
+