summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorEric Erfanian <erfanian@google.com>2017-03-22 15:15:18 -0700
committerEric Erfanian <erfanian@google.com>2017-03-22 15:15:18 -0700
commit8cc9ca1f17013cedbf6d2ae8cdc72c08b2c3bba0 (patch)
treed37d15f08e879fc3a3fec820a10791b39c3e698b /Android.mk
parentfc37b02f5d3381a7882770941e461b13b679b6ef (diff)
downloadandroid_packages_apps_Dialer-8cc9ca1f17013cedbf6d2ae8cdc72c08b2c3bba0.tar.gz
android_packages_apps_Dialer-8cc9ca1f17013cedbf6d2ae8cdc72c08b2c3bba0.tar.bz2
android_packages_apps_Dialer-8cc9ca1f17013cedbf6d2ae8cdc72c08b2c3bba0.zip
Modify the Dialer make file to compile nano protos.
Test: make, treehugger This change enables native proto compilation for nano protos under android make. In a subsequent change, we will remove precompiled proto classes and begin compiling protos that are included with the release. Change-Id: I6579151686b94c83f93b7dc04225ec2ddf30f95d
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index d21a1a5a5..ffe89c530 100644
--- a/Android.mk
+++ b/Android.mk
@@ -139,6 +139,11 @@ LOCAL_FULL_LIBS_MANIFEST_FILES := \
$(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
+# Include protocol buffers and use the nano compiler.
+LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
+LOCAL_PROTOC_OPTIMIZE_TYPE := nano
+LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
+LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
LOCAL_RESOURCE_DIR := \
$(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
$(support_library_root_dir)/design/res \