path: root/src/
diff options
authorKent Hansen <>2011-08-16 10:50:00 +0200
committerQt by Nokia <>2011-08-29 10:16:01 +0200
commit9830cb8e5992a352ec6508491ab52e8f2a9da877 (patch)
tree9baa3969878a1e070c56c9a3a67143c2d96ee5d6 /src/
parent13b3545e833f6175f686c9776e1510db3f3f11eb (diff)
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 <private/v8.h> 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: Reviewed-by: Kent Hansen <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ b/src/
index 491973c635..caac6426f3 100644
--- a/src/
+++ b/src/
@@ -8,6 +8,7 @@ SRC_SUBDIRS += src_corelib src_network src_sql src_testlib src_xml src_uitools
nacl: SRC_SUBDIRS -= src_network src_testlib
!symbian:contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
!contains(QT_CONFIG, no-gui): SRC_SUBDIRS += src_gui
+!contains(QT_CONFIG, no-v8): SRC_SUBDIRS += src_v8
@@ -27,6 +28,8 @@ src_winmain.subdir = $$QT_SOURCE_TREE/src/winmain = sub-winmain
src_corelib.subdir = $$QT_SOURCE_TREE/src/corelib = sub-corelib
+src_v8.subdir = $$QT_SOURCE_TREE/src/v8 = sub-v8
src_xml.subdir = $$QT_SOURCE_TREE/src/xml = sub-xml
src_uitools.subdir = $$QT_SOURCE_TREE/src/uitools