integrated.pri
56 lines
| 3.1 KiB
| text/plain
|
TextLexer
|
r43 | integrated_build:{ | ||
|
r193 | message('Running integrated build against local libs...') | ||
INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR | ||||
|
r130 | |||
!win32: { | ||||
LIBS += -L $$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR | ||||
|
r177 | }else{ | ||
|
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 | ||||
} | ||||
|
r130 | } | ||
|
r41 | DESTDIR = $$CHART_BUILD_BIN_DIR | ||
|
r130 | |||
|
r33 | CONFIG(debug, debug|release) { | ||
|
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 | ||||
} | ||||
|
r34 | } else { | ||
|
r60 | LIBS += -lQtCommercialChart | ||
|
r37 | |||
|
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 | ||||
|
r37 | } | ||
|
r34 | } | ||
|
r109 | |||
mac: { | ||||
# This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX | ||||
QMAKE_POST_LINK += install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/chartwidgettest.app/Contents/MacOS/chartwidgettest | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/barchart.app/Contents/MacOS/barchart | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/colorlineChart.app/Contents/MacOS/colorlineChart | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/lineChart.app/Contents/MacOS/lineChart | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/percentbarchart.app/Contents/MacOS/percentbarchart | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/stackedbarchart.app/Contents/MacOS/stackedbarchart | ||||
QMAKE_POST_LINK += && install_name_tool -change "libQtCommercialChartd.1.dylib" "@rpath/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR/zoomLineChart.app/Contents/MacOS/zoomLineChart | ||||
} | ||||
|
r60 | } else { | ||
|
r193 | message('Running build aginst system libs...') | ||
|
r37 | CONFIG+=qtcommercialchart | ||
|
r33 | } | ||