添加SDK编译脚本

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-05-24 18:14:03 +08:00
parent 809f3bba43
commit 587a61a346
+20
View File
@@ -85,3 +85,23 @@ ohos_executable("restool") {
ohos_unittest_py("restool_test") {
sources = [ "test/test.py" ]
}
ID_DEFINED_PATH =
"//utils/resources/systemres/main/resources/base/element/id_defined.json"
ohos_copy("restool_id_defined") {
sources = [ "${ID_DEFINED_PATH}" ]
outputs =
[ get_label_info(
"//developtools/global_resource_tool:restool($host_toolchain)",
"root_out_dir") + "/developtools/global_restool/" ]
deps = [ "//developtools/global_resource_tool:restool($host_toolchain)" ]
subsystem_name = "developtools"
part_name = "global_restool"
}
ohos_prebuilt_etc("restool_systemres") {
source = "${ID_DEFINED_PATH}"
subsystem_name = "developtools"
part_name = "global_restool"
}