| 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 := \ |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 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 |
| Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame] | 35 | |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 36 | JAVA_LITE_SRC_FILES := \ |
| Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame] | 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/FieldSet.java \ |
| 46 | java/src/main/java/com/google/protobuf/Internal.java \ |
| 47 | java/src/main/java/com/google/protobuf/WireFormat.java \ |
| 48 | java/src/main/java/com/google/protobuf/GeneratedMessageLite.java |
| 49 | |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 50 | |
| 51 | # Java micro library (for device-side users) |
| 52 | # ======================================================= |
| 53 | include $(CLEAR_VARS) |
| 54 | |
| 55 | LOCAL_MODULE := libprotobuf-java-2.3.0-micro |
| Jean-Baptiste Queru | b854f4d | 2010-10-05 10:26:11 -0700 | [diff] [blame^] | 56 | LOCAL_MODULE_TAGS := optional |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 57 | |
| 58 | LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro) |
| 59 | |
| Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame] | 60 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 61 | |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 62 | # Java micro library (for host-side users) |
| 63 | # ======================================================= |
| 64 | include $(CLEAR_VARS) |
| 65 | |
| 66 | LOCAL_MODULE := host-libprotobuf-java-2.3.0-micro |
| 67 | LOCAL_MODULE_TAGS := optional |
| 68 | |
| 69 | LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro) |
| 70 | |
| 71 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 72 | |
| 73 | # Java lite library (for device-side users) |
| 74 | # ======================================================= |
| 75 | include $(CLEAR_VARS) |
| 76 | |
| 77 | LOCAL_MODULE := libprotobuf-java-2.3.0-lite |
| Jean-Baptiste Queru | b854f4d | 2010-10-05 10:26:11 -0700 | [diff] [blame^] | 78 | LOCAL_MODULE_TAGS := optional |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 79 | |
| 80 | LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES) |
| 81 | |
| 82 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 83 | |
| 84 | # Java lite library (for host-side users) |
| 85 | # ======================================================= |
| 86 | include $(CLEAR_VARS) |
| 87 | |
| 88 | LOCAL_MODULE := host-libprotobuf-java-2.3.0-lite |
| 89 | LOCAL_MODULE_TAGS := optional |
| 90 | |
| 91 | LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES) |
| 92 | |
| 93 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 94 | |
| Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 95 | # C++ lite library |
| 96 | # ======================================================= |
| 97 | include $(CLEAR_VARS) |
| 98 | |
| 99 | LOCAL_MODULE := libprotobuf-cpp-2.3.0-lite |
| Jean-Baptiste Queru | b854f4d | 2010-10-05 10:26:11 -0700 | [diff] [blame^] | 100 | LOCAL_MODULE_TAGS := optional |
| Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 101 | |
| 102 | LOCAL_CPP_EXTENSION := .cc |
| 103 | |
| Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame] | 104 | LOCAL_SRC_FILES := $(CC_LITE_SRC_FILES) |
| Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 105 | |
| 106 | LOCAL_C_INCLUDES := \ |
| 107 | $(LOCAL_PATH)/android \ |
| 108 | bionic \ |
| Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 109 | $(LOCAL_PATH)/src |
| 110 | |
| 111 | LOCAL_SHARED_LIBRARIES := \ |
| Kenny Root | 5ea4d58 | 2010-06-04 09:37:31 -0700 | [diff] [blame] | 112 | libcutils libutils |
| 113 | |
| 114 | # stlport conflicts with the host stl library |
| 115 | ifneq ($(TARGET_SIMULATOR),true) |
| 116 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 117 | LOCAL_SHARED_LIBRARIES += libstlport |
| 118 | endif |
| Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 119 | |
| 120 | # Define the header files to be copied |
| 121 | #LOCAL_COPY_HEADERS := \ |
| 122 | # src/google/protobuf/stubs/once.h \ |
| 123 | # src/google/protobuf/stubs/common.h \ |
| 124 | # src/google/protobuf/io/coded_stream.h \ |
| 125 | # src/google/protobuf/generated_message_util.h \ |
| 126 | # src/google/protobuf/repeated_field.h \ |
| 127 | # src/google/protobuf/extension_set.h \ |
| 128 | # src/google/protobuf/wire_format_lite_inl.h |
| 129 | # |
| 130 | #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE) |
| 131 | |
| 132 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI |
| 133 | |
| 134 | include $(BUILD_STATIC_LIBRARY) |
| Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame] | 135 | |
| 136 | # C++ full library |
| 137 | # ======================================================= |
| 138 | include $(CLEAR_VARS) |
| 139 | |
| 140 | LOCAL_MODULE := libprotobuf-cpp-2.3.0-full |
| Jean-Baptiste Queru | b854f4d | 2010-10-05 10:26:11 -0700 | [diff] [blame^] | 141 | LOCAL_MODULE_TAGS := optional |
| Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame] | 142 | |
| 143 | LOCAL_CPP_EXTENSION := .cc |
| 144 | |
| 145 | LOCAL_SRC_FILES := \ |
| Omari Stephens | 373caa0 | 2010-09-30 15:59:59 -0700 | [diff] [blame] | 146 | $(CC_LITE_SRC_FILES) \ |
| 147 | src/google/protobuf/stubs/strutil.cc \ |
| 148 | src/google/protobuf/stubs/strutil.h \ |
| 149 | src/google/protobuf/stubs/substitute.cc \ |
| 150 | src/google/protobuf/stubs/substitute.h \ |
| 151 | src/google/protobuf/stubs/structurally_valid.cc \ |
| 152 | src/google/protobuf/descriptor.cc \ |
| 153 | src/google/protobuf/descriptor.pb.cc \ |
| 154 | src/google/protobuf/descriptor_database.cc \ |
| 155 | src/google/protobuf/dynamic_message.cc \ |
| 156 | src/google/protobuf/extension_set_heavy.cc \ |
| 157 | src/google/protobuf/generated_message_reflection.cc \ |
| 158 | src/google/protobuf/message.cc \ |
| 159 | src/google/protobuf/reflection_ops.cc \ |
| 160 | src/google/protobuf/service.cc \ |
| 161 | src/google/protobuf/text_format.cc \ |
| 162 | src/google/protobuf/unknown_field_set.cc \ |
| 163 | src/google/protobuf/wire_format.cc \ |
| 164 | src/google/protobuf/io/gzip_stream.cc \ |
| 165 | src/google/protobuf/io/printer.cc \ |
| 166 | src/google/protobuf/io/tokenizer.cc \ |
| 167 | src/google/protobuf/io/zero_copy_stream_impl.cc \ |
| 168 | src/google/protobuf/compiler/importer.cc \ |
| 169 | src/google/protobuf/compiler/parser.cc |
| Wink Saville | 732aaf0 | 2010-06-28 15:05:24 -0700 | [diff] [blame] | 170 | |
| 171 | LOCAL_C_INCLUDES := \ |
| 172 | $(LOCAL_PATH)/android \ |
| 173 | bionic \ |
| 174 | external/zlib \ |
| 175 | $(LOCAL_PATH)/src |
| 176 | |
| 177 | LOCAL_SHARED_LIBRARIES := \ |
| 178 | libz libcutils libutils |
| 179 | |
| 180 | # stlport conflicts with the host stl library |
| 181 | ifneq ($(TARGET_SIMULATOR),true) |
| 182 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 183 | LOCAL_SHARED_LIBRARIES += libstlport |
| 184 | endif |
| 185 | |
| 186 | # Define the header files to be copied |
| 187 | #LOCAL_COPY_HEADERS := \ |
| 188 | # src/google/protobuf/stubs/once.h \ |
| 189 | # src/google/protobuf/stubs/common.h \ |
| 190 | # src/google/protobuf/io/coded_stream.h \ |
| 191 | # src/google/protobuf/generated_message_util.h \ |
| 192 | # src/google/protobuf/repeated_field.h \ |
| 193 | # src/google/protobuf/extension_set.h \ |
| 194 | # src/google/protobuf/wire_format_lite_inl.h |
| 195 | # |
| 196 | #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE) |
| 197 | |
| 198 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI |
| 199 | |
| 200 | include $(BUILD_STATIC_LIBRARY) |