From c4f0d50037773adcce0db66f271843fff9b984b1 Mon Sep 17 00:00:00 2001 From: chen0088 Date: Fri, 16 May 2025 10:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen0088 --- sa_profile/4803.json | 2 +- sa_profile/4804.json | 2 +- sa_profile/BUILD.gn | 19 ++++++++++++++----- sa_profile/common/4803.json | 12 ++++++++++++ sa_profile/common/4804.json | 12 ++++++++++++ 5 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 sa_profile/common/4803.json create mode 100644 sa_profile/common/4804.json diff --git a/sa_profile/4803.json b/sa_profile/4803.json index 1a226dbb..bba91aad 100644 --- a/sa_profile/4803.json +++ b/sa_profile/4803.json @@ -5,7 +5,7 @@ "name": 4803, "libpath": "libdistributed_camera_source.z.so", "run-on-create": false, - "distributed": true, + "distributed": false, "dump_level": 1 } ] diff --git a/sa_profile/4804.json b/sa_profile/4804.json index d123511f..3d6db301 100644 --- a/sa_profile/4804.json +++ b/sa_profile/4804.json @@ -5,7 +5,7 @@ "name": 4804, "libpath": "libdistributed_camera_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 d5e4ac5b..94a06acd 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-2025 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 @@ -13,12 +13,21 @@ import("//build/ohos.gni") import("//build/ohos/sa_profile/sa_profile.gni") +import( + "//foundation/distributedhardware/distributed_camera/distributedcamera.gni") ohos_sa_profile("dcamera_sa_profile") { - sources = [ - "4803.json", - "4804.json", - ] + if (!distributed_camera_common) { + sources = [ + "4803.json", + "4804.json", + ] + } else { + sources = [ + "common/4803.json", + "common/4804.json", + ] + } part_name = "distributed_camera" } diff --git a/sa_profile/common/4803.json b/sa_profile/common/4803.json new file mode 100644 index 00000000..1a226dbb --- /dev/null +++ b/sa_profile/common/4803.json @@ -0,0 +1,12 @@ +{ + "process": "dcamera", + "systemability": [ + { + "name": 4803, + "libpath": "libdistributed_camera_source.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/sa_profile/common/4804.json b/sa_profile/common/4804.json new file mode 100644 index 00000000..d123511f --- /dev/null +++ b/sa_profile/common/4804.json @@ -0,0 +1,12 @@ +{ + "process": "dcamera", + "systemability": [ + { + "name": 4804, + "libpath": "libdistributed_camera_sink.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file -- Gitee