Move C linkage binding for c++ to exporting header files instead of includes.
[Rockbox.git] / rbutil / rbutilqt / rbutilqt.pro
blob665c47d90a46fb8e139a1db0a2e1a08c8e0c31ec
1 unix:!mac {
2 CCACHE = $$system(which ccache)
3 !isEmpty(CCACHE) {
4 message("using ccache")
5 QMAKE_CXX = ccache g++
6 QMAKE_CC = ccache gcc
10 OBJECTS_DIR = build/o
11 UI_DIR = build/ui
12 MOC_DIR = build/moc
13 RCC_DIR = build/rcc
15 # add a custom rule for pre-building librbspeex
16 rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex.a
17 QMAKE_EXTRA_TARGETS += rbspeex
18 PRE_TARGETDEPS += rbspeex
20 # add a custom rule for making the translations
21 lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro
22 QMAKE_EXTRA_TARGETS += lrelease
23 PRE_TARGETDEPS += lrelease
26 SOURCES += rbutilqt.cpp \
27 main.cpp \
28 install.cpp \
29 httpget.cpp \
30 configure.cpp \
31 zip/zip.cpp \
32 zip/unzip.cpp \
33 installzip.cpp \
34 installbootloader.cpp \
35 progressloggergui.cpp \
36 installtalkwindow.cpp \
37 talkfile.cpp \
38 autodetection.cpp \
39 ../ipodpatcher/ipodpatcher.c \
40 ../sansapatcher/sansapatcher.c \
41 irivertools/irivertools.cpp \
42 irivertools/md5sum.cpp \
43 browsedirtree.cpp \
44 installthemes.cpp \
45 uninstall.cpp \
46 uninstallwindow.cpp \
47 utils.cpp \
48 browseof.cpp \
49 preview.cpp \
50 encoders.cpp \
51 encodersgui.cpp \
52 tts.cpp \
53 ttsgui.cpp \
54 ../../tools/wavtrim.c \
55 ../../tools/voicefont.c \
56 voicefile.cpp \
57 createvoicewindow.cpp \
58 rbsettings.cpp \
59 rbunzip.cpp \
60 rbzip.cpp
62 HEADERS += rbutilqt.h \
63 install.h \
64 httpget.h \
65 configure.h \
66 zip/zip.h \
67 zip/unzip.h \
68 zip/zipentry_p.h \
69 zip/unzip_p.h \
70 zip/zip_p.h \
71 version.h \
72 installzip.h \
73 installbootloader.h \
74 installtalkwindow.h \
75 talkfile.h \
76 autodetection.h \
77 progressloggerinterface.h \
78 progressloggergui.h \
79 ../ipodpatcher/ipodpatcher.h \
80 ../ipodpatcher/ipodio.h \
81 ../ipodpatcher/parttypes.h \
82 ../sansapatcher/sansapatcher.h \
83 ../sansapatcher/sansaio.h \
84 irivertools/irivertools.h \
85 irivertools/md5sum.h \
86 irivertools/h100sums.h \
87 irivertools/h120sums.h \
88 irivertools/h300sums.h \
89 irivertools/checksums.h \
90 browsedirtree.h \
91 installthemes.h \
92 uninstall.h \
93 uninstallwindow.h \
94 utils.h \
95 browseof.h \
96 preview.h \
97 encoders.h \
98 encodersgui.h \
99 tts.h \
100 ttsgui.h \
101 ../../tools/wavtrim.h \
102 ../../tools/voicefont.h \
103 voicefile.h \
104 createvoicewindow.h \
105 rbsettings.h \
106 rbunzip.h \
107 rbzip.h
109 # Needed by QT on Win
110 INCLUDEPATH = . irivertools zip zlib ../ipodpatcher ../sansapatcher ../../tools/rbspeex ../../tools
112 LIBS += -L../../tools/rbspeex -lrbspeex
114 TEMPLATE = app
115 dbg {
116 CONFIG += debug thread qt warn_on
117 DEFINES -= QT_NO_DEBUG_OUTPUT
118 message("debug")
120 !dbg {
121 CONFIG += release thread qt
122 DEFINES += QT_NO_DEBUG_OUTPUT
123 message("release")
126 TARGET = rbutilqt
128 FORMS += rbutilqtfrm.ui \
129 aboutbox.ui \
130 installfrm.ui \
131 progressloggerfrm.ui \
132 configurefrm.ui \
133 browsedirtreefrm.ui \
134 installtalkfrm.ui \
135 installthemesfrm.ui \
136 uninstallfrm.ui \
137 browseoffrm.ui \
138 previewfrm.ui \
139 rbspeexcfgfrm.ui \
140 encexescfgfrm.ui \
141 ttsexescfgfrm.ui \
142 sapicfgfrm.ui \
143 createvoicefrm.ui
145 RESOURCES += rbutilqt.qrc
146 win32 {
147 RESOURCES += rbutilqt-win.qrc
150 TRANSLATIONS += rbutil_de.ts \
151 rbutil_fr.ts \
152 rbutil_tr.ts \
153 rbutil_zh_CN.ts \
154 rbutil_zh_TW.ts
155 QT += network
156 DEFINES += RBUTIL _LARGEFILE64_SOURCE
158 win32 {
159 SOURCES += ../ipodpatcher/ipodio-win32.c
160 SOURCES += ../sansapatcher/sansaio-win32.c
161 RC_FILE = rbutilqt.rc
162 LIBS += -lsetupapi
165 unix {
166 SOURCES += ../ipodpatcher/ipodio-posix.c
167 SOURCES += ../sansapatcher/sansaio-posix.c
169 unix:!static {
170 LIBS += -lusb
172 unix:static {
173 # force statically linking of libusb. Libraries that are appended
174 # later will get linked dynamically again.
175 LIBS += -Wl,-Bstatic -lusb -Wl,-Bdynamic
178 macx {
179 QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
180 QMAKE_LFLAGS_PPC=-mmacosx-version-min=10.4
181 QMAKE_LFLAGS_X86=-mmacosx-version-min=10.4
182 CONFIG+=x86 ppc
183 LIBS += -L/usr/local/lib -framework IOKit
184 INCLUDEPATH += /usr/local/include
185 QMAKE_INFO_PLIST = Info.plist
186 RC_FILE = icons/rbutilqt.icns
189 static {
190 QTPLUGIN += qtaccessiblewidgets
191 LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets
192 DEFINES += STATIC
193 message("using static plugin")