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 vendor_available: true,
29 "-Wno-error=incompatible-pointer-types",
32 "-Wno-unused-parameter",
34 local_include_dirs: ["include"],
35 generated_headers: ["ffi_header"],
36 export_generated_headers: ["ffi_header"],
50 export_include_dirs: ["linux-arm"],
57 export_include_dirs: ["linux-arm64"],
66 "-DHAVE_AS_X86_PCREL",
67 "-DHAVE_AS_ASCII_PSEUDO_OP",
69 export_include_dirs: ["linux-x86"],
77 "-DHAVE_AS_X86_PCREL",
78 "-DHAVE_AS_ASCII_PSEUDO_OP",
80 export_include_dirs: ["linux-x86_64"],