• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020 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/lite/config/hap_pack.gni")
15
16shared_library("cameraApp") {
17  sources = [
18    "cameraApp/src/main/cpp/camera_ability.cpp",
19    "cameraApp/src/main/cpp/camera_ability_slice.cpp",
20    "cameraApp/src/main/cpp/camera_manager.cpp",
21  ]
22
23  deps = [
24    "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
25    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
26    "//foundation/arkui/ui_lite:ui_lite",
27    "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
28    "//foundation/graphic/graphic_utils_lite:utils_lite",
29    "//foundation/graphic/surface_lite",
30    "//foundation/multimedia/camera_lite/frameworks:camera_lite",
31    "//foundation/multimedia/media_lite/frameworks/recorder_lite:recorder_lite",
32    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
33  ]
34
35  include_dirs = [
36    "cameraApp/src/main/cpp",
37    "${aafwk_lite_path}/interfaces/kits/ability_lite",
38    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
39    "${aafwk_lite_path}/interfaces/kits/want_lite",
40    "//foundation/multimedia/camera_lite/interfaces/kits",
41    "//foundation/multimedia/camera_lite/interfaces/kits",
42  ]
43  ldflags = [
44    "-L$ohos_root_path/sysroot/usr/lib",
45    "-Wl,-rpath-link=$ohos_root_path/sysroot/usr/lib",
46    "-lstdc++",
47    "-lcamera_lite",
48    "-lsurface",
49    "-lrecorder_lite",
50  ]
51  defines = [
52    "ENABLE_WINDOW=1",
53    "ABILITY_WINDOW_SUPPORT",
54  ]
55}
56
57hap_pack("cameraApp_hap") {
58  deps = [ ":cameraApp" ]
59  mode = "hap"
60  json_path = "cameraApp/src/main/config.json"
61  ability_so_path = "$root_out_dir/libcameraApp.so"
62  force = "true"
63  cert_profile = "cert/camera_AppProvision_Release.p7b"
64  resources_path = "cameraApp/src/main/resources"
65  hap_name = "cameraApp"
66  privatekey = "HOS Application Provision Release"
67}
68