diff options
author | David Robillard <d@drobilla.net> | 2008-10-20 00:25:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-20 00:25:32 +0000 |
commit | f95a985e72031f92bff95e24cc4ff82d6358f74e (patch) | |
tree | 3c89cb380899cdd44b404cf9618174e9c9d18189 /wscript | |
parent | 7f985c8e381f78622c740c36b241fbd797fdd54c (diff) | |
download | patchage-f95a985e72031f92bff95e24cc4ff82d6358f74e.tar.gz patchage-f95a985e72031f92bff95e24cc4ff82d6358f74e.tar.bz2 patchage-f95a985e72031f92bff95e24cc4ff82d6358f74e.zip |
Actually use installation location variables for everything.
Add ./waf configure --build which builds a (soon-to-be) relocatable independent bundle with all data/progs/libs in it (OSX bundle directory structure, should be possible to make a 'real' OSX bundle out of this...).
Fix include paths to use "" and definitely build against local versions of libraries.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1689 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -20,8 +20,6 @@ blddir = 'build' def set_options(opt): autowaf.set_options(opt) - opt.tool_options('compiler_cc') - opt.tool_options('compiler_cxx') opt.add_option('--install-name', type='string', default=APPNAME, dest='app_install_name', help="Install name. [Default: '" + APPNAME + "']") opt.add_option('--app-human-name', type='string', default=APP_HUMAN_NAME, dest='app_human_name', @@ -63,8 +61,8 @@ def configure(conf): # Use LASH if we have DBUS unless --no-lash if not Params.g_options.no_lash and conf.env['HAVE_DBUS_GLIB']: - conf.env['HAVE_LASH'] = True - conf.define('HAVE_LASH', True) + conf.env['HAVE_LASH'] = 1 + conf.define('HAVE_LASH', 1) else: conf.env['HAVE_LASH'] = False @@ -98,6 +96,7 @@ def build(bld): prog = bld.create_obj('cpp', 'program') prog.includes = 'src' # make waf dependency tracking work prog.target = bld.env()['APP_INSTALL_NAME'] + prog.inst_dir = bld.env()['BINDIRNAME'] autowaf.use_lib(bld, prog, 'DBUS FLOWCANVAS GLADEMM DBUS_GLIB GNOMECANVASMM GTHREAD RAUL') prog.source = ''' src/LashClient.cpp @@ -130,19 +129,19 @@ def build(bld): prog.uselib += ' ALSA ' # Glade UI definitions (XML) - install_files('PREFIX', '/share/' + bld.env()['APP_INSTALL_NAME'], 'src/patchage.glade') + install_files('DATADIR', bld.env()['APP_INSTALL_NAME'], 'src/patchage.glade') # 'Desktop' file (menu entry, icon, etc) obj = bld.create_obj('subst') obj.source = 'patchage.desktop.in' obj.target = 'patchage.desktop' obj.dict = { - 'BINDIR' : bld.env()['PREFIX'] + '/bin', + 'BINDIR' : bld.env()['BINDIR'], 'APP_INSTALL_NAME' : bld.env()['APP_INSTALL_NAME'], 'APP_HUMAN_NAME' : bld.env()['APP_HUMAN_NAME'], } obj.inst_var = 'PREFIX' - obj.inst_dir = '/share/applications' + obj.inst_dir = bld.env()['DATADIRNAME'] + 'applications' # Icons # @@ -162,7 +161,7 @@ def build(bld): icon_sizes = ['16x16', '22x22', '24x24', '32x32', '48x48'] for s in icon_sizes: install_as( - os.path.normpath(bld.env()['PREFIX'] + '/share/icons/hicolor/' + s + '/apps/'), + os.path.normpath(bld.env()['DATADIR'] + '/icons/hicolor/' + s + '/apps/'), bld.env()['APP_INSTALL_NAME'] + '.png', 'icons/' + s + '/patchage.png') |