summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Android.mk
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-07-28 15:11:14 -0700
committerLajos Molnar <lajos@google.com>2015-07-29 15:44:30 -0700
commit7c3c275b4d0100eec36f7b66637a7aace7971466 (patch)
tree7fcd01c703060898c9355d99615afff7b13c7958 /media/libstagefright/Android.mk
parenta7d36c184562cc15b2d665ff25c485fefdcfbabd (diff)
downloadframeworks_av-7c3c275b4d0100eec36f7b66637a7aace7971466.zip
frameworks_av-7c3c275b4d0100eec36f7b66637a7aace7971466.tar.gz
frameworks_av-7c3c275b4d0100eec36f7b66637a7aace7971466.tar.bz2
stagefright: disable automatic experiments
allow manually-enabled experiments only in eng and userdebug builds Bug: 20894667 Change-Id: Ie6c93e9482a84ed3aaf6aa0abd909f14cfea4e9b
Diffstat (limited to 'media/libstagefright/Android.mk')
-rw-r--r--media/libstagefright/Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index b86c749..2529aa7 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -127,8 +127,12 @@ LOCAL_SHARED_LIBRARIES += \
libdl \
libRScpp \
-LOCAL_CFLAGS += -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall \
- -DENABLE_STAGEFRIGHT_EXPERIMENTS
+LOCAL_CFLAGS += -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall
+
+# enable experiments only in userdebug and eng builds
+ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
+LOCAL_CFLAGS += -DENABLE_STAGEFRIGHT_EXPERIMENTS
+endif
LOCAL_CLANG := true