diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 10:35:39 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 10:35:39 +0100 |
commit | 3e2a7a56c07b3a2c62740ac46026e776e84f3137 (patch) | |
tree | 55ef0af0928b0802d1b4c9ce2b2dfde860161fd0 /utils/rbutilqt | |
parent | 1ddc5a202d6986f5e981ce16c0fce6c49b767765 (diff) | |
download | rockbox-3e2a7a56c07b3a2c62740ac46026e776e84f3137.tar.gz rockbox-3e2a7a56c07b3a2c62740ac46026e776e84f3137.zip |
rbutil: Remove qmake project files.
To build it configure with cmake from utils/ folder.
Change-Id: I43fab2df1768e1a055e46ec5712e3a45fefef5a9
Diffstat (limited to 'utils/rbutilqt')
-rw-r--r-- | utils/rbutilqt/rbutilqt.pri | 229 | ||||
-rw-r--r-- | utils/rbutilqt/rbutilqt.pro | 248 | ||||
-rw-r--r-- | utils/rbutilqt/test/test-compareversion.pro | 37 | ||||
-rw-r--r-- | utils/rbutilqt/test/test-httpget.pro | 31 | ||||
-rw-r--r-- | utils/rbutilqt/test/test-playerbuildinfo.pro | 35 | ||||
-rw-r--r-- | utils/rbutilqt/test/test-rockboxinfo.pro | 30 |
6 files changed, 0 insertions, 610 deletions
diff --git a/utils/rbutilqt/rbutilqt.pri b/utils/rbutilqt/rbutilqt.pri deleted file mode 100644 index 13d74ef8a4..0000000000 --- a/utils/rbutilqt/rbutilqt.pri +++ /dev/null | |||
@@ -1,229 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # $Id$ | ||
9 | # | ||
10 | # All files in this archive are subject to the GNU General Public License. | ||
11 | # See the file COPYING in the source tree root for full license agreement. | ||
12 | # | ||
13 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
14 | # KIND, either express or implied. | ||
15 | # | ||
16 | |||
17 | |||
18 | # common files | ||
19 | SOURCES += \ | ||
20 | gui/infowidget.cpp \ | ||
21 | rbutilqt.cpp \ | ||
22 | main.cpp \ | ||
23 | base/httpget.cpp \ | ||
24 | configure.cpp \ | ||
25 | base/zipinstaller.cpp \ | ||
26 | progressloggergui.cpp \ | ||
27 | installtalkwindow.cpp \ | ||
28 | base/talkfile.cpp \ | ||
29 | base/talkgenerator.cpp \ | ||
30 | base/autodetection.cpp \ | ||
31 | themesinstallwindow.cpp \ | ||
32 | base/uninstall.cpp \ | ||
33 | uninstallwindow.cpp \ | ||
34 | base/utils.cpp \ | ||
35 | preview.cpp \ | ||
36 | base/encoderbase.cpp \ | ||
37 | base/encoderrbspeex.cpp \ | ||
38 | base/encoderlame.cpp \ | ||
39 | base/encoderexe.cpp \ | ||
40 | encttscfggui.cpp \ | ||
41 | base/encttssettings.cpp \ | ||
42 | base/ttsbase.cpp \ | ||
43 | base/ttsexes.cpp \ | ||
44 | base/ttssapi.cpp \ | ||
45 | base/ttsfestival.cpp \ | ||
46 | ../../tools/wavtrim.c \ | ||
47 | ../../tools/voicefont.c \ | ||
48 | base/voicefile.cpp \ | ||
49 | createvoicewindow.cpp \ | ||
50 | base/rbsettings.cpp \ | ||
51 | base/system.cpp \ | ||
52 | sysinfo.cpp \ | ||
53 | systrace.cpp \ | ||
54 | base/bootloaderinstallbase.cpp \ | ||
55 | base/bootloaderinstallbspatch.cpp \ | ||
56 | base/bootloaderinstallhelper.cpp \ | ||
57 | base/bootloaderinstallmi4.cpp \ | ||
58 | base/bootloaderinstallhex.cpp \ | ||
59 | base/bootloaderinstallipod.cpp \ | ||
60 | base/bootloaderinstallsansa.cpp \ | ||
61 | base/bootloaderinstallfile.cpp \ | ||
62 | base/bootloaderinstallchinachip.cpp \ | ||
63 | base/bootloaderinstallams.cpp \ | ||
64 | base/bootloaderinstalltcc.cpp \ | ||
65 | base/bootloaderinstallmpio.cpp \ | ||
66 | base/bootloaderinstallimx.cpp \ | ||
67 | base/bootloaderinstalls5l.cpp \ | ||
68 | base/rockboxinfo.cpp \ | ||
69 | ../../tools/mkboot.c \ | ||
70 | ../../tools/iriver.c \ | ||
71 | base/ziputil.cpp \ | ||
72 | gui/comboboxviewdelegate.cpp \ | ||
73 | gui/selectiveinstallwidget.cpp \ | ||
74 | gui/backupdialog.cpp \ | ||
75 | gui/changelog.cpp \ | ||
76 | mspack/cabd.c \ | ||
77 | mspack/lzxd.c \ | ||
78 | mspack/mszipd.c \ | ||
79 | mspack/qtmd.c \ | ||
80 | mspack/system-mspack.c \ | ||
81 | base/mspackutil.cpp \ | ||
82 | base/archiveutil.cpp \ | ||
83 | base/playerbuildinfo.cpp | ||
84 | |||
85 | |||
86 | HEADERS += \ | ||
87 | gui/infowidget.h \ | ||
88 | rbutilqt.h \ | ||
89 | base/httpget.h \ | ||
90 | configure.h \ | ||
91 | version.h \ | ||
92 | base/zipinstaller.h \ | ||
93 | installtalkwindow.h \ | ||
94 | base/talkfile.h \ | ||
95 | base/talkgenerator.h \ | ||
96 | base/autodetection.h \ | ||
97 | base/progressloggerinterface.h \ | ||
98 | progressloggergui.h \ | ||
99 | irivertools/h100sums.h \ | ||
100 | irivertools/h120sums.h \ | ||
101 | irivertools/h300sums.h \ | ||
102 | themesinstallwindow.h \ | ||
103 | base/uninstall.h \ | ||
104 | uninstallwindow.h \ | ||
105 | base/utils.h \ | ||
106 | preview.h \ | ||
107 | base/encoderbase.h \ | ||
108 | base/encoderrbspeex.h \ | ||
109 | base/encoderlame.h \ | ||
110 | base/encoderexe.h \ | ||
111 | encttscfggui.h \ | ||
112 | base/encttssettings.h \ | ||
113 | base/ttsbase.h \ | ||
114 | base/ttsexes.h \ | ||
115 | base/ttsespeak.h \ | ||
116 | base/ttsespeakng.h \ | ||
117 | base/ttsflite.h \ | ||
118 | base/ttsfestival.h \ | ||
119 | base/ttsmimic.h \ | ||
120 | base/ttsswift.h \ | ||
121 | base/ttssapi.h \ | ||
122 | base/ttssapi4.h \ | ||
123 | base/ttsmssp.h \ | ||
124 | ../../tools/wavtrim.h \ | ||
125 | ../../tools/voicefont.h \ | ||
126 | base/voicefile.h \ | ||
127 | createvoicewindow.h \ | ||
128 | base/rbsettings.h \ | ||
129 | sysinfo.h \ | ||
130 | base/system.h \ | ||
131 | systrace.h \ | ||
132 | base/bootloaderinstallbase.h \ | ||
133 | base/bootloaderinstallbspatch.h \ | ||
134 | base/bootloaderinstallhelper.h \ | ||
135 | base/bootloaderinstallmi4.h \ | ||
136 | base/bootloaderinstallhex.h \ | ||
137 | base/bootloaderinstallipod.h \ | ||
138 | base/bootloaderinstallsansa.h \ | ||
139 | base/bootloaderinstallfile.h \ | ||
140 | base/bootloaderinstallchinachip.h \ | ||
141 | base/bootloaderinstallams.h \ | ||
142 | base/bootloaderinstalltcc.h \ | ||
143 | base/bootloaderinstallmpio.h \ | ||
144 | base/bootloaderinstallimx.h \ | ||
145 | base/bootloaderinstalls5l.h \ | ||
146 | base/rockboxinfo.h \ | ||
147 | ../../tools/mkboot.h \ | ||
148 | ../../tools/iriver.h \ | ||
149 | base/ziputil.h \ | ||
150 | lame/lame.h \ | ||
151 | gui/comboboxviewdelegate.h \ | ||
152 | gui/selectiveinstallwidget.h \ | ||
153 | gui/backupdialog.h \ | ||
154 | gui/changelog.h \ | ||
155 | mspack/cab.h \ | ||
156 | mspack/chm.h \ | ||
157 | mspack/des.h \ | ||
158 | mspack/hlp.h \ | ||
159 | mspack/kwaj.h \ | ||
160 | mspack/lit.h \ | ||
161 | mspack/lzss.h \ | ||
162 | mspack/lzx.h \ | ||
163 | mspack/mspack.h \ | ||
164 | mspack/mszip.h \ | ||
165 | mspack/qtm.h \ | ||
166 | mspack/readbits.h \ | ||
167 | mspack/readhuff.h \ | ||
168 | mspack/sha.h \ | ||
169 | mspack/system-mspack.h \ | ||
170 | mspack/szdd.h \ | ||
171 | base/mspackutil.h \ | ||
172 | base/archiveutil.h \ | ||
173 | base/playerbuildinfo.h | ||
174 | |||
175 | |||
176 | FORMS += \ | ||
177 | gui/infowidgetfrm.ui \ | ||
178 | rbutilqtfrm.ui \ | ||
179 | aboutbox.ui \ | ||
180 | progressloggerfrm.ui \ | ||
181 | configurefrm.ui \ | ||
182 | installtalkfrm.ui \ | ||
183 | themesinstallfrm.ui \ | ||
184 | uninstallfrm.ui \ | ||
185 | previewfrm.ui \ | ||
186 | createvoicefrm.ui \ | ||
187 | sysinfofrm.ui \ | ||
188 | systracefrm.ui \ | ||
189 | gui/selectiveinstallwidgetfrm.ui \ | ||
190 | gui/backupdialogfrm.ui \ | ||
191 | gui/changelogfrm.ui | ||
192 | |||
193 | |||
194 | TRANSLATIONS += \ | ||
195 | lang/rbutil_cs.ts \ | ||
196 | lang/rbutil_de.ts \ | ||
197 | lang/rbutil_fi.ts \ | ||
198 | lang/rbutil_fr.ts \ | ||
199 | lang/rbutil_gr.ts \ | ||
200 | lang/rbutil_he.ts \ | ||
201 | lang/rbutil_it.ts \ | ||
202 | lang/rbutil_ja.ts \ | ||
203 | lang/rbutil_nl.ts \ | ||
204 | lang/rbutil_pl.ts \ | ||
205 | lang/rbutil_pt.ts \ | ||
206 | lang/rbutil_pt_BR.ts \ | ||
207 | lang/rbutil_ru.ts \ | ||
208 | lang/rbutil_tr.ts \ | ||
209 | lang/rbutil_zh_CN.ts \ | ||
210 | lang/rbutil_zh_TW.ts \ | ||
211 | |||
212 | RESOURCES += $$_PRO_FILE_PWD_/rbutilqt.qrc | ||
213 | !dbg { | ||
214 | RESOURCES += $$_PRO_FILE_PWD_/lang/rbutilqt-lang.qrc | ||
215 | } | ||
216 | # windows specific files | ||
217 | win32 { | ||
218 | RC_FILE = rbutilqt.rc | ||
219 | RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-win.qrc | ||
220 | } | ||
221 | |||
222 | # mac specific files | ||
223 | macx { | ||
224 | SOURCES += base/ttscarbon.cpp | ||
225 | HEADERS += base/ttscarbon.h | ||
226 | QMAKE_INFO_PLIST = Info.plist | ||
227 | RC_FILE = icons/rbutilqt.icns | ||
228 | } | ||
229 | |||
diff --git a/utils/rbutilqt/rbutilqt.pro b/utils/rbutilqt/rbutilqt.pro deleted file mode 100644 index f172e231bf..0000000000 --- a/utils/rbutilqt/rbutilqt.pro +++ /dev/null | |||
@@ -1,248 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # | ||
9 | # All files in this archive are subject to the GNU General Public License. | ||
10 | # See the file COPYING in the source tree root for full license agreement. | ||
11 | # | ||
12 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
13 | # KIND, either express or implied. | ||
14 | # | ||
15 | |||
16 | # The external Makefiles use ar to create libs. To allow cross-compiling pass | ||
17 | # the ar that matches the current gcc. Since qmake doesn't provide a variable | ||
18 | # holding the correct ar without any additions we need to figure it ourselves | ||
19 | # here. | ||
20 | # Only do this if CC is gcc. Also, do this before ccache support is enabled. | ||
21 | contains(QMAKE_CC,($$find(QMAKE_CC,.*gcc.*))) { | ||
22 | EXTRALIBS_OPTS = "EXTRALIBS_AR=\""$$replace(QMAKE_CC,gcc.*,ar)\" | ||
23 | } | ||
24 | # ccache | ||
25 | unix:!mac:!noccache { | ||
26 | CCACHE = $$system(which ccache) | ||
27 | !isEmpty(CCACHE) { | ||
28 | message("using ccache at $$CCACHE") | ||
29 | QMAKE_CXX = ccache $$QMAKE_CXX | ||
30 | QMAKE_CC = ccache $$QMAKE_CC | ||
31 | } | ||
32 | } | ||
33 | MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42]) | ||
34 | EXTRALIBS_OPTS += EXTRALIBS_CC=\"$$QMAKE_CC\" | ||
35 | EXTRALIBS_OPTS += EXTRALIBS_CXX=\"$$QMAKE_CXX\" | ||
36 | EXTRALIBS_OPTS += EXTRALIB_CFLAGS=\"$$MACHINEFLAGS\" | ||
37 | EXTRALIBS_OPTS += EXTRALIB_CXXFLAGS=\"$$MACHINEFLAGS\" | ||
38 | macx { | ||
39 | # on recent macOS we need to pass isysroot to the libs, otherwise it won't find | ||
40 | # the standard libaries. This is caused by the passed compiler (doesn't rely on | ||
41 | # default compiler but passed full path) | ||
42 | EXTRALIBS_OPTS += EXTRALIB_ISYSROOT=\"$$QMAKE_MAC_SDK.macosx.Path\" | ||
43 | } | ||
44 | |||
45 | MYBUILDDIR = $$OUT_PWD/build/ | ||
46 | MYLIBBUILDDIR = $$MYBUILDDIR/libs/ | ||
47 | OBJECTS_DIR = $$MYBUILDDIR/o | ||
48 | UI_DIR = $$MYBUILDDIR/ui | ||
49 | MOC_DIR = $$MYBUILDDIR/moc | ||
50 | RCC_DIR = $$MYBUILDDIR/rcc | ||
51 | |||
52 | !silent { | ||
53 | VERBOSE = "V=1" | ||
54 | } else { | ||
55 | VERBOSE = | ||
56 | } | ||
57 | |||
58 | # check version of Qt installation | ||
59 | contains(QT_MAJOR_VERSION, 4) { | ||
60 | error("Qt 4 is not supported anymore.") | ||
61 | } | ||
62 | |||
63 | RBBASE_DIR = $$_PRO_FILE_PWD_ | ||
64 | RBBASE_DIR = $$replace(RBBASE_DIR,/utils/rbutilqt,) | ||
65 | |||
66 | message("using Rockbox basedir $$RBBASE_DIR") | ||
67 | |||
68 | # check for system speex. Add a custom rule for pre-building librbspeex if not | ||
69 | # found. Newer versions of speex are split up into libspeex and libspeexdsp, | ||
70 | # and some distributions package them separately. Check for both and fall back | ||
71 | # to librbspeex if not found. | ||
72 | # NOTE: keep adding the linker option after -lrbspeex, otherwise linker errors | ||
73 | # occur if the linker defaults to --as-needed | ||
74 | # (see http://www.gentoo.org/proj/en/qa/asneeded.xml) | ||
75 | # | ||
76 | # Always use our own copy when building statically. Don't search for libspeex | ||
77 | # on Mac, since we don't deploy statically there. | ||
78 | !static:unix:!mac { | ||
79 | LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp) | ||
80 | } | ||
81 | |||
82 | extralibs.commands = $$SILENT \ | ||
83 | $(MAKE) -f $$RBBASE_DIR/utils/rbutilqt/Makefile.libs \ | ||
84 | $$VERBOSE \ | ||
85 | SYS_SPEEX=\"$$LIBSPEEX\" \ | ||
86 | BUILD_DIR=$$MYLIBBUILDDIR/ \ | ||
87 | TARGET_DIR=$$MYLIBBUILDDIR \ | ||
88 | RBBASE_DIR=$$RBBASE_DIR \ | ||
89 | $$EXTRALIBS_OPTS \ | ||
90 | libs | ||
91 | # Note: order is important for RBLIBS! The libs are appended to the linker | ||
92 | # flags in this order, put libucl at the end. | ||
93 | RBLIBS = rbspeex ipodpatcher sansapatcher mkamsboot mktccboot \ | ||
94 | mkmpioboot chinachippatcher mkimxboot mks5lboot bspatch ucl \ | ||
95 | rbtomcrypt | ||
96 | # NOTE: Our copy of libbzip2 has to use the name "bz2" to match up with the | ||
97 | # distro name. Otherwise cross compiling would end up linking two copies of | ||
98 | # bzip2 using different names, causing symbol clashes. Using the same name | ||
99 | # makes the compiler pick the one he likes. | ||
100 | RBLIBS += bz2 | ||
101 | !win32-msvc* { | ||
102 | QMAKE_EXTRA_TARGETS += extralibs | ||
103 | PRE_TARGETDEPS += extralibs | ||
104 | } | ||
105 | win32-msvc* { | ||
106 | INCLUDEPATH += msvc | ||
107 | LIBS += -L$$_PRO_FILE_PWD_/msvc | ||
108 | LIBS += -ladvapi32 # required for MSVC / Qt Creator combination | ||
109 | } | ||
110 | |||
111 | # rule for creating ctags file | ||
112 | tags.commands = ctags -R --c++-kinds=+p --fields=+iaS --extra=+q $(SOURCES) | ||
113 | tags.depends = $(SOURCES) | ||
114 | QMAKE_EXTRA_TARGETS += tags | ||
115 | |||
116 | # add a custom rule for making the translations | ||
117 | LRELEASE = $$[QT_INSTALL_BINS]/lrelease | ||
118 | |||
119 | win32:!cross:!exists($$LRELEASE) { | ||
120 | LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe | ||
121 | } | ||
122 | lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_ | ||
123 | QMAKE_EXTRA_TARGETS += lrelease | ||
124 | exists($$LRELEASE) { | ||
125 | message("using lrelease at $$LRELEASE") | ||
126 | PRE_TARGETDEPS += lrelease | ||
127 | } | ||
128 | !exists($$LRELEASE) { | ||
129 | warning("could not find lrelease. Skipping translations.") | ||
130 | } | ||
131 | |||
132 | # Needed by QT on Win | ||
133 | INCLUDEPATH += $$_PRO_FILE_PWD_ $$_PRO_FILE_PWD_/irivertools \ | ||
134 | $$_PRO_FILE_PWD_/zlib $$_PRO_FILE_PWD_/base \ | ||
135 | $$_PRO_FILE_PWD_/zlib $$_PRO_FILE_PWD_/gui | ||
136 | INCLUDEPATH += $$RBBASE_DIR/utils/ipodpatcher $$RBBASE_DIR/utils/sansapatcher \ | ||
137 | $$RBBASE_DIR/tools/rbspeex $$RBBASE_DIR/tools | ||
138 | INCLUDEPATH += logger | ||
139 | |||
140 | DEPENDPATH = $$INCLUDEPATH | ||
141 | |||
142 | LIBS += -L$$OUT_PWD -L$$MYLIBBUILDDIR | ||
143 | # append all RBLIBS to LIBS | ||
144 | for(rblib, RBLIBS) { | ||
145 | LIBS += -l$$rblib | ||
146 | } | ||
147 | |||
148 | LIBS += -lz | ||
149 | |||
150 | # Add a (possibly found) libspeex now, don't do this before -lrbspeex! | ||
151 | !static:!isEmpty(LIBSPEEX) { | ||
152 | LIBS += $$LIBSPEEX | ||
153 | } | ||
154 | |||
155 | TEMPLATE = app | ||
156 | TARGET = RockboxUtility | ||
157 | QT += network widgets svg | ||
158 | |||
159 | message("Qt$$QT_MAJOR_VERSION found") | ||
160 | lessThan(QT_MAJOR_VERSION, 6) { | ||
161 | QT += multimedia | ||
162 | } | ||
163 | if (greaterThan(QT_MAJOR_VERSION, 5)) { | ||
164 | QT += core5compat | ||
165 | } | ||
166 | |||
167 | CONFIG += c++11 | ||
168 | |||
169 | dbg { | ||
170 | CONFIG += debug thread qt warn_on | ||
171 | DEFINES += DBG | ||
172 | message("creating debug version") | ||
173 | } | ||
174 | !dbg { | ||
175 | CONFIG += release thread qt | ||
176 | DEFINES += NODEBUG | ||
177 | message("creating release version") | ||
178 | } | ||
179 | |||
180 | DEFINES += RBUTIL _LARGEFILE64_SOURCE | ||
181 | DEFINES += QT_DEPRECATED_WARNINGS | ||
182 | |||
183 | # platform specific | ||
184 | win32 { | ||
185 | # use MinGW's implementation of stdio functions for extended format string | ||
186 | # support. | ||
187 | DEFINES += __USE_MINGW_ANSI_STDIO=1 | ||
188 | DEFINES += _CRT_SECURE_NO_WARNINGS | ||
189 | DEFINES += UNICODE | ||
190 | LIBS += -lsetupapi -lnetapi32 | ||
191 | } | ||
192 | win32:static { | ||
193 | QMAKE_LFLAGS += -static-libgcc -static-libstdc++ | ||
194 | } | ||
195 | unix:!static:!macx { | ||
196 | LIBS += -lusb-1.0 | ||
197 | } | ||
198 | |||
199 | unix:!macx:static { | ||
200 | # force statically linking of libusb. Libraries that are appended | ||
201 | # later will get linked dynamically again. | ||
202 | LIBS += -Wl,-Bstatic -lusb-1.0 -Wl,-Bdynamic | ||
203 | } | ||
204 | |||
205 | macx { | ||
206 | QMAKE_MAC_SDK=macosx | ||
207 | contains(QT_MAJOR_VERSION, 5) { | ||
208 | greaterThan(QT_MINOR_VERSION, 5) { | ||
209 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 | ||
210 | message("Qt 5.6+ detected: setting deploy target to 10.7") | ||
211 | } | ||
212 | !greaterThan(QT_MINOR_VERSION, 5) { | ||
213 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 | ||
214 | message("Qt up to 5.5 detected: setting deploy target to 10.6") | ||
215 | } | ||
216 | } | ||
217 | |||
218 | CONFIG += x86 | ||
219 | LIBS += -L/usr/local/lib \ | ||
220 | -framework IOKit -framework CoreFoundation -framework Carbon \ | ||
221 | -framework SystemConfiguration -framework CoreServices | ||
222 | INCLUDEPATH += /usr/local/include | ||
223 | |||
224 | # rule for creating a dmg file | ||
225 | dmg.commands = hdiutil create -ov -srcfolder RockboxUtility.app/ RockboxUtility.dmg | ||
226 | QMAKE_EXTRA_TARGETS += dmg | ||
227 | } | ||
228 | |||
229 | static { | ||
230 | if(equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4)) { | ||
231 | QTPLUGIN += qtaccessiblewidgets | ||
232 | LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets | ||
233 | } | ||
234 | LIBS += -L. | ||
235 | DEFINES += STATIC | ||
236 | message("using static plugin") | ||
237 | } | ||
238 | |||
239 | unix { | ||
240 | target.path = /usr/local/bin | ||
241 | INSTALLS += target | ||
242 | } | ||
243 | |||
244 | |||
245 | # source files are separate. | ||
246 | include(rbutilqt.pri) | ||
247 | include(quazip/quazip.pri) | ||
248 | include(logger/logger.pri) | ||
diff --git a/utils/rbutilqt/test/test-compareversion.pro b/utils/rbutilqt/test/test-compareversion.pro deleted file mode 100644 index c8e5a899ac..0000000000 --- a/utils/rbutilqt/test/test-compareversion.pro +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # $Id$ | ||
9 | # | ||
10 | # All files in this archive are subject to the GNU General Public License. | ||
11 | # See the file COPYING in the source tree root for full license agreement. | ||
12 | # | ||
13 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
14 | # KIND, either express or implied. | ||
15 | # | ||
16 | |||
17 | # Test: Utils::compareVersionStrings(). | ||
18 | # | ||
19 | |||
20 | QT += testlib | ||
21 | |||
22 | TEMPLATE = app | ||
23 | TARGET = test-compareversion | ||
24 | INCLUDEPATH += . ../base stubs | ||
25 | |||
26 | # Input | ||
27 | SOURCES += \ | ||
28 | test-compareversion.cpp \ | ||
29 | stubs/stubs-compareversion.cpp \ | ||
30 | ../base/utils.cpp | ||
31 | |||
32 | HEADERS += \ | ||
33 | ../base/rbsettings.h \ | ||
34 | ../base/playerbuildinfo.h \ | ||
35 | ../base/rockboxinfo.h \ | ||
36 | ../base/utils.h | ||
37 | |||
diff --git a/utils/rbutilqt/test/test-httpget.pro b/utils/rbutilqt/test/test-httpget.pro deleted file mode 100644 index 3189ad2266..0000000000 --- a/utils/rbutilqt/test/test-httpget.pro +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # | ||
9 | # All files in this archive are subject to the GNU General Public License. | ||
10 | # See the file COPYING in the source tree root for full license agreement. | ||
11 | # | ||
12 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
13 | # KIND, either express or implied. | ||
14 | # | ||
15 | |||
16 | # | ||
17 | include(tests.pri) | ||
18 | |||
19 | TEMPLATE = app | ||
20 | TARGET = test-httpget | ||
21 | INCLUDEPATH += . ../base stubs | ||
22 | QT += network | ||
23 | |||
24 | # Input | ||
25 | SOURCES += \ | ||
26 | test-httpget.cpp | ||
27 | |||
28 | SOURCES += ../base/httpget.cpp | ||
29 | |||
30 | HEADERS += ../base/httpget.h | ||
31 | |||
diff --git a/utils/rbutilqt/test/test-playerbuildinfo.pro b/utils/rbutilqt/test/test-playerbuildinfo.pro deleted file mode 100644 index 724da59162..0000000000 --- a/utils/rbutilqt/test/test-playerbuildinfo.pro +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # | ||
9 | # All files in this archive are subject to the GNU General Public License. | ||
10 | # See the file COPYING in the source tree root for full license agreement. | ||
11 | # | ||
12 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
13 | # KIND, either express or implied. | ||
14 | # | ||
15 | |||
16 | # | ||
17 | |||
18 | QT += testlib | ||
19 | |||
20 | TEMPLATE = app | ||
21 | TARGET = test-playerbuildinfo | ||
22 | INCLUDEPATH += . ../base stubs | ||
23 | |||
24 | # Input | ||
25 | SOURCES += \ | ||
26 | test-playerbuildinfo.cpp \ | ||
27 | stubs/stubs-playerbuildinfo.cpp \ | ||
28 | ../base/playerbuildinfo.cpp | ||
29 | |||
30 | HEADERS += \ | ||
31 | ../base/rbsettings.h \ | ||
32 | ../base/rockboxinfo.h \ | ||
33 | ../base/systeminfo.h \ | ||
34 | |||
35 | RESOURCES += ../rbutilqt.qrc | ||
diff --git a/utils/rbutilqt/test/test-rockboxinfo.pro b/utils/rbutilqt/test/test-rockboxinfo.pro deleted file mode 100644 index 88bc83a5b7..0000000000 --- a/utils/rbutilqt/test/test-rockboxinfo.pro +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # | ||
9 | # All files in this archive are subject to the GNU General Public License. | ||
10 | # See the file COPYING in the source tree root for full license agreement. | ||
11 | # | ||
12 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
13 | # KIND, either express or implied. | ||
14 | # | ||
15 | |||
16 | # | ||
17 | QT += testlib | ||
18 | |||
19 | TEMPLATE = app | ||
20 | TARGET = test-rockboxinfo | ||
21 | INCLUDEPATH += . ../base stubs | ||
22 | |||
23 | # Input | ||
24 | SOURCES += \ | ||
25 | test-rockboxinfo.cpp \ | ||
26 | ../base/rockboxinfo.cpp | ||
27 | |||
28 | HEADERS += \ | ||
29 | ../base/rockboxinfo.h | ||
30 | |||