# 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. MUSLPORTINGDIR = get_path_info(".", "abspath") MUSL_INCLUDE_DIRS = [ "$MUSLPORTINGDIR/include" ] MUSL_LIBC_OPT_SRC_FOR_ARMV8_M = [ "$MUSLPORTINGDIR/src/string/arch/arm/memcmp_armv8m.S", "$MUSLPORTINGDIR/src/string/arch/arm/memset_armv8m.S", ] MUSL_LIBC_OPT_SRC_FOR_ARM = [ "$MUSLPORTINGDIR/src/string/arch/arm/memcpy_le.S" ] 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", "$MUSLPORTINGDIR/src/multibyte/mbrtowc.c", "$MUSLPORTINGDIR/src/multibyte/mbsinit.c", "$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", "$MUSLPORTINGDIR/src/stdio/__string_read.c", "$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", "$MUSLPORTINGDIR/src/stdio/sscanf.c", "$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", "$MUSLPORTINGDIR/src/stdio/vfscanf.c", "$MUSLPORTINGDIR/src/stdio/vsnprintf.c", "$MUSLPORTINGDIR/src/stdio/vsprintf.c", "$MUSLPORTINGDIR/src/stdio/vsscanf.c", "$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", "$MUSLPORTINGDIR/src/string/strtok_r.c", "$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", ]