enable protobuf lite for mapsmobi builds
@@ -6123,6 +6123,7 @@ ANDROID_APK_TEST_ACTIVITY_VALUE=com.yandex.test.unittests/.RunTestsActivity
MAPSMOBI_IDL_TOOL=tools/idl/bin
MAPSMOBI_BUILD=
YANDEX_EXPORT=
+MAPSMOBI_CPP_PROTO_PLUGINS=
when ($MAPSMOBI_BUILD_HOST || $MAPSMOBI_BUILD_TARGET) {
MAPSMOBI_BUILD=yes
}
@@ -6135,15 +6136,16 @@ when ($MAPSMOBI_BUILD) {
when ($MAPSMOBI_BUILD_TARGET) {
ALLOCATOR=FAKE
USE_VANILLA_PROTOC=yes
+ PROTOBUF_LITE=yes
+ CPP_PROTO_PLUGINS=lite${pre=,:MAPSMOBI_CPP_PROTO_PLUGINS}:
SYSINCL+=build/sysincl/mapsmobi.yml
OPTIMIZE=-O2
CFLAGS+=-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DBOOST_SYMBOL_EXPORT= -DBOOST_SYMBOL_VISIBLE= -DBOOST_CB_DISABLE_DEBUG -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DYANDEX_EXPORT=${YANDEX_EXPORT}
}
when ($MAPSMOBI_BUILD_TARGET && $OS_ANDROID) {
- PROTOBUF_LITE=yes
JDK_VERSION=8
- CPP_PROTO_PLUGINS="dllexport_decl=YANDEX_EXPORT:"
+ MAPSMOBI_CPP_PROTO_PLUGINS="dllexport_decl=YANDEX_EXPORT"
YANDEX_EXPORT=__attribute__((visibility(\"default\")))
when ($BT_RELEASE || $BT_RELWITHDEBINFO) {
