1 LOCAL_PATH := $(call my-dir) 2 3 android_support_c_includes := $(LOCAL_PATH)/include 4 5 android_support_sources := \ 6 src/locale_support.c \ 7 src/stdlib_support.c \ 8 src/wchar_support.c \ 9 src/locale/duplocale.c \ 10 src/locale/freelocale.c \ 11 src/locale/localeconv.c \ 12 src/locale/newlocale.c \ 13 src/locale/uselocale.c \ 14 src/stdio/vfwprintf.c \ 15 src/musl-multibyte/btowc.c \ 16 src/musl-multibyte/internal.c \ 17 src/musl-multibyte/mblen.c \ 18 src/musl-multibyte/mbrlen.c \ 19 src/musl-multibyte/mbrtowc.c \ 20 src/musl-multibyte/mbsinit.c \ 21 src/musl-multibyte/mbsnrtowcs.c \ 22 src/musl-multibyte/mbsrtowcs.c \ 23 src/musl-multibyte/mbstowcs.c \ 24 src/musl-multibyte/mbtowc.c \ 25 src/musl-multibyte/wcrtomb.c \ 26 src/musl-multibyte/wcsnrtombs.c \ 27 src/musl-multibyte/wcsrtombs.c \ 28 src/musl-multibyte/wcstombs.c \ 29 src/musl-multibyte/wctob.c \ 30 src/musl-multibyte/wctomb.c \ 31 src/musl-ctype/iswalnum.c \ 32 src/musl-ctype/iswalpha.c \ 33 src/musl-ctype/iswblank.c \ 34 src/musl-ctype/iswcntrl.c \ 35 src/musl-ctype/iswctype.c \ 36 src/musl-ctype/iswdigit.c \ 37 src/musl-ctype/iswgraph.c \ 38 src/musl-ctype/iswlower.c \ 39 src/musl-ctype/iswprint.c \ 40 src/musl-ctype/iswpunct.c \ 41 src/musl-ctype/iswspace.c \ 42 src/musl-ctype/iswupper.c \ 43 src/musl-ctype/iswxdigit.c \ 44 src/musl-ctype/towctrans.c \ 45 src/musl-ctype/wcswidth.c \ 46 src/musl-ctype/wctrans.c \ 47 src/musl-ctype/wcwidth.c \ 48 src/musl-locale/catclose.c \ 49 src/musl-locale/catgets.c \ 50 src/musl-locale/catopen.c \ 51 src/musl-locale/iconv.c \ 52 src/musl-locale/intl.c \ 53 src/musl-locale/isalnum_l.c \ 54 src/musl-locale/isalpha_l.c \ 55 src/musl-locale/isblank_l.c \ 56 src/musl-locale/iscntrl_l.c \ 57 src/musl-locale/isdigit_l.c \ 58 src/musl-locale/isgraph_l.c \ 59 src/musl-locale/islower_l.c \ 60 src/musl-locale/isprint_l.c \ 61 src/musl-locale/ispunct_l.c \ 62 src/musl-locale/isspace_l.c \ 63 src/musl-locale/isupper_l.c \ 64 src/musl-locale/iswalnum_l.c \ 65 src/musl-locale/iswalpha_l.c \ 66 src/musl-locale/iswblank_l.c \ 67 src/musl-locale/iswcntrl_l.c \ 68 src/musl-locale/iswctype_l.c \ 69 src/musl-locale/iswdigit_l.c \ 70 src/musl-locale/iswgraph_l.c \ 71 src/musl-locale/iswlower_l.c \ 72 src/musl-locale/iswprint_l.c \ 73 src/musl-locale/iswpunct_l.c \ 74 src/musl-locale/iswspace_l.c \ 75 src/musl-locale/iswupper_l.c \ 76 src/musl-locale/iswxdigit_l.c \ 77 src/musl-locale/isxdigit_l.c \ 78 src/musl-locale/langinfo.c \ 79 src/musl-locale/nl_langinfo_l.c \ 80 src/musl-locale/strcasecmp_l.c \ 81 src/musl-locale/strcoll.c \ 82 src/musl-locale/strcoll_l.c \ 83 src/musl-locale/strerror_l.c \ 84 src/musl-locale/strfmon.c \ 85 src/musl-locale/strftime_l.c \ 86 src/musl-locale/strncasecmp_l.c \ 87 src/musl-locale/strxfrm.c \ 88 src/musl-locale/strxfrm_l.c \ 89 src/musl-locale/tolower_l.c \ 90 src/musl-locale/toupper_l.c \ 91 src/musl-locale/towctrans_l.c \ 92 src/musl-locale/towlower_l.c \ 93 src/musl-locale/towupper_l.c \ 94 src/musl-locale/wcscoll.c \ 95 src/musl-locale/wcscoll_l.c \ 96 src/musl-locale/wcsxfrm.c \ 97 src/musl-locale/wcsxfrm_l.c \ 98 src/musl-locale/wctrans_l.c \ 99 src/musl-locale/wctype_l.c \ 100 src/musl-stdio/swprintf.c \ 101 src/musl-stdio/vwprintf.c \ 102 src/musl-stdio/wprintf.c \ 103 104 # This is only available as a static library for now. 105 include $(CLEAR_VARS) 106 LOCAL_MODULE := android_support 107 LOCAL_SRC_FILES := $(android_support_sources) 108 LOCAL_C_INCLUDES := $(android_support_c_includes) 109 LOCAL_CFLAGS += -Drestrict=__restrict__ -ffunction-sections -fdata-sections 110 LOCAL_CFLAGS += $(android_support_cflags) 111 LOCAL_EXPORT_CFLAGS := $(android_support_cflags) 112 LOCAL_EXPORT_C_INCLUDES := $(android_support_c_includes) 113 include $(BUILD_STATIC_LIBRARY) 114 115