From 9830cb8e5992a352ec6508491ab52e8f2a9da877 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Tue, 16 Aug 2011 10:50:00 +0200 Subject: Add QtV8 library to QtBase This adds Aaron's copy of V8 to src/3rdparty/v8 (as a git submodule), and builds it as a "normal" Qt library (without any dependencies on Qt itself). The library can be added to a project with QT += v8-private V8 API headers are available as private includes, e.g. #include The API is private because we're exposing a third-party API directly, and we don't want to (and cannot) make source or binary compatibility guarantees for it. Since we want the V8 public API headers to be private headers in Qt, syncqt and sync.profile were extended to understand a new configuration option, the @allmoduleheadersprivate array, that tells syncqt whether all the library headers should be treated as private even though they don't follow the _p.h Qt convention. The V8 project files, patches and autotests are copied from the QtDeclarative repository. The next step after this commit is to remove QtDeclarative's copy of V8 and link with QtV8 instead. Task-number: QTBUG-20963 Change-Id: Ib8820362cdbc8fa662a5e97db841656cf38d1b62 Reviewed-on: http://codereview.qt.nokia.com/3092 Reviewed-by: Kent Hansen Reviewed-by: Lars Knoll --- src/v8/v8.pro | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/v8/v8.pro (limited to 'src/v8/v8.pro') diff --git a/src/v8/v8.pro b/src/v8/v8.pro new file mode 100644 index 0000000000..eb14ca9a19 --- /dev/null +++ b/src/v8/v8.pro @@ -0,0 +1,24 @@ +load(qt_module) + +TARGET = QtV8 +QPRO_PWD = $$PWD +QT = + +CONFIG += module +MODULE_PRI = ../modules/qt_v8.pri + +win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000 + +load(qt_module_config) + +# Remove includepaths that were added by qt_module_config. +# These cause compilation of V8 to fail because they appear before +# 3rdparty/v8/src; 3rdparty/v8/src/v8.h will then be "shadowed" by +# the public v8.h API header (they are not the same!). +INCLUDEPATH -= $$MODULE_PRIVATE_INCLUDES +INCLUDEPATH -= $$MODULE_PRIVATE_INCLUDES/$$TARGET +INCLUDEPATH -= $$MODULE_INCLUDES $$MODULE_INCLUDES/.. + +HEADERS += $$QT_SOURCE_TREE/src/v8/qtv8version.h + +include(v8.pri) -- cgit v1.2.3