Generate module info in the ninja phase

Signed-off-by: lijunru <lijunru6@huawei.com>
Change-Id: I3e365e2477e9172de0d597af1ee8e1c6c5938d12
This commit is contained in:
lijunru 2022-11-07 17:06:46 +08:00
parent dfbf137c15
commit 7a65499324

View File

@ -65,6 +65,7 @@ if (!sdk_build_public) {
template("ohos_declaration_template") {
forward_variables_from(invoker, "*")
_module_info_target = "/ohos_declaration/${target_name}_info"
action_with_pydeps(target_name) {
script = "//interface/sdk-js/remove_internal.py"
input_api_dir = "//interface/sdk-js/api"
@ -80,8 +81,12 @@ template("ohos_declaration_template") {
rebase_path(root_out_dir + "/ohos_declaration/$target_name/",
root_build_dir),
]
if (defined(deps)) {
deps += [ ":$_module_info_target" ]
} else {
deps = [ ":$_module_info_target" ]
}
}
_module_info_target = "/ohos_declaration/${target_name}_info"
_target_name = target_name
generate_module_info(_module_info_target) {
module_type = "jsdoc"