summaryrefslogtreecommitdiffstats
path: root/gpu/gles2_conform_support/native/BUILD.gn
blob: 4f779c79ffc3d5f535530dcfc8b223795ce14a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_native
source_set("native") {
  output_name = "egl_main_native"
  sources = [
    "egl_native.cc",
    "main.cc",
  ]
  defines = [
    "GLES2_CONFORM_SUPPORT_ONLY",
    "GTF_GLES20",
    "EGLAPI=",
    "EGLAPIENTRY=",
  ]
  deps = [
    ":windowless",
    "//base",
    "//gpu/gles2_conform_support/egl",
    "//ui/gl",
  ]
  if (is_linux) {
    sources += [
      "egl_native_aura.cc",
      "egl_native_x11.cc",
    ]
  }
  if (is_win) {
    sources += [ "egl_native_win.cc" ]
  }
}

# GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_windowless
source_set("windowless") {
  output_name = "egl_main_windowless"
  sources = [
    "egl_native.cc",
    "egl_native_windowless.cc",
    "main.cc",
  ]
  defines = [
    "GLES2_CONFORM_SUPPORT_ONLY",
    "GTF_GLES20",
    "EGLAPI=",
    "EGLAPIENTRY=",
  ]
  deps = [
    "//base",
    "//gpu/gles2_conform_support/egl",
    "//ui/gl",
  ]
}