12dc7c57fSopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
22dc7c57fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
32dc7c57fSopenharmony_ci# you may not use this file except in compliance with the License.
42dc7c57fSopenharmony_ci# You may obtain a copy of the License at
52dc7c57fSopenharmony_ci#
62dc7c57fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
72dc7c57fSopenharmony_ci#
82dc7c57fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
92dc7c57fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
102dc7c57fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112dc7c57fSopenharmony_ci# See the License for the specific language governing permissions and
122dc7c57fSopenharmony_ci# limitations under the License.
132dc7c57fSopenharmony_ci
142dc7c57fSopenharmony_ciimport("//base/notification/common_event_service/event.gni")
152dc7c57fSopenharmony_ciimport("//build/ohos.gni")
162dc7c57fSopenharmony_ci
172dc7c57fSopenharmony_cicflags = []
182dc7c57fSopenharmony_ci
192dc7c57fSopenharmony_ciconfig("cesfwk_innerkits_config") {
202dc7c57fSopenharmony_ci  visibility = [ ":*" ]
212dc7c57fSopenharmony_ci
222dc7c57fSopenharmony_ci  include_dirs = []
232dc7c57fSopenharmony_ci
242dc7c57fSopenharmony_ci  if (target_cpu == "arm") {
252dc7c57fSopenharmony_ci    cflags += [ "-DBINDER_IPC_32BIT" ]
262dc7c57fSopenharmony_ci  }
272dc7c57fSopenharmony_ci}
282dc7c57fSopenharmony_ci
292dc7c57fSopenharmony_ciconfig("cesfwk_innerkits_public_config") {
302dc7c57fSopenharmony_ci  visibility = [ ":*" ]
312dc7c57fSopenharmony_ci
322dc7c57fSopenharmony_ci  include_dirs = [
332dc7c57fSopenharmony_ci    "${ces_core_path}/include",
342dc7c57fSopenharmony_ci    "${ces_innerkits_path}",
352dc7c57fSopenharmony_ci  ]
362dc7c57fSopenharmony_ci}
372dc7c57fSopenharmony_ci
382dc7c57fSopenharmony_ciohos_shared_library("cesfwk_innerkits") {
392dc7c57fSopenharmony_ci  sanitize = {
402dc7c57fSopenharmony_ci    integer_overflow = true
412dc7c57fSopenharmony_ci    ubsan = true
422dc7c57fSopenharmony_ci    boundary_sanitize = true
432dc7c57fSopenharmony_ci    cfi = true
442dc7c57fSopenharmony_ci    cfi_cross_dso = true
452dc7c57fSopenharmony_ci    debug = false
462dc7c57fSopenharmony_ci  }
472dc7c57fSopenharmony_ci  branch_protector_ret = "pac_ret"
482dc7c57fSopenharmony_ci
492dc7c57fSopenharmony_ci  sources = [
502dc7c57fSopenharmony_ci    "${ces_native_path}/src/async_common_event_result.cpp",
512dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_data.cpp",
522dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_manager.cpp",
532dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_publish_info.cpp",
542dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_subscribe_info.cpp",
552dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_subscriber.cpp",
562dc7c57fSopenharmony_ci    "${ces_native_path}/src/common_event_support.cpp",
572dc7c57fSopenharmony_ci    "${ces_native_path}/src/matching_skills.cpp",
582dc7c57fSopenharmony_ci  ]
592dc7c57fSopenharmony_ci
602dc7c57fSopenharmony_ci  configs = [ ":cesfwk_innerkits_config" ]
612dc7c57fSopenharmony_ci
622dc7c57fSopenharmony_ci  public_configs = [ ":cesfwk_innerkits_public_config" ]
632dc7c57fSopenharmony_ci
642dc7c57fSopenharmony_ci  deps = [ "${ces_core_path}:cesfwk_core" ]
652dc7c57fSopenharmony_ci
662dc7c57fSopenharmony_ci  external_deps = [
672dc7c57fSopenharmony_ci    "ability_base:want",
682dc7c57fSopenharmony_ci    "c_utils:utils",
692dc7c57fSopenharmony_ci    "eventhandler:libeventhandler",
702dc7c57fSopenharmony_ci    "hilog:libhilog",
712dc7c57fSopenharmony_ci    "ipc:ipc_core",
722dc7c57fSopenharmony_ci  ]
732dc7c57fSopenharmony_ci
742dc7c57fSopenharmony_ci  public_external_deps = [ "ability_base:want" ]
752dc7c57fSopenharmony_ci
762dc7c57fSopenharmony_ci  subsystem_name = "notification"
772dc7c57fSopenharmony_ci  innerapi_tags = [
782dc7c57fSopenharmony_ci    "platformsdk",
792dc7c57fSopenharmony_ci    "sasdk",
802dc7c57fSopenharmony_ci  ]
812dc7c57fSopenharmony_ci  part_name = "common_event_service"
822dc7c57fSopenharmony_ci}
83