Ticket #2929: settings.pro

File settings.pro, 1.7 KB (added by wilhelm.eger@…, 13 years ago)

settings.pro for mythplugins

Line 
1CONFIG += $$CCONFIG
2
3LIBVERSION = 0.20
4
5INCLUDEPATH += $${PREFIX}/include
6#INCLUDEPATH += /usr/include/cdda
7#INCLUDEPATH += /usr/include/FLAC
8INCLUDEPATH += $KDEDIR/include
9
10LIBPATH += $KDEDIR/lib
11LIBS *= -L$${PREFIX}/lib
12
13DEFINES += _GNU_SOURCE
14DEFINES += PREFIX=\"$${PREFIX}\"
15
16INCLUDEPATH += $${PREFIX}/include
17INCLUDEPATH += $$CONFIG_INCLUDEPATH
18
19# Prevent building .app bundles everywhere.
20macx:CONFIG += console
21
22# figure out compile flags based on qmake info
23
24QMAKE_CXXFLAGS += $$ARCHFLAGS
25QMAKE_CXXFLAGS += $$CONFIG_AUDIO_ARTS_CFLAGS
26QMAKE_CXXFLAGS += $$CONFIG_DIRECTFB_CXXFLAGS
27QMAKE_CXXFLAGS_SHLIB = -DPIC -fPIC
28QMAKE_CXXFLAGS += $$ECXXFLAGS
29
30profile:CONFIG += release
31
32QMAKE_CXXFLAGS_RELEASE = $$OPTFLAGS -fomit-frame-pointer
33release:contains( TARGET_ARCH_POWERPC, yes ) {
34    QMAKE_CXXFLAGS_RELEASE = $$OPTFLAGS
35    # Auto-inlining causes some Qt moc methods to go missing
36    macx:QMAKE_CXXFLAGS_RELEASE += -fno-inline-functions
37}
38QMAKE_CXXFLAGS_RELEASE += $$PROFILEFLAGS
39
40QMAKE_CFLAGS += $$ARCHFLAGS
41QMAKE_CFLAGS_SHLIB = -DPIC -fPIC
42QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE}
43QMAKE_CFLAGS += $$ECFLAGS
44
45# figure out defines
46
47DEFINES += $$CONFIG_DEFINES
48DEFINES += _FILE_OFFSET_BITS=64
49
50# construct linking path
51
52LOCAL_LIBDIR_X11 =
53!isEmpty( QMAKE_LIBDIR_X11 ) {
54    LOCAL_LIBDIR_X11 = -L$$QMAKE_LIBDIR_X11
55}
56QMAKE_LIBDIR_X11 =
57
58EXTRA_LIBS = -lfreetype -lmp3lame
59EXTRA_LIBS += $$CONFIG_AUDIO_ALSA_LIBS
60EXTRA_LIBS += $$CONFIG_AUDIO_ARTS_LIBS
61EXTRA_LIBS += $$CONFIG_AUDIO_JACK_LIBS
62EXTRA_LIBS += $$CONFIG_FIREWIRE_LIBS
63EXTRA_LIBS += $$CONFIG_DIRECTFB_LIBS
64
65EXTRA_LIBS += $$LOCAL_LIBDIR_X11
66EXTRA_LIBS += $$CONFIG_XV_LIBS
67EXTRA_LIBS += $$CONFIG_XVMC_LIBS
68EXTRA_LIBS += $$CONFIG_OPENGL_VSYNC_LIBS
69
70LIRC_LIBS = $$CONFIG_LIRC_LIBS