1 // Copyright (C) 2017 The Android Open Source Project
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
17 cmd: "$(location gen_ffi_header.sh) < $(in) > $(out)",
18 srcs: ["include/ffi.h.in"],
20 tool_files: ["gen_ffi_header.sh"],
41 cflags: ["-Wno-unused-parameter", "-Wno-sign-compare"],
42 local_include_dirs: ["include"],
43 generated_headers: ["ffi_header"],
44 export_generated_headers: ["ffi_header"],
57 srcs: arm_srcs + x86_srcs,
62 exclude_srcs: x86_srcs + x86_64_srcs,
63 local_include_dirs: ["linux-arm"],
64 export_include_dirs: ["linux-arm"],
67 exclude_srcs: arm_srcs,
69 "-DHAVE_AS_X86_PCREL",
70 "-DHAVE_AS_ASCII_PSEUDO_OP",
72 local_include_dirs: ["linux-x86"],
73 export_include_dirs: ["linux-x86"],
76 exclude_srcs: arm_srcs,
78 "-DHAVE_AS_X86_PCREL",
79 "-DHAVE_AS_ASCII_PSEUDO_OP",
81 local_include_dirs: ["linux-x86_64"],
82 export_include_dirs: ["linux-x86_64"],