mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
ef9c76bbe4
Signed-off-by: 马玉杰 <mayujie8@huawei.com>
149 lines
3.2 KiB
Plaintext
149 lines
3.2 KiB
Plaintext
# 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",
|
|
]
|
|
}
|
|
|
|
config("export_include_config") {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
|
|
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" ]
|
|
|
|
public_configs = [ ":export_include_config" ]
|
|
|
|
innerapi_tags = [
|
|
"chipsetsdk_indirect",
|
|
"platformsdk_indirect",
|
|
]
|
|
subsystem_name = "thirdparty"
|
|
part_name = "libsnd"
|
|
}
|