• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2011 The Android Open Source Project
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.
14
15LOCAL_PATH := $(call my-dir)
16include $(CLEAR_VARS)
17
18# Include all the java files.
19LOCAL_SRC_FILES := $(call all-java-files-under, dexmaker/src/main/java)
20
21LOCAL_STATIC_JAVA_LIBRARIES := dexmaker-dx-target dexmaker-dex-target
22
23LOCAL_SDK_VERSION := 10
24
25# The name of the jar file to create.
26LOCAL_MODULE := dexmaker
27
28# Build a static jar file.
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
31# Build Dexmaker's MockMaker, a plugin to Mockito
32include $(CLEAR_VARS)
33LOCAL_MODULE := dexmaker-mockmaker
34LOCAL_SDK_VERSION := 10
35LOCAL_SRC_FILES := $(call all-java-files-under, dexmaker-mockito/src/main/java)
36LOCAL_JAVA_RESOURCE_DIRS := dexmaker-mockito/src/main/resources
37LOCAL_JAVA_LIBRARIES := dexmaker mockito-api
38include $(BUILD_STATIC_JAVA_LIBRARY)
39
40# Target prebuilt dependencies.
41# ============================================================
42include $(CLEAR_VARS)
43
44LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
45    dexmaker-dx-target:lib/dalvik-dx-1$(COMMON_JAVA_PACKAGE_SUFFIX) \
46    dexmaker-dex-target:lib/libcore-dex-2$(COMMON_JAVA_PACKAGE_SUFFIX) \
47
48include $(BUILD_MULTI_PREBUILT)
49