From 587a61a346b69c70db2bf7d3b7029eebb2f83abe Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Tue, 24 May 2022 18:14:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0SDK=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- BUILD.gn | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 9712f0e..d38864f 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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" +}