提交 0b9b12ad 编写于 作者: Y yangming_ha

issue:#I3QEMV, add version info

Signed-off-by: Nyangming_ha <yangming_ha@163.com>
上级 d77046c1
......@@ -12,6 +12,11 @@
# limitations under the License.
import("//build/lite/ndk/ndk.gni")
# write version info.
version_info = [ "VERSION=\"$ohos_version\"",
"BUILD_TIME=\"$ohos_build_datetime\""]
write_file("$root_build_dir/etc/version-info", version_info)
group("ohos") {
deps = []
if (ohos_build_target == "") {
......
......@@ -13,6 +13,15 @@
# Description: Define the global variables for all components
declare_args() {
# OHOS version
name = "OpenHarmony"
major = "2"
minor = "2"
revision = "beta"
ohos_version = "$name $major.$minor $revision"
ohos_build_time = ""
ohos_build_datetime = ""
product = ""
device_path = ""
product_path = ""
......@@ -52,9 +61,6 @@ declare_args() {
if (product_path != "") {
product_config = read_file("${product_path}/config.json", "json")
# OHOS version
ohos_version = product_config.ohos_version
# Board selected by product.
board_name = product_config.board
device_company = product_config.device_company
......@@ -68,7 +74,6 @@ if (product_path != "") {
}
ohos_build_user = "jenkins"
ohos_build_host = host_os
ohos_build_time = exec_script("//build/lite/gn_scripts.py", [ "-t" ], "value")
ohos_build_roothash = ""
ohos_root_path = rebase_path("//")
ohos_lite = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册