1 #====================================================================================
2 # common.pro (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
3 #====================================================================================
5 # Purpose: This file contains qmake scope rules of common usage
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
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:
16 # Evaluation at makefile processing time:
19 # QMAKE_CFLAGS += `sdl-config --cflags`
20 # LIBS += `sdl-config --libs`
23 # Evalutation at makefile generation time:
26 # QMAKE_CFLAGS += $$system( sdl-config --cflags )
27 # LIBS += `sdl-config --libs`
30 # For now I use version 2 which is a bit faster
31 # See the fine qmake manual for more details
35 #=============================================================================
36 # pthread scope for multithreaded applications
43 #=============================================================================
44 # sdl scopes for applications using the Simple Direct Media Layer (SDL)
48 QMAKE_CXXFLAGS += $$system( sdl-config --cflags )
49 DEFINES += USE_SDL QTOPIA
50 LIBS += $$system( sdl-config --libs )
65 #=============================================================================
102 #=============================================================================
106 #=============================================================================