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"],
25 cflags: ["-Wno-unused-parameter", "-Wno-sign-compare"],
26 local_include_dirs: ["include"],
27 generated_headers: ["ffi_header"],
28 export_generated_headers: ["ffi_header"],
42 export_include_dirs: ["linux-arm"],
49 export_include_dirs: ["linux-arm64"],
58 "-DHAVE_AS_X86_PCREL",
59 "-DHAVE_AS_ASCII_PSEUDO_OP",
61 export_include_dirs: ["linux-x86"],
69 "-DHAVE_AS_X86_PCREL",
70 "-DHAVE_AS_ASCII_PSEUDO_OP",
72 export_include_dirs: ["linux-x86_64"],