blob: ab31cc876568c28d842c88158b3de25540288244 [file] [log] [blame]
Wink Savilleede38fe2010-05-28 11:49:52 -07001# Copyright (C) 2009 The Android Open Source Project
Wink Saville79a4a602010-05-27 15:44:42 -07002#
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 Savilleede38fe2010-05-28 11:49:52 -070014#
15#
Wink Saville79a4a602010-05-27 15:44:42 -070016
17LOCAL_PATH := $(call my-dir)
Wink Saville79a4a602010-05-27 15:44:42 -070018
Wink Savilleb3fe74b2010-06-03 15:33:07 -070019# Java micro library
20# =======================================================
21include $(CLEAR_VARS)
Wink Savilleede38fe2010-05-28 11:49:52 -070022
23LOCAL_MODULE := com.google.protobuf.micro
24
Wink Savilleb3fe74b2010-06-03 15:33:07 -070025LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
26
Wink Savilleede38fe2010-05-28 11:49:52 -070027include $(BUILD_STATIC_JAVA_LIBRARY)
Wink Savilleb3fe74b2010-06-03 15:33:07 -070028
29# C++ lite library
30# =======================================================
31include $(CLEAR_VARS)
32
33LOCAL_MODULE := libprotobuf-cpp-2.3.0-lite
34
35LOCAL_CPP_EXTENSION := .cc
36
37LOCAL_SRC_FILES := \
38 src/google/protobuf/stubs/common.cc \
39 src/google/protobuf/stubs/once.cc \
40 src/google/protobuf/stubs/hash.cc \
41 src/google/protobuf/stubs/hash.h \
42 src/google/protobuf/stubs/map-util.h \
43 src/google/protobuf/stubs/stl_util-inl.h \
44 src/google/protobuf/extension_set.cc \
45 src/google/protobuf/generated_message_util.cc \
46 src/google/protobuf/message_lite.cc \
47 src/google/protobuf/repeated_field.cc \
48 src/google/protobuf/wire_format_lite.cc \
49 src/google/protobuf/io/coded_stream.cc \
50 src/google/protobuf/io/coded_stream_inl.h \
51 src/google/protobuf/io/zero_copy_stream.cc \
52 src/google/protobuf/io/zero_copy_stream_impl_lite.cc
53
54LOCAL_C_INCLUDES := \
55 $(LOCAL_PATH)/android \
56 bionic \
57 external/stlport/stlport \
58 $(LOCAL_PATH)/src
59
60LOCAL_SHARED_LIBRARIES := \
61 libcutils libutils libstlport
62
63# Define the header files to be copied
64#LOCAL_COPY_HEADERS := \
65# src/google/protobuf/stubs/once.h \
66# src/google/protobuf/stubs/common.h \
67# src/google/protobuf/io/coded_stream.h \
68# src/google/protobuf/generated_message_util.h \
69# src/google/protobuf/repeated_field.h \
70# src/google/protobuf/extension_set.h \
71# src/google/protobuf/wire_format_lite_inl.h
72#
73#LOCAL_COPY_HEADERS_TO := $(LOCAL_MODULE)
74
75LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI
76
77include $(BUILD_STATIC_LIBRARY)