-# JavaScriptCore - Qt4 build info
-VPATH += $$PWD
-CONFIG(debug, debug|release) {
- # Output in JavaScriptCore/<config>
- JAVASCRIPTCORE_DESTDIR = debug
- # Use a config-specific target to prevent parallel builds file clashes on Mac
- JAVASCRIPTCORE_TARGET = jscored
-} else {
- JAVASCRIPTCORE_DESTDIR = release
- JAVASCRIPTCORE_TARGET = jscore
-}
-CONFIG(standalone_package) {
- isEmpty(JSC_GENERATED_SOURCES_DIR):JSC_GENERATED_SOURCES_DIR = $$PWD/generated
-} else {
- isEmpty(JSC_GENERATED_SOURCES_DIR):JSC_GENERATED_SOURCES_DIR = generated
-}
-
-CONFIG(standalone_package): DEFINES *= NDEBUG
-
-symbian: {
- # Need to guarantee this comes before system includes of /epoc32/include
- MMP_RULES += "USERINCLUDE ../JavaScriptCore/profiler"
- LIBS += -lhal
- # For hal.h
- INCLUDEPATH *= $$MW_LAYER_SYSTEMINCLUDE
-}
-
-INCLUDEPATH = \
- $$PWD \
- $$PWD/.. \
- $$PWD/assembler \
- $$PWD/bytecode \
- $$PWD/bytecompiler \
- $$PWD/debugger \
- $$PWD/interpreter \
- $$PWD/jit \
- $$PWD/parser \
- $$PWD/pcre \
- $$PWD/profiler \
- $$PWD/runtime \
- $$PWD/wtf \
- $$PWD/wtf/symbian \
- $$PWD/wtf/unicode \
- $$PWD/yarr \
- $$PWD/API \
- $$PWD/ForwardingHeaders \
- $$JSC_GENERATED_SOURCES_DIR \
- $$INCLUDEPATH
-
-win32-*: DEFINES += _HAS_TR1=0
-
-DEFINES += BUILDING_QT__ BUILDING_JavaScriptCore BUILDING_WTF
-
-contains(JAVASCRIPTCORE_JIT,yes) {
- DEFINES+=ENABLE_JIT=1
- DEFINES+=ENABLE_YARR_JIT=1
- DEFINES+=ENABLE_YARR=1
-}
-contains(JAVASCRIPTCORE_JIT,no) {
- DEFINES+=ENABLE_JIT=0
- DEFINES+=ENABLE_YARR_JIT=0
- DEFINES+=ENABLE_YARR=0
-}
+# -------------------------------------------------------------------
+# This file contains shared rules used both when building
+# JavaScriptCore itself, and by targets that use JavaScriptCore.
+#
+# See 'Tools/qmake/README' for an overview of the build system
+# -------------------------------------------------------------------
+
+SOURCE_DIR = $${ROOT_WEBKIT_DIR}/Source/JavaScriptCore
+
+JAVASCRIPTCORE_GENERATED_SOURCES_DIR = $${ROOT_BUILD_DIR}/Source/JavaScriptCore/$${GENERATED_SOURCES_DESTDIR}
+
+INCLUDEPATH += \
+ $$SOURCE_DIR \
+ $$SOURCE_DIR/.. \
+ $$SOURCE_DIR/../WTF \
+ $$SOURCE_DIR/assembler \
+ $$SOURCE_DIR/bytecode \
+ $$SOURCE_DIR/bytecompiler \
+ $$SOURCE_DIR/heap \
+ $$SOURCE_DIR/dfg \
+ $$SOURCE_DIR/debugger \
+ $$SOURCE_DIR/disassembler \
+ $$SOURCE_DIR/interpreter \
+ $$SOURCE_DIR/jit \
+ $$SOURCE_DIR/llint \
+ $$SOURCE_DIR/parser \
+ $$SOURCE_DIR/profiler \
+ $$SOURCE_DIR/runtime \
+ $$SOURCE_DIR/tools \
+ $$SOURCE_DIR/yarr \
+ $$SOURCE_DIR/API \
+ $$SOURCE_DIR/ForwardingHeaders \
+ $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR
+
+# Pick up the right version of LLIntAssembly.h
+macx: INCLUDEPATH += $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR/$$targetSubDir()
+
+win32-*: LIBS += -lwinmm