1686862fbSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
2686862fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3686862fbSopenharmony_ci# you may not use this file except in compliance with the License.
4686862fbSopenharmony_ci# You may obtain a copy of the License at
5686862fbSopenharmony_ci#
6686862fbSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7686862fbSopenharmony_ci#
8686862fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9686862fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10686862fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11686862fbSopenharmony_ci# See the License for the specific language governing permissions and
12686862fbSopenharmony_ci# limitations under the License.
13686862fbSopenharmony_ci
14686862fbSopenharmony_ciimport("//build/ohos.gni")
15686862fbSopenharmony_ci
16686862fbSopenharmony_ciconfig("continuation_manager_public_config") {
17686862fbSopenharmony_ci  visibility = [ ":*" ]
18686862fbSopenharmony_ci  include_dirs = [
19686862fbSopenharmony_ci    "include/",
20686862fbSopenharmony_ci    "//foundation/ability/dmsfwk/services/dtbabilitymgr/include/",
21686862fbSopenharmony_ci  ]
22686862fbSopenharmony_ci
23686862fbSopenharmony_ci  cflags = []
24686862fbSopenharmony_ci  if (target_cpu == "arm") {
25686862fbSopenharmony_ci    cflags += [ "-DBINDER_IPC_32BIT" ]
26686862fbSopenharmony_ci  }
27686862fbSopenharmony_ci}
28686862fbSopenharmony_ci
29686862fbSopenharmony_ciohos_shared_library("continuation_manager") {
30686862fbSopenharmony_ci  branch_protector_ret = "pac_ret"
31686862fbSopenharmony_ci  sanitize = {
32686862fbSopenharmony_ci    cfi = true
33686862fbSopenharmony_ci    cfi_cross_dso = true
34686862fbSopenharmony_ci    debug = false
35686862fbSopenharmony_ci  }
36686862fbSopenharmony_ci
37686862fbSopenharmony_ci  sources = [
38686862fbSopenharmony_ci    "//foundation/ability/dmsfwk/services/dtbabilitymgr/src/continuation_manager/continuation_extra_params.cpp",
39686862fbSopenharmony_ci    "//foundation/ability/dmsfwk/services/dtbabilitymgr/src/continuation_manager/continuation_result.cpp",
40686862fbSopenharmony_ci    "//foundation/ability/dmsfwk/services/dtbabilitymgr/src/continuation_manager/device_selection_notifier_stub.cpp",
41686862fbSopenharmony_ci  ]
42686862fbSopenharmony_ci
43686862fbSopenharmony_ci  public_configs = [
44686862fbSopenharmony_ci    ":continuation_manager_public_config",
45686862fbSopenharmony_ci    "//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags",
46686862fbSopenharmony_ci  ]
47686862fbSopenharmony_ci
48686862fbSopenharmony_ci  external_deps = [
49686862fbSopenharmony_ci    "c_utils:utils",
50686862fbSopenharmony_ci    "hilog:libhilog",
51686862fbSopenharmony_ci    "ipc:ipc_core",
52686862fbSopenharmony_ci  ]
53686862fbSopenharmony_ci
54686862fbSopenharmony_ci  subsystem_name = "ability"
55686862fbSopenharmony_ci  innerapi_tags = [ "platformsdk" ]
56686862fbSopenharmony_ci  part_name = "dmsfwk"
57686862fbSopenharmony_ci}
58