Index: build/android/envsetup_functions.sh |
diff --git a/build/android/envsetup_functions.sh b/build/android/envsetup_functions.sh |
index 55f7b55de87642be2bd5aba2dcb9a6c8429a28b6..d1a894b92d17ccbf4b00bbc349958a10d186fbbd 100755 |
--- a/build/android/envsetup_functions.sh |
+++ b/build/android/envsetup_functions.sh |
@@ -297,6 +297,11 @@ ${ANDROID_SDK_VERSION} |
DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
+ if [[ -n "$CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" ]]; then |
+ DEFINES+=" disable_debugallocation=1" |
+ DEFINES+=" android_full_debug=1" |
+ DEFINES+=" android_use_tcmalloc=1" |
+ fi |
export GYP_DEFINES="${DEFINES}" |
export GYP_GENERATORS="android" |