提交 5dc54a8a 编写于 作者: Y yangming_ha

split product target from ohos

Signed-off-by: Nyangming_ha <yangming_ha@163.com>
上级 c96b7e15
...@@ -80,7 +80,8 @@ group("ohos") { ...@@ -80,7 +80,8 @@ group("ohos") {
# Step 6.1.2: Add valid component for compiling. # Step 6.1.2: Add valid component for compiling.
# Skip kernel target for userspace only scenario. # Skip kernel target for userspace only scenario.
if (!ohos_build_userspace_only || if (!ohos_build_userspace_only ||
(ohos_build_userspace_only && subsystem_name != "kernel" && subsystem_name != "vendor")) { (ohos_build_userspace_only && subsystem_name != "kernel" &&
subsystem_name != "vendor")) {
foreach(component_target, component.targets) { foreach(component_target, component.targets) {
deps += [ component_target ] deps += [ component_target ]
} }
...@@ -89,21 +90,26 @@ group("ohos") { ...@@ -89,21 +90,26 @@ group("ohos") {
} }
} }
} }
# Skip device target for userspace only scenario. # Skip device target for userspace only scenario.
if (!ohos_build_userspace_only) { if (!ohos_build_userspace_only) {
# Step 7: Add device and product target by default. # Step 7: Add device and product target by default.
deps += [ deps += [ "${device_path}/../" ]
"${device_path}/../"
]
} }
deps += [
"${product_path}"
]
} else { } else {
deps += string_split(ohos_build_target, "&&") deps += string_split(ohos_build_target, "&&")
} }
} }
group("product") {
deps = []
# build product, skip build single component scenario.
if (ohos_build_target == "") {
deps += [ "${product_path}" ]
}
}
group("ndk") { group("ndk") {
# Add native API targets. # Add native API targets.
deps = [] deps = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册