• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import("//build/ohos.gni")
2
3## Build libdrm.so {{{
4config("libdrm_config") {
5  visibility = [ ":*" ]
6
7  include_dirs = []
8
9  cflags = [
10    "-Wno-deprecated-declarations",
11    "-Wno-enum-conversion",
12    "-DMAJOR_IN_SYSMACROS=1",
13  ]
14}
15
16config("libdrm_public_config") {
17  include_dirs = [
18    ".",
19    "include",
20    "include/drm",
21  ]
22
23  cflags = []
24}
25
26ohos_shared_library("libdrm") {
27  output_prefix_override = true
28  output_name = "libdrm"
29  output_extension = "so"
30
31  sources = [
32    "xf86drm.c",
33    "xf86drmHash.c",
34    "xf86drmMode.c",
35    "xf86drmRandom.c",
36  ]
37
38  configs = [ ":libdrm_config" ]
39
40  public_configs = [ ":libdrm_public_config" ]
41
42  deps = []
43
44  public_deps = []
45  install_images = [
46    "system",
47    "updater",
48  ]
49  part_name = "libdrm"
50  subsystem_name = "thirdparty"
51}
52## Build libdrm.so }}}
53