mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 17:31:12 +00:00
Generate module info in the ninja phase
Signed-off-by: lijunru <lijunru6@huawei.com> Change-Id: I3e365e2477e9172de0d597af1ee8e1c6c5938d12
This commit is contained in:
parent
dfbf137c15
commit
7a65499324
7
BUILD.gn
7
BUILD.gn
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user