equal
deleted
inserted
replaced
1 SDL_ANDROID_DIR=${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project |
1 SDL_ANDROID_DIR=${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project |
2 |
2 |
3 PPCROSSARM=${FPC_DIR}/ppcrossarm |
3 PPCROSSARM=${FPC_DIR}/ppcrossarm |
4 PPCROSSARM_FLAGS= -Xd -O2 -g -Tlinux -XParm-linux-androideabi- -B -vwnh |
4 PPCROSSARM_FLAGS= -Xd -O2 -g -Tlinux -XParm-linux-androideabi- -B -vwnh -n |
5 PPCROSSARM_INCLUDES= \ |
5 PPCROSSARM_INCLUDES= \ |
6 -FD${ANDROID_NDK_TOOLCHAINDIR}/bin \ |
6 -FD${ANDROID_NDK_TOOLCHAINDIR}/bin \ |
7 -Fu${FPC_DIR}/../rtl/units/arm-linux \ |
7 -Fu${FPC_DIR}/../rtl/units/arm-linux \ |
8 -Fu${CMAKE_CURRENT_SOURCE_DIR} \ |
8 -Fu${CMAKE_CURRENT_SOURCE_DIR} \ |
9 -Fi../../hedgewars \ |
9 -Fi../../hedgewars \ |
20 |
20 |
21 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
21 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
22 |
22 |
23 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -o${CMAKE_CURRENT_SOURCE_DIR}/out/libhwengine.so ${CMAKE_CURRENT_SOURCE_DIR}/../../hedgewars/hwLibrary.pas |
23 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -o${CMAKE_CURRENT_SOURCE_DIR}/out/libhwengine.so ${CMAKE_CURRENT_SOURCE_DIR}/../../hedgewars/hwLibrary.pas |
24 ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/out/libhwengine.so $(SDL_ANDROID_DIR)/libs/armeabi/ |
24 ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/out/libhwengine.so $(SDL_ANDROID_DIR)/libs/armeabi/ |
|
25 |
|
26 debug: build |
25 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
27 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
26 ${ANT} debug -f $(SDL_ANDROID_DIR)/build.xml |
28 ${ANT} debug -f $(SDL_ANDROID_DIR)/build.xml |
27 install: build |
29 unsigned: build |
|
30 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
|
31 ${ANT} release -f $(SDL_ANDROID_DIR)/build.xml |
|
32 |
|
33 install/debug: debug |
|
34 ${ANT} installd -f $(SDL_ANDROID_DIR)/build.xml |
|
35 install/release: release |
28 ${ANT} installd -f $(SDL_ANDROID_DIR)/build.xml |
36 ${ANT} installd -f $(SDL_ANDROID_DIR)/build.xml |
29 |
37 |
30 clean: |
38 clean: |
31 ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_SOURCE_DIR}/out |
39 ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_SOURCE_DIR}/out |
32 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |
40 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |