@@ -1,50 +1,51 | |||
|
1 | 1 | |
|
2 | 2 | #check if shadow build |
|
3 | 3 | !contains($${PWD}, $${OUT_PWD}){ |
|
4 | 4 | search = "$$PWD:::" |
|
5 | 5 | temp = $$split(search,"/") |
|
6 | 6 | temp = $$last(temp) |
|
7 | 7 | path = $$replace(search,$$temp,'') |
|
8 | 8 | temp = $$split(OUT_PWD,$$path) |
|
9 | 9 | temp = $$split(temp,'/') |
|
10 | 10 | temp = $$first(temp) |
|
11 | 11 | path = "$${path}$${temp}" |
|
12 | 12 | SHADOW=$$path |
|
13 | 13 | }else{ |
|
14 | 14 | SHADOW=$$PWD |
|
15 | 15 | CONFIG-=development_build |
|
16 | 16 | } |
|
17 | 17 | |
|
18 | 18 | CHART_BUILD_PUBLIC_HEADER_DIR = $$SHADOW/include |
|
19 | 19 | CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private |
|
20 | 20 | CHART_BUILD_LIB_DIR = $$SHADOW/lib |
|
21 | 21 | CHART_BUILD_DIR = $$SHADOW/build |
|
22 | 22 | CHART_BUILD_BIN_DIR = $$SHADOW/bin |
|
23 | 23 | CHART_BUILD_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR/QtCommercial/Chart |
|
24 | 24 | CHART_BUILD_DOC_DIR = $$SHADOW/doc |
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | # hack to fix windows builds |
|
28 | 28 | win32:{ |
|
29 | 29 | CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\") |
|
30 | 30 | CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\") |
|
31 | 31 | CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") |
|
32 | 32 | CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") |
|
33 | 33 | CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") |
|
34 | 34 | CHART_BUILD_PLUGIN_DIR = $$replace(CHART_BUILD_PLUGIN_DIR, "/","\\") |
|
35 | 35 | CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\") |
|
36 | 36 | } |
|
37 | 37 | |
|
38 | 38 | mac: { |
|
39 | 39 | # TODO: The following qmake flags are a work-around to make QtCommercial Charts compile on |
|
40 | 40 | # QtCommercial 4.8. On the other hand Charts builds successfully with Qt open source 4.8 |
|
41 | 41 | # without these definitions, so this is probably a configuration issue on QtCommercial 4.8; |
|
42 | 42 | # it should probably define the minimum OSX version to be 10.5... |
|
43 | 43 | QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5 |
|
44 | 44 | QMAKE_LFLAGS *= -mmacosx-version-min=10.5 |
|
45 | 45 | } |
|
46 | 46 | |
|
47 | 47 | development_build: { |
|
48 | 48 | DEFINES+=DEVELOPMENT_BUILD |
|
49 | 49 | CONFIG+=local_build |
|
50 | CONFIG+=debug | |
|
50 | 51 | } No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now