summaryrefslogtreecommitdiff
path: root/src/script/v8/v8.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/v8/v8.pri')
-rw-r--r--src/script/v8/v8.pri22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/script/v8/v8.pri b/src/script/v8/v8.pri
new file mode 100644
index 0000000..5c67557
--- /dev/null
+++ b/src/script/v8/v8.pri
@@ -0,0 +1,22 @@
+include($$PWD/v8base.pri)
+
+V8_GENERATED_SOURCES_DIR = generated
+
+# this maybe removed in future
+DEFINES += ENABLE_DEBUGGER_SUPPORT
+
+# this is needed by crankshaft ( http://code.google.com/p/v8/issues/detail?id=1271 )
+DEFINES += ENABLE_VMSTATE_TRACKING ENABLE_LOGGING_AND_PROFILING
+
+# Because our patches to V8 are guarded by this define.
+DEFINES += QT_BUILD_SCRIPT_LIB
+
+CONFIG(debug, debug|release) {
+ DEFINES += DEBUG ENABLE_VMSTATE_TRACKING ENABLE_LOGGING_AND_PROFILING V8_ENABLE_CHECKS OBJECT_PRINT ENABLE_DISASSEMBLER
+} else {
+ DEFINES += NDEBUG
+}
+
+INCLUDEPATH += \
+ $$V8DIR/src \
+ $$V8DIR/include