From 0b0ca225dbc4b785720bb09c1d898105db4fba64 Mon Sep 17 00:00:00 2001 From: Matt Blair Date: Thu, 8 Dec 2016 19:31:33 -0500 Subject: [PATCH] Pass 'debug' and 'release' configs from Gradle to CMake --- android/tangram/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/tangram/build.gradle b/android/tangram/build.gradle index 1d4c4851bd..127db67a7f 100644 --- a/android/tangram/build.gradle +++ b/android/tangram/build.gradle @@ -44,6 +44,19 @@ android { } } + buildTypes { + release { + externalNativeBuild { + cmake.arguments '-DCMAKE_BUILD_TYPE=Release' + } + } + debug { + externalNativeBuild { + cmake.arguments '-DCMAKE_BUILD_TYPE=Debug' + } + } + } + productFlavors { slim { // Default configuration