1e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#
2e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# Copyright (C) 2011 The Android Open Source Project
3e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#
4e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# Licensed under the Apache License, Version 2.0 (the "License");
5e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# you may not use this file except in compliance with the License.
6e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# You may obtain a copy of the License at
7e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#
8e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#      http://www.apache.org/licenses/LICENSE-2.0
9e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#
10e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# Unless required by applicable law or agreed to in writing, software
11e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# distributed under the License is distributed on an "AS IS" BASIS,
12e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# See the License for the specific language governing permissions and
14e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# limitations under the License.
15e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom#
16e2c43223891894d5985d3281700b8997b46e0e12Brian CarlstromLOCAL_PATH:= $(call my-dir)
17e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# frameworks builds apache-http as part of ext.jar for the device, but
18e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom# here we just build apache-http alone for the host build
19e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstromifeq ($(WITH_HOST_DALVIK),true)
20e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    include $(CLEAR_VARS)
21e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    LOCAL_MODULE := apachehttp-hostdex
22e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    LOCAL_MODULE_TAGS := optional
23e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    LOCAL_SRC_FILES := $(call all-java-files-under,src)
24e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    LOCAL_BUILD_HOST_DEX := true
25e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    LOCAL_MODULE_TAGS := optional
26e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstrom    include $(BUILD_HOST_JAVA_LIBRARY)
27e2c43223891894d5985d3281700b8997b46e0e12Brian Carlstromendif
28