15f9996aaSopenharmony_ci#
25f9996aaSopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd.
35f9996aaSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
45f9996aaSopenharmony_ci# you may not use this file except in compliance with the License.
55f9996aaSopenharmony_ci# You may obtain a copy of the License at
65f9996aaSopenharmony_ci#
75f9996aaSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
85f9996aaSopenharmony_ci#
95f9996aaSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
105f9996aaSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
115f9996aaSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
125f9996aaSopenharmony_ci# See the License for the specific language governing permissions and
135f9996aaSopenharmony_ci# limitations under the License.
145f9996aaSopenharmony_ci#
155f9996aaSopenharmony_ci
165f9996aaSopenharmony_ciaction("doc") {
175f9996aaSopenharmony_ci  deps = [ "//build/lite/ndk:ndk_build" ]
185f9996aaSopenharmony_ci  script = "//build/lite/ndk/doc/gen_doc.py"
195f9996aaSopenharmony_ci  depfile = "${target_gen_dir}/${target_name}.d"
205f9996aaSopenharmony_ci
215f9996aaSopenharmony_ci  exclude_dir = "*/gcc/* \ */arm-liteos-ohos/*"
225f9996aaSopenharmony_ci  doxygen_file = "//build/lite/ndk/doc/config/Doxyfile_C"
235f9996aaSopenharmony_ci
245f9996aaSopenharmony_ci  args = [
255f9996aaSopenharmony_ci    "--exclude_dir",
265f9996aaSopenharmony_ci    exclude_dir,
275f9996aaSopenharmony_ci    "--working-dir",
285f9996aaSopenharmony_ci    rebase_path("$root_build_dir/ndk"),
295f9996aaSopenharmony_ci    "--version",
305f9996aaSopenharmony_ci    ohos_version,
315f9996aaSopenharmony_ci    "--output",
325f9996aaSopenharmony_ci    rebase_path("$root_build_dir/ndk/doc"),
335f9996aaSopenharmony_ci    "--doxygen-file",
345f9996aaSopenharmony_ci    rebase_path(doxygen_file, root_build_dir),
355f9996aaSopenharmony_ci  ]
365f9996aaSopenharmony_ci  outputs = [ "$root_build_dir/ndk/doc/index.html" ]
375f9996aaSopenharmony_ci}
38