-
Notifications
You must be signed in to change notification settings - Fork 868
/
BUILD.gn
55 lines (49 loc) · 2.7 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
46
47
48
49
50
51
52
53
54
55
# Copyright (c) 2021 The Brave Authors. All rights reserved.
# 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/.
import("//brave/components/common/typescript.gni")
import("//chrome/common/features.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//tools/grit/repack.gni")
repack("resources") {
deps = [
"//brave/components/brave_wallet_ui/line_chart:line_chart_display_generated",
"//brave/components/brave_wallet_ui/market:market_display_generated",
"//brave/components/brave_wallet_ui/nft:nft_display_generated",
"//brave/components/brave_wallet_ui/page:brave_wallet_page_generated",
]
sources = [
"$root_gen_dir/brave/components/brave_wallet_page/resources/brave_wallet_page_generated.pak",
"$root_gen_dir/brave/components/line_chart_display/resources/line_chart_display_generated.pak",
"$root_gen_dir/brave/components/market_display/resources/market_display_generated.pak",
"$root_gen_dir/brave/components/nft_display/resources/nft_display_generated.pak",
]
if (is_android) {
deps += [
"//brave/components/brave_wallet_ui/page/screens/android-buy/android:brave_wallet_fund_wallet_page_generated",
"//brave/components/brave_wallet_ui/page/screens/fund-wallet/android:brave_wallet_deposit_page_generated",
"//brave/components/brave_wallet_ui/page/screens/send/android:brave_wallet_send_page_generated",
"//brave/components/brave_wallet_ui/page/screens/swap/android:brave_wallet_swap_page_generated",
]
sources += [
"$root_gen_dir/brave/components/brave_wallet_page/resources/brave_wallet_deposit_page_generated.pak",
"$root_gen_dir/brave/components/brave_wallet_page/resources/brave_wallet_fund_wallet_page_generated.pak",
"$root_gen_dir/brave/components/brave_wallet_page/resources/brave_wallet_send_page_generated.pak",
"$root_gen_dir/brave/components/brave_wallet_page/resources/brave_wallet_swap_page_generated.pak",
]
} else {
deps += [
"//brave/components/brave_wallet_ui/ledger:ledger_bridge_generated",
"//brave/components/brave_wallet_ui/panel:brave_wallet_panel_generated",
"//brave/components/brave_wallet_ui/trezor:trezor_bridge_generated",
]
sources += [
"$root_gen_dir/brave/components/brave_wallet_panel/resources/brave_wallet_panel_generated.pak",
"$root_gen_dir/brave/components/ledger_bridge/resources/ledger_bridge_generated.pak",
"$root_gen_dir/brave/components/trezor_bridge/resources/trezor_bridge_generated.pak",
]
}
output =
"$root_gen_dir/brave/components/brave_wallet/resources/brave_wallet.pak"
}