• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 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  *                 liteos_a config for hmf
22  * ================================================================================================
23  */
24 #define OHOS_ACELITE_LITEOS_A // NOTE: DO NOT use this macro directly
25 
26 /**
27  * Compile all test entry for hmf
28  */
29 #ifdef FEATURE_TEST_IMPLEMENTATION
30 #error "must keep the global configuration unique"
31 #else
32 #define FEATURE_TEST_IMPLEMENTATION 1
33 #endif
34 
35 /**
36  * use hi log interface to trace out
37  */
38 #ifdef FEATURE_ACELITE_HI_LOG_PRINTF
39 #error "must keep the global configuration unique"
40 #else
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 #ifdef FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR
48 #error "must keep the global configuration unique"
49 #else
50 #define FEATURE_ROOTVIEW_CUSTOM_BACKGROUND_COLOR 1
51 #endif
52 
53 /**
54  * js system capabillity switch
55  */
56 #ifdef FEATURE_ACELITE_SYSTEM_CAPABILITY
57 #error "must keep the system capability unique"
58 #else
59 #define FEATURE_ACELITE_SYSTEM_CAPABILITY 1
60 #endif
61 
62 /**
63  * js profiler switch
64  */
65 #ifdef FEATURE_ACELITE_JS_PROFILER
66 #error "must keep the global configuration unique"
67 #else
68 #define FEATURE_ACELITE_JS_PROFILER 1
69 #endif
70 
71 /**
72  * support audio API for JS
73  */
74 #define FEATURE_MODULE_AUDIO 1
75 
76 /**
77  * switch for cipher module
78  */
79 #define ENABLE_MODULE_CIPHER 1
80 
81 /**
82  * support storage and file API for JS
83  */
84 #define FEATURE_MODULE_STORAGE 1
85 
86 /**
87  * support battery API for JS
88  */
89 #define FEATURE_MODULE_BATTERY 1
90 
91 /**
92  * support device API for JS
93  */
94 #define FEATURE_MODULE_DEVICE 1
95 /**
96  * timer module
97  */
98 #define FEATURE_TIMER_MODULE 1
99 
100 /**
101  * date time module
102  */
103 #define FEATURE_DATE_FORMAT 1
104 
105 #define FEATURE_API_VERSION 1
106 
107 /**
108  * support lite ace dfx module
109  */
110 #define FEATURE_ACELITE_DFX_MODULE 1
111 
112 #define FEATURE_ACELITE_LITE_DFX_MODULE 1
113 
114 /**
115  * enable Canvas component Feature API on ipcamera real devices
116  */
117 #define FEATURE_COMPONENT_CANVAS 1
118 
119 #define FEATURE_LOCALIZATION_MODULE 1
120 
121 #ifdef FEATURE_COMPONENT_CAMERA
122 #error "must keep the global configuration unique"
123 #else
124 #define FEATURE_COMPONENT_CAMERA 1
125 #endif
126 
127 #if (FEATURE_COMPONENT_QRCODE == 1)
128 #error "must keep the global configuration unique"
129 #else
130 #define FEATURE_COMPONENT_QRCODE 1
131 #endif
132 
133 #ifdef FEATURE_COMPONENT_VIDEO
134 #error "must keep the global configuration unique"
135 #else
136 #define FEATURE_COMPONENT_VIDEO 1
137 #endif
138 
139 #ifdef FEATURE_MODULE_DIALOG
140 #error "must keep the global configuration unique"
141 #else
142 #define FEATURE_MODULE_DIALOG 1
143 #endif
144 
145 /**
146  * support intl module
147  */
148 #define FEATURE_INTL_MODULE 1
149 
150 /**
151  * supoort number format module
152  */
153 #define FEATURE_NUMBER_FORMAT 1
154 
155 #define FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 1
156 
157 #define DEFAULT_PROFILER_MSG_PATH "/storage/user/data/"
158 
159 #define PROFILER_ENABLE_FLAG_FILE "/storage/user/data/profiler_enable"
160 
161 #define RUNTIME_MODE_FILE_PATH "/storage/user/data/js_snapshot_enable"
162 
163 #define FEATURE_SUPPORT_HTTP 1
164 
165 #endif // OHOS_ACELITE_CONFIG_H
166