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 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_native:libhilog", 35 ] 36 37 public_configs = [ ":iam_thread_pool_config" ] 38 39 part_name = "user_auth_framework" 40} 41 42config("iam_utils_config") { 43 include_dirs = [ "utils" ] 44} 45 46ohos_source_set("iam_utils") { 47 include_dirs = [ 48 "utils", 49 "logs", 50 ] 51 52 sources = [ 53 "utils/iam_mem.cpp", 54 "utils/iam_time.cpp", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "hilog_native:libhilog", 60 ] 61 62 public_configs = [ 63 ":iam_utils_config", 64 ":iam_log_config", 65 ] 66 67 part_name = "user_auth_framework" 68} 69 70config("iam_test_config") { 71 include_dirs = [ "test" ] 72} 73 74ohos_source_set("iam_test") { 75 testonly = true 76 include_dirs = [ "//base/useriam/user_auth_framework/common/logs" ] 77 78 external_deps = [ 79 "c_utils:utils", 80 "hilog_native:libhilog", 81 ] 82 83 public_configs = [ ":iam_test_config" ] 84 85 sources = [ "test/iam_fuzz_test.cpp" ] 86 part_name = "user_auth_framework" 87} 88