OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/util/process_version.gni") | 8 import("//build/util/process_version.gni") |
9 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
10 import("//chrome/process_version_rc_template.gni") # For branding_file_path. | 10 import("//chrome/process_version_rc_template.gni") # For branding_file_path. |
11 | 11 |
12 if (current_cpu == "x86" || current_cpu == "x64") { | 12 if (current_cpu == "x86" || current_cpu == "x64") { |
13 import("//media/cdm/ppapi/cdm_paths.gni") | 13 import("//media/cdm/ppapi/cdm_paths.gni") |
14 } | 14 } |
15 | 15 |
16 assert(is_linux && is_chrome_branded) | 16 assert(is_linux) |
17 | 17 |
18 # This target builds all "normal" Linux installers. | 18 # This target builds all "normal" Linux installers. |
19 # | 19 # |
20 # The bot setup is to build stable, unstable, and beta packages for the current | 20 # The bot setup is to build stable, unstable, and beta packages for the current |
21 # build. Then a later step picks up the package corresponding to what the | 21 # build. Then a later step picks up the package corresponding to what the |
22 # current build is supposed to be. This is wasteful since one build will only | 22 # current build is supposed to be. This is wasteful since one build will only |
23 # be one of these. This build file also has targets for trunk and possibly asan | 23 # be one of these. This build file also has targets for trunk and possibly asan |
24 # installers. | 24 # installers. |
25 # | 25 # |
26 # TODO it would be much nicer to have a build variable so the bot can tell us | 26 # TODO it would be much nicer to have a build variable so the bot can tell us |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 branding_dir_100 = | 65 branding_dir_100 = |
66 "//chrome/app/theme/default_100_percent/$branding_path_component" | 66 "//chrome/app/theme/default_100_percent/$branding_path_component" |
67 | 67 |
68 copy("common_packaging_files") { | 68 copy("common_packaging_files") { |
69 visibility = [ ":*" ] | 69 visibility = [ ":*" ] |
70 sources = [ | 70 sources = [ |
71 "common/apt.include", | 71 "common/apt.include", |
72 "common/default-app-block.template", | 72 "common/default-app-block.template", |
73 "common/default-app.template", | 73 "common/default-app.template", |
74 "common/desktop.template", | 74 "common/desktop.template", |
75 "common/google-chrome/google-chrome.info", | |
76 "common/installer.include", | 75 "common/installer.include", |
77 "common/postinst.include", | 76 "common/postinst.include", |
78 "common/prerm.include", | 77 "common/prerm.include", |
79 "common/repo.cron", | 78 "common/repo.cron", |
80 "common/rpm.include", | 79 "common/rpm.include", |
81 "common/rpmrepo.cron", | 80 "common/rpmrepo.cron", |
82 "common/symlinks.include", | 81 "common/symlinks.include", |
83 "common/variables.include", | 82 "common/variables.include", |
84 "common/wrapper", | 83 "common/wrapper", |
85 ] | 84 ] |
86 | 85 |
| 86 if (is_chrome_branded) { |
| 87 sources += [ "common/google-chrome/google-chrome.info" ] |
| 88 } else { |
| 89 sources += [ "common/chromium-browser/chromium-browser.info" ] |
| 90 } |
| 91 |
87 if (current_cpu == "x86") { | 92 if (current_cpu == "x86") { |
88 sources += [ "//build/linux/bin/eu-strip" ] | 93 sources += [ "//build/linux/bin/eu-strip" ] |
89 } else if (current_cpu == "x64") { | 94 } else if (current_cpu == "x64") { |
90 sources += [ "/usr/bin/eu-strip" ] | 95 sources += [ "/usr/bin/eu-strip" ] |
91 } | 96 } |
92 | 97 |
93 outputs = [ | 98 outputs = [ |
94 "$root_out_dir/installer/common/{{source_file_part}}", | 99 "$root_out_dir/installer/common/{{source_file_part}}", |
95 ] | 100 ] |
96 } | 101 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 "$root_out_dir/chrome_sandbox", | 222 "$root_out_dir/chrome_sandbox", |
218 "$root_out_dir/xdg-mime", | 223 "$root_out_dir/xdg-mime", |
219 "$root_out_dir/xdg-settings", | 224 "$root_out_dir/xdg-settings", |
220 "$root_out_dir/locales/en-US.pak", | 225 "$root_out_dir/locales/en-US.pak", |
221 | 226 |
222 "$root_out_dir/nacl_helper", | 227 "$root_out_dir/nacl_helper", |
223 "$root_out_dir/nacl_helper_bootstrap", | 228 "$root_out_dir/nacl_helper_bootstrap", |
224 ] | 229 ] |
225 | 230 |
226 if (current_cpu == "x86") { | 231 if (current_cpu == "x86") { |
| 232 packaging_files_binaries += [ "$root_out_dir/nacl_irt_x86_32.nexe" ] |
| 233 } else if (current_cpu == "x64") { |
| 234 packaging_files_binaries += [ "$root_out_dir/nacl_irt_x86_64.nexe" ] |
| 235 } else if (current_cpu == "arm") { |
| 236 packaging_files_binaries += [ "$root_out_dir/nacl_irt_arm.nexe" ] |
| 237 } |
| 238 |
| 239 if (is_chrome_branded) { |
227 packaging_files_binaries += [ | 240 packaging_files_binaries += [ |
228 "$root_out_dir/nacl_irt_x86_32.nexe", | |
229 "$root_out_dir/$widevine_cdm_path/libwidevinecdmadapter.so", | 241 "$root_out_dir/$widevine_cdm_path/libwidevinecdmadapter.so", |
230 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.so", | 242 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.so", |
231 ] | 243 ] |
232 } else if (current_cpu == "x64") { | |
233 packaging_files_binaries += [ | |
234 "$root_out_dir/nacl_irt_x86_64.nexe", | |
235 "$root_out_dir/$widevine_cdm_path/libwidevinecdmadapter.so", | |
236 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.so", | |
237 ] | |
238 } else if (current_cpu == "arm") { | |
239 packaging_files_binaries += [ "$root_out_dir/nacl_irt_arm.nexe" ] | |
240 } | 244 } |
| 245 |
241 if (is_asan) { | 246 if (is_asan) { |
242 packaging_files_binaries += [ "$root_out_dir/lib/libc++.so" ] | 247 packaging_files_binaries += [ "$root_out_dir/lib/libc++.so" ] |
243 } | 248 } |
244 | 249 |
245 deb_target_name = "${target_name}_deb" | 250 deb_target_name = "${target_name}_deb" |
246 action(deb_target_name) { | 251 action(deb_target_name) { |
247 visibility = [ ":*" ] | 252 visibility = [ ":*" ] |
248 script = "flock_make_package.py" | 253 script = "flock_make_package.py" |
249 | 254 |
250 if (current_cpu == "x86") { | 255 if (current_cpu == "x86") { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 # Other packages that we support that aren't included in the default "linux" | 351 # Other packages that we support that aren't included in the default "linux" |
347 # target. | 352 # target. |
348 linux_package("trunk") { | 353 linux_package("trunk") { |
349 channel = "trunk" | 354 channel = "trunk" |
350 } | 355 } |
351 if (is_asan) { | 356 if (is_asan) { |
352 linux_package("asan") { | 357 linux_package("asan") { |
353 channel = "asan" | 358 channel = "asan" |
354 } | 359 } |
355 } | 360 } |
OLD | NEW |