1#
2# Copyright (c) 2020 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16action("doc") {
17  deps = [ "//build/lite/ndk:ndk_build" ]
18  script = "//build/lite/ndk/doc/gen_doc.py"
19  depfile = "${target_gen_dir}/${target_name}.d"
20
21  exclude_dir = "*/gcc/* \ */arm-liteos-ohos/*"
22  doxygen_file = "//build/lite/ndk/doc/config/Doxyfile_C"
23
24  args = [
25    "--exclude_dir",
26    exclude_dir,
27    "--working-dir",
28    rebase_path("$root_build_dir/ndk"),
29    "--version",
30    ohos_version,
31    "--output",
32    rebase_path("$root_build_dir/ndk/doc"),
33    "--doxygen-file",
34    rebase_path(doxygen_file, root_build_dir),
35  ]
36  outputs = [ "$root_build_dir/ndk/doc/index.html" ]
37}
38