Ticket #1880: settings.pro

File settings.pro, 2.4 KB (added by martin@…, 14 years ago)

My edited settings.pro - Could I have made a mistake here..?

Line 
1CONFIG += $$CCONFIG
2
3isEmpty( PREFIX ) {
4    PREFIX = /usr/local
5}
6
7LIBVERSION = 0.19
8VERSION = 0.19.0
9
10# Die on the (common) case where OS X users inadvertently use Fink's
11# Qt/X11 install instead of Qt/Mac. '
12contains(CONFIG_DARWIN, yes) {
13    !macx {
14        message(You are building with Qt/X11 on the Mac platform.)
15        message(Myth must be built with Qt/Mac instead.)
16        message((Fink users cannot use Fink's Qt, it's the wrong one.))
17        error(Unsupported configuration)
18    }
19}
20
21INCLUDEPATH += $${PREFIX}/include
22INCLUDEPATH += $$CONFIG_INCLUDEPATH
23
24# figure out compile flags based on qmake info
25
26QMAKE_CXXFLAGS += $$ARCHFLAGS
27QMAKE_CXXFLAGS += $$CONFIG_AUDIO_ARTS_CFLAGS
28QMAKE_CXXFLAGS += $$CONFIG_DIRECTFB_CXXFLAGS
29QMAKE_CXXFLAGS_SHLIB = -DPIC -fPIC
30QMAKE_CXXFLAGS += $$ECXXFLAGS
31
32# Allow compilation with Qt Embedded, if Qt is compiled without "-fno-rtti"
33QMAKE_CXXFLAGS -= -fno-exceptions -fno-rtti
34
35QMAKE_CXXFLAGS_RELEASE = $$OPTFLAGS -fomit-frame-pointer
36release:contains( TARGET_ARCH_POWERPC, yes ) {
37    QMAKE_CXXFLAGS_RELEASE = $$OPTFLAGS
38    # Auto-inlining causes some Qt moc methods to go missing
39    macx:QMAKE_CXXFLAGS_RELEASE += -fno-inline-functions
40}
41
42QMAKE_CFLAGS += $$ARCHFLAGS
43QMAKE_CFLAGS_SHLIB = -DPIC -fPIC
44QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE}
45QMAKE_CFLAGS += $$ECFLAGS
46
47profile {
48    QMAKE_CXXFLAGS_DEBUG = $${QMAKE_CXXFLAGS_RELEASE} $$PROFILEFLAGS
49    QMAKE_CFLAGS_DEBUG = $${QMAKE_CXXFLAGS_RELEASE} $$PROFILEFLAGS
50    CONFIG += debug   
51}
52
53# figure out defines
54
55DEFINES += $$CONFIG_DEFINES
56DEFINES += _GNU_SOURCE
57DEFINES += _FILE_OFFSET_BITS=64
58DEFINES += PREFIX=\"$${PREFIX}\"
59DEFINES += LIBDIR=\"$${LIBDIR}\"
60
61# construct linking path
62
63LOCAL_LIBDIR_X11 =
64!isEmpty( QMAKE_LIBDIR_X11 ) {
65    LOCAL_LIBDIR_X11 = -L$$QMAKE_LIBDIR_X11
66}
67QMAKE_LIBDIR_X11 =
68
69LOCAL_LIBDIR_OGL =
70!isEmpty( QMAKE_LIBDIR_OPENGL ) {
71    LOCAL_LIBDIR_OGL = -L$$QMAKE_LIBDIR_OPENGL
72}
73QMAKE_LIBDIR_OPENGL =
74
75EXTRA_LIBS = -lfreetype -lmp3lame
76EXTRA_LIBS += $$CONFIG_AUDIO_OSS_LIBS
77EXTRA_LIBS += $$CONFIG_AUDIO_ALSA_LIBS
78EXTRA_LIBS += $$CONFIG_AUDIO_ARTS_LIBS
79EXTRA_LIBS += $$CONFIG_AUDIO_JACK_LIBS
80EXTRA_LIBS += $$CONFIG_FIREWIRE_LIBS
81EXTRA_LIBS += $$CONFIG_DIRECTFB_LIBS
82
83EXTRA_LIBS += $$LOCAL_LIBDIR_OGL
84EXTRA_LIBS += $$LOCAL_LIBDIR_X11
85EXTRA_LIBS += $$CONFIG_XV_LIBS
86EXTRA_LIBS += $$CONFIG_XRANDR_LIBS
87EXTRA_LIBS += $$CONFIG_XVMC_LIBS
88EXTRA_LIBS += $$CONFIG_OPENGL_LIBS
89
90LIRC_LIBS = $$CONFIG_LIRC_LIBS