1e9297d28Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2e9297d28Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e9297d28Sopenharmony_ci# you may not use this file except in compliance with the License. 4e9297d28Sopenharmony_ci# You may obtain a copy of the License at 5e9297d28Sopenharmony_ci# 6e9297d28Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e9297d28Sopenharmony_ci# 8e9297d28Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e9297d28Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e9297d28Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e9297d28Sopenharmony_ci# See the License for the specific language governing permissions and 12e9297d28Sopenharmony_ci# limitations under the License. 13e9297d28Sopenharmony_ci 14e9297d28Sopenharmony_ciimport("//build/ohos.gni") 15e9297d28Sopenharmony_ciimport("//foundation/graphic/graphic_2d/graphic_config.gni") 16e9297d28Sopenharmony_ci 17e9297d28Sopenharmony_ci## Build libnative_vsync.so 18e9297d28Sopenharmony_ci 19e9297d28Sopenharmony_ciconfig("native_vsync_config") { 20e9297d28Sopenharmony_ci visibility = [ ":*" ] 21e9297d28Sopenharmony_ci 22e9297d28Sopenharmony_ci cflags = [ 23e9297d28Sopenharmony_ci "-Wall", 24e9297d28Sopenharmony_ci "-Werror", 25e9297d28Sopenharmony_ci "-g3", 26e9297d28Sopenharmony_ci ] 27e9297d28Sopenharmony_ci} 28e9297d28Sopenharmony_ci 29e9297d28Sopenharmony_ciconfig("native_vsync_public_config") { 30e9297d28Sopenharmony_ci include_dirs = 31e9297d28Sopenharmony_ci [ "//foundation/graphic/graphic_2d/interfaces/inner_api/composer" ] 32e9297d28Sopenharmony_ci} 33e9297d28Sopenharmony_ci 34e9297d28Sopenharmony_ciohos_shared_library("libnative_vsync") { 35e9297d28Sopenharmony_ci sanitize = { 36e9297d28Sopenharmony_ci boundary_sanitize = true 37e9297d28Sopenharmony_ci integer_overflow = true 38e9297d28Sopenharmony_ci ubsan = true 39e9297d28Sopenharmony_ci } 40e9297d28Sopenharmony_ci sources = [ "native_vsync.cpp" ] 41e9297d28Sopenharmony_ci 42e9297d28Sopenharmony_ci include_dirs = [ 43e9297d28Sopenharmony_ci "//foundation/graphic/graphic_2d/utils/log", 44e9297d28Sopenharmony_ci "//foundation/graphic/graphic_2d/interfaces/inner_api/common", 45e9297d28Sopenharmony_ci ] 46e9297d28Sopenharmony_ci 47e9297d28Sopenharmony_ci configs = [ ":native_vsync_config" ] 48e9297d28Sopenharmony_ci 49e9297d28Sopenharmony_ci public_configs = [ ":native_vsync_public_config" ] 50e9297d28Sopenharmony_ci 51e9297d28Sopenharmony_ci output_extension = "so" 52e9297d28Sopenharmony_ci 53e9297d28Sopenharmony_ci deps = [ "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client" ] 54e9297d28Sopenharmony_ci 55e9297d28Sopenharmony_ci external_deps = [ "hilog:libhilog" ] 56e9297d28Sopenharmony_ci public_external_deps = [ "c_utils:utils" ] 57e9297d28Sopenharmony_ci 58e9297d28Sopenharmony_ci part_name = "graphic_2d" 59e9297d28Sopenharmony_ci subsystem_name = "graphic" 60e9297d28Sopenharmony_ci} 61e9297d28Sopenharmony_ci## Build libnative_vsync.so 62