• 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  testonly = true
33  sources = [
34    "./napi/napi_init.cpp",
35    "./plugin_manager.cpp",
36    "./render/egl_core.cpp",
37    "./render/plugin_render.cpp",
38  ]
39  subsystem_name = "arkui"
40  part_name = "ace_engine"
41  if (use_musl) {
42    stl = "c++_shared"
43  }
44  include_dirs = [
45    ".",
46    "./common",
47    "./napi",
48    "./render",
49    "//foundation/arkui/napi/interfaces/inner_api/napi",
50    "//foundation/arkui/ace_engine/interfaces/native",
51    "//base/hiviewdfx/hilog/interfaces/native/kits/include",
52  ]
53  configs = [
54    ":config",
55    "//third_party/EGL:libEGL_public_config",
56    "//third_party/openGLES:libGLES_public_config",
57  ]
58
59  deps = [
60    "//foundation/arkui/ace_engine/interfaces/native:ace_ndk",
61    "//foundation/arkui/napi:ace_napi",
62    "//foundation/graphic/graphic_2d/frameworks/opengl_wrapper:EGL",
63    "//foundation/graphic/graphic_2d/frameworks/opengl_wrapper:GLESv3",
64  ]
65
66  external_deps = [ "hilog:hilog_ndk" ]
67
68  output_extension = "so"
69}
70