@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,148 +1,152 | |||||
1 | # checksum 0x5b42 version 0x70013 |
|
1 | # checksum 0x5b42 version 0x70013 | |
2 | # This file was generated by the Qt Quick Application wizard of Qt Creator. |
|
2 | # This file was generated by the Qt Quick Application wizard of Qt Creator. | |
3 | # The code below adds the QmlApplicationViewer to the project and handles the |
|
3 | # The code below adds the QmlApplicationViewer to the project and handles the | |
4 | # activation of QML debugging. |
|
4 | # activation of QML debugging. | |
5 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
5 | # It is recommended not to modify this file, since newer versions of Qt Creator | |
6 | # may offer an updated version of it. |
|
6 | # may offer an updated version of it. | |
7 |
|
7 | |||
|
8 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
9 | QT += quick1 | |||
|
10 | } else { | |||
8 | QT += declarative |
|
11 | QT += declarative | |
|
12 | } | |||
9 |
|
13 | |||
10 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
14 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
11 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
15 | HEADERS += $$PWD/qmlapplicationviewer.h | |
12 | INCLUDEPATH += $$PWD |
|
16 | INCLUDEPATH += $$PWD | |
13 |
|
17 | |||
14 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
18 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
15 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
19 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
16 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
20 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
17 | } else { |
|
21 | } else { | |
18 | DEFINES -= QMLJSDEBUGGER |
|
22 | DEFINES -= QMLJSDEBUGGER | |
19 | } |
|
23 | } | |
20 |
|
24 | |||
21 | contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { |
|
25 | contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { | |
22 | DEFINES += HARMATTAN_BOOSTER |
|
26 | DEFINES += HARMATTAN_BOOSTER | |
23 | } |
|
27 | } | |
24 | # This file was generated by an application wizard of Qt Creator. |
|
28 | # This file was generated by an application wizard of Qt Creator. | |
25 | # The code below handles deployment to Symbian and Maemo, aswell as copying |
|
29 | # The code below handles deployment to Symbian and Maemo, aswell as copying | |
26 | # of the application data to shadow build directories on desktop. |
|
30 | # of the application data to shadow build directories on desktop. | |
27 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
31 | # It is recommended not to modify this file, since newer versions of Qt Creator | |
28 | # may offer an updated version of it. |
|
32 | # may offer an updated version of it. | |
29 |
|
33 | |||
30 | defineTest(qtcAddDeployment) { |
|
34 | defineTest(qtcAddDeployment) { | |
31 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
35 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
32 | item = item$${deploymentfolder} |
|
36 | item = item$${deploymentfolder} | |
33 | itemsources = $${item}.sources |
|
37 | itemsources = $${item}.sources | |
34 | $$itemsources = $$eval($${deploymentfolder}.source) |
|
38 | $$itemsources = $$eval($${deploymentfolder}.source) | |
35 | itempath = $${item}.path |
|
39 | itempath = $${item}.path | |
36 | $$itempath= $$eval($${deploymentfolder}.target) |
|
40 | $$itempath= $$eval($${deploymentfolder}.target) | |
37 | export($$itemsources) |
|
41 | export($$itemsources) | |
38 | export($$itempath) |
|
42 | export($$itempath) | |
39 | DEPLOYMENT += $$item |
|
43 | DEPLOYMENT += $$item | |
40 | } |
|
44 | } | |
41 |
|
45 | |||
42 | MAINPROFILEPWD = $$PWD |
|
46 | MAINPROFILEPWD = $$PWD | |
43 |
|
47 | |||
44 | symbian { |
|
48 | symbian { | |
45 | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg |
|
49 | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg | |
46 | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 |
|
50 | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 | |
47 | } else:win32 { |
|
51 | } else:win32 { | |
48 | copyCommand = |
|
52 | copyCommand = | |
49 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
53 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
50 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
54 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | |
51 | source = $$replace(source, /, \\) |
|
55 | source = $$replace(source, /, \\) | |
52 | sourcePathSegments = $$split(source, \\) |
|
56 | sourcePathSegments = $$split(source, \\) | |
53 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) |
|
57 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) | |
54 | target = $$replace(target, /, \\) |
|
58 | target = $$replace(target, /, \\) | |
55 | target ~= s,\\\\\\.?\\\\,\\, |
|
59 | target ~= s,\\\\\\.?\\\\,\\, | |
56 | !isEqual(source,$$target) { |
|
60 | !isEqual(source,$$target) { | |
57 | !isEmpty(copyCommand):copyCommand += && |
|
61 | !isEmpty(copyCommand):copyCommand += && | |
58 | isEqual(QMAKE_DIR_SEP, \\) { |
|
62 | isEqual(QMAKE_DIR_SEP, \\) { | |
59 | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" |
|
63 | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" | |
60 | } else { |
|
64 | } else { | |
61 | source = $$replace(source, \\\\, /) |
|
65 | source = $$replace(source, \\\\, /) | |
62 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
66 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) | |
63 | target = $$replace(target, \\\\, /) |
|
67 | target = $$replace(target, \\\\, /) | |
64 | copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" |
|
68 | copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" | |
65 | } |
|
69 | } | |
66 | } |
|
70 | } | |
67 | } |
|
71 | } | |
68 | !isEmpty(copyCommand) { |
|
72 | !isEmpty(copyCommand) { | |
69 | copyCommand = @echo Copying application data... && $$copyCommand |
|
73 | copyCommand = @echo Copying application data... && $$copyCommand | |
70 | copydeploymentfolders.commands = $$copyCommand |
|
74 | copydeploymentfolders.commands = $$copyCommand | |
71 | first.depends = $(first) copydeploymentfolders |
|
75 | first.depends = $(first) copydeploymentfolders | |
72 | export(first.depends) |
|
76 | export(first.depends) | |
73 | export(copydeploymentfolders.commands) |
|
77 | export(copydeploymentfolders.commands) | |
74 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
78 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | |
75 | } |
|
79 | } | |
76 | } else:unix { |
|
80 | } else:unix { | |
77 | maemo5 { |
|
81 | maemo5 { | |
78 | desktopfile.files = $${TARGET}.desktop |
|
82 | desktopfile.files = $${TARGET}.desktop | |
79 | desktopfile.path = /usr/share/applications/hildon |
|
83 | desktopfile.path = /usr/share/applications/hildon | |
80 | icon.files = $${TARGET}64.png |
|
84 | icon.files = $${TARGET}64.png | |
81 | icon.path = /usr/share/icons/hicolor/64x64/apps |
|
85 | icon.path = /usr/share/icons/hicolor/64x64/apps | |
82 | } else:!isEmpty(MEEGO_VERSION_MAJOR) { |
|
86 | } else:!isEmpty(MEEGO_VERSION_MAJOR) { | |
83 | desktopfile.files = $${TARGET}_harmattan.desktop |
|
87 | desktopfile.files = $${TARGET}_harmattan.desktop | |
84 | desktopfile.path = /usr/share/applications |
|
88 | desktopfile.path = /usr/share/applications | |
85 | icon.files = $${TARGET}80.png |
|
89 | icon.files = $${TARGET}80.png | |
86 | icon.path = /usr/share/icons/hicolor/80x80/apps |
|
90 | icon.path = /usr/share/icons/hicolor/80x80/apps | |
87 | } else { # Assumed to be a Desktop Unix |
|
91 | } else { # Assumed to be a Desktop Unix | |
88 | copyCommand = |
|
92 | copyCommand = | |
89 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
93 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
90 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
94 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | |
91 | source = $$replace(source, \\\\, /) |
|
95 | source = $$replace(source, \\\\, /) | |
92 | macx { |
|
96 | macx { | |
93 | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) |
|
97 | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) | |
94 | } else { |
|
98 | } else { | |
95 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
99 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) | |
96 | } |
|
100 | } | |
97 | target = $$replace(target, \\\\, /) |
|
101 | target = $$replace(target, \\\\, /) | |
98 | sourcePathSegments = $$split(source, /) |
|
102 | sourcePathSegments = $$split(source, /) | |
99 | targetFullPath = $$target/$$last(sourcePathSegments) |
|
103 | targetFullPath = $$target/$$last(sourcePathSegments) | |
100 | targetFullPath ~= s,/\\.?/,/, |
|
104 | targetFullPath ~= s,/\\.?/,/, | |
101 | !isEqual(source,$$targetFullPath) { |
|
105 | !isEqual(source,$$targetFullPath) { | |
102 | !isEmpty(copyCommand):copyCommand += && |
|
106 | !isEmpty(copyCommand):copyCommand += && | |
103 | copyCommand += $(MKDIR) \"$$target\" |
|
107 | copyCommand += $(MKDIR) \"$$target\" | |
104 | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" |
|
108 | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" | |
105 | } |
|
109 | } | |
106 | } |
|
110 | } | |
107 | !isEmpty(copyCommand) { |
|
111 | !isEmpty(copyCommand) { | |
108 | copyCommand = @echo Copying application data... && $$copyCommand |
|
112 | copyCommand = @echo Copying application data... && $$copyCommand | |
109 | copydeploymentfolders.commands = $$copyCommand |
|
113 | copydeploymentfolders.commands = $$copyCommand | |
110 | first.depends = $(first) copydeploymentfolders |
|
114 | first.depends = $(first) copydeploymentfolders | |
111 | export(first.depends) |
|
115 | export(first.depends) | |
112 | export(copydeploymentfolders.commands) |
|
116 | export(copydeploymentfolders.commands) | |
113 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
117 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | |
114 | } |
|
118 | } | |
115 | } |
|
119 | } | |
116 | installPrefix = /opt/$${TARGET} |
|
120 | installPrefix = /opt/$${TARGET} | |
117 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
121 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
118 | item = item$${deploymentfolder} |
|
122 | item = item$${deploymentfolder} | |
119 | itemfiles = $${item}.files |
|
123 | itemfiles = $${item}.files | |
120 | $$itemfiles = $$eval($${deploymentfolder}.source) |
|
124 | $$itemfiles = $$eval($${deploymentfolder}.source) | |
121 | itempath = $${item}.path |
|
125 | itempath = $${item}.path | |
122 | $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) |
|
126 | $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) | |
123 | export($$itemfiles) |
|
127 | export($$itemfiles) | |
124 | export($$itempath) |
|
128 | export($$itempath) | |
125 | INSTALLS += $$item |
|
129 | INSTALLS += $$item | |
126 | } |
|
130 | } | |
127 |
|
131 | |||
128 | !isEmpty(desktopfile.path) { |
|
132 | !isEmpty(desktopfile.path) { | |
129 | export(icon.files) |
|
133 | export(icon.files) | |
130 | export(icon.path) |
|
134 | export(icon.path) | |
131 | export(desktopfile.files) |
|
135 | export(desktopfile.files) | |
132 | export(desktopfile.path) |
|
136 | export(desktopfile.path) | |
133 | INSTALLS += icon desktopfile |
|
137 | INSTALLS += icon desktopfile | |
134 | } |
|
138 | } | |
135 |
|
139 | |||
136 | target.path = $${installPrefix}/bin |
|
140 | target.path = $${installPrefix}/bin | |
137 | export(target.path) |
|
141 | export(target.path) | |
138 | INSTALLS += target |
|
142 | INSTALLS += target | |
139 | } |
|
143 | } | |
140 |
|
144 | |||
141 | export (ICON) |
|
145 | export (ICON) | |
142 | export (INSTALLS) |
|
146 | export (INSTALLS) | |
143 | export (DEPLOYMENT) |
|
147 | export (DEPLOYMENT) | |
144 | export (TARGET.EPOCHEAPSIZE) |
|
148 | export (TARGET.EPOCHEAPSIZE) | |
145 | export (TARGET.CAPABILITY) |
|
149 | export (TARGET.CAPABILITY) | |
146 | export (LIBS) |
|
150 | export (LIBS) | |
147 | export (QMAKE_EXTRA_TARGETS) |
|
151 | export (QMAKE_EXTRA_TARGETS) | |
148 | } |
|
152 | } |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,148 +1,152 | |||||
1 | # checksum 0x5b42 version 0x70013 |
|
1 | # checksum 0x5b42 version 0x70013 | |
2 | # This file was generated by the Qt Quick Application wizard of Qt Creator. |
|
2 | # This file was generated by the Qt Quick Application wizard of Qt Creator. | |
3 | # The code below adds the QmlApplicationViewer to the project and handles the |
|
3 | # The code below adds the QmlApplicationViewer to the project and handles the | |
4 | # activation of QML debugging. |
|
4 | # activation of QML debugging. | |
5 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
5 | # It is recommended not to modify this file, since newer versions of Qt Creator | |
6 | # may offer an updated version of it. |
|
6 | # may offer an updated version of it. | |
7 |
|
7 | |||
|
8 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
9 | QT += quick1 | |||
|
10 | } else { | |||
8 | QT += declarative |
|
11 | QT += declarative | |
|
12 | } | |||
9 |
|
13 | |||
10 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
14 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
11 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
15 | HEADERS += $$PWD/qmlapplicationviewer.h | |
12 | INCLUDEPATH += $$PWD |
|
16 | INCLUDEPATH += $$PWD | |
13 |
|
17 | |||
14 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
18 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
15 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
19 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
16 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
20 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
17 | } else { |
|
21 | } else { | |
18 | DEFINES -= QMLJSDEBUGGER |
|
22 | DEFINES -= QMLJSDEBUGGER | |
19 | } |
|
23 | } | |
20 |
|
24 | |||
21 | contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { |
|
25 | contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { | |
22 | DEFINES += HARMATTAN_BOOSTER |
|
26 | DEFINES += HARMATTAN_BOOSTER | |
23 | } |
|
27 | } | |
24 | # This file was generated by an application wizard of Qt Creator. |
|
28 | # This file was generated by an application wizard of Qt Creator. | |
25 | # The code below handles deployment to Symbian and Maemo, aswell as copying |
|
29 | # The code below handles deployment to Symbian and Maemo, aswell as copying | |
26 | # of the application data to shadow build directories on desktop. |
|
30 | # of the application data to shadow build directories on desktop. | |
27 | # It is recommended not to modify this file, since newer versions of Qt Creator |
|
31 | # It is recommended not to modify this file, since newer versions of Qt Creator | |
28 | # may offer an updated version of it. |
|
32 | # may offer an updated version of it. | |
29 |
|
33 | |||
30 | defineTest(qtcAddDeployment) { |
|
34 | defineTest(qtcAddDeployment) { | |
31 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
35 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
32 | item = item$${deploymentfolder} |
|
36 | item = item$${deploymentfolder} | |
33 | itemsources = $${item}.sources |
|
37 | itemsources = $${item}.sources | |
34 | $$itemsources = $$eval($${deploymentfolder}.source) |
|
38 | $$itemsources = $$eval($${deploymentfolder}.source) | |
35 | itempath = $${item}.path |
|
39 | itempath = $${item}.path | |
36 | $$itempath= $$eval($${deploymentfolder}.target) |
|
40 | $$itempath= $$eval($${deploymentfolder}.target) | |
37 | export($$itemsources) |
|
41 | export($$itemsources) | |
38 | export($$itempath) |
|
42 | export($$itempath) | |
39 | DEPLOYMENT += $$item |
|
43 | DEPLOYMENT += $$item | |
40 | } |
|
44 | } | |
41 |
|
45 | |||
42 | MAINPROFILEPWD = $$PWD |
|
46 | MAINPROFILEPWD = $$PWD | |
43 |
|
47 | |||
44 | symbian { |
|
48 | symbian { | |
45 | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg |
|
49 | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg | |
46 | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 |
|
50 | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 | |
47 | } else:win32 { |
|
51 | } else:win32 { | |
48 | copyCommand = |
|
52 | copyCommand = | |
49 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
53 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
50 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
54 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | |
51 | source = $$replace(source, /, \\) |
|
55 | source = $$replace(source, /, \\) | |
52 | sourcePathSegments = $$split(source, \\) |
|
56 | sourcePathSegments = $$split(source, \\) | |
53 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) |
|
57 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) | |
54 | target = $$replace(target, /, \\) |
|
58 | target = $$replace(target, /, \\) | |
55 | target ~= s,\\\\\\.?\\\\,\\, |
|
59 | target ~= s,\\\\\\.?\\\\,\\, | |
56 | !isEqual(source,$$target) { |
|
60 | !isEqual(source,$$target) { | |
57 | !isEmpty(copyCommand):copyCommand += && |
|
61 | !isEmpty(copyCommand):copyCommand += && | |
58 | isEqual(QMAKE_DIR_SEP, \\) { |
|
62 | isEqual(QMAKE_DIR_SEP, \\) { | |
59 | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" |
|
63 | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" | |
60 | } else { |
|
64 | } else { | |
61 | source = $$replace(source, \\\\, /) |
|
65 | source = $$replace(source, \\\\, /) | |
62 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
66 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) | |
63 | target = $$replace(target, \\\\, /) |
|
67 | target = $$replace(target, \\\\, /) | |
64 | copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" |
|
68 | copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" | |
65 | } |
|
69 | } | |
66 | } |
|
70 | } | |
67 | } |
|
71 | } | |
68 | !isEmpty(copyCommand) { |
|
72 | !isEmpty(copyCommand) { | |
69 | copyCommand = @echo Copying application data... && $$copyCommand |
|
73 | copyCommand = @echo Copying application data... && $$copyCommand | |
70 | copydeploymentfolders.commands = $$copyCommand |
|
74 | copydeploymentfolders.commands = $$copyCommand | |
71 | first.depends = $(first) copydeploymentfolders |
|
75 | first.depends = $(first) copydeploymentfolders | |
72 | export(first.depends) |
|
76 | export(first.depends) | |
73 | export(copydeploymentfolders.commands) |
|
77 | export(copydeploymentfolders.commands) | |
74 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
78 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | |
75 | } |
|
79 | } | |
76 | } else:unix { |
|
80 | } else:unix { | |
77 | maemo5 { |
|
81 | maemo5 { | |
78 | desktopfile.files = $${TARGET}.desktop |
|
82 | desktopfile.files = $${TARGET}.desktop | |
79 | desktopfile.path = /usr/share/applications/hildon |
|
83 | desktopfile.path = /usr/share/applications/hildon | |
80 | icon.files = $${TARGET}64.png |
|
84 | icon.files = $${TARGET}64.png | |
81 | icon.path = /usr/share/icons/hicolor/64x64/apps |
|
85 | icon.path = /usr/share/icons/hicolor/64x64/apps | |
82 | } else:!isEmpty(MEEGO_VERSION_MAJOR) { |
|
86 | } else:!isEmpty(MEEGO_VERSION_MAJOR) { | |
83 | desktopfile.files = $${TARGET}_harmattan.desktop |
|
87 | desktopfile.files = $${TARGET}_harmattan.desktop | |
84 | desktopfile.path = /usr/share/applications |
|
88 | desktopfile.path = /usr/share/applications | |
85 | icon.files = $${TARGET}80.png |
|
89 | icon.files = $${TARGET}80.png | |
86 | icon.path = /usr/share/icons/hicolor/80x80/apps |
|
90 | icon.path = /usr/share/icons/hicolor/80x80/apps | |
87 | } else { # Assumed to be a Desktop Unix |
|
91 | } else { # Assumed to be a Desktop Unix | |
88 | copyCommand = |
|
92 | copyCommand = | |
89 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
93 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
90 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) |
|
94 | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | |
91 | source = $$replace(source, \\\\, /) |
|
95 | source = $$replace(source, \\\\, /) | |
92 | macx { |
|
96 | macx { | |
93 | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) |
|
97 | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) | |
94 | } else { |
|
98 | } else { | |
95 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) |
|
99 | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) | |
96 | } |
|
100 | } | |
97 | target = $$replace(target, \\\\, /) |
|
101 | target = $$replace(target, \\\\, /) | |
98 | sourcePathSegments = $$split(source, /) |
|
102 | sourcePathSegments = $$split(source, /) | |
99 | targetFullPath = $$target/$$last(sourcePathSegments) |
|
103 | targetFullPath = $$target/$$last(sourcePathSegments) | |
100 | targetFullPath ~= s,/\\.?/,/, |
|
104 | targetFullPath ~= s,/\\.?/,/, | |
101 | !isEqual(source,$$targetFullPath) { |
|
105 | !isEqual(source,$$targetFullPath) { | |
102 | !isEmpty(copyCommand):copyCommand += && |
|
106 | !isEmpty(copyCommand):copyCommand += && | |
103 | copyCommand += $(MKDIR) \"$$target\" |
|
107 | copyCommand += $(MKDIR) \"$$target\" | |
104 | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" |
|
108 | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" | |
105 | } |
|
109 | } | |
106 | } |
|
110 | } | |
107 | !isEmpty(copyCommand) { |
|
111 | !isEmpty(copyCommand) { | |
108 | copyCommand = @echo Copying application data... && $$copyCommand |
|
112 | copyCommand = @echo Copying application data... && $$copyCommand | |
109 | copydeploymentfolders.commands = $$copyCommand |
|
113 | copydeploymentfolders.commands = $$copyCommand | |
110 | first.depends = $(first) copydeploymentfolders |
|
114 | first.depends = $(first) copydeploymentfolders | |
111 | export(first.depends) |
|
115 | export(first.depends) | |
112 | export(copydeploymentfolders.commands) |
|
116 | export(copydeploymentfolders.commands) | |
113 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders |
|
117 | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | |
114 | } |
|
118 | } | |
115 | } |
|
119 | } | |
116 | installPrefix = /opt/$${TARGET} |
|
120 | installPrefix = /opt/$${TARGET} | |
117 | for(deploymentfolder, DEPLOYMENTFOLDERS) { |
|
121 | for(deploymentfolder, DEPLOYMENTFOLDERS) { | |
118 | item = item$${deploymentfolder} |
|
122 | item = item$${deploymentfolder} | |
119 | itemfiles = $${item}.files |
|
123 | itemfiles = $${item}.files | |
120 | $$itemfiles = $$eval($${deploymentfolder}.source) |
|
124 | $$itemfiles = $$eval($${deploymentfolder}.source) | |
121 | itempath = $${item}.path |
|
125 | itempath = $${item}.path | |
122 | $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) |
|
126 | $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) | |
123 | export($$itemfiles) |
|
127 | export($$itemfiles) | |
124 | export($$itempath) |
|
128 | export($$itempath) | |
125 | INSTALLS += $$item |
|
129 | INSTALLS += $$item | |
126 | } |
|
130 | } | |
127 |
|
131 | |||
128 | !isEmpty(desktopfile.path) { |
|
132 | !isEmpty(desktopfile.path) { | |
129 | export(icon.files) |
|
133 | export(icon.files) | |
130 | export(icon.path) |
|
134 | export(icon.path) | |
131 | export(desktopfile.files) |
|
135 | export(desktopfile.files) | |
132 | export(desktopfile.path) |
|
136 | export(desktopfile.path) | |
133 | INSTALLS += icon desktopfile |
|
137 | INSTALLS += icon desktopfile | |
134 | } |
|
138 | } | |
135 |
|
139 | |||
136 | target.path = $${installPrefix}/bin |
|
140 | target.path = $${installPrefix}/bin | |
137 | export(target.path) |
|
141 | export(target.path) | |
138 | INSTALLS += target |
|
142 | INSTALLS += target | |
139 | } |
|
143 | } | |
140 |
|
144 | |||
141 | export (ICON) |
|
145 | export (ICON) | |
142 | export (INSTALLS) |
|
146 | export (INSTALLS) | |
143 | export (DEPLOYMENT) |
|
147 | export (DEPLOYMENT) | |
144 | export (TARGET.EPOCHEAPSIZE) |
|
148 | export (TARGET.EPOCHEAPSIZE) | |
145 | export (TARGET.CAPABILITY) |
|
149 | export (TARGET.CAPABILITY) | |
146 | export (LIBS) |
|
150 | export (LIBS) | |
147 | export (QMAKE_EXTRA_TARGETS) |
|
151 | export (QMAKE_EXTRA_TARGETS) | |
148 | } |
|
152 | } |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,50 +1,54 | |||||
1 | !include( ../plugins.pri ) { |
|
1 | !include( ../plugins.pri ) { | |
2 | error( "Couldn't find the plugins.pri file!" ) |
|
2 | error( "Couldn't find the plugins.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | TARGET = qtcommercialchartqml |
|
5 | TARGET = qtcommercialchartqml | |
|
6 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
7 | QT += quick1 | |||
|
8 | } else { | |||
6 | QT += declarative |
|
9 | QT += declarative | |
|
10 | } | |||
7 | DESTDIR = $$CHART_BUILD_QML_PLUGIN_DIR |
|
11 | DESTDIR = $$CHART_BUILD_QML_PLUGIN_DIR | |
8 | INCLUDEPATH += $$CHART_BUILD_PRIVATE_HEADER_DIR |
|
12 | INCLUDEPATH += $$CHART_BUILD_PRIVATE_HEADER_DIR | |
9 |
|
13 | |||
10 | CONFIG(debug, debug|release) { |
|
14 | CONFIG(debug, debug|release) { | |
11 | mac: TARGET = $$join(TARGET,,,_debug) |
|
15 | mac: TARGET = $$join(TARGET,,,_debug) | |
12 | win32: TARGET = $$join(TARGET,,,d) |
|
16 | win32: TARGET = $$join(TARGET,,,d) | |
13 | } |
|
17 | } | |
14 |
|
18 | |||
15 | SOURCES += \ |
|
19 | SOURCES += \ | |
16 | plugin.cpp \ |
|
20 | plugin.cpp \ | |
17 | declarativechart.cpp \ |
|
21 | declarativechart.cpp \ | |
18 | declarativexypoint.cpp \ |
|
22 | declarativexypoint.cpp \ | |
19 | declarativexyseries.cpp \ |
|
23 | declarativexyseries.cpp \ | |
20 | declarativelineseries.cpp \ |
|
24 | declarativelineseries.cpp \ | |
21 | declarativesplineseries.cpp \ |
|
25 | declarativesplineseries.cpp \ | |
22 | declarativeareaseries.cpp \ |
|
26 | declarativeareaseries.cpp \ | |
23 | declarativescatterseries.cpp \ |
|
27 | declarativescatterseries.cpp \ | |
24 | declarativepieseries.cpp \ |
|
28 | declarativepieseries.cpp \ | |
25 | declarativebarseries.cpp \ |
|
29 | declarativebarseries.cpp \ | |
26 | declarativecategoryaxis.cpp \ |
|
30 | declarativecategoryaxis.cpp \ | |
27 | declarativemargins.cpp |
|
31 | declarativemargins.cpp | |
28 |
|
32 | |||
29 | HEADERS += \ |
|
33 | HEADERS += \ | |
30 | declarativechart.h \ |
|
34 | declarativechart.h \ | |
31 | declarativexypoint.h \ |
|
35 | declarativexypoint.h \ | |
32 | declarativexyseries.h \ |
|
36 | declarativexyseries.h \ | |
33 | declarativelineseries.h \ |
|
37 | declarativelineseries.h \ | |
34 | declarativesplineseries.h \ |
|
38 | declarativesplineseries.h \ | |
35 | declarativeareaseries.h \ |
|
39 | declarativeareaseries.h \ | |
36 | declarativescatterseries.h \ |
|
40 | declarativescatterseries.h \ | |
37 | declarativepieseries.h \ |
|
41 | declarativepieseries.h \ | |
38 | declarativebarseries.h \ |
|
42 | declarativebarseries.h \ | |
39 | declarativecategoryaxis.h \ |
|
43 | declarativecategoryaxis.h \ | |
40 | declarativemargins.h |
|
44 | declarativemargins.h | |
41 |
|
45 | |||
42 | TARGETPATH = QtCommercial/Chart |
|
46 | TARGETPATH = QtCommercial/Chart | |
43 | target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
47 | target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH | |
44 | qmldir.files += $$PWD/qmldir |
|
48 | qmldir.files += $$PWD/qmldir | |
45 | qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
49 | qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH | |
46 | INSTALLS += target qmldir |
|
50 | INSTALLS += target qmldir | |
47 |
|
51 | |||
48 | FILE = $$PWD/qmldir |
|
52 | FILE = $$PWD/qmldir | |
49 | win32:{FILE = $$replace(FILE, "/","\\")} |
|
53 | win32:{FILE = $$replace(FILE, "/","\\")} | |
50 | QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_QML_PLUGIN_DIR |
|
54 | QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_QML_PLUGIN_DIR |
@@ -1,5 +1,9 | |||||
1 | !include( ../auto.pri ) { |
|
1 | !include( ../auto.pri ) { | |
2 | error( "Couldn't find the auto.pri file!" ) |
|
2 | error( "Couldn't find the auto.pri file!" ) | |
3 | } |
|
3 | } | |
4 | SOURCES += tst_qml.cpp |
|
4 | SOURCES += tst_qml.cpp | |
|
5 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
6 | QT += quick1 | |||
|
7 | } else { | |||
5 | QT += declarative |
|
8 | QT += declarative | |
|
9 | } |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
@@ -1,13 +1,17 | |||||
|
1 | greaterThan(QT_MAJOR_VERSION, 4) { | |||
|
2 | QT += quick1 | |||
|
3 | } else { | |||
1 | QT += declarative |
|
4 | QT += declarative | |
|
5 | } | |||
2 |
|
6 | |||
3 | SOURCES += $$PWD/qmlapplicationviewer.cpp |
|
7 | SOURCES += $$PWD/qmlapplicationviewer.cpp | |
4 | HEADERS += $$PWD/qmlapplicationviewer.h |
|
8 | HEADERS += $$PWD/qmlapplicationviewer.h | |
5 | INCLUDEPATH += $$PWD |
|
9 | INCLUDEPATH += $$PWD | |
6 |
|
10 | |||
7 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set |
|
11 | # Include JS debugger library if QMLJSDEBUGGER_PATH is set | |
8 | !isEmpty(QMLJSDEBUGGER_PATH) { |
|
12 | !isEmpty(QMLJSDEBUGGER_PATH) { | |
9 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) |
|
13 | include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) | |
10 | } else { |
|
14 | } else { | |
11 | DEFINES -= QMLJSDEBUGGER |
|
15 | DEFINES -= QMLJSDEBUGGER | |
12 | } |
|
16 | } | |
13 |
|
17 |
General Comments 0
You need to be logged in to leave comments.
Login now