1# Copyright (c) 2020 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/lite/ndk/ndk.gni") 15 16declare_args() { 17 utils_lite_feature_file = false 18 utils_lite_feature_kal_timer = false 19 utils_lite_feature_timer_task = false 20 utils_lite_feature_js_builtin = false 21} 22 23group("utils") { 24 deps = [] 25 if (ohos_kernel_type == "liteos_m") { 26 deps += [ "file:file" ] 27 } 28} 29 30ndk_lib("native_api") { 31 if (ohos_kernel_type != "liteos_m") { 32 lib_extension = ".so" 33 } 34 deps = [] 35 head_files = [ "//commonlibrary/utils_lite/include/utils_config.h" ] 36 if (ohos_kernel_type == "liteos_m") { 37 deps += [ "file:native_file" ] 38 head_files += [ "//commonlibrary/utils_lite/include/utils_file.h" ] 39 } 40} 41 42group("utils_lite") { 43 deps = [] 44 45 if (utils_lite_feature_file) { 46 deps += [ "//commonlibrary/utils_lite/file:file" ] 47 } 48 49 if (utils_lite_feature_kal_timer) { 50 deps += [ "//commonlibrary/utils_lite/kal/timer:kal_timer" ] 51 } 52 53 if (utils_lite_feature_timer_task) { 54 deps += [ "//commonlibrary/utils_lite/timer_task:ace_kit_timer" ] 55 } 56 57 if (utils_lite_feature_js_builtin) { 58 deps += [ "//commonlibrary/utils_lite/js/builtin:ace_utils_kits" ] 59 } 60} 61