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

Unified Diff: third_party/ashmem/BUILD.gn

Issue 275703003: Make GN Android build link executables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
Index: third_party/ashmem/BUILD.gn
diff --git a/third_party/ashmem/BUILD.gn b/third_party/ashmem/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..7266e65f77f50f93f8ece2907ed5ac21a709d0d3
--- /dev/null
+++ b/third_party/ashmem/BUILD.gn
@@ -0,0 +1,22 @@
+# Copyright 2014 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.
+
+assert(is_android)
+
+import("//build/config/android/config.gni")
+
+if (is_android_webview_build) {
+ # WebView build uses the Android system version of ashmem to avoid linking
+ # problems.
+ group("ashmem") {
+ assert(false, "Implement system ashmem for webview build")
+ }
+} else {
+ source_set("ashmem") {
+ sources = [
+ "ashmem.h",
+ "ashmem-dev.c",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698