1# Copyright (c) 2022 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") 16import("//foundation/graphic/graphic_2d/rosen/modules/effect/effect_config.gni") 17 18## Build libegl_effect.so 19 20ohos_shared_library("libegl_effect") { 21 include_dirs = [ 22 "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", 23 "//third_party/EGL/api", 24 "//third_party/openGLES/api", 25 "//foundation/graphic/graphic_2d/utils/log", 26 "include", 27 ] 28 29 cflags = [ 30 "-Wall", 31 "-Werror", 32 "-g3", 33 "-Wall", 34 "-Wno-pointer-arith", 35 "-Wno-non-virtual-dtor", 36 "-Wno-missing-field-initializers", 37 "-Wno-c++11-narrowing", 38 ] 39 40 cflags_cc = [ "-std=c++17" ] 41 42 sources = [] 43 44 deps = [ "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog" ] 45 46 if (effect_enable_gpu) { 47 sources += [ "src/egl_manager.cpp" ] 48 49 deps += [ "//foundation/graphic/graphic_2d:libgl" ] 50 } 51 52 if (effect_enable_gpu) { 53 install_enable = true 54 } else { 55 install_enable = false 56 } 57 58 part_name = "graphic_standard" 59 subsystem_name = "graphic" 60} 61