1 /* 2 * Copyright (c) 2020 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 * the default config for hmf 22 * ================================================================================================ 23 */ 24 #define OHOS_ACELITE_HMF // 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 * support hi log module trace 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 * support memory pool module 46 */ 47 #ifdef FEATURE_ACELITE_MEMORY_POOL 48 #error "must keep the global configuration unique" 49 #else 50 #define FEATURE_ACELITE_MEMORY_POOL 1 51 #endif 52 53 ////////////////////////////////////////////////////////////////////////////////////////////////// 54 // // 55 // Component support configurations // 56 // // 57 ////////////////////////////////////////////////////////////////////////////////////////////////// 58 59 /** 60 * analog clock component 61 */ 62 #ifdef FEATURE_COMPONENT_ANALOG_CLOCK 63 #error "must keep the global configuration unique" 64 #else 65 #define FEATURE_COMPONENT_ANALOG_CLOCK 1 66 #endif 67 68 /** 69 * tabs component 70 */ 71 #ifdef FEATURE_COMPONENT_TABS 72 #error "must keep the global configuration unique" 73 #else 74 #define FEATURE_COMPONENT_TABS 1 75 #endif 76 77 /** 78 * define the max length of user's console log 79 */ 80 #ifndef CONSOLE_LOG_LINE_MAX_LENGTH 81 #define CONSOLE_LOG_LINE_MAX_LENGTH (256) 82 #endif 83 84 #define DEFAULT_PROFILER_MSG_PATH "user/log/" 85 86 #define PROFILER_ENABLE_FLAG_FILE "user/data/profiler_enable" 87 88 #define RUNTIME_MODE_FILE_PATH "user/data/jsparser_enable" 89 90 #endif // OHOS_ACELITE_CONFIG_H 91