update
This commit is contained in:
4
android/third-party/LibEvent/ApplicationManifest.xml
vendored
Normal file
4
android/third-party/LibEvent/ApplicationManifest.xml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.libevent">
|
||||
</manifest>
|
||||
13
android/third-party/LibEvent/CMakeLists.txt
vendored
Normal file
13
android/third-party/LibEvent/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
cmake_minimum_required (VERSION 3.6.0)
|
||||
|
||||
PROJECT(libevent C)
|
||||
enable_language(C)
|
||||
set(PACKAGE_NAME libevent)
|
||||
set(LIBEVENT_DIR libevent-release-2.1.8-stable/)
|
||||
list(APPEND DIR_LIST ${LIBEVENT_DIR} ${LIBEVENT_DIR}/include)
|
||||
include_directories(${DIR_LIST})
|
||||
file(GLOB SRCFILES ${LIBEVENT_DIR}/*.c)
|
||||
message(STATUS "SRC FILES :- " ${SRCFILES})
|
||||
add_library(${PACKAGE_NAME} SHARED ${SRCFILES})
|
||||
install(TARGETS ${PACKAGE_NAME} DESTINATION ./build/)
|
||||
target_link_libraries(${PACKAGE_NAME})
|
||||
33
android/third-party/LibEvent/build.gradle
vendored
Normal file
33
android/third-party/LibEvent/build.gradle
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.compileSdkVersion
|
||||
buildToolsVersion rootProject.buildToolsVersion
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.minSdkVersion
|
||||
targetSdkVersion rootProject.targetSdkVersion
|
||||
ndk {
|
||||
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_TOOLCHAIN=clang'
|
||||
}
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile './ApplicationManifest.xml'
|
||||
}
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path './CMakeLists.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user