summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/wscript11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/wscript b/src/gui/wscript
index d00606eb..87be97e4 100644
--- a/src/gui/wscript
+++ b/src/gui/wscript
@@ -1,9 +1,8 @@
#!/usr/bin/env python
-import Params
import autowaf
def build(bld):
- obj = bld.create_obj('cpp', 'shlib')
+ obj = bld.new_task_gen('cxx', 'shlib')
obj.source = '''
App.cpp
BreadCrumbBox.cpp
@@ -39,13 +38,13 @@ def build(bld):
gui.cpp
'''
- if bld.env()['HAVE_CURL'] != 0:
+ if bld.env['HAVE_CURL'] != 0:
obj.source += 'UploadPatchWindow.cpp'
obj.includes = ['.', '..', '../common', '../client', '../module']
obj.name = 'libingen_gui'
obj.target = 'ingen_gui'
- obj.inst_dir = bld.env()['LIBDIRNAME'] + 'ingen'
+ obj.install_path = '${LIBDIR}/ingen'
obj.uselib_local = 'libingen_shared'
autowaf.use_lib(bld, obj, '''
CURL
@@ -64,7 +63,7 @@ def build(bld):
''')
# GUI runtime files
- install_files('DATADIR', 'ingen', 'ingen_gui.glade')
- install_files('DATADIR', 'ingen', 'ingen.svg')
+ bld.install_files('${DATADIR}/ingen', 'ingen_gui.glade')
+ bld.install_files('${DATADIR}/ingen', 'ingen.svg')