1# Copyright (c) 2022 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 14import("//build/ohos/ndk/ndk.gni") 15 16config("libSLES_public_config") { 17 include_dirs = [ "api" ] 18} 19 20group("libSLES") { 21 public_configs = [ ":libSLES_public_config" ] 22} 23 24ohos_ndk_headers("sles_header") { 25 dest_dir = "$ndk_headers_out_dir/SLES" 26 sources = [ 27 "//third_party/openSLES/api/1.0.1/OpenSLES.h", 28 "//third_party/openSLES/api/1.0.1/OpenSLES_Platform.h", 29 ] 30} 31 32ohos_ndk_library("libOpenSLES_ndk") { 33 output_name = "OpenSLES" 34 output_extension = "so" 35 ndk_description_file = "./openSLES.ndk.json" 36 system_capability = "SystemCapability.Multimedia.Audio.Core" 37 system_capability_headers = [ 38 "SLES/OpenSLES.h", 39 "SLES/OpenSLES_Platform.h", 40 ] 41} 42