Skip to content

Instantly share code, notes, and snippets.

@neagix
Last active December 22, 2015 13:38
Show Gist options
  • Save neagix/6480247 to your computer and use it in GitHub Desktop.
Save neagix/6480247 to your computer and use it in GitHub Desktop.
small patch needed to compile OpenXCOM on ODROIDs
#!/bin/bash
## @author neagix
## automatic OpenXcom game directory association script
##
if [ $# -gt 0 ]; then
for DIR in GEODATA GEOGRAPH MAPS ROUTES SOUND TERRAIN UFOGRAPH UFOINTRO UNITS; do
FOUNDDIR=$(find ./ -maxdepth 1 -iname $DIR -type d)
if [[ "$FOUNDDIR" != "" ]]; then
unlink ~/.local/share/openxcom/data/$DIR 2>/dev/null
SRC=$(readlink -f $1/$FOUNDDIR)
ln -s $SRC ~/.local/share/openxcom/data/$DIR
fi
done
fi
## run the game
SDL_AUDIODRIVER=alsa /usr/local/bin/openxcom.bin
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0422b09..def9841 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,9 @@
project ( OpenXcom )
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard")
+set(CMAKE_AS_FLAGS "${CMAKE_AS_FLAGS} -marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard")
+
cmake_minimum_required ( VERSION 2.8 )
set ( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment