This change moves the Brave Rewards code in "content" and "engine" behind the ENABLE_BRAVE_REWARDS buildflag. In order to simplify dependencies, it also moves the buildflags defined in "engine" to "core/buildflags".
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
# Copyright (c) 2023 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 https://mozilla.org/MPL/2.0/.
|
|
|
|
import("//brave/components/brave_rewards/core/buildflags/buildflags.gni")
|
|
import("//brave/components/brave_wallet/common/buildflags/buildflags.gni")
|
|
import("//brave/components/tor/buildflags/buildflags.gni")
|
|
import("//brave/utility/importer/sources.gni")
|
|
|
|
brave_utility_sources = [
|
|
"//brave/utility/brave_content_utility_client.cc",
|
|
"//brave/utility/brave_content_utility_client.h",
|
|
]
|
|
|
|
brave_utility_sources += brave_utility_importer_sources
|
|
|
|
brave_utility_deps = [
|
|
"//brave/components/brave_rewards/core/buildflags",
|
|
"//brave/components/brave_wallet/common/buildflags",
|
|
"//brave/components/tor/buildflags",
|
|
"//mojo/public/cpp/bindings",
|
|
]
|
|
|
|
if (enable_brave_wallet) {
|
|
brave_utility_deps += [
|
|
"//brave/components/services/brave_wallet:lib",
|
|
"//brave/components/services/brave_wallet/public/mojom",
|
|
]
|
|
}
|
|
|
|
if (is_android) {
|
|
# This deps is only to suppress gn check error:
|
|
# ERROR at //chrome/utility/services.cc:56:11: Include not allowed.
|
|
# #include "chrome/common/importer/profile_import.mojom.h"
|
|
brave_utility_deps += [ "//chrome/common/importer:interfaces" ]
|
|
}
|
|
|
|
brave_utility_deps += brave_utility_importer_deps
|
|
|
|
if (enable_brave_rewards) {
|
|
brave_utility_deps += [
|
|
"//brave/components/services/bat_rewards:lib",
|
|
"//brave/components/services/bat_rewards/public/interfaces",
|
|
]
|
|
}
|
|
|
|
if (enable_tor) {
|
|
brave_utility_deps += [
|
|
"//brave/components/services/tor",
|
|
"//brave/components/services/tor/public/interfaces",
|
|
]
|
|
}
|
|
|
|
brave_utility_public_deps = []
|
|
brave_utility_public_deps += brave_utility_importer_public_deps
|