1# Copyright (c) 2022-2023 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 16config("iam_log_config") { 17 include_dirs = [ "logs" ] 18} 19 20config("iam_thread_pool_config") { 21 include_dirs = [ "thread_pool" ] 22} 23 24ohos_source_set("iam_thread_pool") { 25 include_dirs = [ 26 "thread_pool", 27 "logs", 28 ] 29 30 sources = [ "thread_pool/thread_groups.cpp" ] 31 32 external_deps = [ 33 "c_utils:utils", 34 "hilog:libhilog", 35 ] 36 37 public_configs = [ ":iam_thread_pool_config" ] 38 39 subsystem_name = "useriam" 40 part_name = "user_auth_framework" 41} 42 43config("iam_utils_config") { 44 include_dirs = [ "utils" ] 45} 46 47ohos_source_set("iam_utils") { 48 include_dirs = [ 49 "utils", 50 "logs", 51 ] 52 53 sources = [ 54 "utils/iam_mem.cpp", 55 "utils/iam_time.cpp", 56 ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "hilog:libhilog", 61 ] 62 63 public_configs = [ 64 ":iam_utils_config", 65 ":iam_log_config", 66 ] 67 68 subsystem_name = "useriam" 69 part_name = "user_auth_framework" 70} 71 72config("iam_test_config") { 73 include_dirs = [ "test" ] 74} 75 76ohos_source_set("iam_test") { 77 testonly = true 78 include_dirs = [ "logs" ] 79 80 external_deps = [ 81 "c_utils:utils", 82 "hilog:libhilog", 83 ] 84 85 public_configs = [ ":iam_test_config" ] 86 87 sources = [ "test/iam_fuzz_test.cpp" ] 88 89 subsystem_name = "useriam" 90 part_name = "user_auth_framework" 91} 92