summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/zip_archiver/BUILD.gn
blob: b0a1ef829607ad22d8b5308e0990b925b9d734e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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}}",
  ]
}

static_library("char_coding") {
  sources = [
    "cpp/char_coding.cc",
    "cpp/char_coding.h",
  ]
}