diff options
author | Eric Erfanian <erfanian@google.com> | 2017-03-22 15:15:18 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-03-22 15:15:18 -0700 |
commit | 8cc9ca1f17013cedbf6d2ae8cdc72c08b2c3bba0 (patch) | |
tree | d37d15f08e879fc3a3fec820a10791b39c3e698b | |
parent | fc37b02f5d3381a7882770941e461b13b679b6ef (diff) |
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
-rw-r--r-- | Android.mk | 5 |
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 \ |