]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qmake/files/common.pro
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qmake / files / common.pro
1 #====================================================================================
2 # common.pro (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
3 #====================================================================================
4 #
5 # Purpose: This file contains qmake scope rules of common usage
6 #
7 # Example: When building a qmake based application using libsdl,
8 #          use CONFIG+=sdl to add the proper include and library
9 #          paths and definitions to the resulting Makefile
10 #
11 #
12 # General problem: One has to decide between evaluation at makefile generation time
13 #                  and evaluation at makefile processing time.
14 #                  The following example illustrates the difference:
15 #
16 # Evaluation at makefile processing time:
17 #
18 # sdl {
19 #     QMAKE_CFLAGS    += `sdl-config --cflags`
20 #     LIBS            += `sdl-config --libs`
21 # }
22 #
23 # Evalutation at makefile generation time:
24 #
25 # sdl {
26 #     QMAKE_CFLAGS    += $$system( sdl-config --cflags )
27 #     LIBS            += `sdl-config --libs`
28 # }
29 #
30 # For now I use version 2 which is a bit faster
31 # See the fine qmake manual for more details
32 #
33 #
34
35 #=============================================================================
36 # pthread scope for multithreaded applications
37 #
38
39 pthread {
40     LIBS += -lpthread
41 }
42
43 #=============================================================================
44 # sdl scopes for applications using the Simple Direct Media Layer (SDL)
45 #
46
47 sdl {
48     QMAKE_CXXFLAGS  += $$system( sdl-config --cflags )
49     DEFINES         += USE_SDL QTOPIA
50     LIBS            += $$system( sdl-config --libs )
51 }
52
53 sdl-mixer {
54     LIBS            += -lSDL_mixer
55 }
56
57 sdl-image {
58     LIBS            += -lSDL_image
59 }
60
61 sdl-font {
62     LIBS            += -lSDL_ttf
63 }
64
65 #=============================================================================
66 #
67 #
68
69 opie {
70     DEFINES         += QWS
71 }
72
73 opiecore {
74     LIBS            += -lopiecore2
75 }
76
77 opieui {
78     CONFIG          += opiecore
79     LIBS            += -lopieui2
80 }
81
82 opienet {
83     CONFIG          += opiecore
84     LIBS            += -lopienet2
85 }
86
87 opiepim {
88     CONFIG          += opiecore
89     LIBS            += -lopiepim2
90 }
91
92 opiedb {
93     CONFIG          += opiecore
94     LIBS            += -lopiedb2
95 }
96
97 opiemm {
98     CONFIG          += opiecore
99     LIBS            += -lopiemm2
100 }
101
102 #=============================================================================
103 #
104 #
105
106 #=============================================================================
107 #
108 #