source: webkit/trunk/Source/JavaScriptCore/jsc.pro@ 106454

Last change on this file since 106454 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
7TEMPLATE = app
8
9TARGET = jsc
10DESTDIR = $${ROOT_BUILD_DIR}/bin
11
12QT -= gui
13
14win32-*: CONFIG += console
15win32-msvc*: CONFIG += exceptions_off stl_off
16win32-msvc*|win32-icc: INCLUDEPATH += $$ROOT_WEBKIT_DIR/Source/JavaScriptCore/os-win32
17
18WEBKIT += javascriptcore wtf
19
20SOURCES = jsc.cpp
21
22mac {
23 LIBS_PRIVATE += -framework AppKit
24}
25
26win* {
27 LIBS += -ladvapi32
28}
29
30wince* {
31 LIBS += mmtimer.lib
32}
33
34# Prevent warnings about difference in visibility on Mac OS X
35contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
36unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
37
Note: See TracBrowser for help on using the repository browser.