small correction for the static windows built
[quassel.git] / build / targets / target.pri
1 TEMPLATE = app
2
3 include(../buildconf.pri)
4
5 RESOURCES   *= ../../i18n/i18n.qrc
6 TRANSLATIONS = quassel_da.ts \
7                quassel_de.ts
8
9 SRCPATH = ../../src
10 OBJECTS_DIR = .$$TARGET
11 RCC_DIR     = .$$TARGET
12
13 linux-g++:static {
14   # We put libs in contrib/libs that should be linked statically, especially libstdc++.a
15   LIBS *= -L../contrib/libs
16   QMAKE_LFLAGS *= -static-libgcc
17 }
18
19 for(mod, MODULES) {
20   INCLUDEPATH *= $$SRCPATH/$$mod
21   LIBS *= -L../modules/$$dirname(mod) -l$$basename(mod)
22   #PRE_TARGETDEPS *= ../modules/$$mod
23 }
24 PRE_TARGETDEPS *= ../../version.inc
25
26 #CONTRIB += libqxt  # not needed
27 #include(../contrib/contrib.pri)
28
29 SOURCES = $$SRCPATH/common/main.cpp
30
31 # This is really annoying, but for some reason win32 libs are not included by default.
32 # Ugly workaround following...
33
34 win32:static {
35   RC_FILE = win32.rc
36   CONFIG += embed_manifest_exe
37   LIBS *= -luser32 -lgdi32 -lkernel32 -lshell32 -lwsock32 -lwinspool -lcomdlg32 -lole32
38   LIBS *= -ladvapi32 -limm32 -luuid -lwinmm -ldelayimp -lopengl32 -lglu32 -loleaut32 -lws2_32
39   LIBS *= -llibeay32MD -lssleay32MD
40   QMAKE_LFLAGS_WINDOWS += /nodefaultlib:"libcmt.lib"
41
42 }
43
44 macx {
45   ICON = ../../src/icons/quassel.icns
46 }