OLD | NEW |
| (Empty) |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("../../mojo_sdk.gni") | |
6 | |
7 config("gpu_configs") { | |
8 include_dirs = [ "." ] | |
9 } | |
10 | |
11 group("gpu") { | |
12 public_configs = [ ":gpu_configs" ] | |
13 | |
14 deps = [ | |
15 ":GLES2", | |
16 ":MGL", | |
17 ":MGL_signal_sync_point", | |
18 "../../platform/native:gles2", | |
19 ] | |
20 if (!is_nacl) { | |
21 deps += [ "../../platform/native:mgl_thunks" ] | |
22 } | |
23 } | |
24 | |
25 group("gpu_onscreen") { | |
26 public_deps = [ | |
27 ":MGL_onscreen", | |
28 ] | |
29 | |
30 deps = [ | |
31 ":gpu", | |
32 ] | |
33 if (!is_nacl) { | |
34 deps += [ "../../platform/native:mgl_onscreen_thunks" ] | |
35 } | |
36 } | |
37 | |
38 mojo_sdk_source_set("MGL") { | |
39 sources = [ | |
40 "MGL/mgl.h", | |
41 "MGL/mgl_types.h", | |
42 ] | |
43 | |
44 mojo_sdk_public_deps = [ "mojo/public/c:system" ] | |
45 } | |
46 | |
47 mojo_sdk_source_set("MGL_onscreen") { | |
48 sources = [ | |
49 "MGL/mgl_onscreen.h", | |
50 ] | |
51 | |
52 public_deps = [ | |
53 ":MGL", | |
54 ] | |
55 } | |
56 | |
57 mojo_sdk_source_set("MGL_echo") { | |
58 sources = [ | |
59 "MGL/mgl_echo.h", | |
60 ] | |
61 | |
62 public_deps = [ | |
63 ":MGL", | |
64 ] | |
65 } | |
66 | |
67 mojo_sdk_source_set("MGL_signal_sync_point") { | |
68 sources = [ | |
69 "MGL/mgl_signal_sync_point.h", | |
70 ] | |
71 | |
72 public_deps = [ | |
73 ":MGL", | |
74 ] | |
75 } | |
76 | |
77 mojo_sdk_source_set("GLES2") { | |
78 sources = [ | |
79 "GLES2/gl2.h", | |
80 "GLES2/gl2ext.h", | |
81 "GLES2/gl2extmojo.h", | |
82 "GLES2/gl2mojo_autogen.h", | |
83 "GLES2/gl2mojo_internal.h", | |
84 "GLES2/gl2platform.h", | |
85 ] | |
86 | |
87 public_deps = [ | |
88 ":KHR", | |
89 ] | |
90 } | |
91 | |
92 mojo_sdk_source_set("KHR") { | |
93 sources = [ | |
94 "KHR/khrplatform.h", | |
95 ] | |
96 } | |
OLD | NEW |