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

Side by Side Diff: chrome/installer/mac/BUILD.gn

Issue 2914783003: Copy variables.sh for all signing script targets. (Closed)
Patch Set: Add visibility rules Created 3 years, 6 months 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/util/branding.gni") 5 import("//build/util/branding.gni")
6 import("//build/util/version.gni") 6 import("//build/util/version.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 8
9 group("mac") { 9 group("mac") {
10 public_deps = [ 10 public_deps = [
11 ":copies", 11 ":copies",
12 ":make_signers", 12 ":make_signers",
13 "app:mac_installer_app", 13 "app:mac_installer_app",
14 ] 14 ]
15 15
16 if (is_chrome_branded) { 16 if (is_chrome_branded) {
17 public_deps += [ ":keychain_reauthorizers" ] 17 public_deps += [ ":keychain_reauthorizers" ]
18 } 18 }
19 } 19 }
20 20
21 _packaging_dir = "$root_out_dir/$chrome_product_full_name Packaging" 21 _packaging_dir = "$root_out_dir/$chrome_product_full_name Packaging"
22 22
23 action("make_signers") { 23 action("make_signers") {
24 visibility = [ ":mac" ] 24 visibility = [ ":mac" ]
25 25
26 script = "//build/gn_run_binary.py" 26 script = "//build/gn_run_binary.py"
27 shell_script = "//chrome/installer/mac/make_signers.sh" 27 shell_script = "//chrome/installer/mac/make_signers.sh"
28 28
29 deps = [
30 ":copy_variables",
31 ]
32
29 inputs = [ 33 inputs = [
30 script, 34 script,
31 shell_script, 35 shell_script,
32 "sign_app.sh.in", 36 "sign_app.sh.in",
33 "sign_versioned_dir.sh.in", 37 "sign_versioned_dir.sh.in",
34 "app_resource_rules.plist.in", 38 "app_resource_rules.plist.in",
35 "//chrome/VERSION", 39 "//chrome/VERSION",
36 ] 40 ]
37 41
38 outputs = [ 42 outputs = [
39 "$_packaging_dir/sign_app.sh", 43 "$_packaging_dir/sign_app.sh",
40 "$_packaging_dir/sign_versioned_dir.sh", 44 "$_packaging_dir/sign_versioned_dir.sh",
41 "$_packaging_dir/app_resource_rules.plist", 45 "$_packaging_dir/app_resource_rules.plist",
42 ] 46 ]
43 47
44 args = [ 48 args = [
45 rebase_path(shell_script, root_build_dir), 49 rebase_path(shell_script, root_build_dir),
46 rebase_path(_packaging_dir, root_build_dir), 50 rebase_path(_packaging_dir, root_build_dir),
47 chrome_product_full_name, 51 chrome_product_full_name,
48 chrome_version_full, 52 chrome_version_full,
49 ] 53 ]
50 } 54 }
51 55
56 copy("copy_variables") {
57 visibility = [
58 ":make_signers",
59 ":copies",
60 ]
61 sources = [
62 "variables.sh",
63 ]
64 outputs = [
65 "$_packaging_dir/{{source_file_part}}",
66 ]
67 }
68
52 copy("copies") { 69 copy("copies") {
53 visibility = [ ":mac" ] 70 visibility = [ ":mac" ]
54 71
55 deps = [ 72 deps = [
73 ":copy_variables",
56 "//chrome/installer/mac/third_party/bsdiff:goobsdiff", 74 "//chrome/installer/mac/third_party/bsdiff:goobsdiff",
57 "//chrome/installer/mac/third_party/bsdiff:goobspatch", 75 "//chrome/installer/mac/third_party/bsdiff:goobspatch",
58 "//chrome/installer/mac/third_party/xz:lzma_decompress", 76 "//chrome/installer/mac/third_party/xz:lzma_decompress",
59 "//chrome/installer/mac/third_party/xz:xz", 77 "//chrome/installer/mac/third_party/xz:xz",
60 "//chrome/installer/mac/third_party/xz:xzdec", 78 "//chrome/installer/mac/third_party/xz:xzdec",
61 ] 79 ]
62 80
63 sources = [ 81 sources = [
64 "$root_out_dir/goobsdiff", 82 "$root_out_dir/goobsdiff",
65 "$root_out_dir/goobspatch", 83 "$root_out_dir/goobspatch",
66 "$root_out_dir/liblzma_decompress.dylib", 84 "$root_out_dir/liblzma_decompress.dylib",
67 "$root_out_dir/xz", 85 "$root_out_dir/xz",
68 "$root_out_dir/xzdec", 86 "$root_out_dir/xzdec",
69 "dirdiffer.sh", 87 "dirdiffer.sh",
70 "dirpatcher.sh", 88 "dirpatcher.sh",
71 "dmgdiffer.sh", 89 "dmgdiffer.sh",
72 "pkg-dmg", 90 "pkg-dmg",
73 "sign_installer_tools.sh", 91 "sign_installer_tools.sh",
74 "variables.sh",
75 ] 92 ]
76 93
77 if (is_chrome_branded) { 94 if (is_chrome_branded) {
78 sources += [ "keystone_install.sh" ] 95 sources += [ "keystone_install.sh" ]
79 } 96 }
80 97
81 if (is_chrome_branded) { 98 if (is_chrome_branded) {
82 sources += [ 99 sources += [
83 "//chrome/app/theme/google_chrome/mac/app_canary.icns", 100 "//chrome/app/theme/google_chrome/mac/app_canary.icns",
84 "//chrome/app/theme/google_chrome/mac/document_canary.icns", 101 "//chrome/app/theme/google_chrome/mac/document_canary.icns",
(...skipping 20 matching lines...) Expand all
105 sources = [ 122 sources = [
106 "internal/keychain_reauthorizers/com.google.Chrome", 123 "internal/keychain_reauthorizers/com.google.Chrome",
107 "internal/keychain_reauthorizers/com.google.Chrome.canary", 124 "internal/keychain_reauthorizers/com.google.Chrome.canary",
108 ] 125 ]
109 126
110 outputs = [ 127 outputs = [
111 "$_packaging_dir/keychain_reauthorizers/{{source_file_part}}", 128 "$_packaging_dir/keychain_reauthorizers/{{source_file_part}}",
112 ] 129 ]
113 } 130 }
114 } 131 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698