1# Copyright (c) 2021-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/test.gni") 15 16module_output_path = "camera_framework/camera_framework_moduletest" 17 18ohos_moduletest("camera_framework_moduletest") { 19 module_out_path = module_output_path 20 include_dirs = [ 21 "./include", 22 "//foundation/graphic/graphic_2d/frameworks/surface/include", 23 "//foundation/multimedia/camera_framework/services/camera_service/include", 24 "//foundation/multimedia/camera_framework/services/camera_service/binder/base/include", 25 "//foundation/multimedia/camera_framework/services/camera_service/binder/client/include", 26 "//foundation/multimedia/camera_framework/services/camera_service/binder/server/include", 27 "//foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include", 28 "//foundation/multimedia/camera_framework/interfaces/inner_api/native/test", 29 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 30 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 31 ] 32 33 sources = [ 34 "//foundation/multimedia/camera_framework/interfaces/inner_api/native/test/test_common.cpp", 35 "src/camera_framework_moduletest.cpp", 36 ] 37 38 deps = [ 39 "//drivers/interface/camera/v1_0:libcamera_proxy_1.0", 40 "//foundation/graphic/graphic_2d:libsurface", 41 "//foundation/multimedia/camera_framework/frameworks/native/camera:camera_framework", 42 "//foundation/multimedia/camera_framework/services/camera_service:camera_service", 43 ] 44 45 external_deps = [ 46 "access_token:libaccesstoken_sdk", 47 "access_token:libnativetoken", 48 "access_token:libtoken_setproc", 49 "c_utils:utils", 50 "drivers_interface_camera:metadata", 51 "hilog:libhilog", 52 "hisysevent:libhisysevent", 53 "hitrace:hitrace_meter", 54 "init:libbegetutil", 55 "ipc:ipc_core", 56 "safwk:system_ability_fwk", 57 "samgr:samgr_proxy", 58 ] 59 60 include_dirs += [ 61 "//drivers/peripheral/camera/interfaces/include", 62 "//drivers/peripheral/camera/interfaces/hdi_ipc", 63 "//drivers/peripheral/camera/interfaces/hdi_ipc/server", 64 ] 65 66 cflags = [ "-fPIC" ] 67 cflags_cc = cflags 68} 69