• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_NANO_VARS)
20
21LOCAL_MODULE := libnanolibm
22LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
23LOCAL_LICENSE_CONDITIONS := notice
24LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../NOTICE
25LOCAL_MODULE_TAGS := optional
26
27LOCAL_SRC_FILES :=      \
28    ef_asin.c           \
29    ef_atan2.c          \
30    ef_exp.c            \
31    ef_fmod.c           \
32    ef_pow.c            \
33    ef_rem_pio2.c       \
34    ef_sqrt.c           \
35    kf_cos.c            \
36    kf_rem_pio2.c       \
37    kf_sin.c            \
38    sf_atan.c           \
39    sf_cos.c            \
40    sf_floor.c          \
41    sf_fpclassify.c     \
42    sf_round.c          \
43    sf_scalbn.c         \
44    sf_sin.c            \
45    wf_asin.c           \
46    wf_atan2.c          \
47    wf_exp.c            \
48    wf_fmod.c           \
49    wf_pow.c            \
50
51LOCAL_CFLAGS :=         \
52    -DARM_MATH_CM4      \
53    -D__FPU_PRESENT     \
54    -D_IEEE_LIBM        \
55
56include $(BUILD_NANOHUB_APP_STATIC_LIBRARY)
57