extension_bundle_data.gni 829 B

1234567891011121314151617181920212223
  1. # Copyright 2021 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. # Template to package an app extension into an app.
  5. #
  6. # Parameters
  7. #
  8. # extension_target:
  9. # name of the extension target to package; the extension
  10. # bundle name must be derived from the target name
  11. #
  12. template("extension_bundle_data") {
  13. assert(defined(invoker.extension_target),
  14. "extension_target must be defined for $target_name")
  15. bundle_data(target_name) {
  16. public_deps = [ invoker.extension_target ]
  17. outputs = [ "{{bundle_contents_dir}}/PlugIns/{{source_file_part}}" ]
  18. sources = [ get_label_info(invoker.extension_target, "root_out_dir") + "/" +
  19. get_label_info(invoker.extension_target, "name") + ".appex" ]
  20. }
  21. }