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") 15 16## Build libpixman.so {{{ 17config("libpixman_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 ".", 22 ] 23 24 cflags = [ 25 "-DHAVE_CONFIG_H", 26 "-Wno-unknown-attributes", 27 "-Wno-unused-local-typedef", 28 "-Wno-unused-variable", 29 "-Wno-ignored-qualifiers", 30 "-Wno-incompatible-pointer-types", 31 ] 32} 33 34config("libpixman_public_config") { 35 include_dirs = [ 36 "pixman", 37 ] 38 39 cflags = [ 40 ] 41} 42 43ohos_shared_library("libpixman") { 44 sources = [ 45 "pixman/pixman.c", 46 "pixman/pixman-access.c", 47 "pixman/pixman-access-accessors.c", 48 "pixman/pixman-bits-image.c", 49 "pixman/pixman-combine32.c", 50 "pixman/pixman-combine-float.c", 51 "pixman/pixman-conical-gradient.c", 52 "pixman/pixman-filter.c", 53 "pixman/pixman-mips.c", 54 "pixman/pixman-arm.c", 55 "pixman/pixman-ppc.c", 56 "pixman/pixman-edge.c", 57 "pixman/pixman-edge-accessors.c", 58 "pixman/pixman-fast-path.c", 59 "pixman/pixman-glyph.c", 60 "pixman/pixman-general.c", 61 "pixman/pixman-gradient-walker.c", 62 "pixman/pixman-image.c", 63 "pixman/pixman-implementation.c", 64 "pixman/pixman-linear-gradient.c", 65 "pixman/pixman-matrix.c", 66 "pixman/pixman-noop.c", 67 "pixman/pixman-radial-gradient.c", 68 "pixman/pixman-region16.c", 69 "pixman/pixman-region32.c", 70 "pixman/pixman-solid-fill.c", 71 "pixman/pixman-timer.c", 72 "pixman/pixman-trap.c", 73 "pixman/pixman-utils.c", 74 ] 75 76 configs = [ 77 ":libpixman_config", 78 ] 79 80 public_configs = [ 81 ":libpixman_public_config", 82 ] 83 84 deps = [ 85 ] 86 87 public_deps = [ 88 ] 89 90 part_name = "graphic_standard" 91 subsystem_name = "graphic" 92} 93## Build libpixman.so }}} 94