1# Copyright (c) 2022 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/ohos.gni") 15 16service_dslm_sources = [ 17 "dslm_core_process.c", 18 "dslm_credential.c", 19 "dslm_device_list.c", 20 "dslm_dfx_default.c", 21 "dslm_fsm_process.c", 22 "dslm_hievent.c", 23 "dslm_inner_process.c", 24 "dslm_msg_utils.c", 25] 26 27service_dslm_include_dirs = [ 28 "//base/security/device_security_level/common/include", 29 "//base/security/device_security_level/interfaces/inner_api/include", 30 "//base/security/device_security_level/services/include", 31] 32 33# service_dslm object 34ohos_source_set("service_dslm_obj") { 35 sources = service_dslm_sources 36 include_dirs = service_dslm_include_dirs 37 deps = [ "//base/security/device_security_level/baselib/utils:utils_static" ] 38 external_deps = [ 39 "c_utils:utils", 40 "hilog_native:libhilog", 41 ] 42 defines = [ 43 "MAX_SEND_TIMES=5", 44 "SEND_MSG_TIMEOUT_LEN=40000", 45 ] 46 47 configs = [ "//base/security/device_security_level/common:common_configs" ] 48 49 part_name = "device_security_level" 50 subsystem_name = "security" 51} 52 53# service_dslm object, only for test 54ohos_source_set("service_dslm_test_obj") { 55 testonly = true 56 sources = service_dslm_sources 57 include_dirs = service_dslm_include_dirs 58 deps = [ "//base/security/device_security_level/baselib/utils:utils_static" ] 59 external_deps = [ 60 "c_utils:utils", 61 "hilog_native:libhilog", 62 ] 63 defines = [ 64 "MAX_SEND_TIMES=5", 65 "SEND_MSG_TIMEOUT_LEN=500", 66 ] 67 68 configs = [ "//base/security/device_security_level/common:common_configs" ] 69 70 part_name = "device_security_level" 71 subsystem_name = "security" 72} 73