summaryrefslogtreecommitdiff
path: root/packages/qmake/files/common.pro
blob: 382d93f5d1910368a8d95c3b67502f2244778bd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#====================================================================================
# common.pro (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
#====================================================================================
#
# Purpose: This file contains qmake scope rules of common usage
#
# Example: When building a qmake based application using libsdl,
#          use CONFIG+=sdl to add the proper include and library
#          paths and definitions to the resulting Makefile
#
#
# General problem: One has to decide between evaluation at makefile generation time
#                  and evaluation at makefile processing time.
#                  The following example illustrates the difference:
#
# Evaluation at makefile processing time:
#
# sdl {
#     QMAKE_CFLAGS    += `sdl-config --cflags`
#     LIBS            += `sdl-config --libs`
# }
#
# Evalutation at makefile generation time:
#
# sdl {
#     QMAKE_CFLAGS    += $$system( sdl-config --cflags )
#     LIBS            += `sdl-config --libs`
# }
#
# For now I use version 2 which is a bit faster
# See the fine qmake manual for more details
#
#

#=============================================================================
# pthread scope for multithreaded applications
#

pthread {
    LIBS += -lpthread
}

#=============================================================================
# sdl scopes for applications using the Simple Direct Media Layer (SDL)
#

sdl {
    QMAKE_CXXFLAGS  += $$system( sdl-config --cflags )
    DEFINES         += USE_SDL QTOPIA
    LIBS            += $$system( sdl-config --libs )
}

sdl-mixer {
    LIBS            += -lSDL_mixer
}

sdl-image {
    LIBS            += -lSDL_image
}

sdl-font {
    LIBS            += -lSDL_ttf
}

#=============================================================================
#
#

opie {
    DEFINES         += QWS
}

opiecore {
    LIBS            += -lopiecore2
}

opieui {
    CONFIG          += opiecore
    LIBS            += -lopieui2
}

opienet {
    CONFIG          += opiecore
    LIBS            += -lopienet2
}

opiepim {
    CONFIG          += opiecore
    LIBS            += -lopiepim2
}

opiedb {
    CONFIG          += opiecore
    LIBS            += -lopiedb2
}

opiemm {
    CONFIG          += opiecore
    LIBS            += -lopiemm2
}

#=============================================================================
#
#

#=============================================================================
#
#