Last change
on this file since 117859 was 104034, checked in by [email protected], 13 years ago |
[Qt] Introduce new qmake variable 'WEBKIT' for signaling dependencies
The custom qmake variable 'WEBKIT' is used for signaling that a
target depends in some way on other subproject of the WebKit
project. For now this is limited to the set of intermediate
libraries: wtf, javascriptcore, webcore, and webkit2.
This replaces the previous convension of using load(foo) for
just include paths, and CONFIG += foo to also link against foo.
Adding a dependency results in additional include paths being
available, and potentially linking to the library. This is
decided by the build system based on conditions such as what
kind of target is being built and the general build config.
An advantage to his approach is that it simplifies the individual
foo.prf files, for example by allowing us to use INCLUDEPATH +=
and LIBS += as normal instead of prepending.
Reviewed by Simon Hausmann.
|
File size:
863 bytes
|
Line | |
---|
1 | # -------------------------------------------------------------------
|
---|
2 | # Project file for the jsc binary (interactive interpreter)
|
---|
3 | #
|
---|
4 | # See 'Tools/qmake/README' for an overview of the build system
|
---|
5 | # -------------------------------------------------------------------
|
---|
6 |
|
---|
7 | TEMPLATE = app
|
---|
8 |
|
---|
9 | TARGET = jsc
|
---|
10 | DESTDIR = $${ROOT_BUILD_DIR}/bin
|
---|
11 |
|
---|
12 | QT -= gui
|
---|
13 |
|
---|
14 | win32-*: CONFIG += console
|
---|
15 | win32-msvc*: CONFIG += exceptions_off stl_off
|
---|
16 | win32-msvc*|win32-icc: INCLUDEPATH += $$ROOT_WEBKIT_DIR/Source/JavaScriptCore/os-win32
|
---|
17 |
|
---|
18 | WEBKIT += javascriptcore wtf
|
---|
19 |
|
---|
20 | SOURCES = jsc.cpp
|
---|
21 |
|
---|
22 | mac {
|
---|
23 | LIBS_PRIVATE += -framework AppKit
|
---|
24 | }
|
---|
25 |
|
---|
26 | win* {
|
---|
27 | LIBS += -ladvapi32
|
---|
28 | }
|
---|
29 |
|
---|
30 | wince* {
|
---|
31 | LIBS += mmtimer.lib
|
---|
32 | }
|
---|
33 |
|
---|
34 | # Prevent warnings about difference in visibility on Mac OS X
|
---|
35 | contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
|
---|
36 | unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.