1 defineReplace(cleanPath) {
3 contains(1, ^/.*):pfx = /
8 equals(seg, ..):out = $$member(out, 0, -2)
9 else:!equals(seg, .):out += $$seg
11 return($$join(out, /, $$pfx))
14 defineReplace(targetPath) {
19 # For use in custom compilers which just copy files
21 defineReplace(stripSrcDir) {
23 !contains(1, ^.:.*):1 = $$OUT_PWD/$$1
25 !contains(1, ^/.*):1 = $$OUT_PWD/$$1
27 out = $$cleanPath($$1)
28 out ~= s|^$$re_escape($$PWD/)||$$i_flag
32 isEmpty(TEST):CONFIG(debug, debug|release) {
33 !debug_and_release|build_pass {
38 isEmpty(IDE_LIBRARY_BASENAME) {
39 IDE_LIBRARY_BASENAME = lib
42 DEFINES += IDE_LIBRARY_BASENAME=\\\"$$IDE_LIBRARY_BASENAME\\\"
49 IDE_SOURCE_TREE = $$PWD
50 isEmpty(IDE_BUILD_TREE) {
51 sub_dir = $$_PRO_FILE_PWD_
52 sub_dir ~= s,^$$re_escape($$PWD),,
53 IDE_BUILD_TREE = $$cleanPath($$OUT_PWD)
54 IDE_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
56 IDE_APP_PATH = $$IDE_BUILD_TREE/bin
58 IDE_APP_TARGET = "Qt Creator"
59 IDE_LIBRARY_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/PlugIns
60 IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH
61 IDE_LIBEXEC_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
62 IDE_DATA_PATH = $$IDE_APP_PATH/$${IDE_APP_TARGET}.app/Contents/Resources
63 contains(QT_CONFIG, ppc):CONFIG += ppc x86
67 contains(TEMPLATE, vc.*)|contains(TEMPLATE_PREFIX, vc):vcproj = 1
68 IDE_APP_TARGET = qtcreator
70 IDE_APP_WRAPPER = qtcreator
71 IDE_APP_TARGET = qtcreator.bin
73 IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/$$IDE_LIBRARY_BASENAME/qtcreator
74 IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH/plugins
75 IDE_LIBEXEC_PATH = $$IDE_APP_PATH # FIXME
76 IDE_DATA_PATH = $$IDE_BUILD_TREE/share/qtcreator
77 !isEqual(IDE_SOURCE_TREE, $$IDE_BUILD_TREE):copydata = 1
81 $$IDE_SOURCE_TREE/src/libs \
82 $$IDE_SOURCE_TREE/tools
85 $$IDE_SOURCE_TREE/src/libs \
86 $$IDE_SOURCE_TREE/tools
88 LIBS += -L$$IDE_LIBRARY_PATH
90 # DEFINES += QT_NO_CAST_FROM_ASCII
91 DEFINES += QT_NO_CAST_TO_ASCII
92 #DEFINES += QT_USE_FAST_OPERATOR_PLUS
93 #DEFINES += QT_USE_FAST_CONCATENATION
96 CONFIG(debug, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
97 CONFIG(release, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
99 CONFIG(debug, debug|release):MOC_DIR = $${OUT_PWD}/.moc/debug-shared
100 CONFIG(release, debug|release):MOC_DIR = $${OUT_PWD}/.moc/release-shared
102 RCC_DIR = $${OUT_PWD}/.rcc
103 UI_DIR = $${OUT_PWD}/.uic
107 # Bail out on non-selfcontained libraries. Just a security measure
108 # to prevent checking in code that does not compile on other platforms.
109 QMAKE_LFLAGS += -Wl,--allow-shlib-undefined -Wl,--no-undefined
112 # Handle S60 support: default on Windows, conditionally built on other platforms.
113 win32:SUPPORT_QT_S60=1
114 else:SUPPORT_QT_S60 = $$(QTCREATOR_WITH_S60)