Skip to content

Commit

Permalink
Fix android
Browse files Browse the repository at this point in the history
  • Loading branch information
yrliou committed Sep 20, 2024
1 parent 43ac573 commit b225c8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions browser/ai_chat/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ static_library("ai_chat") {
"//content/public/browser",
"//ui/base",
]

if (is_android) {
deps += [ "//brave/build/android:jni_headers" ]
}
}

source_set("unit_tests") {
Expand Down
5 changes: 1 addition & 4 deletions browser/misc_metrics/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ static_library("misc_metrics_impl") {
"//extensions/browser",
]
} else {
sources += [
"//brave/browser/misc_metrics/misc_android_metrics.cc",
"//brave/browser/misc_metrics/misc_android_metrics.h",
]
sources += [ "//brave/browser/misc_metrics/misc_android_metrics.h" ]
}

if (enable_ai_chat) {
Expand Down
6 changes: 4 additions & 2 deletions browser/misc_metrics/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ if (enable_ai_chat) {
[ "//brave/components/ai_chat/core/browser" ]
}

brave_browser_misc_metrics_android_sources =
[ "//brave/browser/misc_metrics/misc_android_metrics_factory_android.cc" ]
brave_browser_misc_metrics_android_sources = [
"//brave/browser/misc_metrics/misc_android_metrics.cc",
"//brave/browser/misc_metrics/misc_android_metrics_factory_android.cc",
]

0 comments on commit b225c8b

Please sign in to comment.