1cf69771bSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2cf69771bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3cf69771bSopenharmony_ci# you may not use this file except in compliance with the License. 4cf69771bSopenharmony_ci# You may obtain a copy of the License at 5cf69771bSopenharmony_ci# 6cf69771bSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7cf69771bSopenharmony_ci# 8cf69771bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9cf69771bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10cf69771bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11cf69771bSopenharmony_ci# See the License for the specific language governing permissions and 12cf69771bSopenharmony_ci# limitations under the License. 13cf69771bSopenharmony_ci 14cf69771bSopenharmony_ciimport("../../../time.gni") 15cf69771bSopenharmony_ci 16cf69771bSopenharmony_ciohos_shared_library("time_service_ndk") { 17cf69771bSopenharmony_ci output_extension = "so" 18cf69771bSopenharmony_ci 19cf69771bSopenharmony_ci sanitize = { 20cf69771bSopenharmony_ci integer_overflow = true 21cf69771bSopenharmony_ci ubsan = true 22cf69771bSopenharmony_ci boundary_sanitize = true 23cf69771bSopenharmony_ci cfi = true 24cf69771bSopenharmony_ci cfi_cross_dso = true 25cf69771bSopenharmony_ci debug = time_sanitize_debug 26cf69771bSopenharmony_ci } 27cf69771bSopenharmony_ci include_dirs = [ "include" ] 28cf69771bSopenharmony_ci 29cf69771bSopenharmony_ci sources = [ "src/time_service.c" ] 30cf69771bSopenharmony_ci 31cf69771bSopenharmony_ci external_deps = [ "init:libbegetutil" ] 32cf69771bSopenharmony_ci innerapi_tags = [ "ndk" ] 33cf69771bSopenharmony_ci part_name = "time_service" 34cf69771bSopenharmony_ci subsystem_name = "time" 35cf69771bSopenharmony_ci} 36