Initial commit
This commit is contained in:
3
native/.gitignore
vendored
Normal file
3
native/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/build
|
||||
/libs
|
||||
/obj
|
||||
11
native/build.gradle
Normal file
11
native/build.gradle
Normal file
@@ -0,0 +1,11 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
}
|
||||
|
||||
android {
|
||||
externalNativeBuild {
|
||||
ndkBuild {
|
||||
path("jni/Android.mk")
|
||||
}
|
||||
}
|
||||
}
|
||||
10
native/jni/Android.mk
Normal file
10
native/jni/Android.mk
Normal file
@@ -0,0 +1,10 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := example
|
||||
LOCAL_SRC_FILES := example.cpp
|
||||
LOCAL_STATIC_LIBRARIES := libcxx
|
||||
LOCAL_LDLIBS := -llog
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include jni/libcxx/Android.mk
|
||||
4
native/jni/Application.mk
Normal file
4
native/jni/Application.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
|
||||
APP_CPPFLAGS := -std=c++17 -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden
|
||||
APP_STL := none
|
||||
APP_PLATFORM := android-21
|
||||
7
native/jni/example.cpp
Normal file
7
native/jni/example.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
1
native/jni/libcxx
Submodule
1
native/jni/libcxx
Submodule
Submodule native/jni/libcxx added at 9b40e8b936
2
native/src/main/AndroidManifest.xml
Normal file
2
native/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="native" />
|
||||
Reference in New Issue
Block a user