Advertisement
AtomicOs

copyright

Apr 23rd, 2021
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Copyright (C) 2009 The Android Open Source Project
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4.  
  5. You may obtain a copy of the License at
  6.  
  7. http://www.apache.org/licenses/LICENSE-2.0
  8.  
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14.  
  15. LOCAL_PATH := $(call my-dir)
  16. IGNORED_WARNINGS := -Wno-sign-compare -Wno-unused-parameter -Wno-sign-promo -Wno-error=return-type
  17. CC_LITE_SRC_FILES := \
  18.     src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc         \
  19.     src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc        \
  20.     src/google/protobuf/stubs/common.cc                              \
  21.     src/google/protobuf/stubs/once.cc                                \
  22.     src/google/protobuf/stubs/hash.h                                 \
  23.     src/google/protobuf/stubs/map_util.h                             \
  24.     src/google/protobuf/stubs/shared_ptr.h                           \
  25.     src/google/protobuf/stubs/stringprintf.cc                        \
  26.     src/google/protobuf/stubs/stringprintf.h                         \
  27.     src/google/protobuf/extension_set.cc                             \
  28.     src/google/protobuf/generated_message_util.cc                    \
  29.     src/google/protobuf/message_lite.cc                              \
  30.     src/google/protobuf/repeated_field.cc                            \
  31.     src/google/protobuf/wire_format_lite.cc                          \
  32.     src/google/protobuf/io/coded_stream.cc                           \
  33.     src/google/protobuf/io/coded_stream_inl.h                        \
  34.     src/google/protobuf/io/zero_copy_stream.cc                       \
  35.     src/google/protobuf/io/zero_copy_stream_impl_lite.cc
  36. JAVA_LITE_SRC_FILES := \
  37.     java/src/main/java/com/google/protobuf/UninitializedMessageException.java \
  38.     java/src/main/java/com/google/protobuf/MessageLite.java \
  39.     java/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java \
  40.     java/src/main/java/com/google/protobuf/CodedOutputStream.java \
  41.     java/src/main/java/com/google/protobuf/ByteString.java \
  42.     java/src/main/java/com/google/protobuf/CodedInputStream.java \
  43.     java/src/main/java/com/google/protobuf/ExtensionRegistryLite.java \
  44.     java/src/main/java/com/google/protobuf/AbstractMessageLite.java \
  45.     java/src/main/java/com/google/protobuf/AbstractParser.java \
  46.     java/src/main/java/com/google/protobuf/FieldSet.java \
  47.     java/src/main/java/com/google/protobuf/Internal.java \
  48.     java/src/main/java/com/google/protobuf/WireFormat.java \
  49.     java/src/main/java/com/google/protobuf/GeneratedMessageLite.java \
  50.     java/src/main/java/com/google/protobuf/BoundedByteString.java \
  51.     java/src/main/java/com/google/protobuf/LazyField.java \
  52.     java/src/main/java/com/google/protobuf/LazyFieldLite.java \
  53.     java/src/main/java/com/google/protobuf/LazyStringList.java \
  54.     java/src/main/java/com/google/protobuf/LazyStringArrayList.java \
  55.     java/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java \
  56.     java/src/main/java/com/google/protobuf/LiteralByteString.java \
  57.     java/src/main/java/com/google/protobuf/MessageLiteOrBuilder.java \
  58.     java/src/main/java/com/google/protobuf/Parser.java \
  59.     java/src/main/java/com/google/protobuf/ProtocolStringList.java \
  60.     java/src/main/java/com/google/protobuf/RopeByteString.java \
  61.     java/src/main/java/com/google/protobuf/SmallSortedMap.java \
  62.     java/src/main/java/com/google/protobuf/Utf8.java
  63. # This contains more source files than needed for the full version, but the
  64. # additional files should not create any conflict.
  65. JAVA_FULL_SRC_FILES := \
  66.     $(call all-java-files-under, java/src/main/java) \
  67.     src/google/protobuf/descriptor.proto
  68. COMPILER_SRC_FILES :=  \
  69.     src/google/protobuf/descriptor.cc \
  70.     src/google/protobuf/descriptor.pb.cc \
  71.     src/google/protobuf/descriptor_database.cc \
  72.     src/google/protobuf/dynamic_message.cc \
  73.     src/google/protobuf/extension_set.cc \
  74.     src/google/protobuf/extension_set_heavy.cc \
  75.     src/google/protobuf/generated_message_reflection.cc \
  76.     src/google/protobuf/generated_message_util.cc \
  77.     src/google/protobuf/message.cc \
  78.     src/google/protobuf/message_lite.cc \
  79.     src/google/protobuf/reflection_ops.cc \
  80.     src/google/protobuf/repeated_field.cc \
  81.     src/google/protobuf/service.cc \
  82.     src/google/protobuf/text_format.cc \
  83.     src/google/protobuf/unknown_field_set.cc \
  84.     src/google/protobuf/wire_format.cc \
  85.     src/google/protobuf/wire_format_lite.cc \
  86.     src/google/protobuf/compiler/code_generator.cc \
  87.     src/google/protobuf/compiler/command_line_interface.cc \
  88.     src/google/protobuf/compiler/importer.cc \
  89.     src/google/protobuf/compiler/main.cc \
  90.     src/google/protobuf/compiler/parser.cc \
  91.     src/google/protobuf/compiler/plugin.cc \
  92.     src/google/protobuf/compiler/plugin.pb.cc \
  93.     src/google/protobuf/compiler/subprocess.cc \
  94.     src/google/protobuf/compiler/zip_writer.cc \
  95.     src/google/protobuf/compiler/cpp/cpp_enum.cc \
  96.     src/google/protobuf/compiler/cpp/cpp_enum_field.cc \
  97.     src/google/protobuf/compiler/cpp/cpp_extension.cc \
  98.     src/google/protobuf/compiler/cpp/cpp_field.cc \
  99.     src/google/protobuf/compiler/cpp/cpp_file.cc \
  100.     src/google/protobuf/compiler/cpp/cpp_generator.cc \
  101.     src/google/protobuf/compiler/cpp/cpp_helpers.cc \
  102.     src/google/protobuf/compiler/cpp/cpp_message.cc \
  103.     src/google/protobuf/compiler/cpp/cpp_message_field.cc \
  104.     src/google/protobuf/compiler/cpp/cpp_primitive_field.cc \
  105.     src/google/protobuf/compiler/cpp/cpp_service.cc \
  106.     src/google/protobuf/compiler/cpp/cpp_string_field.cc \
  107.     src/google/protobuf/compiler/java/java_context.cc \
  108.     src/google/protobuf/compiler/java/java_enum.cc \
  109.     src/google/protobuf/compiler/java/java_enum_field.cc \
  110.     src/google/protobuf/compiler/java/java_extension.cc \
  111.     src/google/protobuf/compiler/java/java_field.cc \
  112.     src/google/protobuf/compiler/java/java_file.cc \
  113.     src/google/protobuf/compiler/java/java_generator.cc \
  114.     src/google/protobuf/compiler/java/java_generator_factory.cc \
  115.     src/google/protobuf/compiler/java/java_helpers.cc \
  116.     src/google/protobuf/compiler/java/java_lazy_message_field.cc \
  117.     src/google/protobuf/compiler/java/java_message.cc \
  118.     src/google/protobuf/compiler/java/java_message_field.cc \
  119.     src/google/protobuf/compiler/java/java_name_resolver.cc \
  120.     src/google/protobuf/compiler/java/java_primitive_field.cc \
  121.     src/google/protobuf/compiler/java/java_shared_code_generator.cc \
  122.     src/google/protobuf/compiler/java/java_service.cc \
  123.     src/google/protobuf/compiler/java/java_string_field.cc \
  124.     src/google/protobuf/compiler/java/java_doc_comment.cc \
  125.     src/google/protobuf/compiler/javamicro/javamicro_enum.cc \
  126.     src/google/protobuf/compiler/javamicro/javamicro_enum_field.cc \
  127.     src/google/protobuf/compiler/javamicro/javamicro_field.cc \
  128.     src/google/protobuf/compiler/javamicro/javamicro_file.cc \
  129.     src/google/protobuf/compiler/javamicro/javamicro_generator.cc \
  130.     src/google/protobuf/compiler/javamicro/javamicro_helpers.cc \
  131.     src/google/protobuf/compiler/javamicro/javamicro_message.cc \
  132.     src/google/protobuf/compiler/javamicro/javamicro_message_field.cc \
  133.     src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc \
  134.     src/google/protobuf/compiler/javanano/javanano_enum.cc \
  135.     src/google/protobuf/compiler/javanano/javanano_enum_field.cc \
  136.     src/google/protobuf/compiler/javanano/javanano_extension.cc \
  137.     src/google/protobuf/compiler/javanano/javanano_field.cc \
  138.     src/google/protobuf/compiler/javanano/javanano_file.cc \
  139.     src/google/protobuf/compiler/javanano/javanano_generator.cc \
  140.     src/google/protobuf/compiler/javanano/javanano_helpers.cc \
  141.     src/google/protobuf/compiler/javanano/javanano_message.cc \
  142.     src/google/protobuf/compiler/javanano/javanano_message_field.cc \
  143.     src/google/protobuf/compiler/javanano/javanano_primitive_field.cc \
  144.     src/google/protobuf/compiler/python/python_generator.cc \
  145.     src/google/protobuf/io/coded_stream.cc \
  146.     src/google/protobuf/io/gzip_stream.cc \
  147.     src/google/protobuf/io/printer.cc \
  148.     src/google/protobuf/io/strtod.cc \
  149.     src/google/protobuf/io/tokenizer.cc \
  150.     src/google/protobuf/io/zero_copy_stream.cc \
  151.     src/google/protobuf/io/zero_copy_stream_impl.cc \
  152.     src/google/protobuf/io/zero_copy_stream_impl_lite.cc \
  153.     src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
  154.     src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
  155.     src/google/protobuf/stubs/common.cc \
  156.     src/google/protobuf/stubs/once.cc \
  157.     src/google/protobuf/stubs/structurally_valid.cc \
  158.     src/google/protobuf/stubs/strutil.cc \
  159.     src/google/protobuf/stubs/substitute.cc \
  160.     src/google/protobuf/stubs/stringprintf.cc
  161. # Java nano library (for device-side users)
  162. # =======================================================
  163. include $(CLEAR_VARS)
  164. LOCAL_MODULE := libprotobuf-java-nano
  165. LOCAL_MODULE_TAGS := optional
  166. LOCAL_SDK_VERSION := 8
  167. LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/nano)
  168. LOCAL_SRC_FILES += $(call all-java-files-under, java/src/device/main/java/com/google/protobuf/nano)
  169. include $(BUILD_STATIC_JAVA_LIBRARY)
  170. # Java nano library (for host-side users)
  171. # =======================================================
  172. include $(CLEAR_VARS)
  173. LOCAL_MODULE := host-libprotobuf-java-nano
  174. LOCAL_MODULE_TAGS := optional
  175. LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/nano)
  176. include $(BUILD_HOST_JAVA_LIBRARY)
  177. # Java micro library (for device-side users)
  178. # =======================================================
  179. include $(CLEAR_VARS)
  180. LOCAL_MODULE := libprotobuf-java-micro
  181. LOCAL_MODULE_TAGS := optional
  182. LOCAL_SDK_VERSION := 8
  183. LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
  184. include $(BUILD_STATIC_JAVA_LIBRARY)
  185. # Java micro library (for host-side users)
  186. # =======================================================
  187. include $(CLEAR_VARS)
  188. LOCAL_MODULE := host-libprotobuf-java-micro
  189. LOCAL_MODULE_TAGS := optional
  190. LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
  191. include $(BUILD_HOST_JAVA_LIBRARY)
  192. # Java lite library (for device-side users)
  193. # =======================================================
  194. include $(CLEAR_VARS)
  195. LOCAL_MODULE := libprotobuf-java-lite
  196. LOCAL_MODULE_TAGS := optional
  197. LOCAL_SDK_VERSION := 9
  198. LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES)
  199. include $(BUILD_STATIC_JAVA_LIBRARY)
  200. # Java lite library (for host-side users)
  201. # =======================================================
  202. include $(CLEAR_VARS)
  203. LOCAL_MODULE := host-libprotobuf-java-lite
  204. LOCAL_MODULE_TAGS := optional
  205. LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES)
  206. include $(BUILD_HOST_JAVA_LIBRARY)
  207. # Java full library (for host-side users)
  208. # =======================================================
  209. include $(CLEAR_VARS)
  210. LOCAL_MODULE := host-libprotobuf-java-full
  211. LOCAL_MODULE_TAGS := optional
  212. LOCAL_SRC_FILES := $(JAVA_FULL_SRC_FILES)
  213. include $(BUILD_HOST_JAVA_LIBRARY)
  214. # C++ lite library
  215. # =======================================================
  216. include $(CLEAR_VARS)
  217. LOCAL_MODULE := libprotobuf-cpp-lite
  218. LOCAL_MODULE_TAGS := optional
  219. LOCAL_CPP_EXTENSION := .cc
  220. LOCAL_SRC_FILES := $(CC_LITE_SRC_FILES)
  221. LOCAL_C_INCLUDES := \
  222.     $(LOCAL_PATH)/android \
  223.     $(LOCAL_PATH)/src
  224. # Define the header files to be copied
  225. #LOCAL_COPY_HEADERS := \
  226. #    src/google/protobuf/stubs/once.h \
  227. #    src/google/protobuf/stubs/common.h \
  228. #    src/google/protobuf/io/coded_stream.h \
  229. #    src/google/protobuf/generated_message_util.h \
  230. #    src/google/protobuf/repeated_field.h \
  231. #    src/google/protobuf/extension_set.h \
  232. #    src/google/protobuf/wire_format_lite_inl.h
  233. #
  234. #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE)
  235. LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI $(IGNORED_WARNINGS)
  236. # These are the minimum versions and don't need to be update.
  237. ifeq ($(TARGET_ARCH),arm)
  238. LOCAL_SDK_VERSION := 8
  239. else
  240. # x86/mips support only available from API 9.
  241. LOCAL_SDK_VERSION := 9
  242. endif
  243. LOCAL_NDK_STL_VARIANT := stlport_static
  244. include $(BUILD_STATIC_LIBRARY)
  245. # C++ lite library (libc++ flavored for the platform)
  246. # =======================================================
  247. include $(CLEAR_VARS)
  248. LOCAL_MODULE := libprotobuf-cpp-lite
  249. LOCAL_MODULE_TAGS := optional
  250. LOCAL_CPP_EXTENSION := .cc
  251. LOCAL_SRC_FILES := $(CC_LITE_SRC_FILES)
  252. LOCAL_C_INCLUDES := \
  253.    $(LOCAL_PATH)/android \
  254.    $(LOCAL_PATH)/src
  255. LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI $(IGNORED_WARNINGS)
  256. include $(BUILD_SHARED_LIBRARY)
  257. # C++ full library
  258. # =======================================================
  259. protobuf_cc_full_src_files := \
  260.    $(CC_LITE_SRC_FILES)                                             \
  261.    src/google/protobuf/stubs/strutil.cc                             \
  262.    src/google/protobuf/stubs/strutil.h                              \
  263.    src/google/protobuf/stubs/substitute.cc                          \
  264.    src/google/protobuf/stubs/substitute.h                           \
  265.    src/google/protobuf/stubs/structurally_valid.cc                  \
  266.    src/google/protobuf/descriptor.cc                                \
  267.    src/google/protobuf/descriptor.pb.cc                             \
  268.    src/google/protobuf/descriptor_database.cc                       \
  269.    src/google/protobuf/dynamic_message.cc                           \
  270.    src/google/protobuf/extension_set_heavy.cc                       \
  271.    src/google/protobuf/generated_message_reflection.cc              \
  272.    src/google/protobuf/message.cc                                   \
  273.    src/google/protobuf/reflection_ops.cc                            \
  274.    src/google/protobuf/service.cc                                   \
  275.    src/google/protobuf/text_format.cc                               \
  276.    src/google/protobuf/unknown_field_set.cc                         \
  277.    src/google/protobuf/wire_format.cc                               \
  278.    src/google/protobuf/io/gzip_stream.cc                            \
  279.    src/google/protobuf/io/printer.cc                                \
  280.    src/google/protobuf/io/strtod.cc                                 \
  281.    src/google/protobuf/io/tokenizer.cc                              \
  282.    src/google/protobuf/io/zero_copy_stream_impl.cc                  \
  283.    src/google/protobuf/compiler/importer.cc                         \
  284.    src/google/protobuf/compiler/parser.cc
  285. # C++ full library - stlport version
  286. # =======================================================
  287. include $(CLEAR_VARS)
  288. LOCAL_MODULE := libprotobuf-cpp-full
  289. LOCAL_MODULE_TAGS := optional
  290. LOCAL_CPP_EXTENSION := .cc
  291. LOCAL_SRC_FILES := $(protobuf_cc_full_src_files)
  292. LOCAL_C_INCLUDES := \
  293.    $(LOCAL_PATH)/android \
  294.    external/zlib \
  295.    $(LOCAL_PATH)/src
  296. # Define the header files to be copied
  297. #LOCAL_COPY_HEADERS := \
  298. #    src/google/protobuf/stubs/once.h \
  299. #    src/google/protobuf/stubs/common.h \
  300. #    src/google/protobuf/io/coded_stream.h \
  301. #    src/google/protobuf/generated_message_util.h \
  302. #    src/google/protobuf/repeated_field.h \
  303. #    src/google/protobuf/extension_set.h \
  304. #    src/google/protobuf/wire_format_lite_inl.h
  305. #
  306. #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE)
  307. LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI $(IGNORED_WARNINGS)
  308. # These are the minimum versions and don't need to be update.
  309. ifeq ($(TARGET_ARCH),arm)
  310. LOCAL_SDK_VERSION := 8
  311. else
  312. # x86/mips support only available from API 9.
  313. LOCAL_SDK_VERSION := 9
  314. endif
  315. LOCAL_NDK_STL_VARIANT := stlport_static
  316. include $(BUILD_STATIC_LIBRARY)
  317. # C++ full library - Gnustl+rtti version
  318. # =======================================================
  319. include $(CLEAR_VARS)
  320. LOCAL_MODULE := libprotobuf-cpp-full-gnustl-rtti
  321. LOCAL_MODULE_TAGS := optional
  322. LOCAL_CPP_EXTENSION := .cc
  323. LOCAL_SRC_FILES := $(protobuf_cc_full_src_files)
  324. LOCAL_C_INCLUDES := \
  325.     $(LOCAL_PATH)/android \
  326.     external/zlib \
  327.     $(LOCAL_PATH)/src
  328. LOCAL_CFLAGS := -frtti $(IGNORED_WARNINGS)
  329. LOCAL_SDK_VERSION := 14
  330. LOCAL_NDK_STL_VARIANT := gnustl_static
  331. include $(BUILD_STATIC_LIBRARY)
  332. # C++ full library - libc++ version for the platform
  333. # =======================================================
  334. include $(CLEAR_VARS)
  335. LOCAL_MODULE := libprotobuf-cpp-full
  336. LOCAL_MODULE_TAGS := optional
  337. LOCAL_CPP_EXTENSION := .cc
  338. LOCAL_SRC_FILES := $(protobuf_cc_full_src_files)
  339. LOCAL_C_INCLUDES := \
  340.     $(LOCAL_PATH)/android \
  341.     external/zlib \
  342.     $(LOCAL_PATH)/src
  343. LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI $(IGNORED_WARNINGS)
  344. LOCAL_SHARED_LIBRARIES := libz
  345. include $(BUILD_SHARED_LIBRARY)
  346. # Clean temp vars
  347. protobuf_cc_full_src_files :=
  348. Android Protocol buffer compiler, aprotoc (host executable)
  349. used by the build systems as $(PROTOC) defined in
  350. build/core/config.mk
  351. =======================================================
  352. include $(CLEAR_VARS)
  353. LOCAL_MODULE := aprotoc
  354. LOCAL_MODULE_CLASS := EXECUTABLES
  355. LOCAL_MODULE_TAGS := optional
  356. Use the system's libstdc++ (libc++ on mac) because we copy aprotoc to
  357. unbundled projects where libc++.so may not be available.
  358. LOCAL_CXX_STL := libstdc++
  359. LOCAL_CPP_EXTENSION := .cc
  360. LOCAL_SRC_FILES := $(COMPILER_SRC_FILES)
  361. LOCAL_C_INCLUDES := \
  362.    $(LOCAL_PATH)/android \
  363.    external/zlib \
  364.    $(LOCAL_PATH)/src
  365. LOCAL_STATIC_LIBRARIES += libz
  366. ifneq ($(HOST_OS),windows)
  367. LOCAL_LDLIBS := -lpthread
  368. endif
  369. LOCAL_CFLAGS := $(IGNORED_WARNINGS)
  370. include $(BUILD_HOST_EXECUTABLE)
  371. To test java proto params build rules.
  372. =======================================================
  373. include $(CLEAR_VARS)
  374. LOCAL_MODULE := aprotoc-test-nano-params
  375. LOCAL_MODULE_TAGS := tests
  376. LOCAL_SDK_VERSION := current
  377. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  378. LOCAL_SRC_FILES := \
  379.        src/google/protobuf/unittest_import_nano.proto \
  380.        src/google/protobuf/unittest_simple_nano.proto \
  381.        src/google/protobuf/unittest_stringutf8_nano.proto \
  382.        src/google/protobuf/unittest_recursive_nano.proto
  383. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/src
  384. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
  385.        java_package = $(LOCAL_PATH)/src/google/protobuf/unittest_import_nano.proto|com.google.protobuf.nano, \
  386.        java_outer_classname = $(LOCAL_PATH)/src/google/protobuf/unittest_import_nano.proto|UnittestImportNano
  387. include $(BUILD_STATIC_JAVA_LIBRARY)
  388. To test Android-specific nanoproto features.
  389. =======================================================
  390. include $(CLEAR_VARS)
  391. Parcelable messages
  392. LOCAL_MODULE := android-nano-test-parcelable
  393. LOCAL_MODULE_TAGS := tests
  394. LOCAL_SDK_VERSION := current
  395. Only needed at compile-time.
  396. LOCAL_JAVA_LIBRARIES := android-support-annotations
  397. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  398. LOCAL_SRC_FILES := src/google/protobuf/unittest_simple_nano.proto
  399. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/src
  400. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
  401.        parcelable_messages = true, \
  402.        generate_intdefs = true
  403. include $(BUILD_STATIC_JAVA_LIBRARY)
  404. include $(CLEAR_VARS)Parcelable and extendable messages
  405. LOCAL_MODULE := android-nano-test-parcelable-extendable
  406. LOCAL_MODULE_TAGS := tests
  407. LOCAL_SDK_VERSION := current
  408. only needed at compile-time.
  409. LOCAL_JAVA_LIBRARIES := android-support-annotations
  410. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  411. LOCAL_SRC_FILES := src/google/protobuf/unittest_extension_nano.proto
  412. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/src
  413. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
  414.        parcelable_messages = true, \
  415.        generate_intdefs = true, \
  416.        store_unknown_fields = true
  417. include $(BUILD_STATIC_JAVA_LIBRARY)
  418. include $(CLEAR_VARS)
  419. Test APK
  420. LOCAL_PACKAGE_NAME := NanoAndroidTest
  421. LOCAL_SDK_VERSION := 8
  422. LOCAL_MODULE_TAGS := tests
  423. LOCAL_SRC_FILES := $(call all-java-files-under, java/src/device/test/java/com/google/protobuf/nano)
  424. LOCAL_MANIFEST_FILE := java/src/device/test/AndroidManifest.xml
  425. LOCAL_STATIC_JAVA_LIBRARIES := libprotobuf-java-nano \
  426.        android-nano-test-parcelable \
  427.        android-nano-test-parcelable-extendable
  428. LOCAL_DEX_PREOPT := false
  429. include $(BUILD_PACKAGE)
  430.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement