Use the new cmake support to build JNI code

This commit is contained in:
Fredrik Fornwall
2016-09-21 22:30:20 +02:00
parent 26dcd5af88
commit d658e16801
4 changed files with 13 additions and 5 deletions

5
app/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.4.1)
add_library(termux SHARED src/main/jni/termux.c)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall -Wextra -Os -fno-stack-protector -Wl,--gc-sections")