• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
18mockwebserver_src_files := $(call all-java-files-under,src/main/java)
19
20include $(CLEAR_VARS)
21LOCAL_SRC_FILES := $(mockwebserver_src_files)
22LOCAL_MODULE_TAGS := optional
23LOCAL_MODULE := mockwebserver
24# Some tests (CtsVerifier, etc) that are built with SDK are using this library,
25# thus this lib should be built with public APIs. Since this lib is not specific
26# to Android, core_current which is a core-Java subset of Android SDK is used.
27LOCAL_SDK_VERSION := core_current
28LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
31include $(CLEAR_VARS)
32LOCAL_SRC_FILES := $(mockwebserver_src_files)
33LOCAL_MODULE_TAGS := optional
34LOCAL_MODULE := mockwebserver-host
35LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
36include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY)
37