BUILD.gn 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# 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.
M
mamingshuai 已提交
13

14 15 16
import("//build/lite/config/hap_pack.gni")

shared_library("launcher") {
M
mamingshuai 已提交
17 18 19 20 21 22 23 24 25 26
  sources = [
    "launcher/src/main/cpp/app_info.cpp",
    "launcher/src/main/cpp/app_manage.cpp",
    "launcher/src/main/cpp/long_press_view.cpp",
    "launcher/src/main/cpp/main_ability.cpp",
    "launcher/src/main/cpp/main_ability_slice.cpp",
    "launcher/src/main/cpp/swipe_view.cpp",
    "launcher/src/main/cpp/time_weather_view.cpp",
    "launcher/src/main/cpp/view_group_page.cpp",
  ]
27

M
mamingshuai 已提交
28 29 30
  deps = [
    "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
Z
zhoushilin 已提交
31
    "//foundation/distributeddatamgr/appdatamgr/frameworks/native/kv_store:kv_store",
M
mamingshuai 已提交
32 33 34 35 36
    "//foundation/distributedschedule/samgr_lite/samgr:samgr",
    "//foundation/graphic/surface",
    "//foundation/graphic/ui:lite_ui",
    "//foundation/graphic/utils:lite_graphic_utils",
  ]
37

M
mamingshuai 已提交
38 39 40 41 42 43 44
  include_dirs = [
    "launcher/src/main/cpp",
    "${aafwk_lite_path}/interfaces/kits/ability_lite",
    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
    "${aafwk_lite_path}/interfaces/kits/want_lite",
    "//base/startup/syspara_lite/interfaces/kits",
  ]
45

M
mamingshuai 已提交
46 47 48 49 50
  defines = [
    "ENABLE_WINDOW=1",
    "ABILITY_WINDOW_SUPPORT",
    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
  ]
51 52
}

M
mamingshuai 已提交
53 54 55 56 57 58 59 60 61 62
hap_pack("launcher_hap") {
  deps = [ ":launcher" ]
  mode = "hap"
  json_path = "launcher/src/main/config.json"
  ability_so_path = "$root_out_dir/liblauncher.so"
  force = "true"
  cert_profile = "cert/com.huawei.launcher_HarmonyAppProvision_release.p7b"
  resources_path = "launcher/src/main/resources"
  hap_name = "launcher"
  privatekey = "HOS Application Provision Release"
63
}