Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 161 lines (130 sloc) 4.374 kB
e545678 @jannau include config.mak from settings.pro since it depends on it
jannau authored
1 include ( config.mak )
2
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
3 CONFIG += $$CCONFIG
4e798a5 Reorganize the directory structure and the build process.
Isaac Richards authored
4
a19cf32 @jannau FFmpeg sync to revision 24880
jannau authored
5 defineReplace(avLibName) {
6 NAME = $$1
7
8 major = \$\${lib$${NAME}_VERSION_MAJOR}
9 eval(LIBVERSION = $$major)
10
11 temp = $$SLIBNAME_WITH_MAJOR_QT
12 temp = $$replace(temp, FULLNAME, $$NAME)
13 temp = $$replace(temp, NAME, $$NAME)
14 temp = $$replace(temp, LIBMAJOR, $$LIBVERSION)
15
16 return($$temp)
17 }
18
6aad076 @jannau simple Qt major version check during build time
jannau authored
19 #check QT major version
20 contains(QT_MAJOR_VERSION, 3) {
139f15b @stuartm Make the QT4 build requirement warning clear, it was ambiguous and th…
stuartm authored
21 error("Must build against Qt4")
6aad076 @jannau simple Qt major version check during build time
jannau authored
22 }
23
636bfd5 @NigelPearson Allow different "lib" directory names at runtime (plugins/filters). C…
NigelPearson authored
24 # Where binaries, includes and runtime assets are installed by 'make install'
5cf7834 Allow easier setting of the prefix, patch from Jeremiah Morris.
Isaac Richards authored
25 isEmpty( PREFIX ) {
26 PREFIX = /usr/local
27 }
636bfd5 @NigelPearson Allow different "lib" directory names at runtime (plugins/filters). C…
NigelPearson authored
28 # Where the binaries actually locate the assets/filters/plugins at runtime
29db4ff @NigelPearson Allow relative PREFIX by implementing new --runtime-prefix configure …
NigelPearson authored
29 isEmpty( RUNPREFIX ) {
30 RUNPREFIX = $$PREFIX
31 }
636bfd5 @NigelPearson Allow different "lib" directory names at runtime (plugins/filters). C…
NigelPearson authored
32 # Alternate library dir for OSes and packagers (e.g. lib64)
33 isEmpty( LIBDIRNAME ) {
34 LIBDIRNAME = lib
35 }
36 # Where libraries, plugins and filters are installed
29db4ff @NigelPearson Allow relative PREFIX by implementing new --runtime-prefix configure …
NigelPearson authored
37 isEmpty( LIBDIR ) {
636bfd5 @NigelPearson Allow different "lib" directory names at runtime (plugins/filters). C…
NigelPearson authored
38 LIBDIR = $${RUNPREFIX}/$${LIBDIRNAME}
29db4ff @NigelPearson Allow relative PREFIX by implementing new --runtime-prefix configure …
NigelPearson authored
39 }
89f4566 Modifyable install prefix, courtesy of Jim Radford.
Isaac Richards authored
40
ab4a02f @stuartm Bump core libraries version to 0.25
stuartm authored
41 LIBVERSION = 0.25
42 VERSION = 0.25.0
aa6489d Changing the library name to 'libmyth-0.7.so' instead of 'libmyth.so'
Isaac Richards authored
43
c92c4c0 @daniel-kristjansson Refs #4270. Applies patch for MinGW compiling.
daniel-kristjansson authored
44 isEmpty(TARGET_OS) : win32 {
45 CONFIG += mingw
acadd66 Define WIN32_LEAN_AND_MEAN and NOMINMAX for MingW
Lawrence Rust authored
46 DEFINES += WIN32 USING_MINGW WIN32_LEAN_AND_MEAN NOMINMAX
c92c4c0 @daniel-kristjansson Refs #4270. Applies patch for MinGW compiling.
daniel-kristjansson authored
47 DEFINES -= UNICODE
48 QMAKE_EXTENSION_SHLIB = dll
49 VERSION =
50 CONFIG_OPENGL_LIBS =
81a8b34 @NigelPearson Work around Qt 4 creating debug and release subdirs on Win32.
NigelPearson authored
51 # Qt4 creates separate compile directories by default. This disables:
52 CONFIG -= debug_and_release debug_and_release_target
d4db3c5 @NigelPearson Another Qt4 MinGW hack. Both of these should probably be in configure?
NigelPearson authored
53 # win32-packager.pl builds Qt under DOS, but MythTV is built in MinGW.
54 # This corrects the moc tool path from a DOS-style to a unix style:
55 QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
c92c4c0 @daniel-kristjansson Refs #4270. Applies patch for MinGW compiling.
daniel-kristjansson authored
56 }
57
139f15b @stuartm Make the QT4 build requirement warning clear, it was ambiguous and th…
stuartm authored
58 # if CYGWIN compile, set up flag in CONFIG
59 contains(TARGET_OS, CYGWIN) {
60 CONFIG += cygwin
74e0f44 @NigelPearson Simplify relink dependencies (to local Myth libraries) in qmake sourc…
NigelPearson authored
61 QMAKE_EXTENSION_SHLIB=dll.a
44fe2e0 @daniel-kristjansson Refs #1590. Applies slightly modified version of Jerry Rubinow's Win3…
daniel-kristjansson authored
62 DEFINES += CONFIG_CYGWIN
63 }
64
74e0f44 @NigelPearson Simplify relink dependencies (to local Myth libraries) in qmake sourc…
NigelPearson authored
65 isEmpty(QMAKE_EXTENSION_SHLIB) {
66 QMAKE_EXTENSION_SHLIB=so
67 }
68 isEmpty(QMAKE_EXTENSION_LIB) {
69 QMAKE_EXTENSION_LIB=a
70 }
eef9fe8 @stuartm Replaced some missed instances of TARGETDEPS.
stuartm authored
71 # For dependencies on Myth library filenames in POST_TARGETDEPS
74e0f44 @NigelPearson Simplify relink dependencies (to local Myth libraries) in qmake sourc…
NigelPearson authored
72 MYTH_SHLIB_EXT=$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}
73 MYTH_LIB_EXT =$${LIBVERSION}.$${QMAKE_EXTENSION_LIB}
74
ca517b6 Fail cleanly on a common OS X compilation problem (thanks, Paul Greid…
Jeremian Morris authored
75 # Die on the (common) case where OS X users inadvertently use Fink's
721833e Just a silly cosmetic thing - add an extra ' so that the entire file …
Isaac Richards authored
76 # Qt/X11 install instead of Qt/Mac. '
ca517b6 Fail cleanly on a common OS X compilation problem (thanks, Paul Greid…
Jeremian Morris authored
77 contains(CONFIG_DARWIN, yes) {
78 !macx {
79 message(You are building with Qt/X11 on the Mac platform.)
80 message(Myth must be built with Qt/Mac instead.)
81 message((Fink users cannot use Fink's Qt, it's the wrong one.))
82 error(Unsupported configuration)
83 }
84 }
85
ff9851b @jannau fix $$unique usage in settings.pro, Closes #6743
jannau authored
86 INCLUDEPATH += $$unique(CONFIG_INCLUDEPATH)
4e798a5 Reorganize the directory structure and the build process.
Isaac Richards authored
87
1c18846 @jannau simplify C*FLAGS setting in settings.pro
jannau authored
88 # remove warn_{on|off} from CONFIG since we set it in our CFLAGS
89 CONFIG -= warn_on warn_off
90
91 # set empty RELEASE and DEBUG flags
92 QMAKE_CFLAGS_DEBUG =
93 QMAKE_CFLAGS_RELEASE =
94 QMAKE_CXXFLAGS_DEBUG =
95 QMAKE_CXXFLAGS_RELEASE =
96
52467ad @jannau build: remove -fPIC from a couple of QMAKE_*_FLAGS
jannau authored
97 # remove -fPIC since we handle it in configure
98 QMAKE_CFLAGS_SHLIB -= -fPIC
99 QMAKE_CFLAGS_STATIC_LIB -= -fPIC
100 QMAKE_LFLAGS_SHLIB -= -fPIC
101
62d7b2c @jannau build: remove _ISOC99_SOuRCE and _POSIX_C_SOURCE defines from C++ build
jannau authored
102 # remove -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 from C++ preprocessor flgas
103 CXX_PP_FLAGS = $$CPPFLAGS
104 CXX_PP_FLAGS -= -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
105
9f5a9a2 @jannau build: add -fno-common to all static library builds on Mac OS X
jannau authored
106 # Globals in static libraries need special treatment on OS X
107 macx: QMAKE_CFLAGS_STATIC_LIB += -fno-common
108
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
109 # figure out compile flags based on qmake info
66d163c @jannau get rid of PROFILEFLAGS
jannau authored
110 QMAKE_CFLAGS += $$CPPFLAGS $$CFLAGS
111 QMAKE_CXXFLAGS += $$CXXPPFLAGS $$ECXXFLAGS
1c18846 @jannau simplify C*FLAGS setting in settings.pro
jannau authored
112
113 profile:CONFIG += debug
bfeb63b Set QMAKE_LIBDIR_X11 to be empty. Should fix bad link errors on brok…
Isaac Richards authored
114
89672e0 @daniel-kristjansson closes #42
daniel-kristjansson authored
115 # Allow compilation with Qt Embedded, if Qt is compiled without "-fno-rtti"
116 QMAKE_CXXFLAGS -= -fno-exceptions -fno-rtti
117
4851de0 @jannau ffmpeg sync to revision 10931
jannau authored
118 release:contains( ARCH_POWERPC, yes ) {
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
119 # Auto-inlining causes some Qt moc methods to go missing
120 macx:QMAKE_CXXFLAGS_RELEASE += -fno-inline-functions
560bcf7 patch.macosx.35 from Nigel Pearson which corrects endian issues
J. Donovan Stanley authored
121 }
d060975 A large chunk of Ian Caulfield's cygwin support patch.
Isaac Richards authored
122
7ccf6d8 @daniel-kristjansson Fix C compile flags for profile target and also don't strip binaries
daniel-kristjansson authored
123
139f15b @stuartm Make the QT4 build requirement warning clear, it was ambiguous and th…
stuartm authored
124 # figure out defines
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
125 DEFINES += $$CONFIG_DEFINES
126 DEFINES += _GNU_SOURCE
127
128 # construct linking path
129 LOCAL_LIBDIR_X11 =
130 !isEmpty( QMAKE_LIBDIR_X11 ) {
131 LOCAL_LIBDIR_X11 = -L$$QMAKE_LIBDIR_X11
e1eebf5 Patches from Bug 172 for freebsd support.
Isaac Richards authored
132 }
139f15b @stuartm Make the QT4 build requirement warning clear, it was ambiguous and th…
stuartm authored
133 QMAKE_LIBDIR_X11 =
e1eebf5 Patches from Bug 172 for freebsd support.
Isaac Richards authored
134
119fdae Should fix #265 in a cleaner manner.
Isaac Richards authored
135 LOCAL_LIBDIR_OGL =
136 !isEmpty( QMAKE_LIBDIR_OPENGL ) {
137 LOCAL_LIBDIR_OGL = -L$$QMAKE_LIBDIR_OPENGL
138 }
139 QMAKE_LIBDIR_OPENGL =
140
f6a8650 @jyavenard Partially revert 5dccbd5f6b3019a67ecc69213ee405bba4b30994
jyavenard authored
141 !isEmpty( QMAKE_LIBDIR_QT ) {
142 !macx {
143 LATE_LIBS += "-L$$QMAKE_LIBDIR_QT"
144 QMAKE_LIBDIR_QT = ""
145 }
146 macx:!qt_framework {
5dccbd5 @jyavenard Fix mac compilation when Qt Frameworks are in use.
jyavenard authored
147 LATE_LIBS += "-L$$QMAKE_LIBDIR_QT"
148 QMAKE_LIBDIR_QT = ""
149 }
b2a3bb3 @jannau build: fix for empty QT_LIBDIR_QT after [24835]
jannau authored
150 }
89379c9 @jannau build: simplify lib handling
jannau authored
151 EXTRA_LIBS = $$EXTRALIBS
7860579 Get rid of the circular dependencies between libraries.
Isaac Richards authored
152
4d131ae @jannau configure: add -ldl to EXTRA_LIBS for libmythdvdnav
jannau authored
153 EXTRA_LIBS += $$FREETYPE_LIBS
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
154 EXTRA_LIBS += $$CONFIG_FIREWIRE_LIBS
155
119fdae Should fix #265 in a cleaner manner.
Isaac Richards authored
156 EXTRA_LIBS += $$LOCAL_LIBDIR_OGL
591ddb7 @daniel-kristjansson This is the new configure script I've been working on for a while. The
daniel-kristjansson authored
157 EXTRA_LIBS += $$LOCAL_LIBDIR_X11
05606cd @daniel-kristjansson Fixes #906. Fixes #1461. Refs #137. Merges revisions 9854:9914 in myt…
daniel-kristjansson authored
158 EXTRA_LIBS += $$CONFIG_OPENGL_LIBS
74f3091 @jyavenard Fix compilation on OS X
jyavenard authored
159
160 macx:using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
Something went wrong with that request. Please try again.