From 39434709b78574e2538593bd566599f05602085c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 6 Jun 2009 18:43:40 +0200 Subject: [PATCH] Follow up on the target and MDATA changes --- icons/wscript_build | 4 ++-- wscript | 20 +++++++++----------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/icons/wscript_build b/icons/wscript_build index 0687a70c..522fe647 100644 --- a/icons/wscript_build +++ b/icons/wscript_build @@ -17,7 +17,7 @@ def add_image (bld, category, name): for size in [16, 22, 32, 48]: format = str (size) + 'x' + str (size) if os.access (srcdir + '/icons/' + format + '/' + name + '.png', os.F_OK): - bld.install_files ('${DATADIR}/icons/hicolor/' + format + '/' + category, + bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category, srcdir + '/icons/' + format + '/' + name + '.png') elif not rsvg_convert: pass @@ -28,7 +28,7 @@ def add_image (bld, category, name): ' -o ' + blddir + '/icons/' + format + '/' + name + '.png' + \ ' ' + srcdir + '/icons/scalable/' + name + '.svg' if not Utils.exec_command (command): - bld.install_files ('${DATADIR}/icons/hicolor/' + format + '/' + category, + bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category, blddir + '/icons/' + format + '/' + name + '.png') else: Utils.pprint ('BLUE', "Optimized icons could not be created.") diff --git a/wscript b/wscript index 7e50445d..3f1857f4 100644 --- a/wscript +++ b/wscript @@ -106,9 +106,7 @@ def configure (conf): conf.env['program_PATTERN'] = '%s.exe' # Use Visual C++ compatible alignment conf.env.append_value ('CCFLAGS', '-mms-bitfields') - - conf.env['implib_PATTERN'] = 'lib%s.dll.a' - conf.env['IMPLIB_ST'] = '-Wl,--out-implib,%s' + conf.env['staticlib_LINKFLAGS'] = [] Utils.pprint ('BLUE', 'Mingw recognized, assuming chross compile.') @@ -178,7 +176,7 @@ def configure (conf): if Options.platform == 'win32': args = '--define-variable=target=win32' check_pkg ('gtk+-2.0', '2.10.0', var='GTK', args=args) - check_pkg ('webkit-1.0', '1.1.1') + check_pkg ('webkit-1.0', '1.1.1', args=args) check_pkg ('libsoup-2.4', '2.25.2') conf.define ('HAVE_LIBSOUP_2_25_2', 1) check_pkg ('libxml-2.0', '2.6') @@ -344,7 +342,7 @@ def build (bld): bld.install_files ('${DATADIR}/dbus-1/services', 'data/com.nokia.' + APPNAME + '.service') else: - appdir = '${DATADIR}/applications' + appdir = '${MDATADIR}/applications' if bld.env['INTLTOOL']: obj = bld.new_task_gen ('intltool_in') obj.source = 'data/' + APPNAME + '.desktop.in' @@ -379,20 +377,20 @@ def build (bld): ' -o ' + blddir + '/data/logo-shade.png ' + \ srcdir + '/data/logo-shade.svg' if not Utils.exec_command (command): - bld.install_files ('${DATADIR}/' + APPNAME + '/res', blddir + '/data/logo-shade.png') + bld.install_files ('${MDATADIR}/' + APPNAME + '/res', blddir + '/data/logo-shade.png') else: Utils.pprint ('BLUE', "logo-shade could not be rasterized.") - bld.install_files ('${DATADIR}/' + APPNAME + '/res', 'data/error.html') - bld.install_files ('${DATADIR}/' + APPNAME + '/res', 'data/speeddial-head.html') - bld.install_files ('${DATADIR}/' + APPNAME + '/res', 'data/speeddial.json') - bld.install_files ('${DATADIR}/' + APPNAME + '/res', 'data/mootools.js') + bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/error.html') + bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial-head.html') + bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial.json') + bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/mootools.js') if Options.commands['check']: bld.add_subdirs ('tests') def shutdown (): if Options.commands['install'] or Options.commands['uninstall']: - dir = Build.bld.get_install_path ('${DATADIR}/icons/hicolor') + dir = Build.bld.get_install_path ('${MDATADIR}/icons/hicolor') icon_cache_updated = False if not Options.options.destdir: # update the pixmap cache directory