-
Notifications
You must be signed in to change notification settings - Fork 392
/
intel.cmake
138 lines (117 loc) · 4.39 KB
/
intel.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
# If not stated otherwise in this file or this component's license file the
# following copyright and licenses apply:
#
# Copyright 2020 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.
# Intel specifics
message("Building for Intel...")
# Canmore specifics
add_definitions (-DPLATFORM_CANMORE)
add_definitions (-DPLATFORM_INTEL)
#Uncomment this for IP Only
add_definitions (-DUSE_DS)
option(USE_DS "USE_DS" ON)
add_definitions (-DUSE_IARM_BUS)
option(USE_IARM_BUS "USE_IARM_BUS" ON)
add_definitions (-DHAS_FRONT_PANEL)
option(HAS_FRONT_PANEL "HAS_FRONT_PANEL" ON)
add_definitions (-DCLOCK_BRIGHTNESS_ENABLED)
option(CLOCK_BRIGHTNESS_ENABLED "CLOCK_BRIGHTNESS_ENABLED" ON)
add_definitions (-DUSE_UPNP_DISCOVERY)
add_definitions (-DUSE_LSB)
if (BUILD_ENABLE_RFREMOTE_API)
message("Building with rf remote API")
add_definitions (-DBUILD_ENABLE_RFREMOTE_API)
add_definitions (-DHAS_API_RFREMOTE)
endif()
if (BUILD_ENABLE_HDCP)
message("Building xre with hdcp profile")
add_definitions (-DBUILD_ENABLE_HDCP)
option(BUILD_ENABLE_HDCP "BUILD_ENABLE_HDCP" ON)
add_definitions (-DENABLE_HDCP_PROFILE)
endif()
if (BUILD_X1)
message("Building for X1")
add_definitions (-DBUILD_X1)
add_definitions (-DSUPPORT_HOME_NETWORKING_V3)
if (IP_VIDEO_ONLY)
message("Using IP video only")
# DEFINES -= PLATFORM_CANMORE
add_definitions (-DUSE_IP_VIDEO_ONLY)
add_definitions (-DUSE_TSB_SETTINGS)
add_definitions (-DENABLE_TSB_SETTING)
endif()
if (BUILD_DELIA)
message("Building for Delia")
add_definitions (-DUSE_DS)
add_definitions (-DUSE_IARMBUS)
add_definitions (-DPLATFORM_INTEL_IP_ONLY)
add_definitions (-DDELIA_MODE)
add_definitions (-DUSE_DISPLAY_SETTINGS)
add_definitions (-DENABLE_EXIT_D_D_2_WEB_DIAGNOSTICS)
if (BUILD_ENABLE_HDCP)
message("Building x1 xre with hdcp profile")
add_definitions (-DENABLE_HDCP_PROFILE)
endif()
if (BUILD_DBUS)
message("Building for DBUS")
add_definitions (-DIARM_USE_DBUS)
endif()
endif()
add_definitions (-DMSO_PAIRING)
add_definitions (-DMSO_PAIRING_ENABLE_LOS)
add_definitions (-DRF4CE_API)
add_definitions (-DUSE_IARM)
add_definitions (-DHAS_SNAG_AUDIO)
add_definitions (-DDPLUGIN_STATEOBSERVER)
add_definitions (-DENABLE_SERVICEPROXY_SYSTEM3_SYSTEM4)
add_definitions (-DENABLE_MSOPAIRING_4)
add_definitions (-DENABLE_MSOPAIRING_5)
add_definitions (-DENABLE_MSOPAIRING_6)
add_definitions (-DUSE_DISPLAY_SETTINGS)
add_definitions (-DUSE_THUNDER_DISPLAY_SETTINGS)
add_definitions (-DUSE_DEVICE_SETTINGS_SERVICE)
add_definitions (-DUSE_RFBYPASS_LED_KEYPRESS)
add_definitions (-DENABLE_VREX_SERVICE)
add_definitions (-DENABLE_REMOTE_ACTION_MAPPING_SERVICE)
add_definitions (-DENABLE_CONTROL_SERVICE)
add_definitions (-DUSE_UNIFIED_RF4CE_MGR_API_4)
add_definitions (-DENABLE_FRONT_PANEL_API_V4)
endif()
if(PLATFORM_INTEL_IP_ONLY)
message("Building for IP Only...")
add_definitions (-DPLATFORM_INTEL_IP_ONLY)
else()
message("Building for Canmore...")
add_definitions (-DHAS_GMA)
add_definitions (-DHAS_QAM)
endif()
#add_definitions (-DUSE_SOUND_PLAYER)
#add_definitions (-DUSE_AVINPUT)
add_definitions (-DCROSS_COMPILED_FOR_DEVICE)
add_definitions (-DENABLE_GET_SET_APIVERSION)
#!contains(DEFINES, USE_DS) {
# HEADERS += ../../platform/broadcom/include/rdk_fpd.h
#}
add_definitions (-DHAS_API_RFREMOTE)
add_definitions (-DHAS_API_SYSTEM)
add_definitions (-DHAS_API_POWERSTATE)
add_definitions (-DHAS_API_AVINPUT)
add_definitions (-DHAS_API_HOME_NETWORKING)
add_definitions (-DHAS_API_APPLICATION)
add_definitions (-DHAS_API_PING)
add_definitions (-DHAS_API_HDCP_COMPLIANCE)
add_definitions (-DHAS_API_DEVICEPROVISIONING)
#add_definitions (-DHAS_API_QAM_METADATA)
add_definitions (-DHAS_API_DOWNLOADS)