@@ -1,16 +1,16 | |||
|
1 |
CONFIG+=inte |
|
|
1 | CONFIG+=integrated_build #remove if you want to build against installed libs | |
|
2 | 2 | |
|
3 | 3 | CHART_BUILD_HEADER_DIR = $$PWD/include |
|
4 | 4 | CHART_BUILD_LIB_DIR = $$PWD/lib |
|
5 | 5 | CHART_BUILD_DIR = $$PWD/build |
|
6 | 6 | CHART_BUILD_BIN_DIR = $$PWD/bin |
|
7 | 7 | |
|
8 | 8 | # hack to fix windows builds |
|
9 | 9 | |
|
10 | 10 | win32:{ |
|
11 | 11 | CHART_BUILD_HEADER_DIR = $$replace(CHART_BUILD_HEADER_DIR, "/","\\") |
|
12 | 12 | CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") |
|
13 | 13 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") |
|
14 | 14 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") |
|
15 | 15 | } |
|
16 | 16 |
@@ -1,32 +1,32 | |||
|
1 |
inte |
|
|
1 | integrated_build:{ | |
|
2 | 2 | message('Internal build within charts core source tree') |
|
3 | 3 | INCLUDEPATH += $$CHART_BUILD_HEADER_DIR |
|
4 | 4 | LIBS += -L $$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR |
|
5 | 5 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
6 | 6 | CONFIG(debug, debug|release) { |
|
7 | 7 | LIBS += -lQtCommercialChartd |
|
8 | 8 | |
|
9 | 9 | #this is ugly hack to work around missing rpath, it simply copies lib |
|
10 | 10 | win32:{ |
|
11 | 11 | copylib.target = $$CHART_BUILD_BIN_DIR/QtCommercialChartd.dll |
|
12 | 12 | copylib.commands = $$QMAKE_COPY $$CHART_BUILD_LIB_DIR\QtCommercialChartd.dll $$CHART_BUILD_BIN_DIR |
|
13 | 13 | copylib.depends = $$CHART_BUILD_LIB_DIR/QtCommercialChartd.dll |
|
14 | 14 | PRE_TARGETDEPS += $$CHART_BUILD_BIN_DIR/QtCommercialChartd.dll |
|
15 | 15 | QMAKE_EXTRA_TARGETS +=copylib |
|
16 | 16 | } |
|
17 | 17 | |
|
18 | 18 | } else { |
|
19 | 19 | LIBS += -lQtCommercialChart |
|
20 | 20 | |
|
21 | 21 | #this is ugly hack to work around missing rpath, it simply copies lib |
|
22 | 22 | win32:{ |
|
23 | 23 | copylib.target = $$CHART_BUILD_BIN_DIR/QtCommercialChart |
|
24 | 24 | copylib.commands = $$QMAKE_COPY $$CHART_BUILD_LIB_DIR\QtCommercialChart.dll $$CHART_BUILD_BIN_DIR |
|
25 | 25 | copylib.depends = $$CHART_BUILD_LIB_DIR/QtCommercialChart.dll |
|
26 | 26 | PRE_TARGETDEPS += $$CHART_BUILD_BIN_DIR/QtCommercialChart |
|
27 | 27 | QMAKE_EXTRA_TARGETS +=copylib |
|
28 | 28 | } |
|
29 | 29 | } |
|
30 | 30 | }else{ |
|
31 | 31 | CONFIG+=qtcommercialchart |
|
32 | 32 | } |
General Comments 0
You need to be logged in to leave comments.
Login now