# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ## Build sync_fence.so {{{ config("sync_fence_config") { visibility = [ ":sync_fence" ] cflags = [ "-Wall", "-Werror", "-g3", "-Wno-error=missing-braces", "-Wno-error=#warnings", ] } config("sync_fence_public_config") { include_dirs = [ "export", "//commonlibrary/c_utils/base/include", "//base/hiviewdfx/hilog/interfaces/native/innerkits", "//base/notification/eventhandler/interfaces/inner_api", "//foundation/graphic/graphic_2d/utils/log", ] } ohos_shared_library("sync_fence") { sources = [ "src/sync_fence.cpp", "src/sync_fence_timeline.cpp", "src/sync_fence_tracker.cpp", ] configs = [ ":sync_fence_config" ] public_configs = [ ":sync_fence_public_config" ] external_deps = [ "c_utils:utils", "eventhandler:libeventhandler", "hilog:libhilog", "hitrace:hitrace_meter", "ipc:ipc_single", ] innerapi_tags = [ "chipsetsdk_indirect", "platformsdk_indirect", ] part_name = "graphic_2d" subsystem_name = "graphic" } group("test") { testonly = true deps = [ "test:test" ] } ## Build sync_fence.so }}}