~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Tools/qmake/mkspecs/features/win32/default_post.prf

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -------------------------------------------------------------------
 
2
# Win32 specific defaults
 
3
#
 
4
# See 'Tools/qmake/README' for an overview of the build system
 
5
# -------------------------------------------------------------------
 
6
 
 
7
# Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
 
8
win32-g++* {
 
9
    TMPPATH            = $$quote($$(INCLUDE))
 
10
    QMAKE_INCDIR_POST += $$split(TMPPATH,";")
 
11
    TMPPATH            = $$quote($$(LIB))
 
12
    QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
 
13
}
 
14
 
 
15
# Disable a few warnings. The same warnings are also disabled
 
16
# in WebKitLibraries/win/tools/vsprops/common.vsprops
 
17
win32-msvc*|wince*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996
 
18
win32-icc: QMAKE_CXXFLAGS += -wd873
 
19
 
 
20
load(default_post)
 
21
 
 
22
# When creating the target DLL, extract exporting linker directives from
 
23
# all static libraries we're linking into the DLL and make sure they are
 
24
# also exported from the DLL.
 
25
shared:contains(TEMPLATE, lib) {
 
26
    for(target, POST_TARGETDEPS) {
 
27
        libdep = $$find(target, .*\\.lib)
 
28
        !isEmpty(libdep): LIBSWITHEXPORTS += $$libdep
 
29
    }
 
30
}
 
31
 
 
32
!isEmpty(LIBSWITHEXPORTS) {
 
33
    suffix =
 
34
    CONFIG(debug, debug|release): suffix = d
 
35
    forwarded_exports.target = forwarded-exports$${suffix}.cpp
 
36
    forwarded_exports.commands = python $${ROOT_WEBKIT_DIR}$${QMAKE_DIR_SEP}Tools$${QMAKE_DIR_SEP}Scripts$${QMAKE_DIR_SEP}generate-win32-export-forwards $$LIBSWITHEXPORTS $$forwarded_exports.target
 
37
    forwarded_exports.depends = $$LIBSWITHEXPORTS
 
38
    QMAKE_EXTRA_TARGETS += forwarded_exports
 
39
    GENERATED_SOURCES += $$forwarded_exports.target
 
40
}
 
41
 
 
42
# To ensure the Qt export macros are set to dllexport
 
43
contains(TEMPLATE, lib):!contains(QT, webkit): DEFINES += QT_MAKEDLL