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

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

Issue 1052723003: NaCl: create a separate namespace for Mojo handles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Edits Created 5 years, 8 months 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 assert(!defined(is_nacl) || !is_nacl) 5 assert(!defined(is_nacl) || !is_nacl)
6 6
7 import("../../mojo_sdk.gni") 7 import("../../mojo_sdk.gni")
8 8
9 mojo_sdk_source_set("system") { 9 mojo_sdk_source_set("system") {
10 sources = [ 10 sources = [
11 "system_thunks.cc", 11 "system_thunks.cc",
12 "system_thunks.h", 12 "system_thunks.h",
13 ] 13 ]
14 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] 14 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
15 mojo_sdk_deps = [ "mojo/public/c/system" ] 15 mojo_sdk_deps = [ "mojo/public/c/system" ]
16 16
17 # The GYP target analogous to this one builds this code into a 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 18 # static library. When building for Android, both the GYP and GN
19 # builds add --exclude-libs=ALL globally, which means that all 19 # builds add --exclude-libs=ALL globally, which means that all
20 # symbols in static libraries are excluded from export. That's a 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 21 # problem, as code outside this target needs to be able to call
22 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy 22 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy
23 # that all dependent targets remove that link flag. Since GN uses a 23 # that all dependent targets remove that link flag. Since GN uses a
24 # source_set here, this flag change is not needed. 24 # source_set here, this flag change is not needed.
25 } 25 }
26 26
27 # For internal use only.
28 mojo_sdk_source_set("system_impl_private") {
29 sources = [
30 "system_impl_private.h",
31 "system_impl_private_thunks.cc",
32 "system_impl_private_thunks.h",
33 ]
34 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
35 mojo_sdk_deps = [ "mojo/public/c/system" ]
36 }
37
27 mojo_sdk_source_set("gles2") { 38 mojo_sdk_source_set("gles2") {
28 sources = [ 39 sources = [
29 "gles2_impl_chromium_miscellaneous_thunks.cc", 40 "gles2_impl_chromium_miscellaneous_thunks.cc",
30 "gles2_impl_chromium_miscellaneous_thunks.h", 41 "gles2_impl_chromium_miscellaneous_thunks.h",
31 "gles2_impl_chromium_sub_image_thunks.cc", 42 "gles2_impl_chromium_sub_image_thunks.cc",
32 "gles2_impl_chromium_sub_image_thunks.h", 43 "gles2_impl_chromium_sub_image_thunks.h",
33 "gles2_impl_chromium_sync_point_thunks.cc", 44 "gles2_impl_chromium_sync_point_thunks.cc",
34 "gles2_impl_chromium_sync_point_thunks.h", 45 "gles2_impl_chromium_sync_point_thunks.h",
35 "gles2_impl_chromium_texture_mailbox_thunks.cc", 46 "gles2_impl_chromium_texture_mailbox_thunks.cc",
36 "gles2_impl_chromium_texture_mailbox_thunks.h", 47 "gles2_impl_chromium_texture_mailbox_thunks.h",
(...skipping 13 matching lines...) Expand all
50 "mojo/public/c/gles2:headers", 61 "mojo/public/c/gles2:headers",
51 "mojo/public/c/environment", 62 "mojo/public/c/environment",
52 "mojo/public/c/system", 63 "mojo/public/c/system",
53 ] 64 ]
54 65
55 if (is_mac) { 66 if (is_mac) {
56 # TODO(GYP): Make it a run-path dependent library. 67 # TODO(GYP): Make it a run-path dependent library.
57 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 68 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
58 } 69 }
59 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698