From 0154654539ed88dc3de048c591fe20a9d88c482b Mon Sep 17 00:00:00 2001 From: Rintaro Kuroiwa Date: Tue, 14 Jan 2014 11:01:53 -0800 Subject: [PATCH] Remove LITE from protobuf for serialization to human readable string TextFormat class methods that output human readable messsages need Message instance where LITE uses MessageLite. Change-Id: I4ff14aa9334acdad608f0b02c81d9cb765e70a60 --- mpd/base/media_info.proto | 2 -- mpd/mpd.gyp | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mpd/base/media_info.proto b/mpd/base/media_info.proto index 5ab1d21b4b..2cee10ee99 100644 --- a/mpd/base/media_info.proto +++ b/mpd/base/media_info.proto @@ -3,8 +3,6 @@ syntax = "proto2"; -option optimize_for = LITE_RUNTIME; - package dash_packager; message Range { diff --git a/mpd/mpd.gyp b/mpd/mpd.gyp index 210b33a42e..3e6f99b98c 100644 --- a/mpd/mpd.gyp +++ b/mpd/mpd.gyp @@ -19,6 +19,12 @@ 'proto_out_dir': 'mpd/base', }, 'includes': ['../build/protoc.gypi'], + 'dependencies': [ + # This target needs to depend on 'protobuf_full_do_not_use' to generate + # non-LITE (full) protobuf. We need full protobuf to serialize and + # deserialize human readable protobuf messages. + '../third_party/protobuf/protobuf.gyp:protobuf_full_do_not_use', + ], }, { 'target_name': 'mpd_builder',