| 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 component("sandbox") { | 5 component("sandbox") { |
| 6 sources = [ | 6 sources = [ |
| 7 "bootstrap_sandbox.cc", | 7 "bootstrap_sandbox.cc", |
| 8 "bootstrap_sandbox.h", | 8 "bootstrap_sandbox.h", |
| 9 "dispatch_source_mach.cc", | 9 "dispatch_source_mach.cc", |
| 10 "dispatch_source_mach.h", | 10 "dispatch_source_mach.h", |
| 11 "launchd_interception_server.cc", | 11 "launchd_interception_server.cc", |
| 12 "launchd_interception_server.h", | 12 "launchd_interception_server.h", |
| 13 "mach_message_server.cc", | 13 "mach_message_server.cc", |
| 14 "mach_message_server.h", | 14 "mach_message_server.h", |
| 15 "message_server.h", | 15 "message_server.h", |
| 16 "os_compatibility.cc", | 16 "os_compatibility.cc", |
| 17 "os_compatibility.h", | 17 "os_compatibility.h", |
| 18 "policy.cc", | 18 "policy.cc", |
| 19 "policy.h", | 19 "policy.h", |
| 20 "xpc.cc", |
| 20 "xpc.h", | 21 "xpc.h", |
| 22 "xpc_message_server.cc", |
| 23 "xpc_message_server.h", |
| 21 ] | 24 ] |
| 22 | 25 |
| 23 defines = [ "SANDBOX_IMPLEMENTATION" ] | 26 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 24 libs = [ "bsm" ] | 27 libs = [ "bsm" ] |
| 25 | 28 |
| 26 deps = [ | 29 deps = [ |
| 27 "//base", | 30 "//base", |
| 28 ":generate_stubs", | 31 ":generate_stubs", |
| 29 ] | 32 ] |
| 30 } | 33 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 "$target_gen_dir/$generate_stubs_output_stem.cc", | 47 "$target_gen_dir/$generate_stubs_output_stem.cc", |
| 45 "$target_gen_dir/$generate_stubs_output_stem.h", | 48 "$target_gen_dir/$generate_stubs_output_stem.h", |
| 46 ] | 49 ] |
| 47 args = [ | 50 args = [ |
| 48 "-i", rebase_path(target_gen_dir, root_build_dir), | 51 "-i", rebase_path(target_gen_dir, root_build_dir), |
| 49 "-o", rebase_path(target_gen_dir, root_build_dir), | 52 "-o", rebase_path(target_gen_dir, root_build_dir), |
| 50 "-t", "posix_stubs", | 53 "-t", "posix_stubs", |
| 51 "-e", rebase_path(generate_stubs_header, root_build_dir), | 54 "-e", rebase_path(generate_stubs_header, root_build_dir), |
| 52 "-s", generate_stubs_output_stem, | 55 "-s", generate_stubs_output_stem, |
| 53 "-p", generate_stubs_project, | 56 "-p", generate_stubs_project, |
| 57 "-x", "SANDBOX_EXPORT", |
| 54 ] | 58 ] |
| 55 args += rebase_path(sources, root_build_dir) | 59 args += rebase_path(sources, root_build_dir) |
| 56 } | 60 } |
| 57 | 61 |
| 58 test("sandbox_mac_unittests") { | 62 test("sandbox_mac_unittests") { |
| 59 sources = [ | 63 sources = [ |
| 60 "bootstrap_sandbox_unittest.mm", | 64 "bootstrap_sandbox_unittest.mm", |
| 61 "dispatch_source_mach_unittest.cc", | 65 "dispatch_source_mach_unittest.cc", |
| 62 "policy_unittest.cc", | 66 "policy_unittest.cc", |
| 67 "xpc_message_server_unittest.cc", |
| 63 ] | 68 ] |
| 64 | 69 |
| 65 libs = [ | 70 libs = [ |
| 66 "CoreFoundation.framework", | 71 "CoreFoundation.framework", |
| 67 "Foundation.framework", | 72 "Foundation.framework", |
| 68 ] | 73 ] |
| 69 | 74 |
| 70 deps = [ | 75 deps = [ |
| 71 ":sandbox", | 76 ":sandbox", |
| 72 "//base", | 77 "//base", |
| 73 "//base/test:run_all_unittests", | 78 "//base/test:run_all_unittests", |
| 74 "//testing/gtest", | 79 "//testing/gtest", |
| 75 ] | 80 ] |
| 76 } | 81 } |
| OLD | NEW |