OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("../../mojo_sdk.gni") |
| 6 |
5 config("gles2_config") { | 7 config("gles2_config") { |
6 defines = [ "GLES2_USE_MOJO" ] | 8 defines = [ "GLES2_USE_MOJO" ] |
7 } | 9 } |
8 | 10 |
9 source_set("gles2") { | 11 group("gles2") { |
| 12 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 13 public_deps = [ |
| 14 ":headers", |
| 15 ] |
| 16 deps = [ |
| 17 "../../platform/native:gles2_thunks", |
| 18 ] |
| 19 } |
| 20 |
| 21 mojo_sdk_source_set("headers") { |
10 sources = [ | 22 sources = [ |
11 "gles2.h", | 23 "gles2.h", |
12 "gles2_export.h", | 24 "gles2_export.h", |
13 ] | 25 ] |
14 | 26 |
15 public_configs = [ ":gles2_config" ] | 27 public_configs = [ ":gles2_config" ] |
16 | 28 |
17 public_deps = [ | 29 mojo_sdk_public_deps = [ |
18 "//mojo/public/c/environment", | 30 "mojo/public/c/environment", |
19 "//mojo/public/c/system", | 31 "mojo/public/c/system", |
20 ] | 32 ] |
21 } | 33 } |
OLD | NEW |