• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2007 The Android Open Source Project
2#
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
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15# This makefile builds both for host and target, and so all the
16# common definitions are factored out into a separate file to
17# minimize duplication between the build rules.
18
19LOCAL_PATH:= $(call my-dir)
20
21
22#
23# Build rules for the target.
24#
25
26# We only build ffi at all for non-arm, non-x86 targets.
27ifneq ($(TARGET_ARCH),arm)
28    ifneq ($(TARGET_ARCH),x86)
29
30       include $(CLEAR_VARS)
31
32       ffi_arch := $(TARGET_ARCH)
33       ffi_os := $(TARGET_OS)
34
35       # This include just keeps the nesting a bit saner.
36       include $(LOCAL_PATH)/Libffi.mk
37
38       LOCAL_MODULE := libffi
39
40       include $(BUILD_SHARED_LIBRARY)
41
42    endif
43endif
44
45# Also include the rules for the test suite.
46include external/libffi/testsuite/Android.mk
47
48