andersca@apple.com | a09f90e | 2014-03-08 00:18:21 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2006, 2014 Apple Inc. All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions |
| 6 | # are met: |
| 7 | # 1. Redistributions of source code must retain the above copyright |
| 8 | # notice, this list of conditions and the following disclaimer. |
| 9 | # 2. Redistributions in binary form must reproduce the above copyright |
| 10 | # notice, this list of conditions and the following disclaimer in the |
| 11 | # documentation and/or other materials provided with the distribution. |
| 12 | # |
| 13 | # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| 14 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 15 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| 17 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 18 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 19 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 20 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 21 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 22 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 | # THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | # |
| 25 | |
| 26 | mkdir -p "${TARGET_BUILD_DIR}/${PRIVATE_HEADERS_FOLDER_PATH}" |
| 27 | mkdir -p "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}" |
andersca@apple.com | 2201dc7 | 2014-04-30 22:02:19 +0000 | [diff] [blame] | 28 | mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy" |
andersca@apple.com | a09f90e | 2014-03-08 00:18:21 +0000 | [diff] [blame] | 29 | |
| 30 | # If we didn't build WebCore, use the production copy of the headers |
| 31 | if [ ! -d "${WEBCORE_PRIVATE_HEADERS_DIR}" ]; then |
krollin@apple.com | b4d462f | 2018-10-11 21:22:40 +0000 | [diff] [blame] | 32 | export WEBCORE_PRIVATE_HEADERS_DIR="${WEBCORE_PRIVATE_HEADERS_DIR_Production}" |
andersca@apple.com | a09f90e | 2014-03-08 00:18:21 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
ddkilzer@apple.com | fb7baec | 2021-08-16 16:31:24 +0000 | [diff] [blame] | 35 | if [ "${ACTION}" = "analyze" -o "${ACTION}" = "build" -o "${ACTION}" = "install" -o "${ACTION}" = "installhdrs" -o "${ACTION}" = "installapi" ]; then |
mitz@apple.com | 45d6b84 | 2016-01-09 20:13:57 +0000 | [diff] [blame] | 36 | ln -sfh "${WEBCORE_PRIVATE_HEADERS_DIR}" "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebCorePrivateHeaders" |
krollin@apple.com | b4d462f | 2018-10-11 21:22:40 +0000 | [diff] [blame] | 37 | |
ddkilzer@apple.com | 88ea2f1 | 2020-05-28 19:16:48 +0000 | [diff] [blame] | 38 | make -C mac -f "MigrateHeaders.make" -j `/usr/sbin/sysctl -n hw.activecpu` SDKROOT="${SDKROOT}" migrate_headers |
krollin@apple.com | b4d462f | 2018-10-11 21:22:40 +0000 | [diff] [blame] | 39 | for WK_CURRENT_ARCH in ${ARCHS}; do |
ddkilzer@apple.com | 88ea2f1 | 2020-05-28 19:16:48 +0000 | [diff] [blame] | 40 | make -C mac -f "MigrateHeaders.make" -j `/usr/sbin/sysctl -n hw.activecpu` SDKROOT="${SDKROOT}" WK_CURRENT_ARCH=${WK_CURRENT_ARCH} reexport_headers |
krollin@apple.com | b4d462f | 2018-10-11 21:22:40 +0000 | [diff] [blame] | 41 | done |
andersca@apple.com | a09f90e | 2014-03-08 00:18:21 +0000 | [diff] [blame] | 42 | fi |