!152 解耦构建脚本BUILD.gn中的产品平台判断逻辑

Merge pull request !152 from Caoruihong/use_feature_flags
This commit is contained in:
openharmony_ci
2022-07-11 14:54:26 +00:00
committed by Gitee
5 changed files with 8 additions and 4 deletions
+4
View File
@@ -37,3 +37,7 @@ fwk_common_path = "${distributedhardwarefwk_path}/common"
fwk_services_path = "${distributedhardwarefwk_path}/services"
build_flags = [ "-Werror" ]
declare_args() {
distributed_camera_common = true
}
@@ -57,7 +57,7 @@ ohos_shared_library("distributed_camera_client") {
"src/callback/dcamera_video_callback.cpp",
]
if ("${product_name}" == "m40") {
if (!distributed_camera_common) {
sources += [
"src/dcamera_client.cpp",
"src/listener/dcamera_photo_surface_listener.cpp",
@@ -47,7 +47,7 @@ ohos_shared_library("distributed_camera_handler") {
sources = [ "${services_path}/cameraservice/cameraoperator/client/src/callback/dcamera_manager_callback.cpp" ]
if ("${product_name}" == "m40") {
if (!distributed_camera_common) {
sources += [ "src/dcamera_handler.cpp" ]
} else {
sources += [ "src/dcamera_handler_common.cpp" ]
+1 -1
View File
@@ -89,7 +89,7 @@ ohos_shared_library("distributed_camera_sink") {
"src/distributedcameramgr/listener/dcamera_sink_output_channel_listener.cpp",
]
if ("${product_name}" == "m40") {
if (!distributed_camera_common) {
sources += [ "src/distributedcameramgr/dcamera_sink_data_process.cpp" ]
} else {
sources +=
+1 -1
View File
@@ -57,7 +57,7 @@ ohos_shared_library("distributed_camera_data_process") {
"src/utils/image_common_type.cpp",
]
if ("${product_name}" == "m40") {
if (!distributed_camera_common) {
sources += [
"src/pipeline_node/multimedia_codec/decoder/decode_data_process.cpp",
"src/pipeline_node/multimedia_codec/encoder/encode_data_process.cpp",