diff options
Diffstat (limited to 'src/gui/wscript')
-rw-r--r-- | src/gui/wscript | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gui/wscript b/src/gui/wscript new file mode 100644 index 0000000..3e461bf --- /dev/null +++ b/src/gui/wscript @@ -0,0 +1,44 @@ +#!/usr/bin/env python +import Params +import autowaf + +def build(bld): + obj = bld.create_obj('cpp', 'shlib') + obj.source = ''' + EdgeView.cpp + MachinaCanvas.cpp + MachinaGUI.cpp + NodePropertiesWindow.cpp + NodeView.cpp + ''' + + obj.includes = ['.', '..', '../engine'] + obj.name = 'libmachina_gui' + obj.target = 'machina_gui' + obj.uselib_local = 'libmachina_engine' + autowaf.use_lib(bld, obj, ''' + FLOWCANVAS + GLADEMM + GLIBMM + GNOMECANVASMM + GTKMM + RAUL + REDLANDMM + SIGCPP + EUGENE + ''') + + # GUI runtime files + install_files('DATADIR', 'machina', 'machina.glade') + install_files('DATADIR', 'machina', 'machina.svg') + + # Executable + obj = bld.create_obj('cpp', 'program') + obj.target = 'machina_gui' + obj.source = 'main.cpp' + obj.includes = ['.', '../engine'] + obj.defines = 'VERSION=\\\"' + bld.env()['MACHINA_VERSION'] + '\\\"' + obj.uselib_local = 'libmachina_engine libmachina_gui' + autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM REDLANDMM RAUL MACHINA EUGENE') + + autowaf.build_wrapper(bld, 'machina.in', obj) |