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) { 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 group("images") { 50 deps = [ "//build/ohos/images:make_images" ] 51 } 52 53 group("packages") { 54 deps = [ "//build/ohos/packages:make_packages" ] 55 } 56 57 group("make_inner_kits") { 58 deps = [ "$root_build_dir/build_configs:inner_kits" ] 59 } 60 61 group("build_all_test_pkg") { 62 testonly = true 63 deps = [ 64 "$root_build_dir/build_configs:parts_test", 65 "//test/testfwk/developer_test:make_temp_test", 66 ] 67 } 68 69 group("make_test") { 70 testonly = true 71 deps = [ 72 "//build/ohos/packages:build_all_test_pkg", 73 "//build/ohos/packages:package_testcase", 74 "//build/ohos/packages:package_testcase_mlf", 75 ] 76 if (archive_component) { 77 deps += [ "//build/ohos/testfwk:archive_testcase" ] 78 } 79 } 80} 81