Ok for real the first commit
This commit is contained in:
commit
0c7ca7d1b6
4046 changed files with 1449879 additions and 0 deletions
1
external/SDL2/android-project/app/jni/Android.mk
vendored
Normal file
1
external/SDL2/android-project/app/jni/Android.mk
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
include $(call all-subdir-makefiles)
|
||||
10
external/SDL2/android-project/app/jni/Application.mk
vendored
Normal file
10
external/SDL2/android-project/app/jni/Application.mk
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# Uncomment this if you're using STL in your project
|
||||
# You can find more information here:
|
||||
# https://developer.android.com/ndk/guides/cpp-support
|
||||
# APP_STL := c++_shared
|
||||
|
||||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
|
||||
|
||||
# Min runtime API level
|
||||
APP_PLATFORM=android-16
|
||||
20
external/SDL2/android-project/app/jni/CMakeLists.txt
vendored
Normal file
20
external/SDL2/android-project/app/jni/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
project(GAME)
|
||||
|
||||
# armeabi-v7a requires cpufeatures library
|
||||
# include(AndroidNdkModules)
|
||||
# android_ndk_import_module_cpufeatures()
|
||||
|
||||
|
||||
# SDL sources are in a subfolder named "SDL"
|
||||
add_subdirectory(SDL)
|
||||
|
||||
# Compilation of companion libraries
|
||||
#add_subdirectory(SDL_image)
|
||||
#add_subdirectory(SDL_mixer)
|
||||
#add_subdirectory(SDL_ttf)
|
||||
|
||||
# Your game and its CMakeLists.txt are in a subfolder named "src"
|
||||
add_subdirectory(src)
|
||||
|
||||
18
external/SDL2/android-project/app/jni/src/Android.mk
vendored
Normal file
18
external/SDL2/android-project/app/jni/src/Android.mk
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := main
|
||||
|
||||
SDL_PATH := ../SDL
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include
|
||||
|
||||
# Add your application source files here...
|
||||
LOCAL_SRC_FILES := YourSourceHere.c
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := SDL2
|
||||
|
||||
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
13
external/SDL2/android-project/app/jni/src/CMakeLists.txt
vendored
Normal file
13
external/SDL2/android-project/app/jni/src/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
project(MY_APP)
|
||||
|
||||
find_library(SDL2 SDL2)
|
||||
|
||||
add_library(main SHARED)
|
||||
|
||||
target_sources(main PRIVATE YourSourceHere.c)
|
||||
|
||||
target_link_libraries(main SDL2)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue