# Copyright (c) 2021 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") import("//foundation/graphic/graphic_2d/graphic_config.gni") group("color_manager") { public_deps = [ "$graphic_2d_root/interfaces/kits/napi/graphic/color_manager:color_space_object_convertor", "color_manager:color_manager", ] } group("scoped_bytrace") { public_deps = [ "scoped_bytrace:scoped_bytrace" ] } group("socketpair") { public_deps = [ "socketpair:socketpair" ] } group("test_header") { public_deps = [ "test_header:test_header" ] } group("sandbox_utils") { public_deps = [ "sandbox:sandbox_utils" ] } group("rs_frame_report_ext") { public_deps = [ "rs_frame_report_ext:rs_frame_report_ext" ] } ## Build libgraphic_utils.so {{{ config("libgraphic_utils_public_config") { include_dirs = [ "$graphic_2d_root/interfaces/inner_api/common" ] } ohos_shared_library("libgraphic_utils") { public_configs = [ ":libgraphic_utils_public_config" ] branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true cfi_vcall_icall_only = true debug = false } deps = [ ":color_manager", ":sandbox_utils", ":scoped_bytrace", ":test_header", "$graphic_2d_root/frameworks/opengl_wrapper:EGL", "$graphic_2d_root/frameworks/opengl_wrapper:GLESv3", ] part_name = "graphic_2d" subsystem_name = "graphic" } ## Build libgraphic_utils.so }}}