1# Copyright (c) 2022 - 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//build/ohos_var.gni") 16import( 17 "//foundation/distributedhardware/distributed_camera/distributedcamera.gni") 18 19config("module_private_config") { 20 include_dirs = [ 21 "//third_party/jsoncpp/include", 22 "${graphicstandard_path}/frameworks/surface/include", 23 "${camerastandard_path}/interfaces/inner_api/native/camera/include", 24 "${camerastandard_path}/interfaces/inner_api/native/camera/include/input", 25 "${camerastandard_path}/interfaces/inner_api/native/camera/include/output", 26 "${camerastandard_path}/interfaces/inner_api/native/camera/include/session", 27 "${camerastandard_path}/services/camera_service/binder/base/include", 28 "${camerastandard_path}/services/camera_service/binder/client/include", 29 "${camerastandard_path}/services/camera_service/binder/server/include", 30 "${camerastandard_path}/services/camera_service/include", 31 "${fwk_common_path}/log/include", 32 "${fwk_common_path}/utils/include", 33 "${fwk_utils_path}/include/log", 34 "${fwk_utils_path}/include", 35 ] 36 37 include_dirs += [ 38 "${common_path}/include/constants", 39 "${common_path}/include/utils", 40 "${services_path}/cameraservice/base/include", 41 "${services_path}/cameraservice/cameraoperator/client/include", 42 "${services_path}/cameraservice/cameraoperator/client/include/callback", 43 "${services_path}/cameraservice/cameraoperator/client/include/listener", 44 ] 45} 46 47ohos_executable("dcamera_client_demo") { 48 install_enable = false 49 50 sources = [ "main.cpp" ] 51 52 configs = [ ":module_private_config" ] 53 54 cflags = [ 55 "-fPIC", 56 "-Wall", 57 ] 58 59 if (!distributed_camera_common) { 60 cflags += [ "-DDCAMERA_YUV" ] 61 } 62 63 deps = [ 64 "${camerastandard_path}/frameworks/native/camera:camera_framework", 65 "${common_path}:distributed_camera_utils", 66 "${fwk_utils_path}:distributedhardwareutils", 67 "${graphicstandard_path}:libsurface", 68 "${services_path}/cameraservice/cameraoperator/client:distributed_camera_client", 69 "${services_path}/cameraservice/sinkservice:distributed_camera_sink", 70 "//third_party/jsoncpp:jsoncpp", 71 ] 72 73 external_deps = [ 74 "access_token:libaccesstoken_sdk", 75 "access_token:libnativetoken", 76 "access_token:libnativetoken", 77 "access_token:libtoken_setproc", 78 "access_token:libtoken_setproc", 79 "c_utils:utils", 80 "drivers_interface_camera:metadata", 81 "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0", 82 "hilog:libhilog", 83 "ipc:ipc_core", 84 "player_framework:media_client", 85 ] 86 87 defines = [ 88 "HI_LOG_ENABLE", 89 "DH_LOG_TAG=\"DCameraClientDemo\"", 90 "LOG_DOMAIN=0xD004100", 91 ] 92 93 cflags_cc = cflags 94 95 subsystem_name = "distributedhardware" 96 97 part_name = "distributed_camera" 98} 99