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