1*1fd5a2e1SPrashanth Swaminathan#!/bin/bash 2*1fd5a2e1SPrashanth Swaminathan# Copyright (C) 2017 The Android Open Source Project 3*1fd5a2e1SPrashanth Swaminathan# 4*1fd5a2e1SPrashanth Swaminathan# Licensed under the Apache License, Version 2.0 (the "License"); 5*1fd5a2e1SPrashanth Swaminathan# you may not use this file except in compliance with the License. 6*1fd5a2e1SPrashanth Swaminathan# You may obtain a copy of the License at 7*1fd5a2e1SPrashanth Swaminathan# 8*1fd5a2e1SPrashanth Swaminathan# http://www.apache.org/licenses/LICENSE-2.0 9*1fd5a2e1SPrashanth Swaminathan# 10*1fd5a2e1SPrashanth Swaminathan# Unless required by applicable law or agreed to in writing, software 11*1fd5a2e1SPrashanth Swaminathan# distributed under the License is distributed on an "AS IS" BASIS, 12*1fd5a2e1SPrashanth Swaminathan# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*1fd5a2e1SPrashanth Swaminathan# See the License for the specific language governing permissions and 14*1fd5a2e1SPrashanth Swaminathan# limitations under the License. 15*1fd5a2e1SPrashanth Swaminathan 16*1fd5a2e1SPrashanth Swaminathanset -e 17*1fd5a2e1SPrashanth SwaminathanLIBFFI_TEMPLATE_SUBST=( 18*1fd5a2e1SPrashanth Swaminathan "-e s/@VERSION@/3.2.1/" \ 19*1fd5a2e1SPrashanth Swaminathan "-e s/@TARGET@/FAKE_TARGET_/" \ 20*1fd5a2e1SPrashanth Swaminathan "-e s/@HAVE_LONG_DOUBLE@/CONF_HAVE_LONG_DOUBLE/" \ 21*1fd5a2e1SPrashanth Swaminathan "-e s/@HAVE_LONG_DOUBLE_VARIANT@/CONF_HAVE_LONG_DOUBLE_VARIANT/" \ 22*1fd5a2e1SPrashanth Swaminathan "-e s/@FFI_EXEC_TRAMPOLINE_TABLE@/CONF_FFI_EXEC_TRAMPOLINE_TABLE/" 23*1fd5a2e1SPrashanth Swaminathan) 24*1fd5a2e1SPrashanth Swaminathansed "${LIBFFI_TEMPLATE_SUBST[@]}" 25