1 !isEmpty(QTCREATOR_PRI_INCLUDED):error("qtcreator.pri already included")
2 QTCREATOR_PRI_INCLUDED = 1
4 QTCREATOR_VERSION = 2.1.83
6 defineReplace(cleanPath) {
8 contains(1, ^/.*):pfx = /
13 equals(seg, ..):out = $$member(out, 0, -2)
14 else:!equals(seg, .):out += $$seg
16 return($$join(out, /, $$pfx))
19 defineReplace(targetPath) {
20 return($$replace(1, /, $$QMAKE_DIR_SEP))
23 defineReplace(qtLibraryName) {
26 CONFIG(debug, debug|release) {
27 !debug_and_release|build_pass {
28 mac:RET = $$member(LIBRARY_NAME, 0)_debug
29 else:win32:RET = $$member(LIBRARY_NAME, 0)d
32 isEmpty(RET):RET = $$LIBRARY_NAME
36 defineTest(minQtVersion) {
40 isEqual(QT_MAJOR_VERSION, $$maj) {
41 isEqual(QT_MINOR_VERSION, $$min) {
42 isEqual(QT_PATCH_VERSION, $$patch) {
45 greaterThan(QT_PATCH_VERSION, $$patch) {
49 greaterThan(QT_MINOR_VERSION, $$min) {
56 # For use in custom compilers which just copy files
58 defineReplace(stripSrcDir) {
60 !contains(1, ^.:.*):1 = $$OUT_PWD/$$1
62 !contains(1, ^/.*):1 = $$OUT_PWD/$$1
64 out = $$cleanPath($$1)
65 out ~= s|^$$re_escape($$PWD/)||$$i_flag
69 isEmpty(TEST):CONFIG(debug, debug|release) {
70 !debug_and_release|build_pass {
75 isEmpty(IDE_LIBRARY_BASENAME) {
76 IDE_LIBRARY_BASENAME = lib
79 DEFINES += IDE_LIBRARY_BASENAME=\\\"$$IDE_LIBRARY_BASENAME\\\"
86 IDE_SOURCE_TREE = $$PWD
87 isEmpty(IDE_BUILD_TREE) {
88 sub_dir = $$_PRO_FILE_PWD_
89 sub_dir ~= s,^$$re_escape($$PWD),,
90 IDE_BUILD_TREE = $$cleanPath($$OUT_PWD)
91 IDE_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
93 IDE_APP_PATH = $$IDE_BUILD_TREE/bin
95 IDE_APP_TARGET = "Qt Creator"
96 IDE_LIBRARY_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/PlugIns
97 IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH
98 IDE_LIBEXEC_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
99 IDE_DATA_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
100 IDE_DOC_PATH = $$IDE_DATA_PATH/doc
101 IDE_BIN_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/MacOS
102 contains(QT_CONFIG, ppc):CONFIG += ppc x86
104 isEmpty(TIGER_COMPAT_MODE):TIGER_COMPAT_MODE=$$(QTC_TIGER_COMPAT)
105 isEmpty(TIGER_COMPAT_MODE) {
106 QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5
107 QMAKE_LFLAGS *= -mmacosx-version-min=10.5
111 contains(TEMPLATE, vc.*)|contains(TEMPLATE_PREFIX, vc):vcproj = 1
112 IDE_APP_TARGET = qtcreator
114 IDE_APP_TARGET = qtcreator
116 IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/$$IDE_LIBRARY_BASENAME/qtcreator
117 IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH/plugins
118 IDE_LIBEXEC_PATH = $$IDE_APP_PATH # FIXME
119 IDE_DATA_PATH = $$IDE_BUILD_TREE/share/qtcreator
120 IDE_DOC_PATH = $$IDE_BUILD_TREE/share/doc/qtcreator
121 IDE_BIN_PATH = $$IDE_APP_PATH
122 !isEqual(IDE_SOURCE_TREE, $$IDE_BUILD_TREE):copydata = 1
126 $$IDE_SOURCE_TREE/src/libs \
127 $$IDE_SOURCE_TREE/tools \
128 $$IDE_SOURCE_TREE/src/plugins
130 CONFIG += depend_includepath
132 LIBS += -L$$IDE_LIBRARY_PATH
134 #DEFINES += QT_NO_CAST_FROM_ASCII
135 DEFINES += QT_NO_CAST_TO_ASCII
136 !macx:DEFINES += QT_USE_FAST_OPERATOR_PLUS QT_USE_FAST_CONCATENATION
139 CONFIG(debug, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
140 CONFIG(release, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
142 CONFIG(debug, debug|release):MOC_DIR = $${OUT_PWD}/.moc/debug-shared
143 CONFIG(release, debug|release):MOC_DIR = $${OUT_PWD}/.moc/release-shared
145 RCC_DIR = $${OUT_PWD}/.rcc
146 UI_DIR = $${OUT_PWD}/.uic
150 #Don't warn about sprintf, fopen etc being 'unsafe'
151 DEFINES += _CRT_SECURE_NO_WARNINGS