Android.mk revision 24c41072583e508dd0cd190785dabd07580e58a3
158a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# Copyright (C) 2009 The Android Open Source Project 258a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# 358a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# Licensed under the Apache License, Version 2.0 (the "License"); 458a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# you may not use this file except in compliance with the License. 558a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# You may obtain a copy of the License at 658a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# 758a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# http://www.apache.org/licenses/LICENSE-2.0 858a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# 958a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# Unless required by applicable law or agreed to in writing, software 1058a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# distributed under the License is distributed on an "AS IS" BASIS, 1158a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1258a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# See the License for the specific language governing permissions and 1358a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# limitations under the License. 1458a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# 1558a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot# 1658a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot 1758a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett ChabotLOCAL_PATH := $(call my-dir) 1824c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 1924c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# include definition of core-junit-files 2024c41072583e508dd0cd190785dabd07580e58a3Brett Chabotinclude $(LOCAL_PATH)/Common.mk 2124c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 2258a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabotinclude $(CLEAR_VARS) 2358a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot 2458a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett ChabotLOCAL_SRC_FILES := $(call all-java-files-under, src) 2558a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot 2624c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# note: ideally this should be junit-host, but leave as is for now to avoid 2724c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# changing all its dependencies 2858a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett ChabotLOCAL_MODULE := junit 2958a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabot 30b3823db9f1192d8c81345740b3e65bd6738ba55bBrett ChabotLOCAL_MODULE_TAGS := optional 31b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 32b3823db9f1192d8c81345740b3e65bd6738ba55bBrett ChabotLOCAL_STATIC_JAVA_LIBRARIES := hamcrest-host 33b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 3458a8b0aba2dec5695628a2bf25a3fae42c2c3533Brett Chabotinclude $(BUILD_HOST_JAVA_LIBRARY) 3524c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 3624c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# ---------------------------------- 3724c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# build a core-junit target jar that is built into Android system image 3824c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 3924c41072583e508dd0cd190785dabd07580e58a3Brett Chabotinclude $(CLEAR_VARS) 4024c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 4124c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# TODO: remove extensions once core-tests is no longer dependent on it 4224c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_SRC_FILES := $(call all-java-files-under, src/junit/extensions) 4324c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_SRC_FILES += $(core-junit-files) 4424c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 4524c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_NO_STANDARD_LIBRARIES := true 4624c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_JAVA_LIBRARIES := core 4724c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_JAVACFLAGS := $(local_javac_flags) 4824c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_MODULE_TAGS := optional 4924c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_MODULE := core-junit 5024c41072583e508dd0cd190785dabd07580e58a3Brett Chabotinclude $(BUILD_JAVA_LIBRARY) 5124c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 5224c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# ---------------------------------- 5324c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# build a core-junit-hostdex jar that contains exactly the same classes 5424c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# as core-junit. 5524c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 5624c41072583e508dd0cd190785dabd07580e58a3Brett Chabotinclude $(CLEAR_VARS) 5724c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 5824c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# TODO: remove extensions once apache-harmony/luni/ is no longer dependent 5924c41072583e508dd0cd190785dabd07580e58a3Brett Chabot# on it 6024c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_SRC_FILES := $(call all-java-files-under, src/junit/extensions) 6124c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_SRC_FILES += $(core-junit-files) 6224c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_NO_STANDARD_LIBRARIES := true 6324c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_JAVA_LIBRARIES := core-hostdex 6424c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_JAVACFLAGS := $(local_javac_flags) 6524c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_MODULE_TAGS := optional 6624c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_MODULE := core-junit-hostdex 6724c41072583e508dd0cd190785dabd07580e58a3Brett ChabotLOCAL_BUILD_HOST_DEX := true 6824c41072583e508dd0cd190785dabd07580e58a3Brett Chabotinclude $(BUILD_HOST_JAVA_LIBRARY) 6924c41072583e508dd0cd190785dabd07580e58a3Brett Chabot 70