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# 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. 8action("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 22component("system") { 23 output_name = "mojo_public_system_cpp" 24 25 sources = [ 26 "buffer.cc", 27 "buffer.h", 28 "core.h", 29 "data_pipe.h", 30 "data_pipe_drainer.cc", 31 "data_pipe_drainer.h", 32 "data_pipe_utils.cc", 33 "data_pipe_utils.h", 34 "file_data_pipe_producer.cc", 35 "file_data_pipe_producer.h", 36 "functions.h", 37 "handle.h", 38 "handle_signal_tracker.cc", 39 "handle_signal_tracker.h", 40 "handle_signals_state.h", 41 "invitation.cc", 42 "invitation.h", 43 "isolated_connection.cc", 44 "isolated_connection.h", 45 "message.h", 46 "message_pipe.cc", 47 "message_pipe.h", 48 "platform_handle.cc", 49 "platform_handle.h", 50 "scope_to_message_pipe.cc", 51 "scope_to_message_pipe.h", 52 "simple_watcher.cc", 53 "simple_watcher.h", 54 "string_data_pipe_producer.cc", 55 "string_data_pipe_producer.h", 56 "system_export.h", 57 "trap.cc", 58 "trap.h", 59 "wait.cc", 60 "wait.h", 61 "wait_set.cc", 62 "wait_set.h", 63 ] 64 65 public_deps = [ 66 "//base", 67 "//mojo/public/c/system", 68 "//mojo/public/cpp/platform", 69 ] 70 deps = [ 71 ":clean_up_old_dylib", 72 ] 73 74 defines = [ "MOJO_CPP_SYSTEM_IMPLEMENTATION" ] 75} 76