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

Side by Side Diff: sandbox/mac/BUILD.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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
« no previous file with comments | « sandbox/linux/BUILD.gn ('k') | sandbox/win/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import("//build/config/mac/mac_sdk.gni") 5 import("//build/config/mac/mac_sdk.gni")
6 6
7 component("sandbox") { 7 component("sandbox") {
8 sources = [ 8 sources = [
9 "bootstrap_sandbox.cc", 9 "bootstrap_sandbox.cc",
10 "bootstrap_sandbox.h", 10 "bootstrap_sandbox.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 generate_stubs_script = "//tools/generate_stubs/generate_stubs.py" 44 generate_stubs_script = "//tools/generate_stubs/generate_stubs.py"
45 generate_stubs_header = "xpc_stubs_header.fragment" 45 generate_stubs_header = "xpc_stubs_header.fragment"
46 generate_stubs_sig_public = "xpc_stubs.sig" 46 generate_stubs_sig_public = "xpc_stubs.sig"
47 generate_stubs_sig_private = "xpc_private_stubs.sig" 47 generate_stubs_sig_private = "xpc_private_stubs.sig"
48 generate_stubs_project = "sandbox/mac" 48 generate_stubs_project = "sandbox/mac"
49 generate_stubs_output_stem = "xpc_stubs" 49 generate_stubs_output_stem = "xpc_stubs"
50 50
51 action("generate_stubs") { 51 action("generate_stubs") {
52 script = generate_stubs_script 52 script = generate_stubs_script
53 sources = [ generate_stubs_sig_public, generate_stubs_sig_private ] 53 sources = [
54 inputs = [ generate_stubs_header ] 54 generate_stubs_sig_public,
55 generate_stubs_sig_private,
56 ]
57 inputs = [
58 generate_stubs_header,
59 ]
55 outputs = [ 60 outputs = [
56 "$target_gen_dir/$generate_stubs_output_stem.cc", 61 "$target_gen_dir/$generate_stubs_output_stem.cc",
57 "$target_gen_dir/$generate_stubs_output_stem.h", 62 "$target_gen_dir/$generate_stubs_output_stem.h",
58 ] 63 ]
59 args = [ 64 args = [
60 "-i", rebase_path(target_gen_dir, root_build_dir), 65 "-i",
61 "-o", rebase_path(target_gen_dir, root_build_dir), 66 rebase_path(target_gen_dir, root_build_dir),
62 "-t", "posix_stubs", 67 "-o",
63 "-e", rebase_path(generate_stubs_header, root_build_dir), 68 rebase_path(target_gen_dir, root_build_dir),
64 "-s", generate_stubs_output_stem, 69 "-t",
65 "-p", generate_stubs_project, 70 "posix_stubs",
66 "-x", "SANDBOX_EXPORT", 71 "-e",
72 rebase_path(generate_stubs_header, root_build_dir),
73 "-s",
74 generate_stubs_output_stem,
75 "-p",
76 generate_stubs_project,
77 "-x",
78 "SANDBOX_EXPORT",
67 ] 79 ]
68 args += rebase_path(sources, root_build_dir) 80 args += rebase_path(sources, root_build_dir)
69 } 81 }
70 82
71 test("sandbox_mac_unittests") { 83 test("sandbox_mac_unittests") {
72 sources = [ 84 sources = [
73 "bootstrap_sandbox_unittest.mm", 85 "bootstrap_sandbox_unittest.mm",
74 "dispatch_source_mach_unittest.cc", 86 "dispatch_source_mach_unittest.cc",
75 "policy_unittest.cc", 87 "policy_unittest.cc",
76 "xpc_message_server_unittest.cc", 88 "xpc_message_server_unittest.cc",
77 ] 89 ]
78 90
79 libs = [ 91 libs = [
80 "CoreFoundation.framework", 92 "CoreFoundation.framework",
81 "Foundation.framework", 93 "Foundation.framework",
82 ] 94 ]
83 95
84 deps = [ 96 deps = [
85 ":sandbox", 97 ":sandbox",
86 "//base", 98 "//base",
87 "//base/test:run_all_unittests", 99 "//base/test:run_all_unittests",
88 "//testing/gtest", 100 "//testing/gtest",
89 ] 101 ]
90 } 102 }
OLDNEW
« no previous file with comments | « sandbox/linux/BUILD.gn ('k') | sandbox/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698