|
1 # |
|
2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 isEmpty(_BROWSER_PRI_INCLUDED_): { |
|
18 |
|
19 _BROWSER_PRI_INCLUDED_=1 |
|
20 |
|
21 symbian { |
|
22 CONFIG += debug_and_release |
|
23 MMP_RULES += EXPORTUNFROZEN |
|
24 } |
|
25 |
|
26 CONFIG(debug, debug|release) { |
|
27 SUBDIRPART = Debug |
|
28 } else { |
|
29 SUBDIRPART = Release |
|
30 } |
|
31 |
|
32 # Figure out the root of where stuff should go (this could be done via configure) |
|
33 symbian { |
|
34 OUTPUT_DIR = $$PWD |
|
35 } else { |
|
36 OUTPUT_DIR = $$PWD/../../.. |
|
37 } |
|
38 OBJECTS_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp |
|
39 MOC_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp |
|
40 RCC_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp |
|
41 UI_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp |
|
42 TEMPDIR= $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/build |
|
43 DESTDIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/bin |
|
44 QMAKE_RPATHDIR = $$DESTDIR $$QMAKE_RPATHDIR |
|
45 QMAKE_LIBDIR = $$DESTDIR $$QMAKE_LIBDIR |
|
46 |
|
47 # Add the output dirs to the link path too |
|
48 LIBS += -L$$DESTDIR |
|
49 |
|
50 DEPENDPATH += . |
|
51 INCLUDEPATH += . |
|
52 |
|
53 symbian { |
|
54 BROWSER_INCLUDE = $$MW_LAYER_PUBLIC_EXPORT_PATH(browser) |
|
55 } else { |
|
56 BROWSER_INCLUDE = $$PWD/include/ |
|
57 } |
|
58 |
|
59 QMAKE_CXXFLAGS_DEBUG += -g |
|
60 |
|
61 CONFIG(gcov) { |
|
62 LIBS += -lgcov |
|
63 QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage |
|
64 } |
|
65 } |
|
66 |