Ticket #3589: compile-type-apport.diff

File compile-type-apport.diff, 4.7 KB (added by laga+mythtv@…, 14 years ago)

Mixed debug/release compile type - for 0.20-FIXES!

  • configure

     
    2525  echo "Standard options:"
    2626  echo "  --help                   print this message"
    2727  echo "  --previous               use previous configure parameters if possible"
    28   echo "  --compile-type=CTYPE     one of release, profile, debug [$compile_type]"
     28  echo "  --compile-type=CTYPE     one of release, profile, debug, apport [$compile_type]"
    2929  echo "                           NOTE: profile is for sampling profilers"
     30  echo "                           NOTE: apport compiles certain performance-critical parts"
     31  echo "                           of MythTV with optimizations, behaves likes debug otherwise"
    3032  echo "  --prefix=PREFIX          install in PREFIX [$PREFIX]"
    3133  echo "  --libdir-name=LIBNAME    search/install libraries in PREFIX/LIBNAME [$libdir_name]"
    3234  #echo "  --libdir=DIR             install libs in DIR [PREFIX/lib]"
  • libs/libmythmpeg2/libmythmpeg2.pro

     
    66CONFIG += thread staticlib warn_off
    77
    88QMAKE_CFLAGS_RELEASE += -DPIC -fPIC -fno-common
    9 QMAKE_CFLAGS_DEBUG += -DPIC -fPIC -fno-common
    109
     10apport {
     11    QMAKE_CFLAGS_DEBUG += -O3 -DPIC -fPIC -fno-common
     12} else {
     13    QMAKE_CFLAGS_DEBUG += -DPIC -fPIC -fno-common
     14}
     15
    1116QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
    1217
    1318# Input
  • libs/libmythsoundtouch/libmythsoundtouch.pro

     
    1010QMAKE_CXXFLAGS_RELEASE += -fPIC -DPIC
    1111QMAKE_CXXFLAGS_DEBUG   += -fPIC -DPIC
    1212
     13apport {
     14    QMAKE_CFLAGS_DEBUG += -O3 -fPIC -DPIC
     15} else {
     16    QMAKE_CFLAGS_DEBUG += -fPIC -DPIC
     17}
     18
     19
    1320QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
    1421
    1522# Input
  • libs/libmythsamplerate/libmythsamplerate.pro

     
    88INCLUDEPATH += ../../
    99
    1010QMAKE_CFLAGS_RELEASE = $$OPTFLAGS -DHAVE_AV_CONFIG_H -I.. -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
    11 QMAKE_CFLAGS_DEBUG = -g -DHAVE_AV_CONFIG_H -I.. -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
    1211
     12apport {
     13    QMAKE_CFLAGS_DEBUG += -O3 -g -DHAVE_AV_CONFIG_H -I.. -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
     14} else {
     15    QMAKE_CFLAGS_DEBUG = -g -DHAVE_AV_CONFIG_H -I.. -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
     16}
     17
    1318QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
    1419
    1520# Input
  • libs/libavcodec/libavcodec.pro

     
    1717    QMAKE_CFLAGS_SHLIB =
    1818}
    1919
    20 QMAKE_CFLAGS_DEBUG += -O
     20apport {
     21    QMAKE_CFLAGS_DEBUG += -O3
     22} else {
     23    QMAKE_CFLAGS_DEBUG += -O
     24}
    2125
     26
    2227QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
    2328
    2429# Input
  • libs/libavutil/libavutil.pro

     
    1818    QMAKE_CFLAGS_SHLIB =
    1919}
    2020
    21 QMAKE_CFLAGS_DEBUG += -O
     21apport {
     22    QMAKE_CFLAGS_DEBUG += -O3
     23} else {
     24    QMAKE_CFLAGS_DEBUG += -O
     25}
    2226
    2327QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
    2428
  • settings.pro

     
    5050    CONFIG += debug   
    5151}
    5252
     53apport {
     54CONFIG += debug
     55}
    5356# figure out defines
    5457
    5558DEFINES += $$CONFIG_DEFINES
  • filters/filter-common.pro

     
    88INSTALLS = target
    99
    1010QMAKE_CFLAGS_RELEASE += -Wno-missing-prototypes
    11 QMAKE_CFLAGS_DEBUG += -Wno-missing-prototypes
    1211
     12# since all filter qmake files seem to include this file,
     13# we add our hack here
     14
     15apport {
     16    QMAKE_CFLAGS_DEBUG += -O3 -Wno-missing-prototypes
     17} else {
     18    QMAKE_CFLAGS_DEBUG += -Wno-missing-prototypes
     19}
     20
    1321QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)