1 /*
2  * Copyright (c) 2020-2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_ACELITE_CONFIG_H
17 #define OHOS_ACELITE_CONFIG_H
18 
19 #if (ENABLE_OHOS_ACELITE_PRODUCT_CONFIG == 1)
20 #include "product_acelite_config.h"
21 #endif
22 
23 /**
24  * ================================================================================================
25  *                 liteos_a config for hmf
26  * ================================================================================================
27  */
28 #define OHOS_ACELITE_LITEOS_A // NOTE: DO NOT use this macro directly
29 
30 /**
31  * Compile all test entry for hmf
32  */
33 #ifndef FEATURE_TEST_IMPLEMENTATION
34 #define FEATURE_TEST_IMPLEMENTATION 1
35 #endif
36 
37 /**
38  * use hi log interface to trace out
39  */
40 #ifndef FEATURE_ACELITE_HI_LOG_PRINTF
41 #define FEATURE_ACELITE_HI_LOG_PRINTF 1
42 #endif
43 
44 /**
45  * append no blank color to rootview for easy using, delete this after the mouse showing is optimized
46  */
47 #ifndef FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR
48 #define FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR 1
49 #endif
50 
51 /**
52  * js system capability switch
53  */
54 #ifndef FEATURE_ACELITE_SYSTEM_CAPABILITY
55 #define FEATURE_ACELITE_SYSTEM_CAPABILITY 1
56 #endif
57 
58 /**
59  * js profiler switch
60  */
61 #ifndef FEATURE_ACELITE_JS_PROFILER
62 #define FEATURE_ACELITE_JS_PROFILER 1
63 #endif
64 
65 /**
66  * support audio API for JS
67  */
68 #ifndef FEATURE_MODULE_AUDIO
69 #define FEATURE_MODULE_AUDIO 1
70 #endif
71 
72 /**
73  * switch for cipher module
74  */
75 #ifndef ENABLE_MODULE_CIPHER
76 #define ENABLE_MODULE_CIPHER 1
77 #endif
78 
79 /**
80  * support storage and file API for JS
81  */
82 #ifndef FEATURE_MODULE_STORAGE
83 #define FEATURE_MODULE_STORAGE 1
84 #endif
85 
86 /**
87  * support battery API for JS
88  */
89 #ifndef FEATURE_MODULE_BATTERY
90 #ifdef ACE_ENGINE_LITE_BATTERY_LITE_ENABLE
91 #define FEATURE_MODULE_BATTERY 1
92 #endif
93 #endif
94 
95 /**
96  * support device API for JS
97  */
98 #ifndef FEATURE_MODULE_DEVICE
99 #define FEATURE_MODULE_DEVICE 1
100 #endif
101 
102 /**
103  * syscap module
104  */
105 #ifndef FEATURE_SYSCAP_MODULE
106 #define FEATURE_SYSCAP_MODULE 1
107 #endif
108 
109 /**
110  * timer module
111  */
112 #ifndef FEATURE_TIMER_MODULE
113 #define FEATURE_TIMER_MODULE 1
114 #endif
115 
116 /**
117  * date time module
118  */
119 #ifndef FEATURE_DATE_FORMAT
120 #define FEATURE_DATE_FORMAT 1
121 #endif
122 
123 #ifndef FEATURE_API_VERSION
124 #define FEATURE_API_VERSION 1
125 #endif
126 
127 /**
128  * support lite ace dfx module
129  */
130 #ifndef FEATURE_ACELITE_DFX_MODULE
131 #define FEATURE_ACELITE_DFX_MODULE 1
132 #endif
133 
134 #ifndef FEATURE_ACELITE_LITE_DFX_MODULE
135 #define FEATURE_ACELITE_LITE_DFX_MODULE 1
136 #endif
137 
138 /**
139  * enable Canvas component Feature API on ipcamera real devices
140  */
141 #ifndef FEATURE_COMPONENT_CANVAS
142 #define FEATURE_COMPONENT_CANVAS 1
143 #endif
144 
145 #ifndef FEATURE_LOCALIZATION_MODULE
146 #define FEATURE_LOCALIZATION_MODULE 1
147 #endif
148 
149 #ifndef FEATURE_COMPONENT_CAMERA
150 #ifdef ACE_ENGINE_LITE_CAMERA_LITE_ENABLE
151 #define FEATURE_COMPONENT_CAMERA 1
152 #endif
153 #endif
154 
155 /**
156  * enable edittext component Feature
157  */
158 #ifndef FEATURE_COMPONENT_EDITTEXT
159 #define FEATURE_COMPONENT_EDITTEXT 1
160 #endif
161 
162 #ifndef FEATURE_COMPONENT_QRCODE
163 #define FEATURE_COMPONENT_QRCODE 1
164 #endif
165 
166 #ifndef FEATURE_COMPONENT_VIDEO
167 #ifdef ACE_ENGINE_LITE_MEDIA_LITE_ENABLE
168 #define FEATURE_COMPONENT_VIDEO 1
169 #endif
170 #endif
171 
172 #ifndef FEATURE_MODULE_DIALOG
173 #define FEATURE_MODULE_DIALOG 1
174 #endif
175 
176 /**
177  * support intl module
178  */
179 #ifndef FEATURE_INTL_MODULE
180 #define FEATURE_INTL_MODULE 1
181 #endif
182 
183 /**
184  * supoort number format module
185  */
186 #ifndef FEATURE_NUMBER_FORMAT
187 #define FEATURE_NUMBER_FORMAT 1
188 #endif
189 
190 #ifndef FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC
191 #define FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 1
192 #endif
193 
194 /**
195  * device attest component
196  */
197 #ifdef FEATURE_COMPONENT_DEVICE_ATTEST
198 #error "must keep the global configuration unique"
199 #else
200 #define FEATURE_COMPONENT_DEVICE_ATTEST 1
201 #endif
202 
203 #ifndef DEFAULT_PROFILER_MSG_PATH
204 #define DEFAULT_PROFILER_MSG_PATH "/storage/user/data/"
205 #endif
206 
207 #ifndef PROFILER_ENABLE_FLAG_FILE
208 #define PROFILER_ENABLE_FLAG_FILE "/storage/user/data/profiler_enable"
209 #endif
210 
211 #ifndef RUNTIME_MODE_FILE_PATH
212 #define RUNTIME_MODE_FILE_PATH "/storage/user/data/js_snapshot_enable"
213 #endif
214 
215 #ifndef FEATURE_SUPPORT_HTTP
216 #define FEATURE_SUPPORT_HTTP 1
217 #endif
218 
219 /**
220  * switch for hilog module
221  */
222 #ifndef FEATURE_MODULE_OHOS_HILOG
223 #define FEATURE_MODULE_OHOS_HILOG 1
224 #endif
225 
226 #endif // OHOS_ACELITE_CONFIG_H
227