mirror of
https://github.com/darlinghq/darling-JavaScriptCore.git
synced 2024-12-04 02:00:55 +00:00
19 lines
462 B
Bash
Executable File
19 lines
462 B
Bash
Executable File
cd "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}"
|
|
|
|
UNIFDEF_OPTIONS="-D__MAC_OS_X_VERSION_MIN_REQUIRED=${TARGET_MAC_OS_X_VERSION_MAJOR}"
|
|
|
|
for ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do
|
|
eval HEADER=\${SCRIPT_INPUT_FILE_${i}};
|
|
unifdef -B ${UNIFDEF_OPTIONS} -o "${HEADER}".unifdef "${HEADER}"
|
|
case $? in
|
|
0)
|
|
rm "${HEADER}".unifdef
|
|
;;
|
|
1)
|
|
mv "${HEADER}"{.unifdef,}
|
|
;;
|
|
*)
|
|
exit 1
|
|
esac
|
|
done
|