15f9996aaSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
25f9996aaSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35f9996aaSopenharmony_ci# you may not use this file except in compliance with the License.
45f9996aaSopenharmony_ci# You may obtain a copy of the License at
55f9996aaSopenharmony_ci#
65f9996aaSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75f9996aaSopenharmony_ci#
85f9996aaSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95f9996aaSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105f9996aaSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115f9996aaSopenharmony_ci# See the License for the specific language governing permissions and
125f9996aaSopenharmony_ci# limitations under the License.
135f9996aaSopenharmony_ci
145f9996aaSopenharmony_ciimport("//build/config/sanitizers/sanitizers.gni")
155f9996aaSopenharmony_ciimport("//build/ohos/ndk/ndk.gni")
165f9996aaSopenharmony_ciimport("//build/ohos/notice/notice.gni")
175f9996aaSopenharmony_ciimport("//build/ohos/sa_profile/sa_profile.gni")
185f9996aaSopenharmony_ciimport("//build/ohos_var.gni")
195f9996aaSopenharmony_ciimport("//build/toolchain/toolchain.gni")
205f9996aaSopenharmony_ci
215f9996aaSopenharmony_ci# import cxx base templates
225f9996aaSopenharmony_ciimport("//build/templates/cxx/cxx.gni")
235f9996aaSopenharmony_ciif (support_jsapi) {
245f9996aaSopenharmony_ci  import("//build/ohos/ace/ace.gni")
255f9996aaSopenharmony_ci  import("//build/ohos/app/app.gni")
265f9996aaSopenharmony_ci}
275f9996aaSopenharmony_ci
285f9996aaSopenharmony_ciimport("//build/templates/common/ohos_templates.gni")
295f9996aaSopenharmony_ci
305f9996aaSopenharmony_ci# import prebuilt templates
315f9996aaSopenharmony_ciimport("//build/templates/cxx/prebuilt.gni")
325f9996aaSopenharmony_ciif (is_arkui_x) {
335f9996aaSopenharmony_ci  import("//build_plugins/templates/java/rules.gni")
345f9996aaSopenharmony_ci} else {
355f9996aaSopenharmony_ci  import("//build/templates/bpf/ohos_bpf.gni")
365f9996aaSopenharmony_ci  import("//build/templates/rust/ohos_cargo_crate.gni")
375f9996aaSopenharmony_ci  import("//build/templates/rust/rust_bindgen.gni")
385f9996aaSopenharmony_ci  import("//build/templates/rust/rust_cxx.gni")
395f9996aaSopenharmony_ci  import("//build/templates/rust/rust_template.gni")
405f9996aaSopenharmony_ci}
415f9996aaSopenharmony_ci
425f9996aaSopenharmony_ciimport("//build/templates/idl/ohos_idl.gni")
43