diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..670c7d90d831349ec4fd1a298e6d3883d3abda46 --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,38 @@ +ohos_shared_library("remote_audio_renderer_sink") { + sanitize = { + cfi = true + debug = false + blocklist = "//foundation/multimedia/audio_framework/cfi_blocklist.txt" + } + install_enable = true + + sources = [ "remote/remote_audio_renderer_sink.cpp" ] + + cflags = [ "-fPIC" ] + cflags += [ "-Wall" ] + cflags_cc = cflags + if ("${product_name}" == "m40") { + cflags += [ "-DPRODUCT_M40" ] + } + + include_dirs = [ + "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", + "//foundation/multimedia/audio_framework/frameworks/native/audioutils/include", + "//foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/common", + ] + + deps = [ + "//foundation/multimedia/audio_framework/frameworks/native/audioutils:audio_utils", + "//third_party/bounds_checking_function:libsec_static", + ] + + if ("${product_name}" == "m40") { + deps += [ "//foundation/distributedhardware/distributed_audio/hdf_service/distributed_audio/audio_client:daudio_client" ] + } else { + deps += + [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ] + } + + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] + +} \ No newline at end of file diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..980ad88eadfd89194ba2d66e8629a5003aee5387 --- /dev/null +++ b/bundle.json @@ -0,0 +1,48 @@ +{ + "name": "@ohos/syscap_codec", + "description": "System capability encode and decode.", + "version": "3.2.1", + "license": "Apache License 2.0", + "pubiishAs": "code-segment", + "segment": { + "destPath": "//developtools/syscap_codec" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "syscap_Codec", + "subsystem": "develop_tools", + "syscap": [ "SystemCapability.Developtools.Syscap.pcid" ], + "feature": ["Tis.is.a.feature"], + "adapted_system_type": [ "small", "standard", "liteos_m" ], + "rom": "321", + "ram": "344.3KD", + "deps": { + "components": [ + "napi", + "hiviewdfx_hilog_native" + ], + "third_party": [ + "bounds_checking_function", + "cjson", + "libnv" + ] + }, + "build": { + "sub_component": [ + "//developtools/syscap_codec:syscap_codec" + ], + "inner_kits": [ + { + "header": { + "header_base": "//developtools/syscap_codec/interfaces/inner_api", + "header_files": [ "syscap_interface.h" ] + }, + "name": "//developtools/syscap_codec:syscap_interface_shared" + } + ], + "test": [ "//developtools/syscap_codec/test/unittest/common:unittest" ] + } + } + } + \ No newline at end of file