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

Unified Diff: components/discardable_memory/common/BUILD.gn

Issue 2459733002: Move discardable memory to //components from //content (Closed)
Patch Set: Fix build error Created 4 years, 1 month 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
Index: components/discardable_memory/common/BUILD.gn
diff --git a/components/discardable_memory/common/BUILD.gn b/components/discardable_memory/common/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..9450c87a8c44e0082fe55c2c9ffaa7997bfb67f6
--- /dev/null
+++ b/components/discardable_memory/common/BUILD.gn
@@ -0,0 +1,36 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//testing/test.gni")
+
+component("common") {
+ output_name = "discardable_memory_common"
+
+ defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ]
+
+ sources = [
+ "discardable_memory_export.h",
+ "discardable_shared_memory_heap.cc",
+ "discardable_shared_memory_heap.h",
+ "discardable_shared_memory_id.h",
+ ]
+
+ deps = [
+ "//base",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "discardable_shared_memory_heap_unittest.cc",
+ ]
+
+ deps = [
+ ":common",
+ "//base",
+ "//testing/gtest",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698