1bfe2dd089341dcb4c1fb65a5b6b077ad0ebbf6dcDan Egnor# Copyright (C) 2010 The Android Open Source Project
2090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#
3090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# Licensed under the Apache License, Version 2.0 (the "License");
4090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# you may not use this file except in compliance with the License.
5090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# You may obtain a copy of the License at
6090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#
7090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#      http://www.apache.org/licenses/LICENSE-2.0
8090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#
9090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# Unless required by applicable law or agreed to in writing, software
10090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# distributed under the License is distributed on an "AS IS" BASIS,
11090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# See the License for the specific language governing permissions and
13090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson# limitations under the License.
14090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
15090f9b4c879985bc747c214f82c62471e60c7742Jesse WilsonLOCAL_PATH := $(call my-dir)
16090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilsoninclude $(CLEAR_VARS)
17090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
18090f9b4c879985bc747c214f82c62471e60c7742Jesse WilsonLOCAL_MODULE := guava
191d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn BringertLOCAL_SDK_VERSION := 9
201d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn BringertLOCAL_SRC_FILES := $(call all-java-files-under, guava/src)
21bfe2dd089341dcb4c1fb65a5b6b077ad0ebbf6dcDan EgnorLOCAL_STATIC_JAVA_LIBRARIES := jsr305
22090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
23bfe2dd089341dcb4c1fb65a5b6b077ad0ebbf6dcDan Egnorinclude $(BUILD_STATIC_JAVA_LIBRARY)
24090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
25bfe2dd089341dcb4c1fb65a5b6b077ad0ebbf6dcDan Egnor# Include this library in the build server's output directory
26436f221940e8b7757119b00031f61cdae085bc84Ying Wang$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE):guava.jar)
27b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napier
28b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napier# Also build a host-side library
29b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napierinclude $(CLEAR_VARS)
30b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napier
311d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn BringertLOCAL_SRC_FILES := $(call all-java-files-under, guava/src)
32b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill NapierLOCAL_MODULE := guavalib
33b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill NapierLOCAL_STATIC_JAVA_LIBRARIES := jsr305lib
34b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napier
35b13716b63ffa87e97e4f4c49d63b335da30e69d2Bill Napierinclude $(BUILD_HOST_JAVA_LIBRARY)
36