diff --git a/components/text_recognition/browser/BUILD.gn b/components/text_recognition/browser/BUILD.gn index 6dc80d301b94..300b34d85910 100644 --- a/components/text_recognition/browser/BUILD.gn +++ b/components/text_recognition/browser/BUILD.gn @@ -12,6 +12,13 @@ component("browser") { sources = [ "text_recognition.h" ] + defines = [ "IS_TEXT_RECOGNITION_BROWSER_IMPL" ] + + deps = [ + "//base", + "//skia", + ] + if (is_mac) { sources += [ "text_recognition.mm" ] @@ -22,11 +29,4 @@ component("browser") { configs += [ "//build/config/compiler:enable_arc" ] } - - deps = [ - "//base", - "//skia", - ] - - defines = [ "IS_TEXT_RECOGNITION_BROWSER_IMPL" ] }