Tim Murray | d1c95d7 | 2015-02-05 10:39:46 -0800 | [diff] [blame] | 1 | # Copyright (C) 2015 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 | LOCAL_PATH:=$(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
Miao Wang | 9267631 | 2015-07-14 13:41:14 -0700 | [diff] [blame] | 18 | eigen_SRC_FILES:= \ |
Tim Murray | d1c95d7 | 2015-02-05 10:39:46 -0800 | [diff] [blame] | 19 | single.cpp \ |
| 20 | double.cpp \ |
| 21 | complex_single.cpp \ |
| 22 | complex_double.cpp \ |
| 23 | xerbla.cpp \ |
| 24 | f2c/complexdots.c\ |
| 25 | f2c/srotm.c \ |
| 26 | f2c/srotmg.c \ |
| 27 | f2c/drotm.c \ |
| 28 | f2c/drotmg.c \ |
| 29 | f2c/lsame.c \ |
| 30 | f2c/dspmv.c \ |
| 31 | f2c/ssbmv.c \ |
| 32 | f2c/chbmv.c \ |
| 33 | f2c/sspmv.c \ |
| 34 | f2c/zhbmv.c \ |
| 35 | f2c/chpmv.c \ |
| 36 | f2c/dsbmv.c \ |
| 37 | f2c/zhpmv.c \ |
| 38 | f2c/dtbmv.c \ |
| 39 | f2c/stbmv.c \ |
| 40 | f2c/ctbmv.c \ |
| 41 | f2c/ztbmv.c \ |
| 42 | f2c/d_cnjg.c \ |
| 43 | f2c/r_cnjg.c |
| 44 | |
Miao Wang | 9267631 | 2015-07-14 13:41:14 -0700 | [diff] [blame] | 45 | LOCAL_CLANG := true |
| 46 | # EIGEN_ANDROID_SSE_WR is for "Eigen Android SSE Work Around" |
| 47 | # Will be removed after we understand it better. |
| 48 | LOCAL_CFLAGS += -DEIGEN_ANDROID_SSE_WR |
| 49 | LOCAL_MODULE := libF77blas |
| 50 | |
| 51 | LOCAL_SRC_FILES := $(eigen_SRC_FILES) |
| 52 | LOCAL_C_INCLUDES += external/eigen/ |
| 53 | |
| 54 | include $(BUILD_STATIC_LIBRARY) |
| 55 | |
| 56 | |
| 57 | # Build Eigen using API 8 toolchain for RS Support lib. |
| 58 | include $(CLEAR_VARS) |
| 59 | LOCAL_CLANG := true |
| 60 | # EIGEN_ANDROID_SSE_WR is for "Eigen Android SSE Work Around" |
| 61 | # Will be removed after we understand it better. |
| 62 | LOCAL_CFLAGS += -DEIGEN_ANDROID_SSE_WR |
Miao Wang | 1ba7f85 | 2015-07-15 01:29:28 -0700 | [diff] [blame] | 63 | # EIGEN_ANDROID_POSIX_MEMALIGN_WR is for "Eigen Android posix_memalign Work Around" |
| 64 | # Only used for build for low Android API(x86 target) without posix_memalign. |
| 65 | LOCAL_CFLAGS += -DEIGEN_ANDROID_POSIX_MEMALIGN_WR |
Miao Wang | 9267631 | 2015-07-14 13:41:14 -0700 | [diff] [blame] | 66 | LOCAL_MODULE := libF77blasV8 |
| 67 | LOCAL_SDK_VERSION := 8 |
| 68 | LOCAL_NDK_STL_VARIANT := stlport_static |
| 69 | |
| 70 | LOCAL_SRC_FILES := $(eigen_SRC_FILES) |
Tim Murray | d1c95d7 | 2015-02-05 10:39:46 -0800 | [diff] [blame] | 71 | LOCAL_C_INCLUDES += external/eigen/ |
| 72 | |
| 73 | include $(BUILD_STATIC_LIBRARY) |