Skip to content

Commit

Permalink
Resolves brave/brave-browser#4578 - adds enabled flag for Brave Wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanml committed May 24, 2019
1 parent 9347188 commit 0225a61
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ source_set("browser_process") {
"//brave/components/brave_rewards/browser",
"//brave/components/brave_shields/browser:brave_shields",
"//brave/components/brave_sync",
"//brave/components/brave_wallet/browser",
"//brave/components/brave_webtorrent/browser/buildflags",
"//brave/components/content_settings/core/browser",
"//brave/components/resources",
Expand Down
7 changes: 7 additions & 0 deletions components/brave_wallet/browser/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import("//brave/build/config.gni")

source_set("browser") {
public_deps = [
"buildflags"
]
}
9 changes: 9 additions & 0 deletions components/brave_wallet/browser/buildflags/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import("//build/buildflag_header.gni")
import("//brave/components/brave_wallet/browser/buildflags/buildflags.gni")

buildflag_header("buildflags") {
header = "buildflags.h"
flags = [
"BRAVE_WALLET_ENABLED=$brave_wallet_enabled",
]
}
5 changes: 5 additions & 0 deletions components/brave_wallet/browser/buildflags/buildflags.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import("//build/config/features.gni")

declare_args() {
brave_wallet_enabled = !is_official_build
}

0 comments on commit 0225a61

Please sign in to comment.