• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1TEMPLATE = app
2TARGET = MiniBrowser
3
4SOURCES += \
5    BrowserView.cpp \
6    BrowserWindow.cpp \
7    main.cpp \
8    MiniBrowserApplication.cpp \
9    UrlLoader.cpp \
10    utils.cpp \
11
12HEADERS += \
13    BrowserView.h \
14    BrowserWindow.h \
15    MiniBrowserApplication.h \
16    UrlLoader.h \
17    utils.h \
18
19isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../..
20include(../../../Source/WebKit.pri)
21
22INCLUDEPATH += \
23    $$PWD/../../../Source/WebKit2/ \
24    $$PWD/../../../Source/WebKit2/UIProcess/API/cpp \
25    $$PWD/../../../Source/WebKit2/UIProcess/API/C \
26    $$PWD/../../../Source/WebKit2/UIProcess/API/qt \
27    $$OUTPUT_DIR/include
28
29
30DESTDIR = $$OUTPUT_DIR/bin
31!CONFIG(standalone_package): CONFIG -= app_bundle
32
33QT += network
34macx:QT+=xml
35
36linux-* {
37    # From Creator's src/rpath.pri:
38    # Do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
39    # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var.
40    QMAKE_RPATHDIR = \$\$ORIGIN/../lib $$QMAKE_RPATHDIR
41    MY_RPATH = $$join(QMAKE_RPATHDIR, ":")
42
43    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${MY_RPATH}\'
44    QMAKE_RPATHDIR =
45} else {
46    QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR
47}
48
49symbian {
50    TARGET.UID3 = 0xA000E545
51    TARGET.CAPABILITY = ReadUserData WriteUserData NetworkServices
52}
53
54contains(QT_CONFIG, opengl) {
55    QT += opengl
56    DEFINES += QT_CONFIGURED_WITH_OPENGL
57}
58
59DEFINES -= QT_ASCII_CAST_WARNINGS
60
61# Use the MiniBrowser.qrc file from the sources.
62RESOURCES += MiniBrowser.qrc
63