1 # Copyright 2014 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.
5 import("//third_party/protobuf/proto_library.gni")
7 static_library("crx_file") {
21 public_deps = [ ":crx3_proto" ]
24 static_library("crx_creator") {
36 public_deps = [ ":crx3_proto" ]
39 bundle_data("unit_tests_bundle_data") {
40 visibility = [ ":unit_tests" ]
43 "//components/test/data/crx_file/sample.zip",
44 "//components/test/data/crx_file/unsigned.crx3",
45 "//components/test/data/crx_file/valid.crx2",
46 "//components/test/data/crx_file/valid_no_publisher.crx3",
47 "//components/test/data/crx_file/valid_publisher.crx3",
48 "//components/test/data/crx_file/valid_test_publisher.crx3",
50 outputs = [ "{{bundle_resources_dir}}/" +
51 "{{source_root_relative_dir}}/{{source_file_part}}" ]
54 source_set("unit_tests") {
57 "crx_creator_unittest.cc",
58 "crx_verifier_unittest.cc",
59 "id_util_unittest.cc",
65 ":unit_tests_bundle_data",
72 proto_library("crx3_proto") {
73 sources = [ "crx3.proto" ]
76 if (host_toolchain == current_toolchain) {
77 executable("crx3_build_action") {
80 sources = [ "crx_build_action_main.cc" ]