Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: third_party/leveldatabase/BUILD.gn

Issue 2730703002: DEPS: Update leveldatabase from 1.18 to 1.20. (Closed)
Patch Set: Fix long line. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/BUILD.gn
diff --git a/third_party/leveldatabase/BUILD.gn b/third_party/leveldatabase/BUILD.gn
index c8776c887c38929d645fd2f02a0c0879738f72c6..7224d452c7bb0adf13db181e10998277c1744cae 100644
--- a/third_party/leveldatabase/BUILD.gn
+++ b/third_party/leveldatabase/BUILD.gn
@@ -14,6 +14,21 @@ config("leveldatabase_config") {
]
}
+source_set("leveldatabase_opts.sse42") {
+ sources = [
+ "src/port/port_posix_sse.cc",
+ ]
+
+ configs += [ ":leveldatabase_config" ]
+
+ if (target_cpu == "x86" || target_cpu == "x64") {
+ defines += [ "LEVELDB_PLATFORM_POSIX_SSE" ]
+ if (!is_win || is_clang) {
+ cflags = [ "-msse4.2" ]
+ }
+ }
+}
+
static_library("leveldatabase") {
sources = [
"env_chromium.cc",
@@ -108,6 +123,7 @@ static_library("leveldatabase") {
public_configs = [ ":leveldatabase_config" ]
deps = [
+ ":leveldatabase_opts.sse42",
"//base",
"//base/third_party/dynamic_annotations",
"//third_party/re2",
@@ -188,6 +204,14 @@ if (!is_android) {
deps = [
":leveldb_testutil",
]
+
+ # TODO(crbug.com/698013): Fix leveldb to remove the need for suppressing
+ # warnings.
+ if (is_win) {
+ # util\cache_test.cc(167): warning C4018: '<': signed/unsigned mismatch
+ # util\cache_test.cc(171): warning C4018: '<': signed/unsigned mismatch
+ cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
+ }
}
test("leveldb_corruption_test") {
@@ -340,16 +364,26 @@ if (!is_android) {
]
}
- test("leveldb_bench") {
- sources = [
- "src/db/db_bench.cc",
- ]
-
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [ "//build/config/compiler:no_chromium_code" ]
-
+ group("leveldb_test_targets") {
+ testonly = true
deps = [
- ":leveldb_testutil",
+ ":env_chromium_unittests",
+ ":leveldb_arena_test",
+ ":leveldb_bloom_test",
+ ":leveldb_cache_test",
+ ":leveldb_corruption_test",
+ ":leveldb_crc32c_test",
+ ":leveldb_db_bench",
+ ":leveldb_db_test",
+ ":leveldb_dbformat_test",
+ ":leveldb_env_test",
+ ":leveldb_filename_test",
+ ":leveldb_filter_block_test",
+ ":leveldb_log_test",
+ ":leveldb_skiplist_test",
+ ":leveldb_table_test",
+ ":leveldb_version_edit_test",
+ ":leveldb_write_batch_test",
]
}
}
« no previous file with comments | « DEPS ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698