musl.gni 8.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
#    conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
#    of conditions and the following disclaimer in the documentation and/or other materials
#    provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
#    to endorse or promote products derived from this software without specific prior written
#    permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

A
arvinzzz 已提交
29 30 31 32
MUSLPORTINGDIR = get_path_info(".", "abspath")

MUSL_INCLUDE_DIRS = [ "$MUSLPORTINGDIR/include" ]

A
arvinzzz 已提交
33 34 35 36 37
MUSL_LIBC_OPT_SRC_FOR_ARMV8_M = [
  "$MUSLPORTINGDIR/src/string/arch/arm/memcmp_armv8m.S",
  "$MUSLPORTINGDIR/src/string/arch/arm/memset_armv8m.S",
]

A
arvinzzz 已提交
38 39 40
MUSL_LIBC_OPT_SRC_FOR_ARM =
    [ "$MUSLPORTINGDIR/src/string/arch/arm/memcpy_le.S" ]

A
arvinzzz 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
MUSL_LIBC_SRC = [
  "$MUSLPORTINGDIR/src/ctype/__ctype_get_mb_cur_max.c",
  "$MUSLPORTINGDIR/src/ctype/isalnum.c",
  "$MUSLPORTINGDIR/src/ctype/isascii.c",
  "$MUSLPORTINGDIR/src/ctype/isdigit.c",
  "$MUSLPORTINGDIR/src/ctype/islower.c",
  "$MUSLPORTINGDIR/src/ctype/isprint.c",
  "$MUSLPORTINGDIR/src/ctype/isspace.c",
  "$MUSLPORTINGDIR/src/ctype/isupper.c",
  "$MUSLPORTINGDIR/src/ctype/isxdigit.c",
  "$MUSLPORTINGDIR/src/ctype/tolower.c",
  "$MUSLPORTINGDIR/src/ctype/toupper.c",
  "$MUSLPORTINGDIR/src/env/__stack_chk_fail.c",
  "$MUSLPORTINGDIR/src/errno/strerror.c",
  "$MUSLPORTINGDIR/src/exit/abort.c",
  "$MUSLPORTINGDIR/src/exit/assert.c",
  "$MUSLPORTINGDIR/src/exit/atexit.c",
  "$MUSLPORTINGDIR/src/internal/floatscan.c",
  "$MUSLPORTINGDIR/src/internal/intscan.c",
  "$MUSLPORTINGDIR/src/internal/shgetc.c",
  "$MUSLPORTINGDIR/src/locale/__lctrans.c",
  "$MUSLPORTINGDIR/src/locale/c_locale.c",
  "$MUSLPORTINGDIR/src/locale/iconv.c",
  "$MUSLPORTINGDIR/src/locale/langinfo.c",
  "$MUSLPORTINGDIR/src/misc/dirname.c",
  "$MUSLPORTINGDIR/src/misc/realpath.c",
  "$MUSLPORTINGDIR/src/multibyte/internal.c",
W
weicheng 已提交
68 69
  "$MUSLPORTINGDIR/src/multibyte/mbrtowc.c",
  "$MUSLPORTINGDIR/src/multibyte/mbsinit.c",
A
arvinzzz 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
  "$MUSLPORTINGDIR/src/multibyte/mbtowc.c",
  "$MUSLPORTINGDIR/src/multibyte/wcrtomb.c",
  "$MUSLPORTINGDIR/src/multibyte/wctomb.c",
  "$MUSLPORTINGDIR/src/network/h_errno.c",
  "$MUSLPORTINGDIR/src/network/htonl.c",
  "$MUSLPORTINGDIR/src/network/htons.c",
  "$MUSLPORTINGDIR/src/network/ntohl.c",
  "$MUSLPORTINGDIR/src/network/ntohs.c",
  "$MUSLPORTINGDIR/src/prng/rand.c",
  "$MUSLPORTINGDIR/src/prng/random.c",
  "$MUSLPORTINGDIR/src/regex/regcomp.c",
  "$MUSLPORTINGDIR/src/regex/regexec.c",
  "$MUSLPORTINGDIR/src/regex/tre-mem.c",
  "$MUSLPORTINGDIR/src/stdio/__fdopen.c",
  "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
  "$MUSLPORTINGDIR/src/stdio/__lockfile.c",
  "$MUSLPORTINGDIR/src/stdio/__overflow.c",
  "$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
  "$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
  "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
  "$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
  "$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
W
weicheng 已提交
92
  "$MUSLPORTINGDIR/src/stdio/__string_read.c",
A
arvinzzz 已提交
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
  "$MUSLPORTINGDIR/src/stdio/__toread.c",
  "$MUSLPORTINGDIR/src/stdio/__towrite.c",
  "$MUSLPORTINGDIR/src/stdio/__uflow.c",
  "$MUSLPORTINGDIR/src/stdio/clearerr.c",
  "$MUSLPORTINGDIR/src/stdio/fclose.c",
  "$MUSLPORTINGDIR/src/stdio/feof.c",
  "$MUSLPORTINGDIR/src/stdio/fflush.c",
  "$MUSLPORTINGDIR/src/stdio/fgetc.c",
  "$MUSLPORTINGDIR/src/stdio/fgets.c",
  "$MUSLPORTINGDIR/src/stdio/fileno.c",
  "$MUSLPORTINGDIR/src/stdio/fopen.c",
  "$MUSLPORTINGDIR/src/stdio/fputc.c",
  "$MUSLPORTINGDIR/src/stdio/fputs.c",
  "$MUSLPORTINGDIR/src/stdio/fread.c",
  "$MUSLPORTINGDIR/src/stdio/fseek.c",
  "$MUSLPORTINGDIR/src/stdio/ftell.c",
  "$MUSLPORTINGDIR/src/stdio/fwrite.c",
  "$MUSLPORTINGDIR/src/stdio/ofl.c",
  "$MUSLPORTINGDIR/src/stdio/ofl_add.c",
  "$MUSLPORTINGDIR/src/stdio/perror.c",
  "$MUSLPORTINGDIR/src/stdio/remove.c",
  "$MUSLPORTINGDIR/src/stdio/rewind.c",
  "$MUSLPORTINGDIR/src/stdio/snprintf.c",
W
weicheng 已提交
116
  "$MUSLPORTINGDIR/src/stdio/sscanf.c",
A
arvinzzz 已提交
117 118 119 120 121
  "$MUSLPORTINGDIR/src/stdio/stderr.c",
  "$MUSLPORTINGDIR/src/stdio/stdin.c",
  "$MUSLPORTINGDIR/src/stdio/stdout.c",
  "$MUSLPORTINGDIR/src/stdio/ungetc.c",
  "$MUSLPORTINGDIR/src/stdio/vfprintf.c",
W
weicheng 已提交
122
  "$MUSLPORTINGDIR/src/stdio/vfscanf.c",
A
arvinzzz 已提交
123 124
  "$MUSLPORTINGDIR/src/stdio/vsnprintf.c",
  "$MUSLPORTINGDIR/src/stdio/vsprintf.c",
W
weicheng 已提交
125
  "$MUSLPORTINGDIR/src/stdio/vsscanf.c",
A
arvinzzz 已提交
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
  "$MUSLPORTINGDIR/src/stdlib/abs.c",
  "$MUSLPORTINGDIR/src/stdlib/atof.c",
  "$MUSLPORTINGDIR/src/stdlib/atoi.c",
  "$MUSLPORTINGDIR/src/stdlib/atol.c",
  "$MUSLPORTINGDIR/src/stdlib/atoll.c",
  "$MUSLPORTINGDIR/src/stdlib/bsearch.c",
  "$MUSLPORTINGDIR/src/stdlib/llabs.c",
  "$MUSLPORTINGDIR/src/stdlib/strtod.c",
  "$MUSLPORTINGDIR/src/stdlib/strtol.c",
  "$MUSLPORTINGDIR/src/string/memchr.c",
  "$MUSLPORTINGDIR/src/string/memcmp.c",
  "$MUSLPORTINGDIR/src/string/memcpy.c",
  "$MUSLPORTINGDIR/src/string/memmove.c",
  "$MUSLPORTINGDIR/src/string/memrchr.c",
  "$MUSLPORTINGDIR/src/string/memset.c",
  "$MUSLPORTINGDIR/src/string/stpcpy.c",
  "$MUSLPORTINGDIR/src/string/stpncpy.c",
  "$MUSLPORTINGDIR/src/string/strcasecmp.c",
  "$MUSLPORTINGDIR/src/string/strcat.c",
  "$MUSLPORTINGDIR/src/string/strchr.c",
  "$MUSLPORTINGDIR/src/string/strchrnul.c",
  "$MUSLPORTINGDIR/src/string/strcmp.c",
  "$MUSLPORTINGDIR/src/string/strcpy.c",
  "$MUSLPORTINGDIR/src/string/strcspn.c",
  "$MUSLPORTINGDIR/src/string/strdup.c",
  "$MUSLPORTINGDIR/src/string/strlen.c",
  "$MUSLPORTINGDIR/src/string/strncasecmp.c",
  "$MUSLPORTINGDIR/src/string/strncat.c",
  "$MUSLPORTINGDIR/src/string/strncmp.c",
  "$MUSLPORTINGDIR/src/string/strncpy.c",
  "$MUSLPORTINGDIR/src/string/strnlen.c",
  "$MUSLPORTINGDIR/src/string/strrchr.c",
  "$MUSLPORTINGDIR/src/string/strspn.c",
  "$MUSLPORTINGDIR/src/string/strstr.c",
  "$MUSLPORTINGDIR/src/string/strtok.c",
W
weicheng 已提交
161
  "$MUSLPORTINGDIR/src/string/strtok_r.c",
A
arvinzzz 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
  "$MUSLPORTINGDIR/src/string/wcschr.c",
  "$MUSLPORTINGDIR/src/string/wcslen.c",
  "$MUSLPORTINGDIR/src/time/__month_to_secs.c",
  "$MUSLPORTINGDIR/src/time/__secs_to_tm.c",
  "$MUSLPORTINGDIR/src/time/__tm_to_secs.c",
  "$MUSLPORTINGDIR/src/time/__tz.c",
  "$MUSLPORTINGDIR/src/time/__year_to_secs.c",
  "$MUSLPORTINGDIR/src/time/asctime.c",
  "$MUSLPORTINGDIR/src/time/asctime_r.c",
  "$MUSLPORTINGDIR/src/time/ctime.c",
  "$MUSLPORTINGDIR/src/time/strftime.c",
  "$MUSLPORTINGDIR/src/time/strptime.c",
]

MUSL_LIBM_SRC = [
  "$MUSLPORTINGDIR/src/math/__fpclassify.c",
  "$MUSLPORTINGDIR/src/math/__fpclassifyl.c",
  "$MUSLPORTINGDIR/src/math/__math_divzero.c",
  "$MUSLPORTINGDIR/src/math/__math_divzerof.c",
  "$MUSLPORTINGDIR/src/math/__math_invalid.c",
  "$MUSLPORTINGDIR/src/math/__math_invalidf.c",
  "$MUSLPORTINGDIR/src/math/__math_oflow.c",
  "$MUSLPORTINGDIR/src/math/__math_oflowf.c",
  "$MUSLPORTINGDIR/src/math/__math_uflow.c",
  "$MUSLPORTINGDIR/src/math/__math_uflowf.c",
  "$MUSLPORTINGDIR/src/math/__math_xflow.c",
  "$MUSLPORTINGDIR/src/math/__math_xflowf.c",
  "$MUSLPORTINGDIR/src/math/__signbit.c",
  "$MUSLPORTINGDIR/src/math/__signbitl.c",
  "$MUSLPORTINGDIR/src/math/arm/fabs.c",
  "$MUSLPORTINGDIR/src/math/copysign.c",
  "$MUSLPORTINGDIR/src/math/copysignl.c",
  "$MUSLPORTINGDIR/src/math/exp_data.c",
  "$MUSLPORTINGDIR/src/math/fabsl.c",
  "$MUSLPORTINGDIR/src/math/floor.c",
  "$MUSLPORTINGDIR/src/math/fmod.c",
  "$MUSLPORTINGDIR/src/math/fmodl.c",
  "$MUSLPORTINGDIR/src/math/frexp.c",
  "$MUSLPORTINGDIR/src/math/frexpl.c",
  "$MUSLPORTINGDIR/src/math/log.c",
  "$MUSLPORTINGDIR/src/math/log_data.c",
  "$MUSLPORTINGDIR/src/math/pow.c",
  "$MUSLPORTINGDIR/src/math/pow_data.c",
  "$MUSLPORTINGDIR/src/math/round.c",
  "$MUSLPORTINGDIR/src/math/scalbn.c",
  "$MUSLPORTINGDIR/src/math/scalbnl.c",
  "$MUSLPORTINGDIR/src/math/sqrt.c",
]