##// END OF EJS Templates
Further fix for QNX and other windows host cross compilations
Further fix for QNX and other windows host cross compilations

File last commit:

r2458:ef734f385916
r2458:ef734f385916
Show More
config.pri
118 lines | 3.9 KiB | text/plain | TextLexer
Michal Klocek
Removes defualt realse and debug build setting
r1676 ##################### LIB #################################################
Michal Klocek
Add test to common build
r34
Michal Klocek
Simplfies default configuration
r1021 LIBRARY_NAME = QtCommercialChart
Tero Ahola
Removed system_build from build config
r1439 CONFIG(debug, debug|release) {
mac: LIBRARY_NAME = $$join(LIBRARY_NAME,,,_debug)
win32: LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
}
Michal Klocek
Removes defualt realse and debug build setting
r1676 LIBS += -l$$LIBRARY_NAME
# This will undefine Q_DECL_EXPORT/Q_DECL_IMPORT at qchartglobal.h
# They should not be used for staticlib builds.
staticlib:DEFINES+=QTCOMMERCIALCHART_STATICLIB
Michal Klocek
Simplfies default configuration
r1021
Michal Klocek
Fixes config.pri converage option
r1998 #################### COVERAGE #################################################################
coverage: CONFIG += debug
Michal Klocek
Simplfies default configuration
r1021 ##################### SHADOW CONFIG #################################################
Michal Klocek
Chages 'find' to 'contains' in src.pro to make windows linux build the same
r711 !contains($${PWD}, $${OUT_PWD}){
Michal Klocek
Improves build configuration...
r996 search = "$$PWD:::"
Jani Honkonen
Fixing qml build for latest Qt5...
r2247 temp = $$split(search,"/")
Michal Klocek
Adds shadow build support
r708 temp = $$last(temp)
path = $$replace(search,$$temp,'')
temp = $$split(OUT_PWD,$$path)
temp = $$split(temp,'/')
temp = $$first(temp)
path = "$${path}$${temp}"
Jani Honkonen
Fixing qml build for latest Qt5...
r2247 SHADOW=$$path
Michal Klocek
Chages 'find' to 'contains' in src.pro to make windows linux build the same
r711 }else{
SHADOW=$$PWD
Jani Honkonen
Fixing qml build for latest Qt5...
r2247 CONFIG-=development_build
Michal Klocek
Adds shadow build support
r708 }
Michal Klocek
Simplfies default configuration
r1021 ##################### BUILD PATHS ##################################################
Michal Klocek
Adds shadow build support
r708 CHART_BUILD_PUBLIC_HEADER_DIR = $$SHADOW/include
Michal Klocek
Adds private headers handling...
r193 CHART_BUILD_PRIVATE_HEADER_DIR = $$CHART_BUILD_PUBLIC_HEADER_DIR/private
Michal Klocek
Adds shadow build support
r708 CHART_BUILD_LIB_DIR = $$SHADOW/lib
CHART_BUILD_DIR = $$SHADOW/build
CHART_BUILD_BIN_DIR = $$SHADOW/bin
Michal Klocek
Adds release debug direcotires to bin lib
r1978 CHART_BUILD_QML_PLUGIN_DIR = $$CHART_BUILD_BIN_DIR
CHART_BUILD_DESIGNER_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR
Michal Klocek
Adds shadow build support
r708 CHART_BUILD_DOC_DIR = $$SHADOW/doc
Michal Klocek
Adds release debug direcotires to bin lib
r1978 CONFIG(release,debug|release){
CHART_BUILD_LIB_DIR = $$CHART_BUILD_LIB_DIR/release
CHART_BUILD_BIN_DIR = $$CHART_BUILD_BIN_DIR/release
CHART_BUILD_QML_PLUGIN_DIR = $$CHART_BUILD_QML_PLUGIN_DIR/release/QtCommercial/Chart
CHART_BUILD_DESIGNER_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR
}
CONFIG(debug,debug|release){
CHART_BUILD_LIB_DIR = $$CHART_BUILD_LIB_DIR/debug
CHART_BUILD_BIN_DIR = $$CHART_BUILD_BIN_DIR/debug
CHART_BUILD_QML_PLUGIN_DIR = $$CHART_BUILD_QML_PLUGIN_DIR/debug/QtCommercial/Chart
CHART_BUILD_DESIGNER_PLUGIN_DIR = $$CHART_BUILD_LIB_DIR
}
Jani Honkonen
Fix building debug & release at the same time...
r1433 # Use own folders for debug and release builds
Michal Klocek
Removes defualt realse and debug build setting
r1676
CONFIG(debug, debug|release):CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/debug)
CONFIG(release, debug|release): CHART_BUILD_DIR = $$join(CHART_BUILD_DIR,,,/release)
Jani Honkonen
Fix building debug & release at the same time...
r1433
Miikka Heikkinen
Further fix for QNX and other windows host cross compilations
r2458 contains(QMAKE_HOST.os, Windows) {
Michal Klocek
Adds private headers handling...
r193 CHART_BUILD_PUBLIC_HEADER_DIR = $$replace(CHART_BUILD_PUBLIC_HEADER_DIR, "/","\\")
CHART_BUILD_PRIVATE_HEADER_DIR = $$replace(CHART_BUILD_PRIVATE_HEADER_DIR, "/","\\")
Tero Ahola
Proof-of-concept for QML api...
r120 CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\")
CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\")
Michal Klocek
Adds release debug direcotires to bin lib
r1978 CHART_BUILD_QML_PLUGIN_DIR = $$replace(CHART_BUILD_QML_PLUGIN_DIR, "/","\\")
CHART_BUILD_DESIGNER_PLUGIN_DIR = $$replace(CHART_BUILD_DESIGNER_PLUGIN_DIR, "/","\\")
Michal Klocek
make doc config windows friendly
r307 CHART_BUILD_DOC_DIR = $$replace(CHART_BUILD_DOC_DIR, "/","\\")
Michal Klocek
minor. put back old build path
r1042 CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\")
Michal Klocek
Fix compilation config for windows
r37 }
Michal Klocek
Improved config handling...
r33
Tero Ahola
Fixed build on QtCommercial 4.8
r100 mac: {
Tero Ahola
Rephrased a comment about an OSX work-around
r1912 # Some Qt versions use an incompatible configuration on OSX which makes the build fail.
# As a work-around, set the minimum OSX version to 10.5.
Tero Ahola
Fixed build on QtCommercial 4.8
r100 QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5
QMAKE_LFLAGS *= -mmacosx-version-min=10.5
}
Michal Klocek
Improves build configuration...
r996
Marek Rosa
Disabled QDateTimeAxis on ARM
r1867 linux-arm*: {
DEFINES+=QT_ON_ARM
}
Michal Klocek
Removes defualt realse and debug build setting
r1676 ##################### INCLUDES ############################################################
Michal Klocek
Simplfies default configuration
r1021
Tero Ahola
Removed system_build from build config
r1439 INCLUDEPATH += $$CHART_BUILD_PUBLIC_HEADER_DIR
Michal Klocek
Simplfies default configuration
r1021
Tero Ahola
Removed system_build from build config
r1439 !win32: {
Tero Ahola
Removed space from LIBS -L option in config.pri
r1775 LIBS += -L$$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR
Tero Ahola
Removed system_build from build config
r1439 } else {
win32-msvc*: {
# hack fix for error:
# "LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'"
QMAKE_LIBDIR += $$CHART_BUILD_LIB_DIR
Tero Ahola
Fixed naming of the lib on system build; debug on OSX and Win
r1431 } else {
Tero Ahola
Removed space from LIBS -L option in config.pri
r1775 LIBS += -L$$CHART_BUILD_LIB_DIR
Michal Klocek
Simplfies default configuration
r1021 }
Tero Ahola
Simplified OSX local builds
r1034 }
Michal Klocek
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing
r1050
Michal Klocek
Removes defualt realse and debug build setting
r1676 ##################### DEVELOPMENT BUILD ###################################################
Tero Ahola
Removed system_build from build config
r1439
Michal Klocek
Removes defualt realse and debug build setting
r1676 development_build: {
DEFINES+=DEVELOPMENT_BUILD
CONFIG+=debug_and_release
CONFIG+=build_all
}
Jani Honkonen
Adding support for static builds.
r1440
Michal Klocek
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing
r1050 ##################### UNIT TESTS ##############################################################
CONFIG(debug, debug|release) {
DEFINES+=BUILD_PRIVATE_UNIT_TESTS
}
Michal Klocek
minor. add debug flag for coverage
r1087