Skip to content

Commit

Permalink
Upgrade build files to new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabe committed Jun 15, 2021
1 parent 26adf47 commit 8e42e5c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Expand Up @@ -9,13 +9,13 @@ buildscript {
var fragment_version: String by extra

kotlin_version = "1.4.32"
fragment_version = "1.3.2"
fragment_version = "1.3.3"
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.3")
classpath("com.android.tools.build:gradle:4.2.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip
2 changes: 1 addition & 1 deletion main/build.gradle.kts
Expand Up @@ -35,7 +35,7 @@ android {

externalNativeBuild {
cmake {
path =File("${projectDir}/src/main/cpp/CMakeLists.txt")
path = File("${projectDir}/src/main/cpp/CMakeLists.txt")
}
}

Expand Down
12 changes: 5 additions & 7 deletions main/src/main/cpp/CMakeLists.txt
Expand Up @@ -123,9 +123,6 @@ set(openvpn_srcs
src/compat/compat-daemon.c
src/compat/compat-dirname.c
src/compat/compat-gettimeofday.c
src/compat/compat-inet_ntop.c
src/compat/compat-inet_pton.c
src/compat/compat-lz4.c
src/openvpn/argv.c
src/openvpn/auth_token.c
src/openvpn/base64.c
Expand Down Expand Up @@ -230,12 +227,12 @@ if (${OPENVPN2MBED})
target_compile_definitions(openvpn PRIVATE
-DENABLE_CRYPTO_MBEDTLS=1
)
target_link_libraries(openvpn mbedtls mbedx509 mbedcrypto lzo)
target_link_libraries(openvpn mbedtls mbedx509 mbedcrypto lzo lz4)
else ()
target_compile_definitions(openvpn PRIVATE
-DENABLE_CRYPTO_OPENSSL=1
)
target_link_libraries(openvpn crypto ssl lzo)
target_link_libraries(openvpn crypto ssl lzo lz4)
endif ()

add_executable(libovpnexec.so minivpn/minivpn.c)
Expand All @@ -255,17 +252,18 @@ SET(OVPN_ASSET_DIR ${CMAKE_SOURCE_DIR}/../../../build/ovpnassets)
add_custom_target(makeassetdir ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${OVPN_ASSET_DIR})


add_custom_command(TARGET nopie_openvpn.${ANDROID_ABI} POST_BUILD
COMMAND
${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/nopie_openvpn.${ANDROID_ABI}
$<TARGET_FILE:nopie_openvpn.${ANDROID_ABI}>
${OVPN_ASSET_DIR}
)

add_custom_command(TARGET pie_openvpn.${ANDROID_ABI} POST_BUILD
COMMAND
${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/pie_openvpn.${ANDROID_ABI}
$<TARGET_FILE:pie_openvpn.${ANDROID_ABI}>
${OVPN_ASSET_DIR}
)

Expand Down
4 changes: 2 additions & 2 deletions remoteExample/build.gradle
Expand Up @@ -7,11 +7,11 @@ apply plugin: 'com.android.application'


android {
compileSdkVersion 28
compileSdkVersion 30

defaultConfig {
minSdkVersion 15
targetSdkVersion 28
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Expand Up @@ -6,4 +6,4 @@
include(":main")
include(":tlsexternalcertprovider")
include(":remoteExample")
include(":yubikeyplugin")
//include(":yubikeyplugin")

0 comments on commit 8e42e5c

Please sign in to comment.