forked from sparkle-project/Sparkle
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathBUILD.gn
45 lines (34 loc) · 1.05 KB
/
BUILD.gn
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
assert(is_mac)
sparkle_binaries = [
"Sparkle.framework",
"BinaryDelta",
"generate_keys",
"sign_update"
]
bundle_data("sparkle_framework_bundle_data") {
public_deps = [ ":build_sparkle_framework" ]
sources = [ "$root_out_dir/Sparkle.framework" ]
outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ]
}
action("build_sparkle_framework") {
script="build_sparkle_framework.py"
outputs = []
foreach(binary, sparkle_binaries) {
outputs += [ "$root_out_dir/" + binary ]
}
}
copy("copy_old_sign_update") {
sources = [ "bin/old_dsa_scripts/sign_update" ]
outputs = [
"$root_out_dir/old_dsa_scripts/{{source_file_part}}",
]
}
action("tar_sparkle_binaries") {
script="tar_sparkle_binaries.py"
outputs = [ "$root_out_dir/sparkle_binaries.tar.gz" ]
args = sparkle_binaries
deps = [ ":build_sparkle_framework" ]
}