File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (127 lines) | stat: -rw-r--r-- 4,615 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/zip.gni")
import("//remoting/build/config/remoting_build.gni")
import("//remoting/host/installer/credits.gni")
import("//remoting/remoting_locales.gni")
import("//remoting/remoting_options.gni")

remoting_credits("credits") {
  gn_target = "//remoting/host/installer/linux:remoting_me2me_host_archive"
}

build_deb_script = "build_deb.py"
deb_filename =
    "$root_build_dir/" + exec_script(build_deb_script,
                                     [
                                       "-p",
                                       "-s",
                                       rebase_path("//", root_build_dir),
                                     ],
                                     "string",
                                     [ "build-deb.sh" ])
changes_filename =
    "$root_build_dir/" + get_path_info(deb_filename, "name") + ".changes"

packaging_outputs = [
  deb_filename,
  changes_filename,
]

zip("remoting_me2me_host_archive") {
  # Store the installer package(s) into a zip file so there is a
  # consistent filename to reference for build archiving (i.e. in
  # FILES.cfg). This also avoids possible conflicts with "wildcard"
  # package handling in other build/signing scripts.
  inputs = packaging_outputs
  output = "$root_build_dir/remoting-me2me-host-linux.zip"
  deps = [ ":remoting_me2me_host_copy" ]
}

copy("remoting_me2me_host_copy") {
  # Copy the debian package file, which has version info in it,
  # to a consistewnt filename for use on Chromoting swarming bots.
  sources = [ deb_filename ]
  outputs = [ "$root_build_dir/remoting-me2me-host.deb" ]
  public_deps = [ ":remoting_me2me_host_deb_installer" ]
}

action("remoting_me2me_host_deb_installer") {
  script = build_deb_script
  inputs = [
    build_deb_script,
    "Makefile",
    "debian/chrome-remote-desktop.init",
    "debian/chrome-remote-desktop.pam",
    "debian/compat",
    "debian/control",
    "debian/copyright",
    "debian/postinst",
    "debian/postrm",
    "debian/preinst",
    "debian/prerm",
    "debian/rules",
    "debian/triggers",

    # Files to be packaged into the deb.
    "//remoting/host/installer/linux/Xsession",
    "//remoting/host/installer/linux/is-remoting-session",
    "//remoting/host/linux/configure_url_forwarder.py",
    "//remoting/host/linux/linux_me2me_host.py",
    "//remoting/host/linux/pipewire.conf.template",
    "//remoting/host/linux/pipewire-media-session.conf.template",
    "//remoting/host/linux/pipewire-pulse.conf.template",
    "//remoting/host/linux/wireplumber.conf.fragment",
    "//remoting/host/linux/wireplumber.conf.template",
    "$root_gen_dir/remoting/CREDITS.txt",
    "$root_out_dir/icudtl.dat",
    "$root_out_dir/libremoting_core.so",
    "$root_out_dir/remote_assistance_host",
    "$root_out_dir/remote_open_url",
    "$root_out_dir/remote_webauthn",
    "$root_out_dir/remoting_crashpad_handler",
    "$root_out_dir/remoting_me2me_host",
    "$root_out_dir/remoting_native_messaging_host",
    "$root_out_dir/remoting_start_host",
    "$root_out_dir/remoting_user_session",
    "$root_out_dir/remoting/com.google.chrome.remote_assistance-firefox.json",
    "$root_out_dir/remoting/com.google.chrome.remote_assistance.json",
    "$root_out_dir/remoting/com.google.chrome.remote_desktop-firefox.json",
    "$root_out_dir/remoting/com.google.chrome.remote_desktop.json",
    "$root_out_dir/remoting/com.google.chrome.remote_webauthn.json",
    "$root_out_dir/remoting/crd-url-forwarder.desktop",
  ]

  inputs += process_file_template(
          remoting_locales,
          [ "$root_gen_dir/remoting/resources/{{source_name_part}}.pak" ])

  outputs = packaging_outputs
  sources = [ "build-deb.sh" ]
  args = [
    "-s",
    rebase_path("//", root_build_dir),
    "-o",
    ".",
  ]
  inputs += [ "//remoting/host/installer/linux/chrome-remote-desktop@.service" ]

  deps = [
    ":credits",
    "//remoting/host:remoting_core",
    "//remoting/host:remoting_me2me_host",
    "//remoting/host:remoting_native_messaging_host",
    "//remoting/host:remoting_native_messaging_manifests",
    "//remoting/host:remoting_start_host",
    "//remoting/host/crash:crash_tools",
    "//remoting/host/it2me:remote_assistance_host",
    "//remoting/host/linux:remoting_user_session",
    "//remoting/host/linux:url_forwarder_desktop_entry",
    "//remoting/host/remote_open_url",
    "//remoting/host/webauthn:remote_webauthn",
    "//remoting/resources",
    "//third_party/icu:icudata",
  ]
}