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 /**
20  * ================================================================================================
21  *                 hi3516_linux config for hmf
22  * ================================================================================================
23  */
24 
25 /**
26  * Compile all test entry for hmf
27  */
28 #ifdef FEATURE_TEST_IMPLEMENTATION
29 #error "must keep the global configuration unique"
30 #else
31 #define FEATURE_TEST_IMPLEMENTATION 1
32 #endif
33 
34 /**
35  * use hi log interface to trace out
36  */
37 #ifdef FEATURE_ACELITE_HI_LOG_PRINTF
38 #error "must keep the global configuration unique"
39 #else
40 #define FEATURE_ACELITE_HI_LOG_PRINTF 1
41 #endif
42 
43 /**
44  * append no blank color to rootview for easy using, delete this after the mouse showing is optimized
45  */
46 #ifdef FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR
47 #error "must keep the global configuration unique"
48 #else
49 #define FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR 1
50 #endif
51 
52 /**
53  * js system capability switch
54  */
55 #ifdef FEATURE_ACELITE_SYSTEM_CAPABILITY
56 #error "must keep the system capability unique"
57 #else
58 #define FEATURE_ACELITE_SYSTEM_CAPABILITY 1
59 #endif
60 
61 /**
62  * js profiler switch
63  */
64 #ifdef FEATURE_ACELITE_JS_PROFILER
65 #error "must keep the global configuration unique"
66 #else
67 #define FEATURE_ACELITE_JS_PROFILER 1
68 #endif
69 
70 /**
71  * support audio API for JS
72  */
73 #define FEATURE_MODULE_AUDIO 1
74 
75 /**
76  * switch for cipher module
77  */
78 #define ENABLE_MODULE_CIPHER 1
79 
80 /**
81  * support storage and file API for JS
82  */
83 #define FEATURE_MODULE_STORAGE 1
84 
85 /**
86  * support device API for JS
87  */
88 #define FEATURE_MODULE_DEVICE 1
89 
90 /**
91  * syscap module
92  */
93 #define FEATURE_SYSCAP_MODULE 1
94 
95 /**
96  * timer module
97  */
98 #define FEATURE_TIMER_MODULE 1
99 
100 /**
101  * support lite ace dfx module
102  */
103 #define FEATURE_ACELITE_DFX_MODULE 1
104 
105 #define FEATURE_ACELITE_LITE_DFX_MODULE 1
106 
107 #define FEATURE_API_VERSION 1
108 
109 /**
110  * enable Canvas component Feature API on ipcamera real devices
111  */
112 #define FEATURE_COMPONENT_CANVAS 1
113 
114 #define FEATURE_LOCALIZATION_MODULE 1
115 
116 #ifndef FEATURE_COMPONENT_QRCODE
117 #define FEATURE_COMPONENT_QRCODE 1
118 #endif
119 
120 #ifdef FEATURE_COMPONENT_CAMERA
121 #error "must keep the global configuration unique"
122 #else
123 #ifdef ACE_ENGINE_LITE_CAMERA_LITE_ENABLE
124 #define FEATURE_COMPONENT_CAMERA 1
125 #endif
126 #endif
127 
128 #ifdef FEATURE_COMPONENT_EDITTEXT
129 #error "must keep the global configuration unique"
130 #else
131 #define FEATURE_COMPONENT_EDITTEXT 1
132 #endif
133 
134 #ifdef FEATURE_COMPONENT_VIDEO
135 #error "must keep the global configuration unique"
136 #else
137 #ifdef ACE_ENGINE_LITE_MEDIA_LITE_ENABLE
138 #define FEATURE_COMPONENT_VIDEO 1
139 #endif
140 #endif
141 
142 #define FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 1
143 
144 #ifdef FEATURE_MODULE_DIALOG
145 #error "must keep the global configuration unique"
146 #else
147 #define FEATURE_MODULE_DIALOG 1
148 #endif
149 
150 #define FEATURE_MODULE_OHOS_HILOG 1
151 
152 /**
153  * device attest component
154  */
155 #ifdef FEATURE_COMPONENT_DEVICE_ATTEST
156 #error "must keep the global configuration unique"
157 #else
158 #define FEATURE_COMPONENT_DEVICE_ATTEST 1
159 #endif
160 
161 #define DEFAULT_PROFILER_MSG_PATH "/user/data/"
162 
163 #define PROFILER_ENABLE_FLAG_FILE "/user/data/profiler_enable"
164 
165 #define RUNTIME_MODE_FILE_PATH "/user/data/js_snapshot_enable"
166 
167 #endif // OHOS_ACELITE_CONFIG_H
168 
169