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

Side by Side 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, 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 config("libffi_config") { 5 config("libffi_config") {
6 include_dirs = [] 6 include_dirs = []
7 7
8 if (current_cpu == "x64") { 8 if (current_cpu == "x64") {
9 include_dirs += [ "include/x86_64-unknown-linux-gnu/include" ] 9 include_dirs += [ "include/x86_64-unknown-linux-gnu/include" ]
10 } 10 }
11
12 if (current_cpu == "arm") {
13 include_dirs += [ "include/arm-unknown-linux-gnu/include" ]
14 }
11 } 15 }
12 16
13 static_library("libffi") { 17 static_library("libffi") {
14 sources = [ 18 sources = [
15 "src/src/closures.c", 19 "src/src/closures.c",
16 "src/src/java_raw_api.c", 20 "src/src/java_raw_api.c",
17 "src/src/prep_cif.c", 21 "src/src/prep_cif.c",
18 "src/src/raw_api.c", 22 "src/src/raw_api.c",
19 "src/src/types.c", 23 "src/src/types.c",
20 ] 24 ]
21 25
22 include_dirs = [ "src/include" ] 26 include_dirs = [ "src/include" ]
23 27
24 if (current_cpu == "x64") { 28 if (current_cpu == "x64") {
25 sources += [ 29 sources += [
26 "src/src/x86/ffi.c", 30 "src/src/x86/ffi.c",
27 "src/src/x86/ffi64.c", 31 "src/src/x86/ffi64.c",
28 "src/src/x86/sysv.S", 32 "src/src/x86/sysv.S",
29 "src/src/x86/unix64.S", 33 "src/src/x86/unix64.S",
30 ] 34 ]
31 35
32 include_dirs += [ "include/x86_64-unknown-linux-gnu" ] 36 include_dirs += [ "include/x86_64-unknown-linux-gnu" ]
33 } 37 }
34 38
39 if (current_cpu == "arm") {
40 sources += [
41 "src/src/arm/ffi.c",
42 "src/src/arm/sysv.S",
43 ]
44
45 include_dirs += [ "include/arm-unknown-linux-gnu" ]
46 }
47
35 configs -= [ "//build/config/compiler:chromium_code" ] 48 configs -= [ "//build/config/compiler:chromium_code" ]
36 configs += [ "//build/config/compiler:no_chromium_code" ] 49 configs += [ "//build/config/compiler:no_chromium_code" ]
37 50
38 public_configs = [ ":libffi_config" ] 51 public_configs = [ ":libffi_config" ]
39 } 52 }
OLDNEW
« 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