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 #define FEATURE_MODULE_BATTERY 1 91 #endif 92 93 /** 94 * support device API for JS 95 */ 96 #ifndef FEATURE_MODULE_DEVICE 97 #define FEATURE_MODULE_DEVICE 1 98 #endif 99 100 /** 101 * syscap module 102 */ 103 #ifndef FEATURE_SYSCAP_MODULE 104 #define FEATURE_SYSCAP_MODULE 1 105 #endif 106 107 /** 108 * timer module 109 */ 110 #ifndef FEATURE_TIMER_MODULE 111 #define FEATURE_TIMER_MODULE 1 112 #endif 113 114 /** 115 * date time module 116 */ 117 #ifndef FEATURE_DATE_FORMAT 118 #define FEATURE_DATE_FORMAT 1 119 #endif 120 121 #ifndef FEATURE_API_VERSION 122 #define FEATURE_API_VERSION 1 123 #endif 124 125 /** 126 * support lite ace dfx module 127 */ 128 #ifndef FEATURE_ACELITE_DFX_MODULE 129 #define FEATURE_ACELITE_DFX_MODULE 1 130 #endif 131 132 #ifndef FEATURE_ACELITE_LITE_DFX_MODULE 133 #define FEATURE_ACELITE_LITE_DFX_MODULE 1 134 #endif 135 136 /** 137 * enable Canvas component Feature API on ipcamera real devices 138 */ 139 #ifndef FEATURE_COMPONENT_CANVAS 140 #define FEATURE_COMPONENT_CANVAS 1 141 #endif 142 143 #ifndef FEATURE_LOCALIZATION_MODULE 144 #define FEATURE_LOCALIZATION_MODULE 1 145 #endif 146 147 #ifndef FEATURE_COMPONENT_CAMERA 148 #define FEATURE_COMPONENT_CAMERA 1 149 #endif 150 151 /** 152 * enable edittext component Feature 153 */ 154 #ifndef FEATURE_COMPONENT_EDITTEXT 155 #define FEATURE_COMPONENT_EDITTEXT 1 156 #endif 157 158 #ifndef FEATURE_COMPONENT_QRCODE 159 #define FEATURE_COMPONENT_QRCODE 1 160 #endif 161 162 #ifndef FEATURE_COMPONENT_VIDEO 163 #define FEATURE_COMPONENT_VIDEO 1 164 #endif 165 166 #ifndef FEATURE_MODULE_DIALOG 167 #define FEATURE_MODULE_DIALOG 1 168 #endif 169 170 /** 171 * support intl module 172 */ 173 #ifndef FEATURE_INTL_MODULE 174 #define FEATURE_INTL_MODULE 1 175 #endif 176 177 /** 178 * supoort number format module 179 */ 180 #ifndef FEATURE_NUMBER_FORMAT 181 #define FEATURE_NUMBER_FORMAT 1 182 #endif 183 184 #ifndef FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 185 #define FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 1 186 #endif 187 188 /** 189 * device attest component 190 */ 191 #ifdef FEATURE_COMPONENT_DEVICE_ATTEST 192 #error "must keep the global configuration unique" 193 #else 194 #define FEATURE_COMPONENT_DEVICE_ATTEST 1 195 #endif 196 197 #ifndef DEFAULT_PROFILER_MSG_PATH 198 #define DEFAULT_PROFILER_MSG_PATH "/storage/user/data/" 199 #endif 200 201 #ifndef PROFILER_ENABLE_FLAG_FILE 202 #define PROFILER_ENABLE_FLAG_FILE "/storage/user/data/profiler_enable" 203 #endif 204 205 #ifndef RUNTIME_MODE_FILE_PATH 206 #define RUNTIME_MODE_FILE_PATH "/storage/user/data/js_snapshot_enable" 207 #endif 208 209 #ifndef FEATURE_SUPPORT_HTTP 210 #define FEATURE_SUPPORT_HTTP 1 211 #endif 212 213 /** 214 * switch for hilog module 215 */ 216 #ifndef FEATURE_MODULE_OHOS_HILOG 217 #define FEATURE_MODULE_OHOS_HILOG 1 218 #endif 219 220 #endif // OHOS_ACELITE_CONFIG_H 221