naiveproxy/chrome/browser/resources/chromeos/zip_archiver/BUILD.gn
2018-01-29 00:30:36 +08:00

94 lines
1.9 KiB
Plaintext

# Copyright 2017 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.
group("zip_archiver") {
deps = [
":zip_archiver_css",
":zip_archiver_html",
":zip_archiver_icons",
":zip_archiver_js",
":zip_archiver_root",
]
}
zip_archiver_dir = "$root_out_dir/resources/chromeos/zip_archiver"
copy("zip_archiver_css") {
sources = [
"css/passphrase-dialog.css",
"css/passphrase.css",
]
outputs = [
"$zip_archiver_dir/css/{{source_file_part}}",
]
}
copy("zip_archiver_html") {
sources = [
"html/passphrase-dialog.html",
"html/passphrase.html",
]
outputs = [
"$zip_archiver_dir/html/{{source_file_part}}",
]
}
copy("zip_archiver_icons") {
sources = [
"icons/icon128.png",
"icons/icon16.png",
"icons/icon32.png",
"icons/icon64.png",
"icons/icon96.png",
]
outputs = [
"$zip_archiver_dir/icons/{{source_file_part}}",
]
}
copy("zip_archiver_js") {
sources = [
"js/app.js",
"js/background.js",
"js/build-config.js",
"js/compressor.js",
"js/decompressor.js",
"js/file_operation_utils.js",
"js/main.js",
"js/passphrase-dialog.js",
"js/passphrase-manager.js",
"js/request.js",
"js/types.js",
"js/unpacker.js",
"js/volume.js",
]
outputs = [
"$zip_archiver_dir/js/{{source_file_part}}",
]
}
copy("zip_archiver_root") {
pexe_dir = get_label_info(
"//chrome/browser/resources/chromeos/zip_archiver/cpp:zip_archiver_pnacl(//build/toolchain/nacl:newlib_pnacl)",
"root_out_dir")
deps = [
"//chrome/browser/resources/chromeos/zip_archiver/cpp:zip_archiver_pnacl(//build/toolchain/nacl:newlib_pnacl)",
]
sources = [
"$pexe_dir/zip_archiver_pnacl.pexe",
"manifest.json",
"module.nmf",
]
outputs = [
"$zip_archiver_dir/{{source_file_part}}",
]
}