-
Notifications
You must be signed in to change notification settings - Fork 389
/
realtek.cmake
175 lines (148 loc) · 5.6 KB
/
realtek.cmake
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
164
165
166
167
168
169
170
171
172
173
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2016 RDK Management
#
# 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.
##########################################################################
# Realtek specifics
message("Building for realtek...")
add_definitions (-DPLATFORM_REALTEK)
add_definitions (-DUSE_SOUND_PLAYER)
#DeadCodeStrip(DCS)...forRNG150sizereduction
add_definitions (-DENABLE_DCS_BUILD_FLAGS)
add_definitions (-DUSE_IARM)
option(USE_IARM "USE_IARM" ON)
add_definitions (-DUSE_DEVICE_SETTINGS_SERVICE)
add_definitions (-DHAS_API_SYSTEM)
add_definitions (-DCROSS_COMPILED_FOR_DEVICE)
add_definitions (-DHAS_API_HOME_NETWORKING)
#add_definitions (-DHAS_API_QAM_METADATA)
add_definitions (-DHAS_API_POWERSTATE)
add_definitions (-DDISABLE_PRE_RES_CHANGE_EVENTS)
add_definitions (-DHAS_API_APPLICATION)
add_definitions (-DHAS_API_PING)
add_definitions (-DHAS_API_HDCP_COMPLIANCE)
add_definitions (-DHAS_API_DOWNLOADS)
# Enabling image caching for all realtek devices
add_definitions (-DHAS_API_DEVICEPROVISIONING)
if (BUILD_DONT_SET_POWER_BRIGHTNESS)
message("Building with dont set power brightness")
add_definitions (-DBUILD_DONT_SET_POWER_BRIGHTNESS)
add_definitions (-DDONT_SET_POWER_BRIGHTNESS)
endif()
if (ENABLE_WHOAMI)
message("Enable WHOAMI")
add_definitions (-DENABLE_WHOAMI=ON)
endif()
if (BUILD_ENABLE_HDCP)
message("Building with hdcp profile")
add_definitions (-DBUILD_ENABLE_HDCP)
add_definitions (-DENABLE_HDCP_PROFILE)
endif()
if (BUILD_ENABLE_LEGACY_HDCP_PROFILE)
message("Building with hdcp profile 0 and 1")
add_definitions (-DBUILD_ENABLE_LEGACY_HDCP_PROFILE)
add_definitions (-DENABLE_HDCP_PROFILE_0_1)
endif()
if (BUILD_DISABLE_HOME_NETWORKING_V2)
message("Building with hn2 disabled")
add_definitions (-DBUILD_DISABLE_HOME_NETWORKING_V2)
add_definitions (-DDISABLE_API_HOME_NETWORKING_2)
endif()
if (BUILD_DBUS)
message("Building for DBUS")
add_definitions (-DBUILD_DBUS)
option(BUILD_DBUS "BUILD_DBUS" ON)
add_definitions (-DIARM_USE_DBUS)
option(IARM_USE_DBUS "IARM_USE_DBUS" ON)
# LIBS += -ldbus-1
endif()
if (BUILD_ENABLE_THERMAL_PROTECTION)
add_definitions (-DBUILD_ENABLE_THERMAL_PROTECTION)
add_definitions (-DENABLE_THERMAL_PROTECTION)
endif()
if (BUILD_ENABLE_DEVICE_MANUFACTURER_INFO)
message("Building with device manufacturer info")
add_definitions (-DENABLE_DEVICE_MANUFACTURER_INFO)
endif()
if (BUILD_ENABLE_SET_WAKEUP_SRC_CONFIG)
add_definitions (-DBUILD_ENABLE_SET_WAKEUP_SRC_CONFIG)
add_definitions (-DENABLE_SET_WAKEUP_SRC_CONFIG)
endif()
if (BUILD_XI1)
message("Building for XI1")
add_definitions (-DBUILD_XI1)
#To enable dlna Mimetype only for Xi1 builds
#for EU builds
if (SKY_BUILD)
message("Building for EU variant")
add_definitions (-DSKY_BUILD)
elseif (NOT SKY_BUILD)
message("Building for US variant")
endif()
if (LOGUPLOAD_BEFORE_DEEPSLEEP)
message("Enabling LOGUPLOAD_BEFORE_DEEPSLEEP")
add_definitions (-DLOGUPLOAD_BEFORE_DEEPSLEEP)
endif()
add_definitions (-DENABLE_DEEP_SLEEP)
add_definitions (-DUSE_XI1_MORE_DEFINITIONS)
add_definitions (-DUSE_UIMAF)
if (USE_IARM)
add_definitions (-DUSE_IARM_BUS)
option(USE_IARM_BUS "USE_IARM_BUS" ON)
add_definitions (-DUSE_DISPLAY_SETTINGS)
add_definitions (-DUSE_TSB_SETTINGS)
endif()
add_definitions (-DMSO_PAIRING)
add_definitions (-DENABLE_VREX_SERVICE)
#add_definitions (-DENABLE_UPDATE_MANAGER_SERVICE)
add_definitions (-DENABLE_REMOTE_ACTION_MAPPING_SERVICE)
add_definitions (-DENABLE_CONTROL_SERVICE)
add_definitions (-DMSO_PAIRING_ENABLE_LOS)
add_definitions (-DENABLE_MSOPAIRING_4)
add_definitions (-DENABLE_MSOPAIRING_5)
add_definitions (-DENABLE_MSOPAIRING_6)
add_definitions (-DHAS_FRONT_PANEL)
option(HAS_FRONT_PANEL "HAS_FRONT_PANEL" ON)
add_definitions (-DENABLE_FRONT_PANEL_API_V4)
#add_definitions (-DDPLUGIN_STATEOBSERVER)
add_definitions (-DUSE_DS)
add_definitions (-DENABLE_GET_SET_APIVERSION)
add_definitions (-DUSE_UPNP_DISCOVERY)
add_definitions (-DUSE_TR_69)
add_definitions (-DENABLE_VREX_SERVICE)
add_definitions (-DRF4CE_API)
add_definitions (-DDPLUGIN_STATEOBSERVER)
endif()
if(SCREEN_CAPTURE)
if(NOT DISABLE_SCREEN_CAPTURE)
message("Yocto Realtek build: Building Realtek specific screen capturing")
add_definitions (-DPLATFORM_SCREEN_CAPTURE)
endif()
endif()
if(DEFINES,USE_XI1_MORE_DEFINITIONS)
add_definitions (-DHAS_API_AVINPUT)
add_definitions (-DUSE_AVINPUT)
add_definitions (-DQT_GUI_LIB)
add_definitions (-DQT_NO_QWS_CURSOR)
add_definitions (-DQT_NETWORK_LIB)
add_definitions (-DQT_SHARED)
add_definitions (-DQT_CORE_LIB)
add_definitions (-DQT_NO_DEBUG)
add_definitions (-DMSO_PAIRING_ENABLE_LOS)
add_definitions (-DDISABLE_API_HOME_NETWORKING_2)
add_definitions (-DDISABLE_WEBKIT_WIDGETS)
add_definitions (-DENABLE_GET_SET_APIVERSION)
endif()