Link against sqlite_dev library in Chromium The common sqlite library in Chromium has many features (e.g. window functions) disabled. We want to use those features in metrics, so we link against sqlite_dev library that supports them. Bug: 150127983 Change-Id: I1257a237f24395bcdecab963f548c905761cef4d
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index c5b83bb..a65be08 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn
@@ -245,14 +245,22 @@ if (perfetto_root_path == "//") { public_deps = [ "//buildtools:sqlite" ] } else { - public_deps = [ "//third_party/sqlite:sqlite" ] + if (build_with_chromium) { + public_deps = [ "//third_party/sqlite:sqlite_dev" ] + } else { + public_deps = [ "//third_party/sqlite:sqlite" ] + } public_configs = [ ":sqlite_third_party_include_path" ] } } } config("sqlite_third_party_include_path") { - include_dirs = [ "//third_party/sqlite" ] + if (build_with_chromium) { + include_dirs = [ "//third_party/sqlite/dev" ] + } else { + include_dirs = [ "//third_party/sqlite" ] + } } if (enable_perfetto_trace_processor_json) {