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