+# -------------------------------------------------------------------
+# Project file for the jsc binary (interactive interpreter)
+#
+# See 'Tools/qmake/README' for an overview of the build system
+# -------------------------------------------------------------------
+
TEMPLATE = app
+
TARGET = jsc
-DESTDIR = .
-SOURCES = jsc.cpp
+DESTDIR = $${ROOT_BUILD_DIR}/bin
+
QT -= gui
-CONFIG -= app_bundle
-CONFIG += building-libs
+
win32-*: CONFIG += console
win32-msvc*: CONFIG += exceptions_off stl_off
+win32-msvc*|win32-icc: INCLUDEPATH += $$ROOT_WEBKIT_DIR/Source/JavaScriptCore/os-win32
-include($$PWD/../WebKit.pri)
-
-CONFIG += link_pkgconfig
+WEBKIT += javascriptcore wtf
-QMAKE_RPATHDIR += $$OUTPUT_DIR/lib
+SOURCES = jsc.cpp
-isEmpty(OUTPUT_DIR):OUTPUT_DIR=$$PWD/..
-CONFIG(debug, debug|release) {
- OBJECTS_DIR = obj/debug
-} else { # Release
- OBJECTS_DIR = obj/release
+mac {
+ LIBS_PRIVATE += -framework AppKit
}
-OBJECTS_DIR_WTR = $$OBJECTS_DIR$${QMAKE_DIR_SEP}
-include($$PWD/JavaScriptCore.pri)
-*-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
-*-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
+win* {
+ LIBS += -ladvapi32
+}
-symbian {
- TARGET.CAPABILITY = ReadUserData WriteUserData NetworkServices
+wince* {
+ LIBS += mmtimer.lib
}
-mac {
- LIBS_PRIVATE += -framework AppKit
-}
\ No newline at end of file
+# Prevent warnings about difference in visibility on Mac OS X
+contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
+unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
+