From 445921b8a7ffcb9e5139c65fab71a305f76573cf Mon Sep 17 00:00:00 2001 From: liujiahui Date: Tue, 6 Dec 2022 15:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95BUILD.gn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiahui --- BUILD.gn | 39 +++++++++++++++++++++++++++++++++++++++ bundle.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 BUILD.gn create mode 100644 bundle.json diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000..e84f9f9 --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,39 @@ +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", + "//drivers/peripheral/audio/interfaces/include", + ] + + 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 0000000..4c114a4 --- /dev/null +++ b/bundle.json @@ -0,0 +1,47 @@ +{ + "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" + ] + }, + "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 -- Gitee