-
Notifications
You must be signed in to change notification settings - Fork 2
android build quide
Here I explain how to get started quickly with android and windows building.
Download NDK from https://developer.android.com/tools/sdk/ndk/index.html (android-ndk32-r10b-windows-x86_64.zip).
Extract zip into C:\Users\Public
Download latest engine master and build it in DEBUG and RELEASE before you continue with anything.
Copy your project into ..\UtH-Engine\vs2013\ so YourProject.vcxproj would be found at ..\UtH-Engine\vs2013\YourProject\
Do not Delete, but remove TestProject from solution and add your own project into solution.
Try keep folder structure same as properties below rely on it.
Change your projects properties as shown in images.
http://imgur.com/Dt1pVxh,zAF6l5W,ubwaXrW#0
Correct filepaths in CopyAssets.bat
@echo off
robocopy /NJS /NJH /S assets vs2013/YourProject/assets
robocopy /NJS /NJH /S assets android/assets
exit
and BuildAndroid.bat to match where your project is
@echo off
start CopyAssets.bat
set NDK_PROJECT_PATH=C:\Users\You\Desktop\EngineFolder\android
start C:\Users\Public\ndk\ndk-build.cmd
exit
Edit Android.mk:
LOCAL_MODULE := uthengine
LOCAL_SRC_FILES := main.cpp \
../../vs2013/YourProject/source/YourClass.cpp \
../../vs2013/YourProject/source/YourSecondClass.cpp \
.
.
.
../../vs2013/YourProject/source/YourNthClass.cpp
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2 -lOpenSLES
LOCAL_STATIC_LIBRARIES := android_native_app_glue engine
LOCAL_SHARED_LIBRARIES :=
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../vs2013/YourProject/include/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../include/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../ext/include/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../ext/include/freetype_include/
Copy Scenes.hpp from TestProject into your project and modify it to match your game.