security_asset/BUILD.gn
authName 0b81114c53 change build gn
Change-Id: I59be3c86ed1d593440de94d2e557a554729251d4

Match-id-73d35c28b050cb7aef6dac9f32725b391f43446a
2023-10-12 14:16:02 +08:00

44 lines
1.5 KiB
Plaintext
Executable File

# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
COMPONENT_DIR = "//base/security/asset"
group("asset_component") {
deps = [
"$COMPONENT_DIR/interfaces/inner_api/rs:asset_sdk",
"$COMPONENT_DIR/interfaces/kits/c:asset_ndk",
"$COMPONENT_DIR/sa_profile:asset_sa_profiles",
"$COMPONENT_DIR/services/core_service:asset_service",
"$COMPONENT_DIR/services/crypto_manager:crypto_manager",
"$COMPONENT_DIR/services/db_operator:db_operator",
]
if (support_jsapi) {
deps += [ "//$COMPONENT_DIR/frameworks/js/napi:asset_napi" ]
}
}
# need set different name from asset_test for building script limit
group("asset_bin_test") {
testonly = true
deps = [
"$COMPONENT_DIR/services/crypto_manager:crypto_manager_test",
"$COMPONENT_DIR/services/db_operator:db_operator_test",
"$COMPONENT_DIR/test/unittest/inner_api_c:asset_c_api_test",
"$COMPONENT_DIR/test/unittest/inner_api_rust:asset_rust_test",
"$COMPONENT_DIR/test/unittest/kits_ndk:asset_c_ndk_test",
]
}