Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 1 | # Copyright (C) 2009 The Android Open Source Project |
Wink Saville | 79a4a60 | 2010-05-27 15:44:42 -0700 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 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. |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 14 | # |
| 15 | # |
Wink Saville | 79a4a60 | 2010-05-27 15:44:42 -0700 | [diff] [blame] | 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
Wink Saville | 79a4a60 | 2010-05-27 15:44:42 -0700 | [diff] [blame] | 18 | |
Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame^] | 19 | CC_LITE_SRC_FILES := \ |
| 20 | src/google/protobuf/stubs/common.cc \ |
| 21 | src/google/protobuf/stubs/once.cc \ |
| 22 | src/google/protobuf/stubs/hash.cc \ |
| 23 | src/google/protobuf/stubs/hash.h \ |
| 24 | src/google/protobuf/stubs/map-util.h \ |
| 25 | src/google/protobuf/stubs/stl_util-inl.h \ |
| 26 | src/google/protobuf/extension_set.cc \ |
| 27 | src/google/protobuf/generated_message_util.cc \ |
| 28 | src/google/protobuf/message_lite.cc \ |
| 29 | src/google/protobuf/repeated_field.cc \ |
| 30 | src/google/protobuf/wire_format_lite.cc \ |
| 31 | src/google/protobuf/io/coded_stream.cc \ |
| 32 | src/google/protobuf/io/coded_stream_inl.h \ |
| 33 | src/google/protobuf/io/zero_copy_stream.cc \ |
| 34 | src/google/protobuf/io/zero_copy_stream_impl_lite.cc |
| 35 | |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 36 | # Java micro library |
| 37 | # ======================================================= |
| 38 | include $(CLEAR_VARS) |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 39 | |
Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame] | 40 | LOCAL_MODULE := libprotobuf-java-2.3.0-micro |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 41 | |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 42 | LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro) |
| 43 | |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 44 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 45 | |
Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame] | 46 | # Java lite library |
| 47 | # ======================================================= |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_MODULE := libprotobuf-java-2.3.0-lite |
| 51 | |
| 52 | LOCAL_SRC_FILES := \ |
| 53 | java/src/main/java/com/google/protobuf/UninitializedMessageException.java \ |
| 54 | java/src/main/java/com/google/protobuf/MessageLite.java \ |
| 55 | java/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java \ |
| 56 | java/src/main/java/com/google/protobuf/CodedOutputStream.java \ |
| 57 | java/src/main/java/com/google/protobuf/ByteString.java \ |
| 58 | java/src/main/java/com/google/protobuf/CodedInputStream.java \ |
| 59 | java/src/main/java/com/google/protobuf/ExtensionRegistryLite.java \ |
| 60 | java/src/main/java/com/google/protobuf/AbstractMessageLite.java \ |
| 61 | java/src/main/java/com/google/protobuf/FieldSet.java \ |
| 62 | java/src/main/java/com/google/protobuf/Internal.java \ |
| 63 | java/src/main/java/com/google/protobuf/WireFormat.java \ |
| 64 | java/src/main/java/com/google/protobuf/GeneratedMessageLite.java |
| 65 | |
| 66 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 67 | |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 68 | # C++ lite library |
| 69 | # ======================================================= |
| 70 | include $(CLEAR_VARS) |
| 71 | |
| 72 | LOCAL_MODULE := libprotobuf-cpp-2.3.0-lite |
| 73 | |
| 74 | LOCAL_CPP_EXTENSION := .cc |
| 75 | |
Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame^] | 76 | LOCAL_SRC_FILES := $(CC_LITE_SRC_FILES) |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 77 | |
| 78 | LOCAL_C_INCLUDES := \ |
| 79 | $(LOCAL_PATH)/android \ |
| 80 | bionic \ |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 81 | $(LOCAL_PATH)/src |
| 82 | |
| 83 | LOCAL_SHARED_LIBRARIES := \ |
Kenny Root | 5ea4d58 | 2010-06-04 09:37:31 -0700 | [diff] [blame] | 84 | libcutils libutils |
| 85 | |
| 86 | # stlport conflicts with the host stl library |
| 87 | ifneq ($(TARGET_SIMULATOR),true) |
| 88 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 89 | LOCAL_SHARED_LIBRARIES += libstlport |
| 90 | endif |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 91 | |
| 92 | # Define the header files to be copied |
| 93 | #LOCAL_COPY_HEADERS := \ |
| 94 | # src/google/protobuf/stubs/once.h \ |
| 95 | # src/google/protobuf/stubs/common.h \ |
| 96 | # src/google/protobuf/io/coded_stream.h \ |
| 97 | # src/google/protobuf/generated_message_util.h \ |
| 98 | # src/google/protobuf/repeated_field.h \ |
| 99 | # src/google/protobuf/extension_set.h \ |
| 100 | # src/google/protobuf/wire_format_lite_inl.h |
| 101 | # |
| 102 | #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE) |
| 103 | |
| 104 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI |
| 105 | |
| 106 | include $(BUILD_STATIC_LIBRARY) |
Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame^] | 107 | |
| 108 | # C++ full library |
| 109 | # ======================================================= |
| 110 | include $(CLEAR_VARS) |
| 111 | |
| 112 | LOCAL_MODULE := libprotobuf-cpp-2.3.0-full |
| 113 | |
| 114 | LOCAL_CPP_EXTENSION := .cc |
| 115 | |
| 116 | LOCAL_SRC_FILES := \ |
| 117 | $(CC_LITE_SRC_FILES) \ |
| 118 | src/google/protobuf/stubs/strutil.cc \ |
| 119 | src/google/protobuf/stubs/strutil.h \ |
| 120 | src/google/protobuf/stubs/substitute.cc \ |
| 121 | src/google/protobuf/stubs/substitute.h \ |
| 122 | src/google/protobuf/stubs/structurally_valid.cc \ |
| 123 | src/google/protobuf/descriptor.cc \ |
| 124 | src/google/protobuf/descriptor.pb.cc \ |
| 125 | src/google/protobuf/descriptor_database.cc \ |
| 126 | src/google/protobuf/dynamic_message.cc \ |
| 127 | src/google/protobuf/extension_set_heavy.cc \ |
| 128 | src/google/protobuf/generated_message_reflection.cc \ |
| 129 | src/google/protobuf/message.cc \ |
| 130 | src/google/protobuf/reflection_ops.cc \ |
| 131 | src/google/protobuf/service.cc \ |
| 132 | src/google/protobuf/text_format.cc \ |
| 133 | src/google/protobuf/unknown_field_set.cc \ |
| 134 | src/google/protobuf/wire_format.cc \ |
| 135 | src/google/protobuf/io/gzip_stream.cc \ |
| 136 | src/google/protobuf/io/printer.cc \ |
| 137 | src/google/protobuf/io/tokenizer.cc \ |
| 138 | src/google/protobuf/io/zero_copy_stream_impl.cc \ |
| 139 | src/google/protobuf/compiler/importer.cc \ |
| 140 | src/google/protobuf/compiler/parser.cc |
| 141 | |
| 142 | LOCAL_C_INCLUDES := \ |
| 143 | $(LOCAL_PATH)/android \ |
| 144 | bionic \ |
| 145 | external/zlib \ |
| 146 | $(LOCAL_PATH)/src |
| 147 | |
| 148 | LOCAL_SHARED_LIBRARIES := \ |
| 149 | libz libcutils libutils |
| 150 | |
| 151 | # stlport conflicts with the host stl library |
| 152 | ifneq ($(TARGET_SIMULATOR),true) |
| 153 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 154 | LOCAL_SHARED_LIBRARIES += libstlport |
| 155 | endif |
| 156 | |
| 157 | # Define the header files to be copied |
| 158 | #LOCAL_COPY_HEADERS := \ |
| 159 | # src/google/protobuf/stubs/once.h \ |
| 160 | # src/google/protobuf/stubs/common.h \ |
| 161 | # src/google/protobuf/io/coded_stream.h \ |
| 162 | # src/google/protobuf/generated_message_util.h \ |
| 163 | # src/google/protobuf/repeated_field.h \ |
| 164 | # src/google/protobuf/extension_set.h \ |
| 165 | # src/google/protobuf/wire_format_lite_inl.h |
| 166 | # |
| 167 | #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE) |
| 168 | |
| 169 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI |
| 170 | |
| 171 | include $(BUILD_STATIC_LIBRARY) |