mirror of
https://github.com/openharmony/applications_sample_camera.git
synced 2026-07-01 14:21:52 -04:00
c469c55149
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6WFDH Feature or Bugfix: Feature Binary Source:No Signed-off-by: zhouyj <zhouyuanjie1@huawei.com> Change-Id: I9a2ff2905b584a1bfbe78e2212bc1d79bd463289
68 lines
2.3 KiB
Plaintext
Executable File
68 lines
2.3 KiB
Plaintext
Executable File
# Copyright (c) 2020 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/lite/config/hap_pack.gni")
|
|
|
|
shared_library("cameraApp") {
|
|
sources = [
|
|
"cameraApp/src/main/cpp/camera_ability.cpp",
|
|
"cameraApp/src/main/cpp/camera_ability_slice.cpp",
|
|
"cameraApp/src/main/cpp/camera_manager.cpp",
|
|
]
|
|
|
|
deps = [
|
|
"${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
|
|
"${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
|
|
"//foundation/arkui/ui_lite:ui_lite",
|
|
"//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
|
|
"//foundation/graphic/graphic_utils_lite:utils_lite",
|
|
"//foundation/graphic/surface_lite",
|
|
"//foundation/multimedia/camera_lite/frameworks:camera_lite",
|
|
"//foundation/multimedia/media_lite/frameworks/recorder_lite:recorder_lite",
|
|
"//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
|
|
]
|
|
|
|
include_dirs = [
|
|
"cameraApp/src/main/cpp",
|
|
"${aafwk_lite_path}/interfaces/kits/ability_lite",
|
|
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
|
|
"${aafwk_lite_path}/interfaces/kits/want_lite",
|
|
"//foundation/multimedia/camera_lite/interfaces/kits",
|
|
"//foundation/multimedia/camera_lite/interfaces/kits",
|
|
]
|
|
ldflags = [
|
|
"-L$ohos_root_path/sysroot/usr/lib",
|
|
"-Wl,-rpath-link=$ohos_root_path/sysroot/usr/lib",
|
|
"-lstdc++",
|
|
"-lcamera_lite",
|
|
"-lsurface",
|
|
"-lrecorder_lite",
|
|
]
|
|
defines = [
|
|
"ENABLE_WINDOW=1",
|
|
"ABILITY_WINDOW_SUPPORT",
|
|
]
|
|
}
|
|
|
|
hap_pack("cameraApp_hap") {
|
|
deps = [ ":cameraApp" ]
|
|
mode = "hap"
|
|
json_path = "cameraApp/src/main/config.json"
|
|
ability_so_path = "$root_out_dir/libcameraApp.so"
|
|
force = "true"
|
|
cert_profile = "cert/camera_AppProvision_Release.p7b"
|
|
resources_path = "cameraApp/src/main/resources"
|
|
hap_name = "cameraApp"
|
|
privatekey = "HOS Application Provision Release"
|
|
}
|