| 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 ":MGL_signal_sync_point", | 17 ":MGL_signal_sync_point", |
| 18 ":GLES2", | 18 ":GLES2", |
| 19 "../../platform/native:mgl_thunks", | |
| 20 "../../platform/native:gles2", | 19 "../../platform/native:gles2", |
| 21 ] | 20 ] |
| 21 if (!is_nacl) { |
| 22 deps += [ "../../platform/native:mgl_thunks" ] |
| 23 } |
| 22 } | 24 } |
| 23 | 25 |
| 24 group("gpu_onscreen") { | 26 group("gpu_onscreen") { |
| 25 public_deps = [ | 27 public_deps = [ |
| 26 ":MGL_onscreen", | 28 ":MGL_onscreen", |
| 27 ] | 29 ] |
| 28 | 30 |
| 29 deps = [ | 31 deps = [ |
| 30 ":gpu", | 32 ":gpu", |
| 31 "../../platform/native:mgl_onscreen_thunks", | |
| 32 ] | 33 ] |
| 34 if (!is_nacl) { |
| 35 deps += [ "../../platform/native:mgl_onscreen_thunks" ] |
| 36 } |
| 33 } | 37 } |
| 34 | 38 |
| 35 mojo_sdk_source_set("MGL") { | 39 mojo_sdk_source_set("MGL") { |
| 36 sources = [ | 40 sources = [ |
| 37 "MGL/mgl.h", | 41 "MGL/mgl.h", |
| 38 "MGL/mgl_types.h", | 42 "MGL/mgl_types.h", |
| 39 ] | 43 ] |
| 40 | 44 |
| 41 mojo_sdk_public_deps = [ "mojo/public/c/system" ] | 45 mojo_sdk_public_deps = [ "mojo/public/c/system" ] |
| 42 } | 46 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 71 public_deps = [ | 75 public_deps = [ |
| 72 ":KHR", | 76 ":KHR", |
| 73 ] | 77 ] |
| 74 } | 78 } |
| 75 | 79 |
| 76 mojo_sdk_source_set("KHR") { | 80 mojo_sdk_source_set("KHR") { |
| 77 sources = [ | 81 sources = [ |
| 78 "KHR/khrplatform.h", | 82 "KHR/khrplatform.h", |
| 79 ] | 83 ] |
| 80 } | 84 } |
| OLD | NEW |