mirror of
https://github.com/openharmony/distributed_camera.git
synced 2026-07-01 22:14:06 -04:00
!152 解耦构建脚本BUILD.gn中的产品平台判断逻辑
Merge pull request !152 from Caoruihong/use_feature_flags
This commit is contained in:
@@ -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" ]
|
||||
|
||||
@@ -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 +=
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user