Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20963

Make Qt/V8 a library in the QtBase module

    XMLWordPrintable

Details

    • 9830cb8e5992a352ec6508491ab52e8f2a9da877 e71904e231e27e6f6f88b35c4a7e2d7cf8ba2640

    Description

      Currently V8 is built right into the QtDeclarative library. It should instead be built as a shared library so that it can be used in other places of Qt (including QtCore, if appropriate). Turning it into a Qt library also makes it easy to arrange for the V8 headers to be installed, so that e.g. applications that use QtDeclarative private headers – which need v8.h – will build.

      To make V8 available, a library/application would add

      QT += v8-private

      to its .pro file. To use the V8 API, add

      #include <private/v8.h>

      to C++/header files.

      The API would be private in Qt because we're exposing the V8 API directly, and we cannot make source/binary compatibility guarantees on behalf of a third-party library.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kenthans Kent Hansen (Inactive)
              kenthans Kent Hansen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes