Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: third_party/mojo/src/mojo/public/platform/native/BUILD.gn

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 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 assert(!defined(is_nacl) || !is_nacl)
6
7 import("../../mojo_sdk.gni")
8
9 mojo_sdk_source_set("system") {
10 sources = [
11 "system_thunks.cc",
12 "system_thunks.h",
13 ]
14 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
15 mojo_sdk_deps = [ "mojo/public/c/system" ]
16
17 # The GYP target analogous to this one builds this code into a
18 # static library. When building for Android, both the GYP and GN
19 # builds add --exclude-libs=ALL globally, which means that all
20 # symbols in static libraries are excluded from export. That's a
21 # problem, as code outside this target needs to be able to call
22 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy
23 # that all dependent targets remove that link flag. Since GN uses a
24 # source_set here, this flag change is not needed.
25 }
26
27 mojo_sdk_source_set("gles2") {
28 sources = [
29 "gles2_impl_chromium_extension_thunks.cc",
30 "gles2_impl_chromium_extension_thunks.h",
31 "gles2_impl_thunks.cc",
32 "gles2_impl_thunks.h",
33 "gles2_thunks.cc",
34 "gles2_thunks.h",
35 ]
36
37 defines = [ "MOJO_GLES2_IMPLEMENTATION" ]
38
39 configs = [ "//third_party/khronos:khronos_headers" ]
40
41 mojo_sdk_deps = [
42 "mojo/public/c/gles2",
43 "mojo/public/c/environment",
44 "mojo/public/c/system",
45 ]
46
47 if (is_mac) {
48 # TODO(GYP): Make it a run-path dependent library.
49 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
50 }
51 }
52
53 mojo_sdk_source_set("gpu_thunks") {
54 sources = []
55 }
56
57 mojo_sdk_source_set("mgl_thunks") {
58 sources = [
59 "mgl_thunks.c",
60 "mgl_thunks.h",
61 ]
62
63 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL" ]
64 }
65
66 mojo_sdk_source_set("mgl_onscreen_thunks") {
67 sources = [
68 "mgl_onscreen_thunks.c",
69 "mgl_onscreen_thunks.h",
70 ]
71
72 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL_onscreen" ]
73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698