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 | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 19 | # Java micro library |
| 20 | # ======================================================= |
| 21 | include $(CLEAR_VARS) |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 22 | |
Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame^] | 23 | LOCAL_MODULE := libprotobuf-java-2.3.0-micro |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 24 | |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 25 | LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro) |
| 26 | |
Wink Saville | ede38fe | 2010-05-28 11:49:52 -0700 | [diff] [blame] | 27 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 28 | |
Wink Saville | a3d3079 | 2010-06-04 17:44:37 -0700 | [diff] [blame^] | 29 | # Java lite library |
| 30 | # ======================================================= |
| 31 | include $(CLEAR_VARS) |
| 32 | |
| 33 | LOCAL_MODULE := libprotobuf-java-2.3.0-lite |
| 34 | |
| 35 | LOCAL_SRC_FILES := \ |
| 36 | java/src/main/java/com/google/protobuf/UninitializedMessageException.java \ |
| 37 | java/src/main/java/com/google/protobuf/MessageLite.java \ |
| 38 | java/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java \ |
| 39 | java/src/main/java/com/google/protobuf/CodedOutputStream.java \ |
| 40 | java/src/main/java/com/google/protobuf/ByteString.java \ |
| 41 | java/src/main/java/com/google/protobuf/CodedInputStream.java \ |
| 42 | java/src/main/java/com/google/protobuf/ExtensionRegistryLite.java \ |
| 43 | java/src/main/java/com/google/protobuf/AbstractMessageLite.java \ |
| 44 | java/src/main/java/com/google/protobuf/FieldSet.java \ |
| 45 | java/src/main/java/com/google/protobuf/Internal.java \ |
| 46 | java/src/main/java/com/google/protobuf/WireFormat.java \ |
| 47 | java/src/main/java/com/google/protobuf/GeneratedMessageLite.java |
| 48 | |
| 49 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 50 | |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 51 | # C++ lite library |
| 52 | # ======================================================= |
| 53 | include $(CLEAR_VARS) |
| 54 | |
| 55 | LOCAL_MODULE := libprotobuf-cpp-2.3.0-lite |
| 56 | |
| 57 | LOCAL_CPP_EXTENSION := .cc |
| 58 | |
| 59 | LOCAL_SRC_FILES := \ |
| 60 | src/google/protobuf/stubs/common.cc \ |
| 61 | src/google/protobuf/stubs/once.cc \ |
| 62 | src/google/protobuf/stubs/hash.cc \ |
| 63 | src/google/protobuf/stubs/hash.h \ |
| 64 | src/google/protobuf/stubs/map-util.h \ |
| 65 | src/google/protobuf/stubs/stl_util-inl.h \ |
| 66 | src/google/protobuf/extension_set.cc \ |
| 67 | src/google/protobuf/generated_message_util.cc \ |
| 68 | src/google/protobuf/message_lite.cc \ |
| 69 | src/google/protobuf/repeated_field.cc \ |
| 70 | src/google/protobuf/wire_format_lite.cc \ |
| 71 | src/google/protobuf/io/coded_stream.cc \ |
| 72 | src/google/protobuf/io/coded_stream_inl.h \ |
| 73 | src/google/protobuf/io/zero_copy_stream.cc \ |
| 74 | src/google/protobuf/io/zero_copy_stream_impl_lite.cc |
| 75 | |
| 76 | LOCAL_C_INCLUDES := \ |
| 77 | $(LOCAL_PATH)/android \ |
| 78 | bionic \ |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 79 | $(LOCAL_PATH)/src |
| 80 | |
| 81 | LOCAL_SHARED_LIBRARIES := \ |
Kenny Root | 5ea4d58 | 2010-06-04 09:37:31 -0700 | [diff] [blame] | 82 | libcutils libutils |
| 83 | |
| 84 | # stlport conflicts with the host stl library |
| 85 | ifneq ($(TARGET_SIMULATOR),true) |
| 86 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 87 | LOCAL_SHARED_LIBRARIES += libstlport |
| 88 | endif |
Wink Saville | b3fe74b | 2010-06-03 15:33:07 -0700 | [diff] [blame] | 89 | |
| 90 | # Define the header files to be copied |
| 91 | #LOCAL_COPY_HEADERS := \ |
| 92 | # src/google/protobuf/stubs/once.h \ |
| 93 | # src/google/protobuf/stubs/common.h \ |
| 94 | # src/google/protobuf/io/coded_stream.h \ |
| 95 | # src/google/protobuf/generated_message_util.h \ |
| 96 | # src/google/protobuf/repeated_field.h \ |
| 97 | # src/google/protobuf/extension_set.h \ |
| 98 | # src/google/protobuf/wire_format_lite_inl.h |
| 99 | # |
| 100 | #LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE) |
| 101 | |
| 102 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI |
| 103 | |
| 104 | include $(BUILD_STATIC_LIBRARY) |