Skip to content

Commit 0ce6f8b

Browse files
committed
Removing hard-float from compiling flags
NDK-R12 will not support it anymore
1 parent fb02259 commit 0ce6f8b

File tree

11 files changed

+6
-50
lines changed

11 files changed

+6
-50
lines changed

common/nativeactivity/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ model {
3535
}
3636
}
3737
}
38-
}
38+
}

tutorial01_load_vulkan/app/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ model {
2323
abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'])
2424

2525
}
26-
// Turn on hard float support in armeabi-v7a
27-
abis {
28-
create("armeabi-v7a") {
29-
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
30-
ldLibs.add("m_hard")
31-
ldFlags.add("-Wl,--no-warn-mismatch")
32-
}
33-
}
34-
3526
sources {
3627
main {
3728
jni {

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-experimental:0.7.0-rc1'
8+
classpath 'com.android.tools.build:gradle-experimental:0.7.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}

tutorial02_prebuild_layers/app/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ model {
3333
abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'])
3434

3535
}
36-
// Turn on hard float support in armeabi-v7a
37-
abis {
38-
create("armeabi-v7a") {
39-
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
40-
ldLibs.add("m_hard")
41-
ldFlags.add("-Wl,--no-warn-mismatch")
42-
}
43-
}
44-
4536
sources {
4637
main {
4738
jni {

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-experimental:0.7.0-rc1'
8+
classpath 'com.android.tools.build:gradle-experimental:0.7.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}

tutorial03_traceable_layers/app/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ model {
3131
abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'])
3232

3333
}
34-
// Turn on hard float support in armeabi-v7a
35-
abis {
36-
create("armeabi-v7a") {
37-
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
38-
ldLibs.add("m_hard")
39-
ldFlags.add("-Wl,--no-warn-mismatch")
40-
}
41-
}
42-
4334
sources {
4435
main {
4536
jni {

tutorial03_traceable_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-experimental:0.7.0-rc1'
8+
classpath 'com.android.tools.build:gradle-experimental:0.7.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}

tutorial04_first_window/app/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ model {
2323
abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'])
2424

2525
}
26-
// Turn on hard float support in armeabi-v7a
27-
abis {
28-
create("armeabi-v7a") {
29-
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
30-
ldLibs.add("m_hard")
31-
ldFlags.add("-Wl,--no-warn-mismatch")
32-
}
33-
}
34-
3526
sources {
3627
main {
3728
jni {

tutorial04_first_window/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-experimental:0.7.0-rc1'
8+
classpath 'com.android.tools.build:gradle-experimental:0.7.0'
99
// NOTE: Do not place your application dependencies here; they belong
1010
// in the individual module build.gradle files
1111
}

tutorial05_triangle/app/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ model {
2929
"-I" + file("../../common/vulkan_wrapper")])
3030
abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'])
3131
}
32-
// Turn on hard float support in armeabi-v7a
33-
abis {
34-
create("armeabi-v7a") {
35-
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
36-
ldLibs.add("m_hard")
37-
ldFlags.add("-Wl,--no-warn-mismatch")
38-
}
39-
}
4032
sources {
4133
main {
4234
jni {

0 commit comments

Comments
 (0)