mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-05 04:29:29 +00:00
a98054215e
update project files add a pref
38 lines
893 B
Bash
Executable File
38 lines
893 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
#
|
|
# run_build68k_for_xcode.sh
|
|
#
|
|
# Generates files for 68k emulation, via UAE's virtual cpu, for use on Mac OS X hosts
|
|
#
|
|
|
|
if [ ! "$BUILT_PRODUCTS_DIR" ] || [ ! "$PROJECT_DIR" ]; then
|
|
echo "ERROR: $(basename $0) must be run from an Xcode 'External Build System' target"
|
|
exit 1
|
|
fi
|
|
|
|
# Log some debugging information
|
|
echo "1=$1"
|
|
echo "BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR"
|
|
echo "PROJECT_DIR=$PROJECT_DIR"
|
|
|
|
# Perform actions, given the passed-in build step
|
|
case "$1" in
|
|
"clean")
|
|
echo "Cleaning build68k output(s)"
|
|
rm -rf "$BUILT_PRODUCTS_DIR/build68k_output"
|
|
;;
|
|
"")
|
|
if [ ! -d "$BUILT_PRODUCTS_DIR" ]; then
|
|
echo "No built products directory"
|
|
exit 1
|
|
fi
|
|
echo "Running build68k"
|
|
cd "$BUILT_PRODUCTS_DIR"
|
|
mkdir -p build68k_output
|
|
cd build68k_output
|
|
cat "$PROJECT_DIR/../uae_cpu/table68k" | "$BUILT_PRODUCTS_DIR/build68k" > "./defs68k.c"
|
|
ls -al
|
|
;;
|
|
esac
|