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("buffer_handle") { 25 public_deps = [ "buffer_handle:buffer_handle" ] 26} 27 28group("scoped_bytrace") { 29 public_deps = [ "scoped_bytrace:scoped_bytrace" ] 30} 31 32group("promise") { 33 public_deps = [ "promise:promise" ] 34} 35 36group("semaphore") { 37 public_deps = [ "semaphore:semaphore" ] 38} 39 40group("socketpair") { 41 public_deps = [ "socketpair:socketpair" ] 42} 43 44group("test_header") { 45 public_deps = [ "test_header:test_header" ] 46} 47 48group("option_parser") { 49 public_deps = [ "option_parser:option_parser" ] 50} 51 52group("libgslogger") { 53 public_deps = [ "gslogger:libgslogger" ] 54} 55 56group("matrix") { 57 public_deps = [ "matrix:matrix" ] 58} 59 60group("raw_parser") { 61 public_deps = [ "raw_parser:raw_parser" ] 62} 63 64group("cpudraw") { 65 public_deps = [ "cpudraw:cpudraw" ] 66} 67 68group("gl_utils") { 69 public_deps = [ "gl_utils:gl_utils" ] 70} 71 72group("raw_maker") { 73 public_deps = [ "raw_maker:raw_maker" ] 74} 75 76group("sync_fence") { 77 public_deps = [ "sync_fence:sync_fence" ] 78} 79 80group("sandbox_utils") { 81 public_deps = [ "sandbox:sandbox_utils" ] 82} 83 84## Build libgraphic_utils.so {{{ 85config("libgraphic_utils_public_config") { 86 include_dirs = [ "$graphic_2d_root/interfaces/inner_api/common" ] 87} 88 89ohos_shared_library("libgraphic_utils") { 90 public_configs = [ ":libgraphic_utils_public_config" ] 91 92 public_deps = [ 93 "buffer_handle:buffer_handle", 94 "color_manager:color_manager", 95 "cpudraw:cpudraw", 96 "gl_utils:gl_utils", 97 "gslogger:libgslogger", 98 "matrix:matrix", 99 "option_parser:option_parser", 100 "promise:promise", 101 "raw_maker:raw_maker", 102 "raw_parser:raw_parser", 103 "sandbox:sandbox_utils", 104 "scoped_bytrace:scoped_bytrace", 105 "semaphore:semaphore", 106 "test_header:test_header", 107 ] 108 part_name = "graphic_2d" 109 subsystem_name = "graphic" 110} 111## Build libgraphic_utils.so }}} 112