equal
deleted
inserted
replaced
1 SDL_ANDROID_DIR=./SDL-android-project |
1 SDL_ANDROID_DIR=./SDL-android-project |
2 |
2 |
3 PPCROSSARM=${FPC_DIR}/compiler/ppcrossarm |
3 PPCROSSARM=${FPC_DIR}/compiler/ppcrossarm |
4 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS -a- -B |
4 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh |
5 PPCROSSARM_INCLUDES= \ |
5 PPCROSSARM_INCLUDES= \ |
6 -FD${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \ |
6 -FD${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \ |
7 -Fu${FPC_DIR}/rtl/units/arm-linux \ |
7 -Fu${FPC_DIR}/rtl/units/arm-linux \ |
8 -Fl${ANDROID_NDK}/platforms/android-${ANDROID_NDK_API_LVL}/arch-arm/usr/lib \ |
8 -Fl${ANDROID_NDK}/platforms/android-${ANDROID_NDK_API_LVL}/arch-arm/usr/lib \ |
9 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
9 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
18 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
18 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
19 |
19 |
20 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
20 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
21 ${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/ |
21 ${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/ |
22 |
22 |
23 ${ANT} install -f $(SDL_ANDROID_DIR)/build.xml |
23 ${ANT} debug install -f $(SDL_ANDROID_DIR)/build.xml |
24 clean: |
24 clean: |
25 ${CMAKE_COMMAND} -E remove_directory out |
25 ${CMAKE_COMMAND} -E remove_directory out |
26 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |
26 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |
27 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
27 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |