1234567891011121314151617181920212223 |
- # Copyright 2021 The Chromium Authors. All rights reserved.
- # Use of this source code is governed by a BSD-style license that can be
- # found in the LICENSE file.
- # Template to package an app extension into an app.
- #
- # Parameters
- #
- # extension_target:
- # name of the extension target to package; the extension
- # bundle name must be derived from the target name
- #
- template("extension_bundle_data") {
- assert(defined(invoker.extension_target),
- "extension_target must be defined for $target_name")
- bundle_data(target_name) {
- public_deps = [ invoker.extension_target ]
- outputs = [ "{{bundle_contents_dir}}/PlugIns/{{source_file_part}}" ]
- sources = [ get_label_info(invoker.extension_target, "root_out_dir") + "/" +
- get_label_info(invoker.extension_target, "name") + ".appex" ]
- }
- }
|