Qt: Allow building project from any directory. #4605

This commit is contained in:
Sacha committed 2013-11-22 04:07:18 +10:00
1 parent 693938e859
commit efa0e62e8d
5 files changed
+239 -238

No files matched your search

+42 -42
View File
@@ -7,53 +7,53 @@ CONFIG += staticlib
include(Settings.pri)
arm {
SOURCES += ../Common/ArmCPUDetect.cpp \
../Common/ArmEmitter.cpp \
../Common/ArmThunk.cpp
HEADERS += ../Common/ArmEmitter.h
SOURCES += $$P/Common/ArmCPUDetect.cpp \
$$P/Common/ArmEmitter.cpp \
$$P/Common/ArmThunk.cpp
HEADERS += $$P/Common/ArmEmitter.h
}
x86 {
SOURCES += ../Common/ABI.cpp \
../Common/CPUDetect.cpp \
../Common/Thunk.cpp \
../Common/x64Analyzer.cpp \
../Common/x64Emitter.cpp
HEADERS += ../Common/ABI.h \
../Common/CPUDetect.h \
../Common/Thunk.h \
../Common/x64Analyzer.h \
../Common/x64Emitter.h
SOURCES += $$P/Common/ABI.cpp \
$$P/Common/CPUDetect.cpp \
$$P/Common/Thunk.cpp \
$$P/Common/x64Analyzer.cpp \
$$P/Common/x64Emitter.cpp
HEADERS += $$P/Common/ABI.h \
$$P/Common/CPUDetect.h \
$$P/Common/Thunk.h \
$$P/Common/x64Analyzer.h \
$$P/Common/x64Emitter.h
}
win32 {
SOURCES += ../Common/stdafx.cpp
HEADERS += ../Common/stdafx.h
SOURCES += $$P/Common/stdafx.cpp
HEADERS += $$P/Common/stdafx.h
}
SOURCES += ../Common/ChunkFile.cpp \
../Common/ConsoleListener.cpp \
../Common/FileUtil.cpp \
../Common/LogManager.cpp \
../Common/KeyMap.cpp \
../Common/MemArena.cpp \
../Common/MemoryUtil.cpp \
../Common/Misc.cpp \
../Common/MsgHandler.cpp \
../Common/StringUtils.cpp \
../Common/ThreadPools.cpp \
../Common/Timer.cpp \
../Common/Crypto/*.cpp
HEADERS += ../Common/ChunkFile.h \
../Common/ConsoleListener.h \
../Common/FileUtil.h \
../Common/LogManager.h \
../Common/KeyMap.h \
../Common/MemArena.h \
../Common/MemoryUtil.h \
../Common/MsgHandler.h \
../Common/StringUtils.h \
../Common/ThreadPools.h \
../Common/Timer.h \
../Common/Crypto/*.h
SOURCES += $$P/Common/ChunkFile.cpp \
$$P/Common/ConsoleListener.cpp \
$$P/Common/FileUtil.cpp \
$$P/Common/LogManager.cpp \
$$P/Common/KeyMap.cpp \
$$P/Common/MemArena.cpp \
$$P/Common/MemoryUtil.cpp \
$$P/Common/Misc.cpp \
$$P/Common/MsgHandler.cpp \
$$P/Common/StringUtils.cpp \
$$P/Common/ThreadPools.cpp \
$$P/Common/Timer.cpp \
$$P/Common/Crypto/*.cpp
HEADERS += $$P/Common/ChunkFile.h \
$$P/Common/ConsoleListener.h \
$$P/Common/FileUtil.h \
$$P/Common/LogManager.h \
$$P/Common/KeyMap.h \
$$P/Common/MemArena.h \
$$P/Common/MemoryUtil.h \
$$P/Common/MsgHandler.h \
$$P/Common/StringUtils.h \
$$P/Common/ThreadPools.h \
$$P/Common/Timer.h \
$$P/Common/Crypto/*.h
INCLUDEPATH += ../native
INCLUDEPATH += $$P/native
+65 -65
View File
@@ -4,88 +4,88 @@ TARGET = Core
TEMPLATE = lib
CONFIG += staticlib
version.target = ../git-version.cpp
!contains(MEEGO_EDITION,harmattan):contains(QMAKE_HOST.os, "Windows") { version.commands = $$PWD/../Windows/git-version-gen.cmd }
else { version.commands = $$PWD/git-version-gen.sh }
version.depends = ../.git
QMAKE_EXTRA_TARGETS += version
PRE_TARGETDEPS += ../git-version.cpp
SOURCES += ../git-version.cpp
include(Settings.pri)
INCLUDEPATH += ../native ../Core/MIPS ../ ../ext/xbrz
version.target = $$P/git-version.cpp
!contains(MEEGO_EDITION,harmattan):contains(QMAKE_HOST.os, "Windows") { version.commands = $$P/../Windows/git-version-gen.cmd }
else { version.commands = $$P/Qt/git-version-gen.sh }
version.depends = $$P/.git
QMAKE_EXTRA_TARGETS += version
PRE_TARGETDEPS += $$P/git-version.cpp
SOURCES += $$P/git-version.cpp
INCLUDEPATH += $$P/native $$P/Core/MIPS $$P/ $$P/ext/xbrz
arm {
SOURCES += ../Core/MIPS/ARM/*.cpp \ #CoreARM
../ext/disarm.cpp
HEADERS += ../Core/MIPS/ARM/*.h
SOURCES += $$P/Core/MIPS/ARM/*.cpp \ #CoreARM
$$P/ext/disarm.cpp
HEADERS += $$P/Core/MIPS/ARM/*.h
}
x86 {
SOURCES += ../Core/MIPS/x86/*.cpp
HEADERS += ../Core/MIPS/x86/*.h
SOURCES += $$P/Core/MIPS/x86/*.cpp
HEADERS += $$P/Core/MIPS/x86/*.h
}
win32 {
SOURCES += ../Windows/OpenGLBase.cpp
HEADERS += ../Windows/OpenGLBase.h
SOURCES += $$P/Windows/OpenGLBase.cpp
HEADERS += $$P/Windows/OpenGLBase.h
SOURCES += ../GPU/Directx9/helper/*.cpp
HEADERS += ../GPU/Directx9/helper/*.h
SOURCES += $$P/GPU/Directx9/helper/*.cpp
HEADERS += $$P/GPU/Directx9/helper/*.h
SOURCES += ../GPU/Directx9/*.cpp
HEADERS += ../GPU/Directx9/*.h
INCLUDEPATH += ../dx9sdk/Include
SOURCES += $$P/GPU/Directx9/*.cpp
HEADERS += $$P/GPU/Directx9/*.h
INCLUDEPATH += $$P/dx9sdk/Include
}
SOURCES += ../Core/*.cpp \ # Core
../Core/Debugger/*.cpp \
../Core/Dialog/*.cpp \
../Core/ELF/*.cpp \
../Core/FileSystems/*.cpp \
../Core/Font/*.cpp \
../Core/HLE/*.cpp \
../Core/HW/*.cpp \
../Core/MIPS/*.cpp \
../Core/MIPS/JitCommon/*.cpp \
../Core/Util/*.cpp \
../GPU/GeDisasm.cpp \ # GPU
../GPU/GPUCommon.cpp \
../GPU/GPUState.cpp \
../GPU/Math3D.cpp \
../GPU/Null/NullGpu.cpp \
../GPU/GLES/*.cpp \
../GPU/Common/IndexGenerator.cpp \
../GPU/Common/TextureDecoder.cpp \
../GPU/Common/VertexDecoderCommon.cpp \
../GPU/Common/PostShader.cpp \
../ext/libkirk/*.c \ # Kirk
../ext/xxhash.c \ # xxHash
../ext/xbrz/*.cpp # XBRZ
SOURCES += $$P/Core/*.cpp \ # Core
$$P/Core/Debugger/*.cpp \
$$P/Core/Dialog/*.cpp \
$$P/Core/ELF/*.cpp \
$$P/Core/FileSystems/*.cpp \
$$P/Core/Font/*.cpp \
$$P/Core/HLE/*.cpp \
$$P/Core/HW/*.cpp \
$$P/Core/MIPS/*.cpp \
$$P/Core/MIPS/JitCommon/*.cpp \
$$P/Core/Util/*.cpp \
$$P/GPU/GeDisasm.cpp \ # GPU
$$P/GPU/GPUCommon.cpp \
$$P/GPU/GPUState.cpp \
$$P/GPU/Math3D.cpp \
$$P/GPU/Null/NullGpu.cpp \
$$P/GPU/GLES/*.cpp \
$$P/GPU/Common/IndexGenerator.cpp \
$$P/GPU/Common/TextureDecoder.cpp \
$$P/GPU/Common/VertexDecoderCommon.cpp \
$$P/GPU/Common/PostShader.cpp \
$$P/ext/libkirk/*.c \ # Kirk
$$P/ext/xxhash.c \ # xxHash
$$P/ext/xbrz/*.cpp # XBRZ
!x86:!symbian {
SOURCES += ../GPU/Common/TextureDecoderNEON.cpp
SOURCES += $$P/GPU/Common/TextureDecoderNEON.cpp
}
# Software GPU
SOURCES += ../GPU/Software/*.cpp
HEADERS += ../GPU/Software/*.h
SOURCES += $$P/GPU/Software/*.cpp
HEADERS += $$P/GPU/Software/*.h
HEADERS += ../Core/*.h \
../Core/Debugger/*.h \
../Core/Dialog/*.h \
../Core/ELF/*.h \
../Core/FileSystems/*.h \
../Core/Font/*.h \
../Core/HLE/*.h \
../Core/HW/*.h \
../Core/MIPS/*.h \
../Core/MIPS/JitCommon/*.h \
../Core/Util/*.h \
../GPU/GLES/*.h \
../GPU/Common/*.h \
../GPU/*.h \
../ext/libkirk/*.h \
../ext/xbrz/*.h
HEADERS += $$P/Core/*.h \
$$P/Core/Debugger/*.h \
$$P/Core/Dialog/*.h \
$$P/Core/ELF/*.h \
$$P/Core/FileSystems/*.h \
$$P/Core/Font/*.h \
$$P/Core/HLE/*.h \
$$P/Core/HW/*.h \
$$P/Core/MIPS/*.h \
$$P/Core/MIPS/JitCommon/*.h \
$$P/Core/Util/*.h \
$$P/GPU/GLES/*.h \
$$P/GPU/Common/*.h \
$$P/GPU/*.h \
$$P/ext/libkirk/*.h \
$$P/ext/xbrz/*.h
+89 -89
View File
@@ -7,122 +7,122 @@ CONFIG += staticlib
include(Settings.pri)
!mobile_platform: {
SOURCES += ../native/ext/glew/glew.c
HEADERS += ../native/ext/glew/GL/*.h
SOURCES += $$P/native/ext/glew/glew.c
HEADERS += $$P/native/ext/glew/GL/*.h
}
# Backtrace
x86:!mobile_platform: {
SOURCES += ../native/base/backtrace.cpp
HEADERS += ../native/base/backtrace.h
SOURCES += $$P/native/base/backtrace.cpp
HEADERS += $$P/native/base/backtrace.h
}
# RG_ETC1
SOURCES += ../native/ext/rg_etc1/rg_etc1.cpp
HEADERS += ../native/ext/rg_etc1/rg_etc1.h
INCLUDEPATH += ../native/ext/rg_etc1
SOURCES += $$P/native/ext/rg_etc1/rg_etc1.cpp
HEADERS += $$P/native/ext/rg_etc1/rg_etc1.h
INCLUDEPATH += $$P/native/ext/rg_etc1
# JPGE
SOURCES += ../native/ext/jpge/*.cpp
HEADERS += ../native/ext/jpge/*.h
INCLUDEPATH += ../native/ext/jpge
SOURCES += $$P/native/ext/jpge/*.cpp
HEADERS += $$P/native/ext/jpge/*.h
INCLUDEPATH += $$P/native/ext/jpge
# Stb_image
SOURCES += ../native/ext/stb_image/stb_image.c
HEADERS += ../native/ext/stb_image/stb_image.h
INCLUDEPATH += ../native/ext/stb_image
SOURCES += $$P/native/ext/stb_image/stb_image.c
HEADERS += $$P/native/ext/stb_image/stb_image.h
INCLUDEPATH += $$P/native/ext/stb_image
win32 {
SOURCES += ../native/ext/stb_image_write/stb_image_write.c
HEADERS += ../native/ext/stb_image_write/stb_image_writer.h
INCLUDEPATH += ../native/ext/stb_image_write
SOURCES += $$P/native/ext/stb_image_write/stb_image_write.c
HEADERS += $$P/native/ext/stb_image_write/stb_image_writer.h
INCLUDEPATH += $$P/native/ext/stb_image_write
}
# Stb_vorbis
SOURCES += ../native/ext/stb_vorbis/stb_vorbis.c
HEADERS += ../native/ext/stb_vorbis/stb_vorbis.h
INCLUDEPATH += ../native/ext/stb_vorbis
SOURCES += $$P/native/ext/stb_vorbis/stb_vorbis.c
HEADERS += $$P/native/ext/stb_vorbis/stb_vorbis.h
INCLUDEPATH += $$P/native/ext/stb_vorbis
# Snappy
SOURCES += ../ext/snappy/*.cpp
HEADERS += ../ext/snappy/*.h
INCLUDEPATH += ../ext/snappy
SOURCES += $$P/ext/snappy/*.cpp
HEADERS += $$P/ext/snappy/*.h
INCLUDEPATH += $$P/ext/snappy
# Zlib
win32|contains(QT_CONFIG, no-zlib) {
SOURCES += ../ext/zlib/*.c
HEADERS += ../ext/zlib/*.h
SOURCES += $$P/ext/zlib/*.c
HEADERS += $$P/ext/zlib/*.h
}
# Native
SOURCES += ../native/audio/*.cpp \
../native/base/buffer.cpp \
../native/base/colorutil.cpp \
../native/base/display.cpp \
../native/base/error_context.cpp \
../native/base/fastlist_test.cpp \
../native/base/stringutil.cpp \
../native/base/timeutil.cpp \
../native/data/compression.cpp \
../native/file/*.cpp \
../native/gfx/gl_debug_log.cpp \
../native/gfx/gl_lost_manager.cpp \
../native/gfx/texture.cpp \
../native/gfx/texture_atlas.cpp \
../native/gfx/texture_gen.cpp \
../native/gfx_es2/*.cpp \
../native/gfx_es2/*.c \
../native/i18n/*.cpp \
../native/image/*.cpp \
../native/input/*.cpp \
../native/math/curves.cpp \
../native/math/expression_parser.cpp \
../native/math/math_util.cpp \
../native/math/lin/*.cpp \
../native/net/*.cpp \
../native/profiler/profiler.cpp \
../native/thread/*.cpp \
../native/ui/*.cpp \
../native/util/bits/*.cpp \
../native/util/hash/hash.cpp \
../native/util/random/perlin.cpp \
../native/util/text/utf8.cpp
SOURCES += $$P/native/audio/*.cpp \
$$P/native/base/buffer.cpp \
$$P/native/base/colorutil.cpp \
$$P/native/base/display.cpp \
$$P/native/base/error_context.cpp \
$$P/native/base/fastlist_test.cpp \
$$P/native/base/stringutil.cpp \
$$P/native/base/timeutil.cpp \
$$P/native/data/compression.cpp \
$$P/native/file/*.cpp \
$$P/native/gfx/gl_debug_log.cpp \
$$P/native/gfx/gl_lost_manager.cpp \
$$P/native/gfx/texture.cpp \
$$P/native/gfx/texture_atlas.cpp \
$$P/native/gfx/texture_gen.cpp \
$$P/native/gfx_es2/*.cpp \
$$P/native/gfx_es2/*.c \
$$P/native/i18n/*.cpp \
$$P/native/image/*.cpp \
$$P/native/input/*.cpp \
$$P/native/math/curves.cpp \
$$P/native/math/expression_parser.cpp \
$$P/native/math/math_util.cpp \
$$P/native/math/lin/*.cpp \
$$P/native/net/*.cpp \
$$P/native/profiler/profiler.cpp \
$$P/native/thread/*.cpp \
$$P/native/ui/*.cpp \
$$P/native/util/bits/*.cpp \
$$P/native/util/hash/hash.cpp \
$$P/native/util/random/perlin.cpp \
$$P/native/util/text/utf8.cpp
HEADERS += ../native/audio/*.h \
../native/base/basictypes.h \
../native/base/buffer.h \
../native/base/color.h \
../native/base/colorutil.h \
../native/base/display.h \
../native/base/error_context.h \
../native/base/fastlist.h \
../native/base/linked_ptr.h \
../native/base/logging.h \
../native/base/mutex.h \
../native/base/scoped_ptr.h \
../native/base/stats.h \
../native/base/stringutil.h \
../native/base/timeutil.h \
../native/data/compression.h \
../native/file/*.h \
../native/gfx/*.h \
../native/gfx_es2/*.h \
../native/i18n/*.h \
../native/image/*.h \
../native/input/*.h \
../native/math/*.h \
../native/math/lin/*.h \
../native/net/*.h \
../native/profiler/profiler.h \
../native/thread/*.h \
../native/ui/*.h \
../native/util/bits/*.h \
../native/util/hash/hash.h \
../native/util/random/*.h \
../native/util/text/utf8.h
INCLUDEPATH += ../native
HEADERS += $$P/native/audio/*.h \
$$P/native/base/basictypes.h \
$$P/native/base/buffer.h \
$$P/native/base/color.h \
$$P/native/base/colorutil.h \
$$P/native/base/display.h \
$$P/native/base/error_context.h \
$$P/native/base/fastlist.h \
$$P/native/base/linked_ptr.h \
$$P/native/base/logging.h \
$$P/native/base/mutex.h \
$$P/native/base/scoped_ptr.h \
$$P/native/base/stats.h \
$$P/native/base/stringutil.h \
$$P/native/base/timeutil.h \
$$P/native/data/compression.h \
$$P/native/file/*.h \
$$P/native/gfx/*.h \
$$P/native/gfx_es2/*.h \
$$P/native/i18n/*.h \
$$P/native/image/*.h \
$$P/native/input/*.h \
$$P/native/math/*.h \
$$P/native/math/lin/*.h \
$$P/native/net/*.h \
$$P/native/profiler/profiler.h \
$$P/native/thread/*.h \
$$P/native/ui/*.h \
$$P/native/util/bits/*.h \
$$P/native/util/hash/hash.h \
$$P/native/util/random/*.h \
$$P/native/util/text/utf8.h
INCLUDEPATH += $$P/native
+33 -33
View File
@@ -28,10 +28,10 @@ else: LIBS += -L$$CONFIG_DIR
LIBS += -lCore$${XT} -lCommon$${XT} -lNative$${XT}
# FFMPEG Path
win32: FFMPEG_DIR = ../ffmpeg/Windows/$${QMAKE_TARGET.arch}/lib/
linux: FFMPEG_DIR = ../ffmpeg/linux/$${QMAKE_TARGET.arch}/lib/
macx:!mobile_platform: FFMPEG_DIR = ../ffmpeg/macosx/x86_64/lib/
qnx: FFMPEG_DIR = ../ffmpeg/blackberry/armv7/lib/
win32: FFMPEG_DIR = $$P/ffmpeg/Windows/$${QMAKE_TARGET.arch}/lib/
linux: FFMPEG_DIR = $$P/ffmpeg/linux/$${QMAKE_TARGET.arch}/lib/
macx:!mobile_platform: FFMPEG_DIR = $$P/ffmpeg/macosx/x86_64/lib/
qnx: FFMPEG_DIR = $$P/ffmpeg/blackberry/armv7/lib/
symbian:FFMPEG_DIR = -l
# External (platform-dependant) libs
@@ -43,8 +43,8 @@ win32 {
QMAKE_LFLAGS += /FIXED /BASE:"0x00400000"
QMAKE_LFLAGS += /DYNAMICBASE:NO
LIBS += -lwinmm -lws2_32 -lShell32 -lAdvapi32
contains(QMAKE_TARGET.arch, x86_64): LIBS += $$files(../dx9sdk/Lib/x64/*.lib)
else: LIBS += $$files(../dx9sdk/Lib/x86/*.lib)
contains(QMAKE_TARGET.arch, x86_64): LIBS += $$files($$P/dx9sdk/Lib/x64/*.lib)
else: LIBS += $$files($$P/dx9sdk/Lib/x86/*.lib)
}
linux {
LIBS += -ldl
@@ -61,35 +61,35 @@ contains(QT_CONFIG, system-zlib) {
}
# Main
SOURCES += ../native/base/QtMain.cpp
HEADERS += ../native/base/QtMain.h
SOURCES += $$P/native/base/QtMain.cpp
HEADERS += $$P/native/base/QtMain.h
symbian {
SOURCES += ../native/base/SymbianMediaKeys.cpp
HEADERS += ../native/base/SymbianMediaKeys.h
SOURCES += $$P/native/base/SymbianMediaKeys.cpp
HEADERS += $$P/native/base/SymbianMediaKeys.h
}
# UI
SOURCES += ../UI/*Screen.cpp \
../UI/*Screens.cpp \
../UI/GamepadEmu.cpp \
../UI/GameInfoCache.cpp \
../UI/OnScreenDisplay.cpp \
../UI/UIShader.cpp \
../android/jni/TestRunner.cpp
SOURCES += $$P/UI/*Screen.cpp \
$$P/UI/*Screens.cpp \
$$P/UI/GamepadEmu.cpp \
$$P/UI/GameInfoCache.cpp \
$$P/UI/OnScreenDisplay.cpp \
$$P/UI/UIShader.cpp \
$$P/android/jni/TestRunner.cpp
HEADERS += ../UI/*.h
INCLUDEPATH += .. ../Common ../native
HEADERS += $$P/UI/*.h
INCLUDEPATH += $$P $$P/Common $$P/native
# Use forms UI for desktop platforms
!mobile_platform {
SOURCES += *.cpp
HEADERS += *.h
FORMS += *.ui
RESOURCES += resources.qrc
INCLUDEPATH += ../Qt
SOURCES += $$P/Qt/*.cpp
HEADERS += $$P/Qt/*.h
FORMS += $$P/Qt/*.ui
RESOURCES += $$P/Qt/resources.qrc
INCLUDEPATH += $$P/Qt
# Translations
TRANSLATIONS = $$files(languages/ppsspp_*.ts)
TRANSLATIONS = $$files($$P/Qt/languages/ppsspp_*.ts)
lang.name = lrelease ${QMAKE_FILE_IN}
lang.input = TRANSLATIONS
@@ -100,22 +100,22 @@ INCLUDEPATH += .. ../Common ../native
PRE_TARGETDEPS += compiler_lang_make_all
} else {
# Desktop handles the Init separately
SOURCES += ../UI/NativeApp.cpp
SOURCES += $$P/UI/NativeApp.cpp
}
RESOURCES += assets.qrc
SOURCES += ../UI/ui_atlas_lowmem.cpp
SOURCES += $$P/UI/ui_atlas_lowmem.cpp
# Packaging
symbian {
TARGET.UID3 = 0xE0095B1D
DEPLOYMENT.display_name = PPSSPP
vendor_deploy.pkg_prerules = "%{\"Qtness\"}" ":\"Qtness\""
ICON = ../assets/icon.svg
ICON = $$P/assets/icon.svg
# Folders:
shaders.sources = ../assets/shaders
shaders.sources = $$P/assets/shaders
shaders.path = E:/PPSSPP/PSP
lang.sources = $$files(../lang/*.ini)
lang.sources = $$files($$P/lang/*.ini)
lang.path = E:/PPSSPP/lang
DEPLOYMENT += vendor_deploy assets shaders lang
@@ -127,13 +127,13 @@ symbian {
contains(MEEGO_EDITION,harmattan) {
target.path = /opt/PPSSPP/bin
shaders.files = ../assets/shaders
shaders.files = $$P/assets/shaders
shaders.path = /opt/PPSSPP/PSP
lang.files = $$files(../lang/*.ini)
lang.files = $$files($$P/lang/*.ini)
lang.path = /opt/PPSSPP/lang
desktopfile.files = PPSSPP.desktop
desktopfile.path = /usr/share/applications
icon.files = ../assets/icon-114.png
icon.files = $$P/assets/icon-114.png
icon.path = /usr/share/icons/hicolor/114x114/apps
INSTALLS += target assets shaders lang desktopfile icon
# Booster
+10 -9
View File
@@ -8,15 +8,16 @@ else:CONFIG_DIR=$$OUT_PWD
OBJECTS_DIR = $$CONFIG_DIR/.obj/$$TARGET
MOC_DIR = $$CONFIG_DIR/.moc/$$TARGET
UI_DIR = $$CONFIG_DIR/.ui/$$TARGET
INCLUDEPATH += ../ext/zlib ../native/ext/glew ../Common
P = $$_PRO_FILE_PWD_/..
INCLUDEPATH += $$P/ext/zlib $$P/native/ext/glew $$P/Common
win32-msvc* {
QMAKE_CXXFLAGS_RELEASE += /O2 /arch:SSE2 /fp:fast
DEFINES += _MBCS GLEW_STATIC _CRT_SECURE_NO_WARNINGS
contains(DEFINES,UNICODE): DEFINES+=_UNICODE
PRECOMPILED_HEADER = ../Windows/stdafx.h
PRECOMPILED_SOURCE = ../Windows/stdafx.cpp
INCLUDEPATH += .. ../ffmpeg/Windows/$${QMAKE_TARGET.arch}/include
PRECOMPILED_HEADER = $$P/Windows/stdafx.h
PRECOMPILED_SOURCE = $$P/Windows/stdafx.cpp
INCLUDEPATH += .. $$P/ffmpeg/Windows/$${QMAKE_TARGET.arch}/include
} else {
DEFINES += __STDC_CONSTANT_MACROS
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter
@@ -54,7 +55,7 @@ contains(MEEGO_EDITION,harmattan) {
}
macx:!mobile_platform {
INCLUDEPATH += ../ffmpeg/macosx/x86_64/include
INCLUDEPATH += $$P/ffmpeg/macosx/x86_64/include
#the qlist headers include <initializer_list> in QT5
greaterThan(QT_MAJOR_VERSION,4):CONFIG+=c++11
}
@@ -62,18 +63,18 @@ macx:!mobile_platform {
linux:!mobile_platform {
contains(QT_ARCH, x86_64): QMAKE_TARGET.arch = x86_64
else: QMAKE_TARGET.arch = x86
INCLUDEPATH += ../ffmpeg/linux/$${QMAKE_TARGET.arch}/include
INCLUDEPATH += $$P/ffmpeg/linux/$${QMAKE_TARGET.arch}/include
}
linux:mobile_platform: INCLUDEPATH += ../ffmpeg/linux/arm/include
linux:mobile_platform: INCLUDEPATH += $$P/ffmpeg/linux/arm/include
qnx {
# Use mkspec: unsupported/qws/qnx-armv7-g++
DEFINES += BLACKBERRY "_QNX_SOURCE=1" "_C99=1"
INCLUDEPATH += ../ffmpeg/blackberry/armv7/include
INCLUDEPATH += $$P/ffmpeg/blackberry/armv7/include
}
symbian {
# Does not seem to be a way to change to armv6 compile so just override in variants.xml (see README)
DEFINES += "BOOST_COMPILER_CONFIG=\"$$EPOCROOT/epoc32/include/stdapis/boost/mpl/aux_/config/gcc.hpp\""
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment
INCLUDEPATH += $$EPOCROOT/epoc32/include/stdapis
INCLUDEPATH += ../ffmpeg/symbian/armv6/include
INCLUDEPATH += $$P/ffmpeg/symbian/armv6/include
}