16 Star 0 Fork 31

OH RISC-V SIG/third_party_libsnd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 3.08 KB
一键复制 编辑 原始数据 按行查看 历史
黄建飞 提交于 2023-11-16 16:30 . config BUILD.gn
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
config("sndfile_config") {
visibility = [ ":*" ]
include_dirs = [
"src",
"include",
"src/GSM610",
"src/G72x",
"src/ALAC",
]
cflags = [
"-Wall",
"-Werror",
"-Wno-unused-but-set-variable",
]
}
ohos_source_set("sndfile_sources") {
sources = [
"src/ALAC/ALACBitUtilities.c",
"src/ALAC/ag_dec.c",
"src/ALAC/ag_enc.c",
"src/ALAC/alac_decoder.c",
"src/ALAC/alac_encoder.c",
"src/ALAC/dp_dec.c",
"src/ALAC/dp_enc.c",
"src/ALAC/matrix_dec.c",
"src/ALAC/matrix_enc.c",
"src/G72x/g721.c",
"src/G72x/g723_16.c",
"src/G72x/g723_24.c",
"src/G72x/g723_40.c",
"src/G72x/g72x.c",
"src/GSM610/add.c",
"src/GSM610/code.c",
"src/GSM610/decode.c",
"src/GSM610/gsm_create.c",
"src/GSM610/gsm_decode.c",
"src/GSM610/gsm_destroy.c",
"src/GSM610/gsm_encode.c",
"src/GSM610/gsm_option.c",
"src/GSM610/long_term.c",
"src/GSM610/lpc.c",
"src/GSM610/preprocess.c",
"src/GSM610/rpe.c",
"src/GSM610/short_term.c",
"src/GSM610/table.c",
"src/aiff.c",
"src/alac.c",
"src/alaw.c",
"src/au.c",
"src/audio_detect.c",
"src/avr.c",
"src/broadcast.c",
"src/caf.c",
"src/cart.c",
"src/chanmap.c",
"src/chunk.c",
"src/command.c",
"src/common.c",
"src/dither.c",
"src/double64.c",
"src/dwd.c",
"src/dwvw.c",
"src/file_io.c",
"src/flac.c",
"src/float32.c",
"src/g72x.c",
"src/gsm610.c",
"src/htk.c",
"src/id3.c",
"src/ima_adpcm.c",
"src/ima_oki_adpcm.c",
"src/interleave.c",
"src/ircam.c",
"src/macos.c",
"src/mat4.c",
"src/mat5.c",
"src/mpc2k.c",
"src/mpeg.c",
"src/ms_adpcm.c",
"src/nist.c",
"src/nms_adpcm.c",
"src/ogg.c",
"src/ogg_opus.c",
"src/ogg_pcm.c",
"src/ogg_speex.c",
"src/ogg_vcomment.c",
"src/ogg_vorbis.c",
"src/paf.c",
"src/pcm.c",
"src/pvf.c",
"src/raw.c",
"src/rf64.c",
"src/rx2.c",
"src/sd2.c",
"src/sds.c",
"src/sndfile.c",
"src/strings.c",
"src/svx.c",
"src/txw.c",
"src/ulaw.c",
"src/voc.c",
"src/vox_adpcm.c",
"src/w64.c",
"src/wav.c",
"src/wavlike.c",
"src/wve.c",
"src/xi.c",
]
configs = [ ":sndfile_config" ]
subsystem_name = "thirdparty"
part_name = "libsnd"
}
ohos_shared_library("sndfile") {
deps = [ ":sndfile_sources" ]
innerapi_tags = [ "platformsdk_indirect" ]
subsystem_name = "thirdparty"
part_name = "libsnd"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/riscv-sig/third_party_libsnd.git
git@gitee.com:riscv-sig/third_party_libsnd.git
riscv-sig
third_party_libsnd
third_party_libsnd
master

搜索帮助