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 #define FEATURE_COMPONENT_CAMERA 1 124 #endif 125 126 #ifdef FEATURE_COMPONENT_EDITTEXT 127 #error "must keep the global configuration unique" 128 #else 129 #define FEATURE_COMPONENT_EDITTEXT 1 130 #endif 131 132 #ifdef FEATURE_COMPONENT_VIDEO 133 #error "must keep the global configuration unique" 134 #else 135 #define FEATURE_COMPONENT_VIDEO 1 136 #endif 137 138 #define FEATURE_UPDATE_VIDEO_PROGRESS_ASYNC 1 139 140 #ifdef FEATURE_MODULE_DIALOG 141 #error "must keep the global configuration unique" 142 #else 143 #define FEATURE_MODULE_DIALOG 1 144 #endif 145 146 #define FEATURE_MODULE_OHOS_HILOG 1 147 148 /** 149 * device attest component 150 */ 151 #ifdef FEATURE_COMPONENT_DEVICE_ATTEST 152 #error "must keep the global configuration unique" 153 #else 154 #define FEATURE_COMPONENT_DEVICE_ATTEST 1 155 #endif 156 157 #define DEFAULT_PROFILER_MSG_PATH "/user/data/" 158 159 #define PROFILER_ENABLE_FLAG_FILE "/user/data/profiler_enable" 160 161 #define RUNTIME_MODE_FILE_PATH "/user/data/js_snapshot_enable" 162 163 #endif // OHOS_ACELITE_CONFIG_H 164 165