blob: 44a55944a276bb84fbea4132a299c868761cb119 [file] [log] [blame]
brettwa874dcc2015-08-28 23:59:181# Copyright 2015 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
thomasanderson018ffc7f2017-06-22 01:25:335import("//build/config/c++/c++.gni")
brettwa874dcc2015-08-28 23:59:186import("//build/config/chrome_build.gni")
dpranke3b870612015-09-10 23:42:047import("//build/config/features.gni")
brettw4cab0f12015-09-14 21:40:018import("//build/config/sanitizers/sanitizers.gni")
thomasanderson7a01af42016-10-18 21:22:429import("//build/config/sysroot.gni")
Takuto Ikuta36541eb82018-08-01 02:09:5610import("//build/util/lastchange.gni")
raphael.kubo.da.costadc683d22016-09-17 19:41:1311import("//build/util/process_version.gni")
brettwa874dcc2015-08-28 23:59:1812import("//build/util/version.gni")
raphael.kubo.da.costadc683d22016-09-17 19:41:1313import("//chrome/process_version_rc_template.gni") # For branding_file_path.
Dirk Prankeccc0c362017-09-28 22:15:1114import("//components/nacl/features.gni")
Xiaohan Wang7b76fce32018-10-01 23:21:2915import("//third_party/widevine/cdm/widevine.gni")
brettwa874dcc2015-08-28 23:59:1816
Xiaohan Wang7b76fce32018-10-01 23:21:2917if (bundle_widevine_cdm) {
Xiaohan Wangcc32f2e2018-01-30 01:09:0518 import("//media/cdm/library_cdm/cdm_paths.gni")
xhwangc3a252b2016-05-23 02:35:4819}
20
Tom Anderson372cee72018-02-23 19:00:1321declare_args() {
22 # Enables checks that ensure the packages are installable on all supported
23 # distributions.
24 enable_distro_version_check = true
25}
26
sbcfa8f43b2016-10-05 17:11:3527assert(is_linux)
brettwa874dcc2015-08-28 23:59:1828
Tom Anderson7f6acf62017-09-08 03:13:0929packaging_files_executables = [
Tom Andersone068dcb2017-09-01 18:31:2130 "$root_out_dir/chrome",
31 "$root_out_dir/chrome_sandbox",
Joshua Perazace68e2f2019-09-23 18:44:2432 "$root_out_dir/crashpad_handler",
Tom Andersone068dcb2017-09-01 18:31:2133]
Tom Anderson7f6acf62017-09-08 03:13:0934packaging_files_shlibs = []
Tom Andersone068dcb2017-09-01 18:31:2135
36if (enable_nacl) {
Tom Anderson7f6acf62017-09-08 03:13:0937 packaging_files_executables += [
Tom Andersone068dcb2017-09-01 18:31:2138 "$root_out_dir/nacl_helper",
39 "$root_out_dir/nacl_helper_bootstrap",
40 ]
41
42 if (current_cpu == "x86") {
Tom Anderson7f6acf62017-09-08 03:13:0943 packaging_files_executables += [ "$root_out_dir/nacl_irt_x86_32.nexe" ]
Tom Andersone068dcb2017-09-01 18:31:2144 } else if (current_cpu == "x64") {
Tom Anderson7f6acf62017-09-08 03:13:0945 packaging_files_executables += [ "$root_out_dir/nacl_irt_x86_64.nexe" ]
Tom Andersone068dcb2017-09-01 18:31:2146 } else if (current_cpu == "arm") {
Tom Anderson7f6acf62017-09-08 03:13:0947 packaging_files_executables += [ "$root_out_dir/nacl_irt_arm.nexe" ]
Milko Leporis0f74ee82017-10-02 22:37:0748 } else if (current_cpu == "mipsel") {
49 packaging_files_executables += [ "$root_out_dir/nacl_irt_mips32.nexe" ]
Tom Andersone068dcb2017-09-01 18:31:2150 }
51}
52
Xiaohan Wang7b76fce32018-10-01 23:21:2953if (bundle_widevine_cdm) {
Xiaohan Wangd5b69c82018-03-20 22:18:3554 packaging_files_shlibs +=
55 [ "$root_out_dir/$widevine_cdm_path/libwidevinecdm.so" ]
Tom Andersone068dcb2017-09-01 18:31:2156}
57
Tom Anderson7f6acf62017-09-08 03:13:0958packaging_files_binaries = packaging_files_executables + packaging_files_shlibs
59
Tom Andersone068dcb2017-09-01 18:31:2160# TODO(mmoss) Any convenient way to get all the relevant build files?
61# (e.g. all locales, resources, etc.)
62packaging_files = packaging_files_binaries + [
63 "$root_out_dir/xdg-mime",
64 "$root_out_dir/xdg-settings",
65 "$root_out_dir/locales/en-US.pak",
Becca Hughesd89f6ff2017-12-13 13:20:4466 "$root_out_dir/MEIPreload/manifest.json",
67 "$root_out_dir/MEIPreload/preloaded_data.pb",
Tom Andersone068dcb2017-09-01 18:31:2168 ]
69
Tom Andersona80a9b42017-09-07 02:35:3370action_foreach("calculate_deb_dependencies") {
Tom Andersone068dcb2017-09-01 18:31:2171 deps = [
72 ":installer_deps",
73 ]
Tom Andersona80a9b42017-09-07 02:35:3374 script = "debian/calculate_package_deps.py"
Tom Andersone068dcb2017-09-01 18:31:2175 sources = packaging_files_binaries
Tom Anderson3a3c5882017-09-12 21:16:2476 inputs = [
77 "debian/deb_version.py",
Lei Zhange680353b2017-09-25 23:03:5078 "debian/dist_package_versions.json",
Tom Anderson3a3c5882017-09-12 21:16:2479 "debian/package_version_interval.py",
80 ]
Tom Andersone068dcb2017-09-01 18:31:2181 outputs = [
Tom Andersona80a9b42017-09-07 02:35:3382 "$root_out_dir/deb_{{source_name_part}}.deps",
Tom Andersone068dcb2017-09-01 18:31:2183 ]
84 args = [
85 "{{source}}",
86 rebase_path(sysroot, root_build_dir),
87 target_cpu,
Tom Andersona80a9b42017-09-07 02:35:3388 "deb_{{source_name_part}}.deps",
Tom Andersone068dcb2017-09-01 18:31:2189 ]
Tom Anderson372cee72018-02-23 19:00:1390 if (is_desktop_linux && target_cpu == "x64" && enable_distro_version_check) {
Tom Andersonc92bc272017-09-15 23:12:5791 args += [ "--distro-check" ]
92 }
Tom Andersone068dcb2017-09-01 18:31:2193}
94
Tom Andersona80a9b42017-09-07 02:35:3395action("merge_deb_dependencies") {
96 deps = [
97 ":calculate_deb_dependencies",
98 ]
99 script = "debian/merge_package_versions.py"
Tom Anderson21254bb2017-09-07 04:07:18100 additional_deps = "debian/additional_deps"
101 inputs = [
102 additional_deps,
Tom Anderson3a3c5882017-09-12 21:16:24103 "debian/deb_version.py",
104 "debian/package_version_interval.py",
Tom Andersona80a9b42017-09-07 02:35:33105 ]
Tom Anderson21254bb2017-09-07 04:07:18106 outputs = [
107 "$root_out_dir/deb_common.deps",
108 ]
109 args = [
110 "deb_common.deps",
111 rebase_path(additional_deps, root_build_dir),
112 ]
Tom Andersona80a9b42017-09-07 02:35:33113 args += rebase_path(get_target_outputs(":calculate_deb_dependencies"),
114 root_build_dir)
115}
116
Tom Anderson7f6acf62017-09-08 03:13:09117action_foreach("calculate_rpm_dependencies") {
118 deps = [
119 ":installer_deps",
120 ]
121 script = "rpm/calculate_package_deps.py"
122 sources = packaging_files_binaries
Tom Anderson3a3c5882017-09-12 21:16:24123 inputs = [
Lei Zhange680353b2017-09-25 23:03:50124 "rpm/dist_package_provides.json",
Tom Anderson3a3c5882017-09-12 21:16:24125 ]
Tom Anderson7f6acf62017-09-08 03:13:09126 outputs = [
127 "$root_out_dir/rpm_{{source_name_part}}.deps",
128 ]
129 args = [
130 "{{source}}",
131 "rpm_{{source_name_part}}.deps",
132 ]
133 args += rebase_path(packaging_files_shlibs, root_build_dir)
Tom Anderson372cee72018-02-23 19:00:13134 if (is_desktop_linux && target_cpu == "x64" && enable_distro_version_check) {
Tom Andersonc92bc272017-09-15 23:12:57135 args += [ "--distro-check" ]
136 }
Tom Anderson7f6acf62017-09-08 03:13:09137}
138
139action("merge_rpm_dependencies") {
140 deps = [
141 ":calculate_rpm_dependencies",
142 ]
143 script = "rpm/merge_package_deps.py"
Tom Anderson3a3c5882017-09-12 21:16:24144 additional_deps = "rpm/additional_deps"
145 inputs = [
146 additional_deps,
147 ]
Tom Anderson7f6acf62017-09-08 03:13:09148 outputs = [
149 "$root_out_dir/rpm_common.deps",
150 ]
Tom Anderson3a3c5882017-09-12 21:16:24151 args = [
152 "rpm_common.deps",
153 rebase_path(additional_deps, root_build_dir),
154 ]
Tom Anderson7f6acf62017-09-08 03:13:09155 args += rebase_path(get_target_outputs(":calculate_rpm_dependencies"),
156 root_build_dir)
157}
158
Tom Andersonce16a0c2017-09-02 00:27:51159action("strip_chrome_binary") {
160 prog_name = "$root_out_dir/chrome"
161 debug_file = prog_name + ".debug"
162 stripped_file = prog_name + ".stripped"
163 deps = [
164 "//chrome",
165 ]
Tom Anderson2bb2b382017-09-26 20:21:53166 script = "//build/gn_run_binary.py"
Tom Andersonce16a0c2017-09-02 00:27:51167 sources = [
Lei Zhang57032b32019-07-03 21:26:10168 "//buildtools/third_party/eu-strip/bin/eu-strip",
Tom Andersonce16a0c2017-09-02 00:27:51169 prog_name,
170 ]
171 outputs = [
172 debug_file,
173 stripped_file,
174 ]
175 args = [
Michael Spangab3960d2019-01-30 17:06:47176 rebase_path("//buildtools/third_party/eu-strip/bin/eu-strip",
177 root_build_dir),
Tom Anderson2bb2b382017-09-26 20:21:53178 "-o",
Tom Andersonce16a0c2017-09-02 00:27:51179 rebase_path(stripped_file, root_build_dir),
Tom Anderson2bb2b382017-09-26 20:21:53180 "-f",
181 rebase_path(debug_file, root_build_dir),
182 rebase_path(prog_name, root_build_dir),
Tom Andersonce16a0c2017-09-02 00:27:51183 ]
184}
185
brettwa874dcc2015-08-28 23:59:18186# This target builds all "normal" Linux installers.
brettwa874dcc2015-08-28 23:59:18187#
188# The bot setup is to build stable, unstable, and beta packages for the current
189# build. Then a later step picks up the package corresponding to what the
190# current build is supposed to be. This is wasteful since one build will only
Tom Anderson1d582482017-09-05 20:41:28191# be one of these.
brettwa874dcc2015-08-28 23:59:18192#
193# TODO it would be much nicer to have a build variable so the bot can tell us
194# what the current build should be, so we only have to make one .deb/.rpm pair.
195#
196#
197# TO BUILD LINUX INSTALLER PACKAGES
198#
199# The packages list the exact versions of each library used. The versions used
200# on the bots are likely different than those on your workstation, so you'll
201# get a stream of errors like:
202# < libasound2 (>= 1.0.23)
203# ---
204# > libasound2 (>= 1.0.16)
205#
206# To avoid these warnings for testing purposes, do:
207#
208# export IGNORE_DEPS_CHANGES=1
209#
210# before you build.
211group("linux") {
212 deps = [
213 ":beta",
214 ":stable",
215 ":unstable",
216 ]
217}
218
219branding_dir = "//chrome/app/theme/$branding_path_component"
220branding_dir_100 =
221 "//chrome/app/theme/default_100_percent/$branding_path_component"
222
223copy("common_packaging_files") {
224 visibility = [ ":*" ]
225 sources = [
Tom Anderson64b96142017-09-26 21:00:54226 "//chrome/app/resources/manpage.1.in",
brettwa874dcc2015-08-28 23:59:18227 "common/apt.include",
228 "common/default-app-block.template",
229 "common/default-app.template",
230 "common/desktop.template",
brettwa874dcc2015-08-28 23:59:18231 "common/installer.include",
232 "common/postinst.include",
233 "common/prerm.include",
234 "common/repo.cron",
235 "common/rpm.include",
236 "common/rpmrepo.cron",
237 "common/symlinks.include",
238 "common/variables.include",
239 "common/wrapper",
240 ]
241
sbcfa8f43b2016-10-05 17:11:35242 if (is_chrome_branded) {
tomas.popeladd765c02017-03-21 14:44:16243 sources += [
244 "common/google-chrome/google-chrome.appdata.xml.template",
245 "common/google-chrome/google-chrome.info",
246 ]
sbcfa8f43b2016-10-05 17:11:35247 } else {
tomas.popeladd765c02017-03-21 14:44:16248 sources += [
249 "common/chromium-browser/chromium-browser.appdata.xml",
250 "common/chromium-browser/chromium-browser.info",
251 ]
sbcfa8f43b2016-10-05 17:11:35252 }
253
Michael Spangab3960d2019-01-30 17:06:47254 sources += [ "//buildtools/third_party/eu-strip/bin/eu-strip" ]
brettwa874dcc2015-08-28 23:59:18255
256 outputs = [
257 "$root_out_dir/installer/common/{{source_file_part}}",
258 ]
259}
260
261copy("deb_packaging_files") {
262 visibility = [ ":*" ]
263 sources = [
264 "debian/build.sh",
265 "debian/changelog.template",
266 "debian/control.template",
267 "debian/debian.menu",
brettwa874dcc2015-08-28 23:59:18268 "debian/postinst",
269 "debian/postrm",
270 "debian/prerm",
271 ]
272 outputs = [
273 "$root_out_dir/installer/debian/{{source_file_part}}",
274 ]
275}
276
277copy("theme_files") {
278 visibility = [ ":*" ]
279 sources = [
280 "$branding_dir/BRANDING",
281 "$branding_dir/linux/product_logo_32.xpm",
282 "$branding_dir/product_logo_128.png",
brettwa874dcc2015-08-28 23:59:18283 "$branding_dir/product_logo_24.png",
284 "$branding_dir/product_logo_256.png",
285 "$branding_dir/product_logo_48.png",
286 "$branding_dir/product_logo_64.png",
287 "$branding_dir_100/product_logo_16.png",
288 "$branding_dir_100/product_logo_32.png",
289 ]
Tom Andersonc8ebf272017-11-17 23:41:33290 if (is_chrome_branded) {
291 sources += [
292 "$branding_dir/linux/product_logo_32_beta.xpm",
293 "$branding_dir/linux/product_logo_32_dev.xpm",
294 "$branding_dir/product_logo_128_beta.png",
295 "$branding_dir/product_logo_128_dev.png",
Tom Andersonc8ebf272017-11-17 23:41:33296 "$branding_dir/product_logo_24_beta.png",
297 "$branding_dir/product_logo_24_dev.png",
298 "$branding_dir/product_logo_256_beta.png",
299 "$branding_dir/product_logo_256_dev.png",
300 "$branding_dir/product_logo_48_beta.png",
301 "$branding_dir/product_logo_48_dev.png",
302 "$branding_dir/product_logo_64_beta.png",
303 "$branding_dir/product_logo_64_dev.png",
304 "$branding_dir_100/product_logo_16_beta.png",
305 "$branding_dir_100/product_logo_16_dev.png",
306 "$branding_dir_100/product_logo_32_beta.png",
307 "$branding_dir_100/product_logo_32_dev.png",
308 ]
309 }
brettwa874dcc2015-08-28 23:59:18310 outputs = [
311 "$root_out_dir/installer/theme/{{source_file_part}}",
312 ]
313}
314
315if (!is_chromeos) {
316 copy("rpm_packaging_files") {
317 visibility = [ ":*" ]
318 sources = [
319 "rpm/build.sh",
320 "rpm/chrome.spec.template",
brettwa874dcc2015-08-28 23:59:18321 ]
322 outputs = [
323 "$root_out_dir/installer/rpm/{{source_file_part}}",
324 ]
325 }
326}
327
328process_version("save_build_info") {
329 # Just output the default version info variables (no template).
330 process_only = true
raphael.kubo.da.costadc683d22016-09-17 19:41:13331 sources = [
raphael.kubo.da.costadc683d22016-09-17 19:41:13332 "//chrome/VERSION",
333 branding_file_path,
Takuto Ikuta36541eb82018-08-01 02:09:56334 lastchange_file,
raphael.kubo.da.costadc683d22016-09-17 19:41:13335 ]
brettwa874dcc2015-08-28 23:59:18336 output = "$root_out_dir/installer/version.txt"
337}
338
339# Dependencies for all Linux installer targets.
340group("installer_deps") {
mcgrathr6edf192f2015-10-19 19:39:11341 # Though many of these things appear in data_deps further down the
342 # dependency chain, they must appear here as public_deps so that they can
343 # be listed as inputs to the actions that depend on ":installer_deps"
344 # and are guaranteed to have been built before those actions run.
345
brettwa874dcc2015-08-28 23:59:18346 public_deps = [
347 ":common_packaging_files",
348 ":deb_packaging_files",
349 ":save_build_info",
Tom Andersonce16a0c2017-09-02 00:27:51350 ":strip_chrome_binary",
brettwa874dcc2015-08-28 23:59:18351 ":theme_files",
352 "//chrome",
353 "//chrome:packed_resources",
Becca Hughesd89f6ff2017-12-13 13:20:44354 "//chrome/browser/resources/media/mei_preload:component",
brettwa874dcc2015-08-28 23:59:18355 "//sandbox/linux:chrome_sandbox",
Joshua Perazace68e2f2019-09-23 18:44:24356 "//third_party/crashpad/crashpad/handler:crashpad_handler",
brettwa874dcc2015-08-28 23:59:18357 ]
dpranke3b870612015-09-10 23:42:04358 if (enable_nacl) {
mcgrathr6edf192f2015-10-19 19:39:11359 public_deps += [
brettwf4b4a4282015-12-16 00:41:13360 "//components/nacl/loader:nacl_helper",
mcgrathr6edf192f2015-10-19 19:39:11361
362 # These are data_deps of nacl_helper, but that is not enough,
363 # as explained above.
364 "//native_client/src/trusted/service_runtime/linux:bootstrap",
365 "//ppapi/native_client:irt",
366 ]
dpranke3b870612015-09-10 23:42:04367 }
Xiaohan Wang7b76fce32018-10-01 23:21:29368 if (bundle_widevine_cdm) {
Xiaohan Wangd5b69c82018-03-20 22:18:35369 public_deps += [ "//third_party/widevine/cdm" ]
brettwa874dcc2015-08-28 23:59:18370 }
371 if (!is_chromeos) {
372 public_deps += [ ":rpm_packaging_files" ]
373 }
374}
375
376# Creates .deb and .rpm (RPM for non-ChromeOS only) installer packages.
377#
378# channel:
379# Name of the channel.
380template("linux_package") {
381 assert(defined(invoker.channel))
382 channel = invoker.channel
383
384 if (current_cpu == "x86") {
mcgrathr6edf192f2015-10-19 19:39:11385 # The shell scripts use "ia32" instead of "x86".
brettwa874dcc2015-08-28 23:59:18386 build_script_arch = "ia32"
387 } else {
388 build_script_arch = current_cpu
389 }
390
brettwa874dcc2015-08-28 23:59:18391 deb_target_name = "${target_name}_deb"
392 action(deb_target_name) {
393 visibility = [ ":*" ]
Tom Anderson2bb2b382017-09-26 20:21:53394 script = "//build/gn_run_binary.py"
brettwa874dcc2015-08-28 23:59:18395
396 if (current_cpu == "x86") {
397 deb_arch = "i386"
398 } else if (current_cpu == "x64") {
399 deb_arch = "amd64"
400 } else if (current_cpu == "arm") {
401 deb_arch = "arm"
Halton Huoa8501eb2018-06-25 03:46:53402 } else if (current_cpu == "arm64") {
403 deb_arch = "arm64"
Milko Leporis0f74ee82017-10-02 22:37:07404 } else if (current_cpu == "mipsel") {
405 deb_arch = "mipsel"
Milko Leporisb6e93fc2018-01-24 21:40:19406 } else if (current_cpu == "mips64el") {
407 deb_arch = "mips64el"
brettwa874dcc2015-08-28 23:59:18408 } else {
409 assert(false, "Linux installer not configured for this architecture.")
410 }
411
Tom Andersone068dcb2017-09-01 18:31:21412 inputs = packaging_files
Tom Andersonfa4860c2017-09-15 23:23:40413 if (is_chrome_branded) {
414 package = "google-chrome"
415 } else {
416 package = "chromium-browser"
417 }
brettwa874dcc2015-08-28 23:59:18418 outputs = [
Tom Andersonfa4860c2017-09-15 23:23:40419 "$root_out_dir/${package}-${channel}_${chrome_version_full}-1_${deb_arch}.deb",
brettwa874dcc2015-08-28 23:59:18420 ]
421
422 args = [
brettwa874dcc2015-08-28 23:59:18423 rebase_path("$root_out_dir/installer/debian/build.sh", root_build_dir),
brettwa874dcc2015-08-28 23:59:18424 "-a",
425 build_script_arch,
Tom Andersoncae008e2017-09-01 01:47:35426 "-b",
427 rebase_path(root_out_dir, root_build_dir),
brettwa874dcc2015-08-28 23:59:18428 "-c",
429 invoker.channel,
430 "-d",
431 branding_path_component,
Tom Andersoncae008e2017-09-01 01:47:35432 "-o",
433 rebase_path(root_out_dir, root_build_dir),
thomasanderson7a01af42016-10-18 21:22:42434 "-s",
Tom Anderson04125932017-11-28 03:13:13435 rebase_path(sysroot, root_build_dir),
Tom Andersond7f95c632017-12-07 02:18:42436 "-t",
437 target_os,
brettwa874dcc2015-08-28 23:59:18438 ]
Tom Andersoncae008e2017-09-01 01:47:35439 if (is_official_build) {
440 args += [ "-f" ]
441 }
brettwa874dcc2015-08-28 23:59:18442 deps = [
443 ":installer_deps",
Tom Anderson21254bb2017-09-07 04:07:18444 ":merge_deb_dependencies",
brettwa874dcc2015-08-28 23:59:18445 ]
446 }
447
448 if (!is_chromeos) {
449 rpm_target_name = "${target_name}_rpm"
450 action(rpm_target_name) {
451 visibility = [ ":*" ]
Tom Anderson2bb2b382017-09-26 20:21:53452 script = "//build/gn_run_binary.py"
brettwa874dcc2015-08-28 23:59:18453
454 if (current_cpu == "x86") {
455 rpm_arch = "i386"
456 } else if (current_cpu == "x64") {
457 rpm_arch = "x86_64"
458 } else if (current_cpu == "arm") {
459 rpm_arch = "arm"
Halton Huoa8501eb2018-06-25 03:46:53460 } else if (current_cpu == "arm64") {
461 rpm_arch = "arm64"
Milko Leporis0f74ee82017-10-02 22:37:07462 } else if (current_cpu == "mipsel") {
463 rpm_arch = "mipsel"
Milko Leporisb6e93fc2018-01-24 21:40:19464 } else if (current_cpu == "mips64el") {
465 rpm_arch = "mips64el"
brettwa874dcc2015-08-28 23:59:18466 } else {
467 assert(false, "Linux installer not configured for this architecture.")
468 }
469
Tom Andersone068dcb2017-09-01 18:31:21470 inputs = packaging_files
Tom Andersonfa4860c2017-09-15 23:23:40471 if (is_chrome_branded) {
472 package = "google-chrome"
473 } else {
474 package = "chromium-browser"
475 }
brettwa874dcc2015-08-28 23:59:18476 outputs = [
Tom Andersonfa4860c2017-09-15 23:23:40477 "$root_out_dir/${package}-${channel}-${chrome_version_full}-1.${rpm_arch}.rpm",
brettwa874dcc2015-08-28 23:59:18478 ]
479
480 args = [
brettwa874dcc2015-08-28 23:59:18481 rebase_path("$root_out_dir/installer/rpm/build.sh", root_build_dir),
brettwa874dcc2015-08-28 23:59:18482 "-a",
483 build_script_arch,
Tom Andersoncae008e2017-09-01 01:47:35484 "-b",
485 rebase_path(root_out_dir, root_build_dir),
brettwa874dcc2015-08-28 23:59:18486 "-c",
487 invoker.channel,
488 "-d",
489 branding_path_component,
Tom Andersoncae008e2017-09-01 01:47:35490 "-o",
491 rebase_path(root_out_dir, root_build_dir),
Tom Andersond7f95c632017-12-07 02:18:42492 "-t",
493 target_os,
brettwa874dcc2015-08-28 23:59:18494 ]
Tom Andersoncae008e2017-09-01 01:47:35495 if (is_official_build) {
496 args += [ "-f" ]
497 }
brettwa874dcc2015-08-28 23:59:18498 deps = [
499 ":installer_deps",
Tom Anderson3a3c5882017-09-12 21:16:24500 ":merge_rpm_dependencies",
brettwa874dcc2015-08-28 23:59:18501 ]
502 }
503 }
504
505 group(target_name) {
506 deps = [
507 ":$deb_target_name",
508 ]
509 if (!is_chromeos) {
510 deps += [ ":$rpm_target_name" ]
511 }
512 }
513}
514
515# Standard packages.
516linux_package("stable") {
517 channel = "stable"
518}
519linux_package("beta") {
520 channel = "beta"
521}
522linux_package("unstable") {
523 channel = "unstable"
524}