forked from woce/LunaSysMgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.pri
164 lines (144 loc) · 4.66 KB
/
device.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# @@@LICENSE
#
# Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# LICENSE@@@
# @@@LICENSE
#
# Copyright (c) 2010 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# LICENSE@@@
TARGET_TYPE = TARGET_DEVICE
QMAKE_MAKEFILE = Makefile
BUILD_TYPE = release
CONFIG -= debug
CONFIG += release
LIBS += \
-lluna-prefs -lPmLogLib -lhid \
-lmemchute \
-lmedia-api -lrolegen -lserviceinstall -lnapp -lhal -laffinity
MACHINE_NAME = $$(MACHINE)
contains(MACHINE_NAME, "chile") {
DEFINES += MACHINE_CHILE
CONFIG_BUILD += opengl
}
contains(MACHINE_NAME, "castle") {
DEFINES += MACHINE_CASTLE
CONFIG_BUILD += opengl texturesharing fb1poweroptimization directrendering
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "roadrunner") {
DEFINES += MACHINE_CASTLE MACHINE_ROADRUNNER
CONFIG_BUILD += opengl texturesharing fb1poweroptimization directrendering
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "pixie") {
DEFINES += MACHINE_PIXIE
CONFIG_BUILD += opengl texturesharing fb1poweroptimization directrendering
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "broadway") {
DEFINES += MACHINE_BROADWAY
CONFIG_BUILD += opengl texturesharing directrendering
CONFIG_BUILD += haptics
CONFIG_BUILD += qpa
}
contains(MACHINE_NAME, "mantaray") {
DEFINES += MACHINE_MANTARAY
CONFIG_BUILD += opengl openglcomposited directrendering
CONFIG_BUILD += qpa
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "windsornot") {
DEFINES += MACHINE_WINDSORNOT
CONFIG_BUILD += opengl openglcomposited directrendering
CONFIG_BUILD += qpa
}
contains(MACHINE_NAME, "topaz") {
DEFINES += MACHINE_TOPAZ
###### Uncomment the following for debug building, e.g. for source debugging via eclipse, etc.
###### Note that this is all really adhoc and quick'n'dirty, and not meant to be a robust method
# CONFIG -= release
# CONFIG += debug
# QMAKE_CXXFLAGS -= $$QMAKE_CXXFLAGS_RELEASE -fomit-frame-pointer -frename-registers -finline-functions
# QMAKE_CXXFLAGS += -O0 -pg -fno-omit-frame-pointer -fno-rename-registers -fno-inline-functions -fno-exceptions -fno-rtti
# PALM_CC_OPT =
# PALM_CXX_OPT =
# PALM_CXX_EXTRA =
# QMAKE_LFLAGS -= $$QMAKE_LFLAGS_RELEASE
# QMAKE_LFLAGS +=
############
CONFIG_BUILD += opengl texturesharing fb1poweroptimization directrendering
CONFIG_BUILD += qpa
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "opal") {
DEFINES += MACHINE_OPAL
CONFIG_BUILD += opengl texturesharing directrendering
CONFIG_BUILD += qpa
CONFIG_BUILD += haptics
}
contains(MACHINE_NAME, "qemux86") {
DEFINES += MACHINE_QEMUX86
TARGET_TYPE = TARGET_EMULATOR
# emulator doesn't support these libraries
LIBS -= -ljemalloc_mt -lpowerd -lmemchute
LIBS += -Wl,-rpath $$(STAGING_LIBDIR)
}
DEFINES += $$TARGET_TYPE HAVE_LUNA_PREF=1 ENABLE_PIRANHA=1 PALM_DEVICE QT_PLUGIN QT_STATICPLUGIN
contains(CONFIG_BUILD, qpa) {
DEFINES += HAVE_QPA
LIBS += -lqpalm
}
else {
HEADERS += hiddkbd_qws.h \
hiddtp_qws.h \
SOURCES += hiddkbd_qws.cpp \
hiddtp_qws.cpp \
hiddkbd.cpp \
hiddtp.cpp
}
HEADERS += HostArm.h \
SoundPlayer.h \
hal/HalInputControl.h \
hal/HALSensorConnector.h
VPATH += Src/input
SOURCES += SoundPlayer.cpp \
hal/HalInputControl.cpp \
hal/HALSensorConnector.cpp
INCLUDEPATH += \
$$(STAGING_INCDIR)/glib-2.0 \
$$(STAGING_INCDIR)/webkit \
$$(STAGING_INCDIR)/webkit/npapi \
$$(STAGING_INCDIR)/sysmgr-ipc \
$$(STAGING_INCDIR)/hid/IncsPublic \
$$(STAGING_INCDIR)/freetype2 \
$$(STAGING_INCDIR)/PmLogLib/IncsPublic \
$$(STAGING_INCDIR)/Piranha \
$$(STAGING_INCDIR)/Piranha.GLES \
$$(STAGING_INCDIR)/napp \
$$(STAGING_INCDIR)/ime