From 839238474ed57886718e5adba7287bb96c6496bd Mon Sep 17 00:00:00 2001 From: byndyx Date: Fri, 16 May 2025 10:48:24 +0800 Subject: [PATCH] add json Signed-off-by: byndyx --- sa_profile/4805.json | 2 +- sa_profile/4806.json | 2 +- sa_profile/BUILD.gn | 16 ++++++++++++---- sa_profile/common/4805.json | 12 ++++++++++++ sa_profile/common/4806.json | 12 ++++++++++++ 5 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 sa_profile/common/4805.json create mode 100644 sa_profile/common/4806.json diff --git a/sa_profile/4805.json b/sa_profile/4805.json index 767e7aef..67fe34cb 100644 --- a/sa_profile/4805.json +++ b/sa_profile/4805.json @@ -5,7 +5,7 @@ "name": 4805, "libpath": "libdistributed_audio_source.z.so", "run-on-create": false, - "distributed": true, + "distributed": false, "dump_level": 1 } ] diff --git a/sa_profile/4806.json b/sa_profile/4806.json index 5bf1607a..6339062e 100644 --- a/sa_profile/4806.json +++ b/sa_profile/4806.json @@ -5,7 +5,7 @@ "name": 4806, "libpath": "libdistributed_audio_sink.z.so", "run-on-create": false, - "distributed": true, + "distributed": false, "dump_level": 1 } ] diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index ef9cf270..9bdf9073 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -12,12 +12,20 @@ # limitations under the License. import("//build/ohos.gni") +import("../distributedaudio.gni") ohos_sa_profile("daudio_sa_profile") { - sources = [ - "4805.json", - "4806.json", - ] + if (distributed_audio_extension_sa) { + sources = [ + "4805.json", + "4806.json", + ] + } else { + sources = [ + "common/4805.json", + "common/4806.json", + ] + } part_name = "distributed_audio" } diff --git a/sa_profile/common/4805.json b/sa_profile/common/4805.json new file mode 100644 index 00000000..767e7aef --- /dev/null +++ b/sa_profile/common/4805.json @@ -0,0 +1,12 @@ +{ + "process": "daudio", + "systemability": [ + { + "name": 4805, + "libpath": "libdistributed_audio_source.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/sa_profile/common/4806.json b/sa_profile/common/4806.json new file mode 100644 index 00000000..5bf1607a --- /dev/null +++ b/sa_profile/common/4806.json @@ -0,0 +1,12 @@ +{ + "process": "daudio", + "systemability": [ + { + "name": 4806, + "libpath": "libdistributed_audio_sink.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file -- Gitee