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. 13import("//build/config/ohos/config.gni") 14import("//build/ohos.gni") 15import("//foundation/arkui/napi/napi.gni") 16comPath = 17 "../../../../../../../../../foundation/arkui/ace_engine/interfaces/native" 18compath2 = "../../../../../../../../../foundation/graphic/graphic_2d/frameworks/opengl_wrapper" 19compath3 = "../../../../../../../../../base/hiviewdfx/hilog" 20config("config") { 21 visibility = [ ":*" ] 22 23 cflags = [ 24 "-Wall", 25 "-Werror", 26 "-g3", 27 "-Wunused-variable", 28 ] 29} 30 31config("public_config") { 32} 33 34ohos_shared_library("nativerender") { 35 sources = [ 36 "./napi/napi_init.cpp", 37 "./plugin_manager.cpp", 38 "./render/egl_core.cpp", 39 "./render/plugin_render.cpp", 40 ] 41 subsystem_name = "arkui" 42 part_name = "ace_engine" 43 if (use_musl) { 44 stl = "c++_shared" 45 } 46 include_dirs = [ 47 ".", 48 "./common", 49 "./napi", 50 "./render", 51 "$comPath", 52 "$compath3/interfaces/native/kits/include", 53 ] 54 configs = [ 55 ":config", 56 "//third_party/EGL:libEGL_public_config", 57 "//third_party/openGLES:libGLES_public_config", 58 ] 59 external_deps = [ "napi:ace_napi" ] 60 deps = [ 61 "$comPath:ace_ndk", 62 "$compath2:EGL", 63 "$compath2:GLESv3", 64 "$compath3/frameworks/hilog_ndk:hilog_ndk", 65 ] 66 67 output_extension = "so" 68} 69