1570af302Sopenharmony_ci# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
2570af302Sopenharmony_ci#
3570af302Sopenharmony_ci# Redistribution and use in source and binary forms, with or without modification,
4570af302Sopenharmony_ci# are permitted provided that the following conditions are met:
5570af302Sopenharmony_ci#
6570af302Sopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of
7570af302Sopenharmony_ci#    conditions and the following disclaimer.
8570af302Sopenharmony_ci#
9570af302Sopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10570af302Sopenharmony_ci#    of conditions and the following disclaimer in the documentation and/or other materials
11570af302Sopenharmony_ci#    provided with the distribution.
12570af302Sopenharmony_ci#
13570af302Sopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14570af302Sopenharmony_ci#    to endorse or promote products derived from this software without specific prior written
15570af302Sopenharmony_ci#    permission.
16570af302Sopenharmony_ci#
17570af302Sopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18570af302Sopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19570af302Sopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20570af302Sopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21570af302Sopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22570af302Sopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23570af302Sopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24570af302Sopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25570af302Sopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26570af302Sopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27570af302Sopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28570af302Sopenharmony_ci
29570af302Sopenharmony_ciMUSLPORTINGDIR = get_path_info(".", "abspath")
30570af302Sopenharmony_ci
31570af302Sopenharmony_ciMUSL_INCLUDE_DIRS = [ "$MUSLPORTINGDIR/include" ]
32570af302Sopenharmony_ci
33570af302Sopenharmony_ciMUSL_LIBC_OPT_SRC_FOR_ARMV8_M = [
34570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/arch/arm/memcmp_armv8m.S",
35570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/arch/arm/memset_armv8m.S",
36570af302Sopenharmony_ci]
37570af302Sopenharmony_ci
38570af302Sopenharmony_ciMUSL_LIBC_OPT_SRC_FOR_ARM =
39570af302Sopenharmony_ci    [ "$MUSLPORTINGDIR/src/string/arch/arm/memcpy_le.S" ]
40570af302Sopenharmony_ci
41570af302Sopenharmony_ciMUSL_LIBC_SRC = [
42570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/__ctype_get_mb_cur_max.c",
43570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isalnum.c",
44570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isascii.c",
45570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isdigit.c",
46570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/islower.c",
47570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isprint.c",
48570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isspace.c",
49570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isupper.c",
50570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/isxdigit.c",
51570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/tolower.c",
52570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/ctype/toupper.c",
53570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/env/__stack_chk_fail.c",
54570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/errno/strerror.c",
55570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/exit/abort.c",
56570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/exit/assert.c",
57570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/exit/atexit.c",
58570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/internal/floatscan.c",
59570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/internal/intscan.c",
60570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/internal/shgetc.c",
61570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/locale/__lctrans.c",
62570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/locale/c_locale.c",
63570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/locale/iconv.c",
64570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/locale/langinfo.c",
65570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/misc/dirname.c",
66570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/misc/realpath.c",
67570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/internal.c",
68570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/mbrtowc.c",
69570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/mbsinit.c",
70570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/mbtowc.c",
71570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/wcrtomb.c",
72570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/multibyte/wctomb.c",
73570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/network/h_errno.c",
74570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/network/htonl.c",
75570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/network/htons.c",
76570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/network/ntohl.c",
77570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/network/ntohs.c",
78570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/prng/rand.c",
79570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/prng/random.c",
80570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/regex/regcomp.c",
81570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/regex/regexec.c",
82570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/regex/tre-mem.c",
83570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__fdopen.c",
84570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
85570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__lockfile.c",
86570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__overflow.c",
87570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
88570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
89570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
90570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
91570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
92570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__string_read.c",
93570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__toread.c",
94570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__towrite.c",
95570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/__uflow.c",
96570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/clearerr.c",
97570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fclose.c",
98570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/feof.c",
99570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fflush.c",
100570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fgetc.c",
101570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fgets.c",
102570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fileno.c",
103570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fopen.c",
104570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fputc.c",
105570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fputs.c",
106570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fread.c",
107570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fseek.c",
108570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/ftell.c",
109570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/fwrite.c",
110570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/ofl.c",
111570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/ofl_add.c",
112570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/perror.c",
113570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/remove.c",
114570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/rewind.c",
115570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/snprintf.c",
116570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/sscanf.c",
117570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/stderr.c",
118570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/stdin.c",
119570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/stdout.c",
120570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/ungetc.c",
121570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/vfprintf.c",
122570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/vfscanf.c",
123570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/vsnprintf.c",
124570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/vsprintf.c",
125570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdio/vsscanf.c",
126570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/abs.c",
127570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/atof.c",
128570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/atoi.c",
129570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/atol.c",
130570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/atoll.c",
131570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/bsearch.c",
132570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/llabs.c",
133570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/strtod.c",
134570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/stdlib/strtol.c",
135570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memchr.c",
136570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memcmp.c",
137570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memcpy.c",
138570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memmove.c",
139570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memrchr.c",
140570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/memset.c",
141570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/stpcpy.c",
142570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/stpncpy.c",
143570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strcasecmp.c",
144570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strcat.c",
145570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strchr.c",
146570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strchrnul.c",
147570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strcmp.c",
148570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strcpy.c",
149570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strcspn.c",
150570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strdup.c",
151570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strlen.c",
152570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strncasecmp.c",
153570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strncat.c",
154570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strncmp.c",
155570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strncpy.c",
156570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strnlen.c",
157570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strrchr.c",
158570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strspn.c",
159570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strstr.c",
160570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strtok.c",
161570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/strtok_r.c",
162570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/wcschr.c",
163570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/string/wcslen.c",
164570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/__month_to_secs.c",
165570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/__secs_to_tm.c",
166570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/__tm_to_secs.c",
167570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/__tz.c",
168570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/__year_to_secs.c",
169570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/asctime.c",
170570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/asctime_r.c",
171570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/ctime.c",
172570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/strftime.c",
173570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/time/strptime.c",
174570af302Sopenharmony_ci]
175570af302Sopenharmony_ci
176570af302Sopenharmony_ciMUSL_LIBM_SRC = [
177570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__fpclassify.c",
178570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__fpclassifyl.c",
179570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_divzero.c",
180570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_divzerof.c",
181570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_invalid.c",
182570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_invalidf.c",
183570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_oflow.c",
184570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_oflowf.c",
185570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_uflow.c",
186570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_uflowf.c",
187570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_xflow.c",
188570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__math_xflowf.c",
189570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__signbit.c",
190570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/__signbitl.c",
191570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/arm/fabs.c",
192570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/copysign.c",
193570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/copysignl.c",
194570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/exp_data.c",
195570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/fabsl.c",
196570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/floor.c",
197570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/fmod.c",
198570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/fmodl.c",
199570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/frexp.c",
200570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/frexpl.c",
201570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/log.c",
202570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/log_data.c",
203570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/pow.c",
204570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/pow_data.c",
205570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/round.c",
206570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/scalbn.c",
207570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/scalbnl.c",
208570af302Sopenharmony_ci  "$MUSLPORTINGDIR/src/math/sqrt.c",
209570af302Sopenharmony_ci]
210