| 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 mojo_sdk_public_deps = [ "mojo/public/c/system" ] | |
| 41 } | |
| 42 | |
| 43 mojo_sdk_source_set("MGL_onscreen") { | |
| 44 sources = [ | |
| 45 "MGL/mgl_onscreen.h", | |
| 46 ] | |
| 47 | |
| 48 public_deps = [ | |
| 49 ":MGL", | |
| 50 ] | |
| 51 } | |
| 52 | |
| 53 mojo_sdk_source_set("GLES2") { | |
| 54 sources = [ | |
| 55 "GLES2/gl2.h", | |
| 56 "GLES2/gl2ext.h", | |
| 57 "GLES2/gl2mojo.h", | |
| 58 ] | |
| 59 | |
| 60 public_deps = [ | |
| 61 ":KHR", | |
| 62 ] | |
| 63 } | |
| 64 | |
| 65 mojo_sdk_source_set("KHR") { | |
| 66 sources = [ | |
| 67 "KHR/khrplatform.h", | |
| 68 ] | |
| 69 } | |
| OLD | NEW |