Add script to compile desmume

This commit is contained in:
Benito Palacios Sánchez 2016-01-05 00:55:58 +01:00
parent 70e191a210
commit 3bc3bd91d7
2 changed files with 35 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.userprefs
bin/
obj/
desmume/

34
compile_desmume.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
if [[ ! -d "desmume" ]] ; then
# Checkout the desmume code if it doesn't exist
svn checkout svn://svn.code.sf.net/p/desmume/code/trunk desmume
cd desmume
else
# Update the current repo otherwise
cd desmume
svn update
fi
# Run the pre-steps
# Yes, there is a desmume folder inside the root folder
cd desmume
./autogen.sh
# "Apply" our patch replacing the debug file
# Since that file it's just a template for debug
# stuff it should be safe to replace, but yeah, I should generate a patch
cp debug.cpp desmume/src/
# Configure enabling debug
./configure --enable-debug
# Make
make
# We are not install but copying the executable
cd ../..
mkdir -p NitroFilcher/bin/Debug
mkdir -p NitroFilcher/bin/Release
cp desmume/desmume/src/gtk/desmume NitroFilcher/bin/Debug/desmume_nitrofilcher.exe
cp desmume/desmume/src/gtk/desmume NitroFilcher/bin/Release/desmume_nitrofilcher.exe