From 203a4d82feb2ac9d3b046a79589fb3280b4c7737 2012-03-13 14:39:32 From: Tero Ahola Date: 2012-03-13 14:39:32 Subject: [PATCH] fix --- diff --git a/examples/gdpbarchart/gdpbarchart.pro b/examples/gdpbarchart/gdpbarchart.pro index 3623d4f..0150c70 100644 --- a/examples/gdpbarchart/gdpbarchart.pro +++ b/examples/gdpbarchart/gdpbarchart.pro @@ -7,4 +7,8 @@ TARGET = gdpbarchart SOURCES += main.cpp\ widget.cpp HEADERS += widget.h -QMAKE_POST_LINK += $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR + +!mac { + # TODO: QMAKE_POST_LINK does not work on mac; how to copy the data file? + QMAKE_POST_LINK += $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR +} diff --git a/integrated.pri b/integrated.pri index 606612a..31d1d3d 100644 --- a/integrated.pri +++ b/integrated.pri @@ -40,7 +40,7 @@ integrated_build:{ # This is a hack to make binaries to use the internal version of the QtCommercial Charts library on OSX exists($$CHART_BUILD_BIN_DIR"/"$$TARGET".app/Contents/MacOS/"$$TARGET) { 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 - message($$QMAKE_POST_LINK) + #message($$QMAKE_POST_LINK) } }