project_files/Android-build/Templates/Makefile.android
branchhedgeroid
changeset 5381 8f95038f3f75
child 6033 6bcc36225162
equal deleted inserted replaced
5379:4ed99dc92763 5381:8f95038f3f75
       
     1 SDL_ANDROID_DIR=./SDL-android-project
       
     2 
       
     3 PPCROSSARM=${FPC_DIR}/compiler/ppcrossarm
       
     4 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS -a- 
       
     5 PPCROSSARM_INCLUDES= \
       
     6 	-FD${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \
       
     7 	-Fu${FPC_DIR}/rtl/units/arm-linux \
       
     8 	-Fl${ANDROID_NDK}/platforms/android-${ANDROID_NDK_API_LVL}/arch-arm/usr/lib \
       
     9 	-Fl$(SDL_ANDROID_DIR)/libs/armeabi \
       
    10 	-Fl${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \
       
    11 #LINKERFLAGS= -k"--static"
       
    12 FPC_DEFINES=-dandroid -darm
       
    13 
       
    14 
       
    15 all:
       
    16 	-${CMAKE_COMMAND} -E make_directory out
       
    17 	$(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas
       
    18 	${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/
       
    19 clean:  
       
    20 	${CMAKE_COMMAND} -E remove_directory out