@@ -7,4 +7,8 TARGET = gdpbarchart | |||||
7 | SOURCES += main.cpp\ |
|
7 | SOURCES += main.cpp\ | |
8 | widget.cpp |
|
8 | widget.cpp | |
9 | HEADERS += widget.h |
|
9 | HEADERS += widget.h | |
|
10 | ||||
|
11 | !mac { | |||
|
12 | # TODO: QMAKE_POST_LINK does not work on mac; how to copy the data file? | |||
10 | QMAKE_POST_LINK += $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR |
|
13 | QMAKE_POST_LINK += $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR | |
|
14 | } |
@@ -40,7 +40,7 integrated_build:{ | |||||
40 | # This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX |
|
40 | # This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX | |
41 | exists($$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET) { |
|
41 | exists($$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET) { | |
42 | QMAKE_POST_LINK+=install_name_tool -change "libQtCommercialChartd.1.dylib" $$CHART_BUILD_LIB_DIR"/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET |
|
42 | QMAKE_POST_LINK+=install_name_tool -change "libQtCommercialChartd.1.dylib" $$CHART_BUILD_LIB_DIR"/libQtCommercialChartd.dylib" $$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET | |
43 | message($$QMAKE_POST_LINK) |
|
43 | #message($$QMAKE_POST_LINK) | |
44 | } |
|
44 | } | |
45 | } |
|
45 | } | |
46 |
|
46 |
General Comments 0
You need to be logged in to leave comments.
Login now