blob: 18cf576297d58fba0a36dff6f78347b7d3f797e9 [file] [log] [blame]
Elliott Hughesc3d30bf2011-01-07 16:24:47 -08001# -*- mode: makefile -*-
Dan Bornstein6ac43c22009-10-24 15:33:49 -07002# Copyright (C) 2009 The Android Open Source Project
The Android Open Source Projectadc854b2009-03-03 19:28:47 -08003#
Dan Bornstein6ac43c22009-10-24 15:33:49 -07004# 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.
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080015
Dan Bornstein6ac43c22009-10-24 15:33:49 -070016LOCAL_PATH := $(call my-dir)
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080017
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080018
Dan Bornstein6ac43c22009-10-24 15:33:49 -070019#
20# Include the definitions to build the Java code.
21#
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080022
Dan Bornstein6ac43c22009-10-24 15:33:49 -070023include $(LOCAL_PATH)/JavaLibrary.mk
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080024
Dan Bornstein6ac43c22009-10-24 15:33:49 -070025
26#
27# Include the definitions to build the native code.
28#
29
30include $(LOCAL_PATH)/NativeCode.mk
Jean-Baptiste Queru6e1c2a92010-04-30 10:13:35 -070031
Brian Carlstrom347b2a62011-04-26 11:34:16 -070032#
33# Include the definitions for the Certificate Authority (CA) certificates
34#
35
36include $(LOCAL_PATH)/CaCerts.mk
Jean-Baptiste Queru6e1c2a92010-04-30 10:13:35 -070037
38#
Elliott Hughesc5cd6e82012-10-18 18:13:10 -070039# Disable test modules if LIBCORE_SKIP_TESTS environment variable is set.
Brian Carlstromf50f4482010-06-24 09:26:28 -070040#
41
42ifneq ($(LIBCORE_SKIP_TESTS),)
43$(info ********************************************************************************)
44$(info * libcore tests are skipped because environment variable LIBCORE_SKIP_TESTS=$(LIBCORE_SKIP_TESTS))
45$(info ********************************************************************************)
Brian Carlstromf50f4482010-06-24 09:26:28 -070046endif
Brian Carlstromd39b1d62011-03-06 23:15:39 -080047
48
49#
50# "m dalvik-host" for quick minimal host build
51#
52
53ifeq ($(WITH_HOST_DALVIK),true)
54 .PHONY: dalvik-host
Elliott Hughes293dd5b2011-05-17 11:28:51 -070055 dalvik-host: \
56 dalvik \
57 $(HOST_OUT)/bin/dalvikvm \
58 $(HOST_OUT)/bin/dexopt \
Elliott Hughes7cd67602012-05-03 17:21:04 -070059 $(HOST_OUT)/lib/libjavacore.so \
Elliott Hughes293dd5b2011-05-17 11:28:51 -070060 cacerts-host \
Elliott Hughes293dd5b2011-05-17 11:28:51 -070061 core-hostdex \
62 bouncycastle-hostdex \
63 apache-xml-hostdex \
64 apache-harmony-tests-hostdex \
65 $(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON)/classes.jar
Brian Carlstromd39b1d62011-03-06 23:15:39 -080066endif