加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ohos_var.gni 5.04 KB
一键复制 编辑 原始数据 按行查看 历史
weichaox 提交于 2021-09-07 20:59 . update preloader
# Copyright (c) 2021 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/version.gni")
declare_args() {
# build ohos version
build_public_version = true
}
declare_args() {
# build system type
is_mini_system = false
is_small_system = false
is_standard_system = false
}
if (is_mini_system) {
os_level = "mini"
}
if (is_small_system) {
os_level = "small"
}
if (is_standard_system) {
os_level = "standard"
}
declare_args() {
is_large_system = !(is_standard_system || is_small_system || is_mini_system)
}
declare_args() {
enable_java = is_large_system
}
declare_args() {
build_version_alpha = true
}
declare_args() {
# Whether build the qemu images, this image is usd to run on emulator device.
build_qemu_image = false
# system package dir
system_base_dir = "system"
# ramdisk package dir
ramdisk_base_dir = "ramdisk"
# vendor package dir
vendor_base_dir = "vendor"
# updater package dir
updater_base_dir = "updater"
# check sdk interface
sdk_interface_check = true
# is use sdk
is_use_sdk = false
# build test example
build_example = false
# check intersdk interface
check_innersdk_interface = true
gen_innersdk_interface_signature = false
# sdk check
check_sdk_interface = true
gen_sdk_interface_signature = false
# Whether to collect the ebpf testcase.
ebpf_enable = false
# Info files of test targets will remove source file paths when setting true.
release_test_suite = false
# Whether to enable scalable build.
scalable_build = false
# Whether to enable pycache or not.
pycache_enable = true
# Whether to build js bundle to ark bytecode
build_ark = false
}
declare_args() {
build_platform = ""
sparse_image = false
}
declare_args() {
system_kits_package = false
kits_api_statistics = false
# ohos sdk
build_ohos_sdk = false
# Build ohos sdk compatibility jar
build_bc_sdk = false
}
declare_args() {
# Build ohos NDK
build_ohos_ndk = false
# Which OS the generated NDK works on. possible values: 'win/mac/linux/default'
ndk_system = "default"
# Whether to archive or not, set to false in debug to save ndk build time.
archive_ndk = true
# Check ndk header signature, set false to generate header signature
check_ndk_signature = false
}
declare_args() {
archive_component = false
}
declare_args() {
build_xts = false
}
declare_args() {
build_asan_clean = false
}
declare_args() {
check_deps = false
}
declare_args() {
build_selinux = false
}
# build target type
target_type = "${target_os}-${target_cpu}"
parts_src_flag_file = "$root_build_dir/build_configs/parts_src_flag.json"
innersdk_dir_name = "sdk/${target_type}"
innersdk_base_dir = "//${innersdk_dir_name}"
# Compile and generate output directory
innersdk_build_out_dir = "innerkits/${target_type}"
dist_dir_name = "component_dist/${target_type}"
dist_build_out_dir = "${root_build_dir}/component_dist/${target_type}"
dist_subsystem_info_filename = "dist_parts_info.json"
# install packages archive dir define
dist_install_packages_dir = "${dist_dir_name}/packages_to_install"
dist_subsystem_info_file =
"//${dist_install_packages_dir}/${dist_subsystem_info_filename}"
dist_build_install_packages_dir = "${dist_build_out_dir}/packages_to_install"
dist_subsystem_info_output_file =
"${dist_build_install_packages_dir}/${dist_subsystem_info_filename}"
ramdisk_dir_list = []
app_target_allowlist = [
"*:*_res",
"*:*_resources",
"*:*_resource",
"*:*_assets",
"*:*_asset",
]
app_target_types = [
"hap",
"resources",
"js_assets",
"assets",
]
restool = "//prebuilts/build-tools/common/restool/restool"
hapsigner = "//prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar"
hap_unpacking_tool =
"//developtools/packing_tool/jar/hmos_app_unpacking_tool.jar"
hap_packing_tool = "//developtools/packing_tool/jar/hmos_app_packing_tool.jar"
ace_loader_home = "//prebuilts/sdk/js-loader/build-tools/ace-loader"
nodejs_version = "v12.18.4"
nodejs = "//prebuilts/build-tools/common/nodejs/node-${nodejs_version}-${host_os}-x64/bin/node"
ace_loader_home = "//prebuilts/sdk/js-loader/build-tools/ace-loader/"
webpack_js = "${ace_loader_home}/node_modules/webpack/bin/webpack.js"
webpack_config_js = "${ace_loader_home}/webpack.rich.config.js"
default_hap_private_key_path = "OpenHarmony Application Release"
default_signature_algorithm = "SHA256withECDSA"
default_key_alias = "123456"
default_keystore_password = "123456"
default_keystore_path = "//prebuilts/signcenter/key/OpenHarmony.p12"
default_hap_certificate_file =
"//prebuilts/signcenter/certificates/OpenHarmonyApplication.pem"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化