Skip to content

Commit 79f542b

Browse files
committed
Update build to Android Studio 2.3.0 + ndk-r15b
remove app_dummy() according to android/ndk#381
1 parent 8eb991a commit 79f542b

File tree

25 files changed

+24
-29
lines changed

25 files changed

+24
-29
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ build
66
*~
77
local.properties
88
.externalNativeBuild
9+
.cdep
910

1011

tutorial01_load_vulkan/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 24
5-
buildToolsVersion "24.0.1"
5+
buildToolsVersion '25.0.0'
66

77
defaultConfig {
88
applicationId "com.google.vulkan.tutorials.one"

tutorial01_load_vulkan/app/src/main/jni/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ add_library(vktuts SHARED
1111

1212
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -std=c++11 \
1313
-DVK_USE_PLATFORM_ANDROID_KHR")
14+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
15+
1416
target_link_libraries(vktuts app-glue log android)

tutorial01_load_vulkan/app/src/main/jni/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ void handle_cmd(android_app* app, int32_t cmd);
5656

5757
// typical Android NativeActivity entry function
5858
void android_main(struct android_app* app) {
59-
app_dummy();
6059

6160
app->onAppCmd = handle_cmd;
6261

tutorial01_load_vulkan/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
8+
classpath 'com.android.tools.build:gradle:2.3.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Apr 12 16:39:17 PDT 2016
1+
#Wed Jul 26 22:23:04 PDT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

tutorial02_prebuild_layers/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def valLayerBinDir = "${ndkDir}/sources/third_party/vulkan/src/build-android/jni
77

88
android {
99
compileSdkVersion 24
10-
buildToolsVersion "24.0.1"
10+
buildToolsVersion '25.0.0'
1111

1212
defaultConfig {
1313
applicationId "com.vulkan.tutorials.two"

tutorial02_prebuild_layers/app/src/main/jni/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ include_directories(${VK_WRAPPER_DIR} ${VK_VAL_LAYER_SRC_DIR}/include)
1919
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror \
2020
-Wno-unused-variable -DUSE_DEBUG_EXTENTIONS \
2121
-DVK_USE_PLATFORM_ANDROID_KHR")
22+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
2223

2324
target_link_libraries(vktuts app-glue log android)

tutorial02_prebuild_layers/app/src/main/jni/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ void handle_cmd(android_app* app, int32_t cmd);
5757

5858
// typical Android NativeActivity entry function
5959
void android_main(struct android_app* app) {
60-
app_dummy();
6160

6261
app->onAppCmd = handle_cmd;
6362

tutorial02_prebuild_layers/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
8+
classpath 'com.android.tools.build:gradle:2.3.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}

0 commit comments

Comments
 (0)