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 # Deletes libsystem.dylib from the build dir, since it shadows |
| 6 # /usr/lib/libSystem.dylib on macOS. |
| 7 # TODO(thakis): Remove this after a while. |
| 8 action("clean_up_old_dylib") { |
| 9 script = "//build/rm.py" |
| 10 stamp = "$target_gen_dir/clean_up_stamp" |
| 11 outputs = [ |
| 12 stamp, |
| 13 ] |
| 14 args = [ |
| 15 "--stamp", |
| 16 rebase_path(stamp, root_build_dir), |
| 17 "-f", |
| 18 "libsystem.dylib", |
| 19 ] |
| 20 } |
| 21 |
5 component("system") { | 22 component("system") { |
| 23 output_name = "mojo_public_system_cpp" |
| 24 |
6 sources = [ | 25 sources = [ |
7 "buffer.cc", | 26 "buffer.cc", |
8 "buffer.h", | 27 "buffer.h", |
9 "core.h", | 28 "core.h", |
10 "data_pipe.h", | 29 "data_pipe.h", |
11 "functions.h", | 30 "functions.h", |
12 "handle.h", | 31 "handle.h", |
13 "message.h", | 32 "message.h", |
14 "message_pipe.h", | 33 "message_pipe.h", |
15 "platform_handle.cc", | 34 "platform_handle.cc", |
16 "platform_handle.h", | 35 "platform_handle.h", |
17 "system_export.h", | 36 "system_export.h", |
18 "watcher.cc", | 37 "watcher.cc", |
19 "watcher.h", | 38 "watcher.h", |
20 ] | 39 ] |
21 | 40 |
22 public_deps = [ | 41 public_deps = [ |
23 "//base", | 42 "//base", |
24 "//mojo/public/c/system", | 43 "//mojo/public/c/system", |
25 ] | 44 ] |
| 45 deps = [ |
| 46 ":clean_up_old_dylib", |
| 47 ] |
26 | 48 |
27 defines = [ "MOJO_CPP_SYSTEM_IMPLEMENTATION" ] | 49 defines = [ "MOJO_CPP_SYSTEM_IMPLEMENTATION" ] |
28 } | 50 } |
OLD | NEW |