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/resource_management/interfaces/native/resource:librawfile_ndk", 19 "//base/global/resource_management/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/security/huks/interfaces/kits/c:libhuks_ndk", 25 "//base/security/huks/interfaces/kits/c:huks_header", 26 "//base/startup/init/interfaces/kits/syscap:libdeviceinfo_ndk", 27 "//base/startup/init/interfaces/kits/syscap:deviceinfo_header", 28 "//foundation/ai/mindspore/mindspore/lite/interfaces/kits/c:mindspore_header", 29 "//foundation/ai/mindspore/mindspore/lite/interfaces/kits/c:mindspore_lib", 30 "//foundation/arkui/ace_engine/interfaces/native:ace_header", 31 "//foundation/arkui/ace_engine/interfaces/native:libace_ndk", 32 "//foundation/arkui/napi:libnapi_ndk", 33 "//foundation/arkui/napi:napi_header", 34 "//foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle:bundle_header", 35 "//foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle:libbundle_ndk", 36 "//third_party/node:node_header", 37 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/EGL:libEGL_ndk", 38 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/EGL:EGL_header", 39 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/GLES3:libGLESv3_ndk", 40 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/GLES3:GLES3_header", 41 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/KHR:KHR_header", 42 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_window:libnative_window_ndk", 43 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_window:native_window_header", 44 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_buffer:libnative_buffer_ndk", 45 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_buffer:native_buffer_header", 46 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_image:libnative_image_ndk", 47 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_image:native_image_header", 48 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_vsync:libnative_vsync_ndk", 49 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_vsync:native_vsync_header", 50 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_drawing:libnative_drawing_ndk", 51 "//foundation/graphic/graphic_2d/interfaces/kits/ndk/native_drawing:native_drawing_header", 52 "//third_party/libuv:libuv_ndk", 53 "//third_party/libuv:libuv_header", 54 "//third_party/libuv:libuv_uv_header", 55 "//foundation/multimedia/image_framework/interfaces/kits/native:libpixelmap_ndk", 56 "//foundation/multimedia/image_framework/interfaces/kits/native:image_header", 57 "//foundation/multimedia/player_framework/interfaces/kits/c/audio_decoder:libnative_media_adec", 58 "//foundation/multimedia/player_framework/interfaces/kits/c/audio_decoder:native_media_adec_header", 59 "//foundation/multimedia/player_framework/interfaces/kits/c/audio_encoder:libnative_media_aenc", 60 "//foundation/multimedia/player_framework/interfaces/kits/c/audio_encoder:native_media_aenc_header", 61 "//foundation/multimedia/player_framework/interfaces/kits/c/core:libnative_media_core", 62 "//foundation/multimedia/player_framework/interfaces/kits/c/core:native_media_core_header", 63 "//foundation/multimedia/player_framework/interfaces/kits/c/video_decoder:libnative_media_vdec", 64 "//foundation/multimedia/player_framework/interfaces/kits/c/video_decoder:native_media_vdec_header", 65 "//foundation/multimedia/player_framework/interfaces/kits/c/video_encoder:libnative_media_venc", 66 "//foundation/multimedia/player_framework/interfaces/kits/c/video_encoder:native_media_venc_header", 67 "//foundation/multimedia/player_framework/interfaces/kits/c/codec_base:libnative_media_codecbase", 68 "//foundation/multimedia/player_framework/interfaces/kits/c/codec_base:native_media_codecbase_header", 69 "//third_party/openSLES:sles_header", 70 "//third_party/openSLES:libOpenSLES_ndk", 71 "//foundation/ai/neural_network_runtime/interfaces/kits/c:libneural_network_runtime_ndk", 72 "//foundation/ai/neural_network_runtime/interfaces/kits/c:libneural_network_runtime_header", 73] 74 75_ndk_base_libs = [ 76 "//third_party/musl/ndk_script/adapter:libc_ndk", 77 "//third_party/musl/ndk_script:musl_ndk_libs_arm32", 78 "//third_party/musl/ndk_script:musl_ndk_libs_aarch64", 79 "//third_party/musl/ndk_script:musl_ndk_libs_x86_64", 80 "//third_party/musl/ndk_script:ndk_toolchain", 81] 82_ndk_sysroot_uapi = [ "//third_party/musl/ndk_script:musl_sysroot" ] 83 84_ndk_cmake = [ 85 "//prebuilts/cmake/darwin-x86:darwin_cmake_copy", 86 "//prebuilts/cmake/linux-x86:linux_cmake_copy", 87 "//prebuilts/cmake/windows-x86:windows_cmake_copy", 88 "//build/ohos/ndk:ndk_cmake_files", 89] 90 91_ndk_targets_list = 92 _ndk_library_targets + _ndk_base_libs + _ndk_sysroot_uapi + _ndk_cmake 93 94_parse_script = "//build/ohos/ndk/parse_ndk_targets.py" 95_parse_args = [ 96 "--source-root-dir", 97 rebase_path("//", root_build_dir), 98 "--ndk-lib-target-list", 99] 100_parse_args += _ndk_targets_list 101 102all_ndk_targets_list = exec_script(_parse_script, _parse_args, "list lines") 103