1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//foundation/graphic/graphic_2d/graphic_config.gni")
16
17group("color_manager") {
18  public_deps = [
19    "$graphic_2d_root/interfaces/kits/napi/graphic/color_manager:color_space_object_convertor",
20    "color_manager:color_manager",
21  ]
22}
23
24group("scoped_bytrace") {
25  public_deps = [ "scoped_bytrace:scoped_bytrace" ]
26}
27
28group("socketpair") {
29  public_deps = [ "socketpair:socketpair" ]
30}
31
32group("test_header") {
33  public_deps = [ "test_header:test_header" ]
34}
35
36group("sandbox_utils") {
37  public_deps = [ "sandbox:sandbox_utils" ]
38}
39
40group("rs_frame_report_ext") {
41  public_deps = [ "rs_frame_report_ext:rs_frame_report_ext" ]
42}
43
44## Build libgraphic_utils.so {{{
45config("libgraphic_utils_public_config") {
46  include_dirs = [ "$graphic_2d_root/interfaces/inner_api/common" ]
47}
48
49ohos_shared_library("libgraphic_utils") {
50  public_configs = [ ":libgraphic_utils_public_config" ]
51
52  branch_protector_ret = "pac_ret"
53  sanitize = {
54    cfi = true
55    cfi_cross_dso = true
56    cfi_vcall_icall_only = true
57    debug = false
58  }
59
60  deps = [
61    ":color_manager",
62    ":sandbox_utils",
63    ":scoped_bytrace",
64    ":test_header",
65    "$graphic_2d_root/frameworks/opengl_wrapper:EGL",
66    "$graphic_2d_root/frameworks/opengl_wrapper:GLESv3",
67  ]
68
69  part_name = "graphic_2d"
70  subsystem_name = "graphic"
71}
72## Build libgraphic_utils.so }}}
73