1# Copyright (c) 2021-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 14print("root_out_dir=$root_out_dir") 15print("root_build_dir=$root_build_dir") 16print("root_gen_dir=$root_gen_dir") 17print("current_toolchain=$current_toolchain") 18print("host_toolchain=$host_toolchain") 19 20import("//build/ohos_var.gni") 21 22# gn target defined 23if (product_name == "ohos-sdk") { 24 group("build_ohos_sdk") { 25 deps = [ 26 "//build/ohos/ndk:ohos_ndk", 27 "//build/ohos/sdk:ohos_sdk", 28 "//build/ohos/sdk:ohos_sdk_verify", 29 ] 30 } 31} else if (product_name == "arkui-x") { 32 group("arkui_targets") { 33 deps = [ "//build_plugins/sdk:arkui_cross_sdk" ] 34 } 35} else { 36 group("make_all") { 37 deps = [ 38 ":make_inner_kits", 39 ":packages", 40 ] 41 if (is_standard_system && !is_llvm_build) { 42 # Lite system uses different packaging scheme, which is called in hb. 43 # So skip images for lite system since it's the mkimage 44 # action for standard system. 45 deps += [ ":images" ] 46 } 47 } 48 49 if (!is_llvm_build) { 50 group("images") { 51 deps = [ "//build/ohos/images:make_images" ] 52 } 53 } 54 55 group("packages") { 56 deps = [ "//build/ohos/packages:make_packages" ] 57 } 58 59 group("make_inner_kits") { 60 deps = [ "$root_build_dir/build_configs:inner_kits" ] 61 } 62 63 group("build_all_test_pkg") { 64 testonly = true 65 if (!is_llvm_build) { 66 deps = [ 67 "$root_build_dir/build_configs:parts_test", 68 "//test/testfwk/developer_test:make_temp_test", 69 ] 70 } 71 } 72 73 group("make_test") { 74 testonly = true 75 deps = [ 76 "//build/ohos/packages:build_all_test_pkg", 77 "//build/ohos/packages:package_testcase", 78 "//build/ohos/packages:package_testcase_mlf", 79 ] 80 if (archive_component) { 81 deps += [ "//build/ohos/testfwk:archive_testcase" ] 82 } 83 } 84} 85