• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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/multimedia/image_framework/ide/image_decode_config.gni")
16
17config("egl_image_public_config") {
18  include_dirs = [ "include" ]
19}
20
21ohos_shared_library("egl_image") {
22  sanitize = {
23    cfi = true
24    cfi_cross_dso = true
25    debug = false
26  }
27
28  public_configs = [ ":egl_image_public_config" ]
29  sources = [
30    "src/pixel_map_from_surface.cpp",
31    "src/render_context.cpp",
32  ]
33
34  deps = [ "$image_subsystem/interfaces/innerkits:image_native" ]
35  deps += skia_platform
36
37  external_deps = [
38    "c_utils:utils",
39    "graphic_2d:libgl",
40    "graphic_surface:surface",
41    "graphic_surface:sync_fence",
42    "hilog:libhilog",
43    "hitrace:hitrace_meter",
44  ]
45
46  subsystem_name = "multimedia"
47  part_name = "image_framework"
48}
49