1# 2# SPDX-License-Identifier: BSD-3-Clause 3# 4# Copyright © 2019 Keith Packard 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: 9# 10# 1. Redistributions of source code must retain the above copyright 11# notice, this list of conditions and the following disclaimer. 12# 13# 2. Redistributions in binary form must reproduce the above 14# copyright notice, this list of conditions and the following 15# disclaimer in the documentation and/or other materials provided 16# with the distribution. 17# 18# 3. Neither the name of the copyright holder nor the names of its 19# contributors may be used to endorse or promote products derived 20# from this software without specific prior written permission. 21# 22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 27# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 29# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 31# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 33# OF THE POSSIBILITY OF SUCH DAMAGE. 34# 35subdir('sys') 36subdir('machine') 37subdir('ssp') 38subdir('rpc') 39subdir('arpa') 40 41inc_headers = [ 42 'alloca.h', 43 '_ansi.h', 44 'argz.h', 45 'ar.h', 46 'assert.h', 47 'byteswap.h', 48 'cpio.h', 49 'ctype.h', 50 'devctl.h', 51 'dirent.h', 52 'elf.h', 53 'endian.h', 54 'envlock.h', 55 'envz.h', 56 'errno.h', 57 'fastmath.h', 58 'fcntl.h', 59 'fenv.h', 60 'fnmatch.h', 61 'getopt.h', 62 'glob.h', 63 'grp.h', 64 'iconv.h', 65 'ieeefp.h', 66 'inttypes.h', 67 'langinfo.h', 68 'libgen.h', 69 'limits.h', 70 'locale.h', 71 'malloc.h', 72 'math.h', 73 'memory.h', 74 'newlib.h', 75 'paths.h', 76 'pwd.h', 77 'regdef.h', 78 'regex.h', 79 'sched.h', 80 'search.h', 81 'setjmp.h', 82 'signal.h', 83 'spawn.h', 84 'stdint.h', 85 'stdlib.h', 86 'string.h', 87 'strings.h', 88 '_syslist.h', 89 'tar.h', 90 'termios.h', 91 'threads.h', 92 'time.h', 93 'unctrl.h', 94 'unistd.h', 95 'utime.h', 96 'utmp.h', 97 'wchar.h', 98 'wctype.h', 99 'wordexp.h' 100] 101 102if have_complex 103 inc_headers += ['complex.h'] 104endif 105 106inc_headers += ['picotls.h'] 107 108install_headers(inc_headers, 109 install_dir: include_dir) 110 111# For compatibility with libc++'s __mbstate_t.h: 112install_headers(['bits/types/mbstate_t.h'], 113 install_dir: include_dir / 'bits/types') 114