Chromium Code Reviews| 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 defines = [ "GLES2_USE_MOJO" ] | |
| 10 } | |
| 11 | |
| 12 group("gpu") { | |
| 13 public_configs = [ ":gpu_configs" ] | |
| 14 | |
| 15 deps = [ | |
| 16 ":MGL", | |
| 17 ":GLES2", | |
| 18 "../../platform/native:mgl_thunks", | |
| 19 "../../platform/native:gles2", | |
| 20 ] | |
| 21 } | |
| 22 | |
| 23 group("gpu_onscreen") { | |
| 24 public_deps = [ | |
| 25 ":MGL_onscreen", | |
| 26 ] | |
| 27 | |
| 28 deps = [ | |
| 29 ":gpu", | |
| 30 "../../platform/native:mgl_onscreen_thunks", | |
| 31 ] | |
| 32 } | |
| 33 | |
| 34 mojo_sdk_source_set("MGL") { | |
| 35 sources = [ | |
| 36 "MGL/mgl.h", | |
| 37 "MGL/mgl_types.h", | |
| 38 ] | |
| 39 | |
| 40 public_deps = [ | |
| 41 ":GLES2", | |
|
viettrungluu
2015/08/12 02:48:10
I don't think this dependency is needed, is it?
jamesr
2015/08/13 19:42:27
That's right, removed
| |
| 42 ] | |
| 43 | |
| 44 mojo_sdk_public_deps = [ | |
| 45 "mojo/public/c/environment", | |
| 46 "mojo/public/c/system", | |
| 47 ] | |
| 48 } | |
| 49 | |
| 50 mojo_sdk_source_set("MGL_onscreen") { | |
| 51 sources = [ | |
| 52 "MGL/mgl_onscreen.h", | |
| 53 ] | |
| 54 | |
| 55 public_deps = [ | |
| 56 ":MGL", | |
| 57 ] | |
| 58 } | |
| 59 | |
| 60 mojo_sdk_source_set("GLES2") { | |
| 61 sources = [ | |
| 62 "GLES2/gl2.h", | |
| 63 "GLES2/gl2ext.h", | |
| 64 "GLES2/gl2mojo.h", | |
| 65 ] | |
| 66 | |
| 67 public_deps = [ | |
| 68 ":KHR", | |
| 69 ] | |
| 70 } | |
| 71 | |
| 72 mojo_sdk_source_set("KHR") { | |
| 73 sources = [ | |
| 74 "KHR/khrplatform.h", | |
| 75 ] | |
| 76 } | |
| OLD | NEW |