Skip to content

Commit

Permalink
Update build to Android Studio 2.3.0 + ndk-r15b
Browse files Browse the repository at this point in the history
remove app_dummy() according to android/ndk#381
  • Loading branch information
ggfan committed Jul 27, 2017
1 parent 8eb991a commit 79f542b
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ build
*~
local.properties
.externalNativeBuild
.cdep


2 changes: 1 addition & 1 deletion tutorial01_load_vulkan/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.google.vulkan.tutorials.one"
Expand Down
2 changes: 2 additions & 0 deletions tutorial01_load_vulkan/app/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ add_library(vktuts SHARED

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -std=c++11 \
-DVK_USE_PLATFORM_ANDROID_KHR")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")

target_link_libraries(vktuts app-glue log android)
1 change: 0 additions & 1 deletion tutorial01_load_vulkan/app/src/main/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ void handle_cmd(android_app* app, int32_t cmd);

// typical Android NativeActivity entry function
void android_main(struct android_app* app) {
app_dummy();

app->onAppCmd = handle_cmd;

Expand Down
2 changes: 1 addition & 1 deletion tutorial01_load_vulkan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Apr 12 16:39:17 PDT 2016
#Wed Jul 26 22:23:04 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 1 addition & 1 deletion tutorial02_prebuild_layers/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def valLayerBinDir = "${ndkDir}/sources/third_party/vulkan/src/build-android/jni

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.vulkan.tutorials.two"
Expand Down
1 change: 1 addition & 0 deletions tutorial02_prebuild_layers/app/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ include_directories(${VK_WRAPPER_DIR} ${VK_VAL_LAYER_SRC_DIR}/include)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror \
-Wno-unused-variable -DUSE_DEBUG_EXTENTIONS \
-DVK_USE_PLATFORM_ANDROID_KHR")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")

target_link_libraries(vktuts app-glue log android)
1 change: 0 additions & 1 deletion tutorial02_prebuild_layers/app/src/main/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ void handle_cmd(android_app* app, int32_t cmd);

// typical Android NativeActivity entry function
void android_main(struct android_app* app) {
app_dummy();

app->onAppCmd = handle_cmd;

Expand Down
2 changes: 1 addition & 1 deletion tutorial02_prebuild_layers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Apr 12 14:01:09 PDT 2016
#Wed Jul 26 21:26:24 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 1 addition & 1 deletion tutorial03_traceable_layers/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror \
-Wno-unused-variable \
-DVK_USE_PLATFORM_ANDROID_KHR \
-DUSE_DEBUG_EXTENTIONS")

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
target_link_libraries(vktuts app-glue log android)
1 change: 0 additions & 1 deletion tutorial03_traceable_layers/app/src/main/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ void handle_cmd(android_app* app, int32_t cmd);

// typical Android NativeActivity entry function
void android_main(struct android_app* app) {
app_dummy();

app->onAppCmd = handle_cmd;

Expand Down
2 changes: 1 addition & 1 deletion tutorial04_first_window/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ include_directories(${WRAPPER_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror \
-Wno-unused-variable \
-DVK_USE_PLATFORM_ANDROID_KHR")

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
target_link_libraries(vktuts app-glue log android)
2 changes: 1 addition & 1 deletion tutorial04_first_window/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.google.vulkan.tutorials.four"
Expand Down
2 changes: 0 additions & 2 deletions tutorial04_first_window/app/src/main/jni/AndroidMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ void handle_cmd(android_app* app, int32_t cmd) {
}

void android_main(struct android_app* app) {
// Magic call, please ignore it (Android specific).
app_dummy();

// Set the callback to process system events
app->onAppCmd = handle_cmd;
Expand Down
2 changes: 1 addition & 1 deletion tutorial04_first_window/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Aug 17 21:14:42 PDT 2016
#Wed Jul 26 22:32:41 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 1 addition & 1 deletion tutorial05_triangle/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ include_directories(${WRAPPER_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror \
-Wno-unused-variable \
-DVK_USE_PLATFORM_ANDROID_KHR")

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
target_link_libraries(vktuts app-glue log android)
2 changes: 1 addition & 1 deletion tutorial05_triangle/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.google.vulkan.tutorials.five"
Expand Down
2 changes: 0 additions & 2 deletions tutorial05_triangle/app/src/main/jni/AndroidMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ void handle_cmd(android_app* app, int32_t cmd) {
}

void android_main(struct android_app* app) {
// Magic call, please ignore it (Android specific).
app_dummy();

// Set the callback to process system events
app->onAppCmd = handle_cmd;
Expand Down
2 changes: 1 addition & 1 deletion tutorial05_triangle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions tutorial05_triangle/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Nov 25 17:13:33 GMT 2015
#Wed Jul 26 21:24:56 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 0 additions & 2 deletions tutorial06_texture/app/src/main/cpp/AndroidMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ void handle_cmd(android_app* app, int32_t cmd) {
}

void android_main(struct android_app* app) {
// Magic call, please ignore it (Android specific).
app_dummy();

// Set the callback to process system events
app->onAppCmd = handle_cmd;
Expand Down
2 changes: 1 addition & 1 deletion tutorial06_texture/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (${ANDROID_ABI} STREQUAL "armeabi-v7a")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} \
-Wl,--no-warn-mismatch")
endif()

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
target_link_libraries(vktuts native_glue log android)

######## CDep package for shaderc ######################
Expand Down

0 comments on commit 79f542b

Please sign in to comment.