1fc0b0055Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2fc0b0055Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3fc0b0055Sopenharmony_ci# you may not use this file except in compliance with the License.
4fc0b0055Sopenharmony_ci# You may obtain a copy of the License at
5fc0b0055Sopenharmony_ci#
6fc0b0055Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7fc0b0055Sopenharmony_ci#
8fc0b0055Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9fc0b0055Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10fc0b0055Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11fc0b0055Sopenharmony_ci# See the License for the specific language governing permissions and
12fc0b0055Sopenharmony_ci# limitations under the License.
13fc0b0055Sopenharmony_ci
14fc0b0055Sopenharmony_ciimport("//build/ohos.gni")
15fc0b0055Sopenharmony_ciimport("../../../access_token.gni")
16fc0b0055Sopenharmony_ci
17fc0b0055Sopenharmony_ciohos_shared_library("accesstoken_window_manager") {
18fc0b0055Sopenharmony_ci  if (is_standard_system && window_manager_enable == true) {
19fc0b0055Sopenharmony_ci    subsystem_name = "security"
20fc0b0055Sopenharmony_ci    part_name = "access_token"
21fc0b0055Sopenharmony_ci    sanitize = {
22fc0b0055Sopenharmony_ci      cfi = true
23fc0b0055Sopenharmony_ci      cfi_cross_dso = true
24fc0b0055Sopenharmony_ci      debug = false
25fc0b0055Sopenharmony_ci    }
26fc0b0055Sopenharmony_ci    branch_protector_ret = "pac_ret"
27fc0b0055Sopenharmony_ci
28fc0b0055Sopenharmony_ci    include_dirs = [
29fc0b0055Sopenharmony_ci      "${access_token_path}/frameworks/common/include",
30fc0b0055Sopenharmony_ci      "${access_token_path}/frameworks/privacy/include",
31fc0b0055Sopenharmony_ci      "${access_token_path}/interfaces/innerkits/accesstoken/include",
32fc0b0055Sopenharmony_ci      "${access_token_path}/interfaces/inner_api/privacy/include",
33fc0b0055Sopenharmony_ci      "include",
34fc0b0055Sopenharmony_ci    ]
35fc0b0055Sopenharmony_ci
36fc0b0055Sopenharmony_ci    sources = [
37fc0b0055Sopenharmony_ci      "src/privacy_mock_session_manager_proxy.cpp",
38fc0b0055Sopenharmony_ci      "src/privacy_scene_session_manager_lite_proxy.cpp",
39fc0b0055Sopenharmony_ci      "src/privacy_scene_session_manager_proxy.cpp",
40fc0b0055Sopenharmony_ci      "src/privacy_session_manager_proxy.cpp",
41fc0b0055Sopenharmony_ci      "src/privacy_window_manager_agent.cpp",
42fc0b0055Sopenharmony_ci      "src/privacy_window_manager_client.cpp",
43fc0b0055Sopenharmony_ci      "src/privacy_window_manager_death_recipient.cpp",
44fc0b0055Sopenharmony_ci      "src/privacy_window_manager_proxy.cpp",
45fc0b0055Sopenharmony_ci      "src/window_manager_loader.cpp",
46fc0b0055Sopenharmony_ci    ]
47fc0b0055Sopenharmony_ci
48fc0b0055Sopenharmony_ci    cflags_cc = [ "-DHILOG_ENABLE" ]
49fc0b0055Sopenharmony_ci    configs = [
50fc0b0055Sopenharmony_ci      "${access_token_path}/config:access_token_compile_flags",
51fc0b0055Sopenharmony_ci      "${access_token_path}/config:coverage_flags",
52fc0b0055Sopenharmony_ci    ]
53fc0b0055Sopenharmony_ci
54fc0b0055Sopenharmony_ci    external_deps = [
55fc0b0055Sopenharmony_ci      "c_utils:utils",
56fc0b0055Sopenharmony_ci      "hilog:libhilog",
57fc0b0055Sopenharmony_ci      "ipc:ipc_core",
58fc0b0055Sopenharmony_ci      "safwk:system_ability_fwk",
59fc0b0055Sopenharmony_ci      "samgr:samgr_proxy",
60fc0b0055Sopenharmony_ci      "window_manager:libwsutils",
61fc0b0055Sopenharmony_ci    ]
62fc0b0055Sopenharmony_ci  }
63fc0b0055Sopenharmony_ci}
64