| OLD | NEW |
| 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 # For internal use only. |
| 10 mojo_sdk_source_set("core_system") { |
| 11 sources = [ |
| 12 "core_system_api.h", |
| 13 "core_system_thunks.cc", |
| 14 "core_system_thunks.h", |
| 15 ] |
| 16 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] |
| 17 mojo_sdk_deps = [ "mojo/public/c/system" ] |
| 18 |
| 19 # The GYP target analogous to this one builds this code into a |
| 20 # static library. When building for Android, both the GYP and GN |
| 21 # builds add --exclude-libs=ALL globally, which means that all |
| 22 # symbols in static libraries are excluded from export. That's a |
| 23 # problem, as code outside this target needs to be able to call |
| 24 # MojoSetCoreSystemThunks(). Therefore, the GYP target needs to specifiy |
| 25 # that all dependent targets remove that link flag. Since GN uses a |
| 26 # source_set here, this flag change is not needed. |
| 27 } |
| 28 |
| 9 mojo_sdk_source_set("system") { | 29 mojo_sdk_source_set("system") { |
| 10 sources = [ | 30 sources = [ |
| 11 "system_thunks.cc", | 31 "system_thunks.cc", |
| 12 "system_thunks.h", | 32 "system_thunks.h", |
| 13 ] | 33 ] |
| 14 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] | 34 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] |
| 15 mojo_sdk_deps = [ "mojo/public/c/system" ] | 35 mojo_sdk_deps = [ "mojo/public/c/system" ] |
| 16 | 36 |
| 17 # The GYP target analogous to this one builds this code into a | 37 # The GYP target analogous to this one builds this code into a |
| 18 # static library. When building for Android, both the GYP and GN | 38 # static library. When building for Android, both the GYP and GN |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 "mojo/public/c/gles2:headers", | 70 "mojo/public/c/gles2:headers", |
| 51 "mojo/public/c/environment", | 71 "mojo/public/c/environment", |
| 52 "mojo/public/c/system", | 72 "mojo/public/c/system", |
| 53 ] | 73 ] |
| 54 | 74 |
| 55 if (is_mac) { | 75 if (is_mac) { |
| 56 # TODO(GYP): Make it a run-path dependent library. | 76 # TODO(GYP): Make it a run-path dependent library. |
| 57 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 77 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 58 } | 78 } |
| 59 } | 79 } |
| OLD | NEW |