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

Unified Diff: third_party/libffi/BUILD.gn

Issue 1409853009: third_party: Add support for building libffi for ARM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere
Patch Set: Created 5 years, 2 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 | « no previous file | third_party/libffi/include/arm-unknown-linux-gnu/fficonfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libffi/BUILD.gn
diff --git a/third_party/libffi/BUILD.gn b/third_party/libffi/BUILD.gn
index 791e61be3181bb577873e31ef6fe18078d471e22..32f5ff3639666278b3197da9caa4ea109281551b 100644
--- a/third_party/libffi/BUILD.gn
+++ b/third_party/libffi/BUILD.gn
@@ -8,6 +8,10 @@ config("libffi_config") {
if (current_cpu == "x64") {
include_dirs += [ "include/x86_64-unknown-linux-gnu/include" ]
}
+
+ if (current_cpu == "arm") {
+ include_dirs += [ "include/arm-unknown-linux-gnu/include" ]
+ }
}
static_library("libffi") {
@@ -32,6 +36,15 @@ static_library("libffi") {
include_dirs += [ "include/x86_64-unknown-linux-gnu" ]
}
+ if (current_cpu == "arm") {
+ sources += [
+ "src/src/arm/ffi.c",
+ "src/src/arm/sysv.S",
+ ]
+
+ include_dirs += [ "include/arm-unknown-linux-gnu" ]
+ }
+
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
« no previous file with comments | « no previous file | third_party/libffi/include/arm-unknown-linux-gnu/fficonfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698