• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14# ndk library, ndk header configuration
15_ndk_library_targets = [
16  "//third_party/zlib:libz_ndk",
17  "//third_party/zlib:zlib_header",
18  "//base/global/resmgr_standard/interfaces/native/resource:librawfile_ndk",
19  "//base/global/resmgr_standard/interfaces/native/resource:rawfile_header",
20  "//base/hiviewdfx/hiappevent/interfaces/native/kits:libhiappevent_header",
21  "//base/hiviewdfx/hiappevent/interfaces/native/kits:libhiappevent_ndk",
22  "//base/hiviewdfx/hilog/interfaces/native/kits:hilog_header",
23  "//base/hiviewdfx/hilog/interfaces/native/kits:libhilog_ndk",
24  "//base/startup/init_lite/interfaces/kits:libdeviceinfo_ndk",
25  "//base/startup/init_lite/interfaces/kits:deviceinfo_header",
26  "//foundation/ace/ace_engine/interfaces/native:ace_header",
27  "//foundation/ace/ace_engine/interfaces/native:libace_ndk",
28  "//foundation/ace/napi:libnapi_ndk",
29  "//foundation/ace/napi:napi_header",
30  "//third_party/node:node_header",
31  "//foundation/graphic/standard/interfaces/kits/ndk/EGL:libEGL_ndk",
32  "//foundation/graphic/standard/interfaces/kits/ndk/EGL:EGL_header",
33  "//foundation/graphic/standard/interfaces/kits/ndk/GLES3:libGLESv3_ndk",
34  "//foundation/graphic/standard/interfaces/kits/ndk/GLES3:GLES3_header",
35  "//foundation/graphic/standard/interfaces/kits/ndk/KHR:KHR_header",
36  "//foundation/graphic/standard/interfaces/kits/ndk/native_window:libnative_window_ndk",
37  "//foundation/graphic/standard/interfaces/kits/ndk/native_window:native_window_header",
38  "//foundation/graphic/standard/interfaces/kits/ndk/native_drawing:libnative_drawing_ndk",
39  "//foundation/graphic/standard/interfaces/kits/ndk/native_drawing:native_drawing_header",
40  "//third_party/libuv:libuv_ndk",
41  "//third_party/libuv:libuv_header",
42  "//third_party/libuv:libuv_uv_header",
43  "//foundation/multimedia/image_standard/interfaces/kits/native:libpixelmap_ndk",
44  "//foundation/multimedia/image_standard/interfaces/kits/native:image_header",
45  "//third_party/openSLES:sles_header",
46  "//third_party/openSLES:libOpenSLES_ndk",
47]
48
49_ndk_base_libs = [
50  "//third_party/musl/ndk_script/adapter:libc_ndk",
51  "//third_party/musl/ndk_script:musl_ndk_libs_arm32",
52  "//third_party/musl/ndk_script:musl_ndk_libs_aarch64",
53  "//third_party/musl/ndk_script:ndk_toolchain",
54]
55_ndk_sysroot_uapi = [ "//third_party/musl/ndk_script:musl_sysroot" ]
56
57_ndk_cmake = [
58  "//prebuilts/cmake/darwin-x86:darwin_cmake_copy",
59  "//prebuilts/cmake/linux-x86:linux_cmake_copy",
60  "//prebuilts/cmake/windows-x86:windows_cmake_copy",
61  "//build/ohos/ndk:ndk_cmake_files",
62]
63
64_ndk_targets_list =
65    _ndk_library_targets + _ndk_base_libs + _ndk_sysroot_uapi + _ndk_cmake
66
67_parse_script = "//build/ohos/ndk/parse_ndk_targets.py"
68_parse_args = [
69  "--source-root-dir",
70  rebase_path("//", root_build_dir),
71  "--ndk-lib-target-list",
72]
73_parse_args += _ndk_targets_list
74
75all_ndk_targets_list = exec_script(_parse_script, _parse_args, "list lines")
76