| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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") | 5 import("../../mojo_sdk.gni") |
| 6 | 6 |
| 7 config("gpu_configs") { | 7 config("gpu_configs") { |
| 8 include_dirs = [ "." ] | 8 include_dirs = [ "." ] |
| 9 defines = [ "GLES2_USE_MOJO" ] | 9 defines = [ "GLES2_USE_MOJO" ] |
| 10 } | 10 } |
| 11 | 11 |
| 12 group("gpu") { | 12 group("gpu") { |
| 13 public_configs = [ ":gpu_configs" ] | 13 public_configs = [ ":gpu_configs" ] |
| 14 | 14 |
| 15 deps = [ | 15 deps = [ |
| 16 ":MGL", | 16 ":MGL", |
| 17 ":GLES2", | |
| 18 "../../platform/native:mgl_thunks", | 17 "../../platform/native:mgl_thunks", |
| 19 "../../platform/native:gles2", | 18 "../../platform/native:gles2", |
| 20 ] | 19 ] |
| 21 } | 20 } |
| 22 | 21 |
| 23 group("gpu_onscreen") { | 22 group("gpu_onscreen") { |
| 24 public_deps = [ | 23 public_deps = [ |
| 25 ":MGL_onscreen", | 24 ":MGL_onscreen", |
| 26 ] | 25 ] |
| 27 | 26 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 | 41 |
| 43 mojo_sdk_source_set("MGL_onscreen") { | 42 mojo_sdk_source_set("MGL_onscreen") { |
| 44 sources = [ | 43 sources = [ |
| 45 "MGL/mgl_onscreen.h", | 44 "MGL/mgl_onscreen.h", |
| 46 ] | 45 ] |
| 47 | 46 |
| 48 public_deps = [ | 47 public_deps = [ |
| 49 ":MGL", | 48 ":MGL", |
| 50 ] | 49 ] |
| 51 } | 50 } |
| 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 |