代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/hiviewdfx_hiview 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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("//base/hiviewdfx/hiview/build/hiview_var.gni")
import("//base/hiviewdfx/hiview/hiview.gni")
import("//build/ohos.gni")
if (!build_public_version) {
oem_script = rebase_path("//base/hiviewdfx/hiview/build/run_oem_hook.py")
print(exec_script(oem_script, [], "string", []))
}
gen_plugin_script =
rebase_path("//base/hiviewdfx/hiview/build/gen_plugin_build.py")
copy_plugin_script =
rebase_path("//base/hiviewdfx/hiview/build/copy_plugin_config.py")
input_build_file =
rebase_path("//base/hiviewdfx/hiview/build/plugin_build.json")
out_plugin_config_file = "${target_gen_dir}/plugin_config"
out_plugin_build_file = "${target_gen_dir}/plugin_build.gni"
out_plugin_config_file_tmp = "${target_gen_dir}/plugin_config_tmp"
if (build_with_config) {
input_build_file = rebase_path(config_path)
}
arguments = [
"--input-file",
input_build_file,
"--plugin-config-file",
rebase_path(out_plugin_config_file_tmp),
"--plugin-build-file",
rebase_path(out_plugin_build_file),
"--target_os",
target_os,
"--double_framework",
"$is_double_framework",
"--target_platform",
target_platform,
"--target_cpu",
target_cpu,
"--plugin_so",
"$plugin_so",
"--plugin_target_platform",
plugin_target_platform,
"--plugin_target_ram",
plugin_target_ram,
"--plugin_target_rom",
plugin_target_rom,
]
result_ = exec_script(gen_plugin_script, arguments, "string")
print(result_)
action("copy_plugin_config") {
script = copy_plugin_script
outputs = [ out_plugin_config_file ]
args = [
"--src-file",
rebase_path(out_plugin_config_file_tmp),
"--dst-file",
rebase_path(out_plugin_config_file),
]
}
import(out_plugin_build_file)
ohos_prebuilt_etc("plugin_config") {
source = out_plugin_config_file
deps = [ ":copy_plugin_config" ]
part_name = "hiview"
subsystem_name = "hiviewdfx"
relative_install_dir = "hiview"
}
config("hiview_plus_config") {
visibility = [ ":*" ]
include_dirs = [ "include" ]
}
ohos_executable("hiview") {
install_enable = true
deps = [
"base:hiviewbase",
"core:hiview_core",
"service:hiview_service",
]
sources = [ "main.cpp" ]
deps += plugin_static_deps
part_name = "hiview"
subsystem_name = "hiviewdfx"
}
group("hiview_package") {
# root of all the hiview dependencies
deps = [
":hiview",
":plugin_config",
]
deps += plugin_dynamic_deps
}
group("hiview_test_package") {
testonly = true
deps = [
"$hiview_adapter:moduletest",
"$hiview_adapter:unittest",
"base/test:unittest",
"core/test:unittest",
"plugins:moduletest",
"plugins:unittest",
"test:moduletest",
"test:unittest",
]
deps += plugin_ut_deps
deps += plugin_mst_deps
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。