mirror of
https://github.com/pleonex/NitroFilcher.git
synced 2025-06-18 21:25:34 -04:00
Add script to compile desmume
This commit is contained in:
parent
70e191a210
commit
3bc3bd91d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.userprefs
|
||||
bin/
|
||||
obj/
|
||||
desmume/
|
||||
|
34
compile_desmume.sh
Executable file
34
compile_desmume.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user