diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-03-15 14:53:47 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@nokia.com> | 2012-03-19 16:14:04 +0100 |
commit | be3b47d0d504a3409ce66bd77bb8c0acff87c4f5 (patch) | |
tree | 09dfb02d484a4f395991972b828da71400fb761a /installerfw.pri | |
parent | 9fd62353cf7f973d78cd2093328ac15b5c4980b6 (diff) |
Reorganize the tree, have better ifw.pri. Shadow build support.
Change-Id: I01fb12537f863ed0744979973c7e4153889cc5cb
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerfw.pri')
-rw-r--r-- | installerfw.pri | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/installerfw.pri b/installerfw.pri new file mode 100644 index 000000000..e9d41a641 --- /dev/null +++ b/installerfw.pri @@ -0,0 +1,57 @@ +!isEmpty(IFW_PRI_INCLUDED) { + error("installerfw.pri already included") +} +IFW_PRI_INCLUDED = 1 + +defineReplace(cleanPath) { + win32:1 ~= s|\\\\|/|g + contains(1, ^/.*):pfx = / + else:pfx = + segs = $$split(1, /) + out = + for(seg, segs) { + equals(seg, ..):out = $$member(out, 0, -2) + else:!equals(seg, .):out += $$seg + } + return($$join(out, /, $$pfx)) +} + +isEmpty(IFW_BUILD_TREE) { + sub_dir = $$_PRO_FILE_PWD_ + sub_dir ~= s,^$$re_escape($$PWD),, + IFW_BUILD_TREE = $$cleanPath($$OUT_PWD) + IFW_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,, +} + +IFW_SOURCE_TREE = $$PWD +IFW_APP_PATH = $$IFW_BUILD_TREE/bin +IFW_LIB_PATH = $$IFW_BUILD_TREE/lib + +INCLUDEPATH += \ + $$IFW_SOURCE_TREE/src/libs/7zip \ + $$IFW_SOURCE_TREE/src/libs/kdtools \ + $$IFW_SOURCE_TREE/src/libs/installer +win32:INCLUDEPATH += $$IFW_SOURCE_TREE/src/libs/7zip/win/CPP +unix:INCLUDEPATH += $$IFW_SOURCE_TREE/src/libs/7zip/unix/CPP + +LIBS += -L$$IFW_LIB_PATH +unix:!macx:LIBS += -lutil +macx:LIBS += -framework Carbon -framework Security + +CONFIG += help uitools +CONFIG(static, static|shared) { + QTPLUGIN += qsqlite + QT += script network xml + DEFINES += USE_STATIC_SQLITE_PLUGIN +} + +GIT_SHA1 = $$system(git rev-list --abbrev-commit -n1 HEAD) +DEFINES += QT_NO_CAST_FROM_ASCII "_GIT_SHA1_=$$GIT_SHA1" + +CONFIG(shared, static|shared):DEFINES += KDTOOLS_SHARED +CONFIG(shared, static|shared):DEFINES += LIB_INSTALLER_SHARED + +static { + win32:exists($$IFW_LIB_PATH/installer.lib):POST_TARGETDEPS += $$IFW_LIB_PATH/installer.lib + unix:exists($$IFW_LIB_PATH/libinstaller.a):POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a +} |