• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Template to package an app extension into an app.
6#
7# Parameters
8#
9#   extension_target:
10#     name of the extension target to package; the extension
11#     bundle name must be derived from the target name
12#
13template("extension_bundle_data") {
14  assert(defined(invoker.extension_target),
15         "extension_target must be defined for $target_name")
16
17  bundle_data(target_name) {
18    public_deps = [ invoker.extension_target ]
19    outputs = [ "{{bundle_contents_dir}}/PlugIns/{{source_file_part}}" ]
20    sources = [ get_label_info(invoker.extension_target, "root_out_dir") + "/" +
21                get_label_info(invoker.extension_target, "name") + ".appex" ]
22  }
23}
24