+defineReplace(qtPlatformTargetSuffix) {
+ CONFIG(debug, debug|release) {
+ !debug_and_release|build_pass {
+ mac:return(_debug)
+ win32:return(d)
+ }
+ }
+ return()
+}
+
defineReplace(qtLibraryTarget) {
unset(LIBRARY_NAME)
LIBRARY_NAME = $$1
QMAKE_FRAMEWORK_BUNDLE_NAME = $$LIBRARY_NAME
export(QMAKE_FRAMEWORK_BUNDLE_NAME)
}
- contains(TEMPLATE, .*lib):CONFIG(debug, debug|release) {
- !debug_and_release|build_pass {
- mac:RET = $$member(LIBRARY_NAME, 0)_debug
- else:win32:RET = $$member(LIBRARY_NAME, 0)d
- }
- }
- isEmpty(RET):RET = $$LIBRARY_NAME
- return($$RET)
+ unset(LIBRARY_SUFFIX)
+ contains(TEMPLATE, .*lib):LIBRARY_SUFFIX = $$qtPlatformTargetSuffix()
+ isEmpty(LIBRARY_SUFFIX):return($$LIBRARY_NAME)
+ else:return($$member(LIBRARY_NAME, 0)$$LIBRARY_SUFFIX)
}
defineTest(qtAddLibrary) {
LIBS =
OBJECTS_DIR = .
+contains(QT_CONFIG, build_all): CONFIG += build_all
+win32|mac:!macx-xcode: CONFIG += debug_and_release
+
+TARGET = $$TARGET$$qtPlatformTargetSuffix()
+
cross_compile {
equals(QT_ARCH, arm): V8_TARGET_ARCH = arm
}
include(v8.pri)
contains(QT_CONFIG, v8snapshot) {
- mkv8snapshot.commands = ../../bin/mkv8snapshot ${QMAKE_FILE_OUT}
+ mkv8snapshot.commands = ../../bin/mkv8snapshot$$qtPlatformTargetSuffix() ${QMAKE_FILE_OUT}
DUMMY_FILE = v8.pro
mkv8snapshot.input = DUMMY_FILE
mkv8snapshot.output = $$V8_GENERATED_SOURCES_DIR/snapshot.cpp