integrated.pri
75 lines
| 3.2 KiB
| text/plain
|
TextLexer
Michal Klocek
|
r43 | integrated_build:{ | ||
Michal Klocek
|
r193 | INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR | ||
Jani Honkonen
|
r130 | |||
!win32: { | ||||
LIBS += -L $$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR | ||||
Michal Klocek
|
r177 | }else{ | ||
Jani Honkonen
|
r201 | win32-msvc*: { | ||
# hack fix for error: | ||||
# "LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'" | ||||
QMAKE_LIBDIR += $$CHART_BUILD_LIB_DIR | ||||
}else{ | ||||
LIBS += -L $$CHART_BUILD_LIB_DIR | ||||
} | ||||
Jani Honkonen
|
r130 | } | ||
Michal Klocek
|
r33 | CONFIG(debug, debug|release) { | ||
Tero Ahola
|
r110 | LIBS += -lQtCommercialChartd | ||
#this is ugly hack to work around missing rpath, it simply copies lib | ||||
win32:{ | ||||
copylib.target = $$CHART_BUILD_BIN_DIR/QtCommercialChartd.dll | ||||
copylib.commands = $$QMAKE_COPY $$CHART_BUILD_LIB_DIR\\QtCommercialChartd.dll $$CHART_BUILD_BIN_DIR | ||||
copylib.depends = $$CHART_BUILD_LIB_DIR/QtCommercialChartd.dll | ||||
PRE_TARGETDEPS += $$CHART_BUILD_BIN_DIR/QtCommercialChartd.dll | ||||
QMAKE_EXTRA_TARGETS +=copylib | ||||
} | ||||
Michal Klocek
|
r34 | } else { | ||
Tero Ahola
|
r60 | LIBS += -lQtCommercialChart | ||
Michal Klocek
|
r37 | |||
Tero Ahola
|
r60 | #this is ugly hack to work around missing rpath, it simply copies lib | ||
win32: { | ||||
copylib.target = $$CHART_BUILD_BIN_DIR/QtCommercialChart | ||||
copylib.commands = $$QMAKE_COPY $$CHART_BUILD_LIB_DIR\\QtCommercialChart.dll $$CHART_BUILD_BIN_DIR | ||||
copylib.depends = $$CHART_BUILD_LIB_DIR/QtCommercialChart.dll | ||||
PRE_TARGETDEPS += $$CHART_BUILD_BIN_DIR/QtCommercialChart | ||||
QMAKE_EXTRA_TARGETS +=copylib | ||||
Michal Klocek
|
r37 | } | ||
Michal Klocek
|
r34 | } | ||
Tero Ahola
|
r109 | |||
mac: { | ||||
Tero Ahola
|
r721 | # This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX | ||
Tero Ahola
|
r641 | CHARTS_LIB_NAME = libQtCommercialChart.1.dylib | ||
CONFIG(debug, debug|release) { | ||||
CHARTS_LIB_NAME = libQtCommercialChartd.1.dylib | ||||
} | ||||
Tero Ahola
|
r922 | BIN_TARGET_PATH = "" | ||
Tero Ahola
|
r721 | exists ($$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET) { | ||
Tero Ahola
|
r922 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET | ||
Tero Ahola
|
r721 | } | ||
exists ($$CHART_BUILD_BIN_DIR"/test/"$$TARGET".app/Contents/MacOS/"$$TARGET) { | ||||
# Executable in test folder | ||||
Tero Ahola
|
r922 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/test/"$$TARGET".app/Contents/MacOS/"$$TARGET | ||
Tero Ahola
|
r721 | } | ||
exists ($$CHART_BUILD_BIN_DIR"/test/tst_"$$TARGET".app/Contents/MacOS/tst_"$$TARGET) { | ||||
# Executable in test folder with custom target "tst_NNN" | ||||
Tero Ahola
|
r922 | BIN_TARGET_PATH = $$CHART_BUILD_BIN_DIR"/test/tst_"$$TARGET".app/Contents/MacOS/tst_"$$TARGET | ||
Tero Ahola
|
r721 | } | ||
exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { | ||||
# Plugin | ||||
Tero Ahola
|
r922 | BIN_TARGET_PATH = $$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib" | ||
Tero Ahola
|
r721 | } | ||
Tero Ahola
|
r922 | !isEmpty (BIN_TARGET_PATH) { | ||
QMAKE_POST_LINK += install_name_tool -change $$CHARTS_LIB_NAME $$CHART_BUILD_LIB_DIR"/"$$CHARTS_LIB_NAME $$BIN_TARGET_PATH | ||||
Tero Ahola
|
r931 | # message($$QMAKE_POST_LINK) | ||
Tero Ahola
|
r994 | } | ||
# Hack to make qml plugins available as internal build versions | ||||
exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { | ||||
QMAKE_POST_LINK += " & $$QMAKE_COPY qmldir $$CHART_BUILD_PLUGIN_DIR" | ||||
message($$QMAKE_POST_LINK) | ||||
Tero Ahola
|
r641 | } | ||
Tero Ahola
|
r109 | } | ||
Tero Ahola
|
r60 | } else { | ||
Tero Ahola
|
r641 | CONFIG += qtcommercialchart | ||
Michal Klocek
|
r33 | } | ||