Created
February 27, 2022 11:08
-
-
Save rumplestilzken/76ee77544dc705b9a2ce0a0f5faf0d95 to your computer and use it in GitHub Desktop.
Android.mk used to compile Protobuf for android as a static library, tested in SDL application.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := protobuf | |
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) | |
LOCAL_SRC_FILES := \ | |
$(subst $(LOCAL_PATH)/,, \ | |
$(wildcard $(LOCAL_PATH)/google/protobuf/*.cc) \ | |
$(wildcard $(LOCAL_PATH)/google/protobuf/io/*.cc) \ | |
$(wildcard $(LOCAL_PATH)/google/protobuf/stubs/*.cc) \ | |
$(wildcard $(LOCAL_PATH)/google/protobuf/util/*.cc) \ | |
$(wildcard $(LOCAL_PATH)/google/protobuf/util/internal/*.cc) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/text_format_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/preserve_unknown_enum_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/well_known_types_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/proto3_arena_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/reflection_tester.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/repeated_field_reflection_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/map_test_util.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/map_lite_test_util.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/arenastring_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/no_field_presence_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/repeated_field_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/descriptor_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/test_util.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/any_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/map_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/descriptor_database_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/map_field_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/test_util_lite.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/lite_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/extension_set_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/inlined_string_field_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/dynamic_message_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/unknown_field_set_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/proto3_lite_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/message_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/arena_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/proto3_arena_lite_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/drop_unknown_fields_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/generated_message_reflection_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/lite_arena_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/reflection_ops_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/wire_format_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/io/zero_copy_stream_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/io/coded_stream_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/io/tokenizer_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/io/printer_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/int128_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/common_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/bytestream_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/time_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/stringprintf_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/structurally_valid_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/statusor_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/template_util_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/status_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/strutil_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/stubs/stringpiece_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/default_value_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/delimited_message_util_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/field_comparator_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/field_mask_util_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/json_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/json_stream_parser_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/json_util_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/message_differencer_unittest.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/protostream_objectsource_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/protostream_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/time_util_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/type_resolver_util_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/default_value_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/json_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/json_stream_parser_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/protostream_objectsource_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/protostream_objectwriter_test.cc, $(LOCAL_SRC_FILES) ) | |
LOCAL_SRC_FILES := $(filter-out google/protobuf/util/internal/type_info_test_helper.cc, $(LOCAL_SRC_FILES) ) | |
include $(BUILD_STATIC_LIBRARY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment