blob: ebd506320b8d5bc00bc167d39b805e7cc9010070 [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
Kenny Root58162772013-09-16 13:58:19 -070018#
19# Subprojects with separate makefiles
20#
21
Neil Fuller91c98d72015-03-13 14:31:20 +000022subdirs := benchmarks tzdata
Kenny Root58162772013-09-16 13:58:19 -070023subdir_makefiles := $(call all-named-subdir-makefiles,$(subdirs))
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080024
Dan Bornstein6ac43c22009-10-24 15:33:49 -070025#
26# Include the definitions to build the Java code.
27#
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080028
Dan Bornstein6ac43c22009-10-24 15:33:49 -070029include $(LOCAL_PATH)/JavaLibrary.mk
The Android Open Source Projectadc854b2009-03-03 19:28:47 -080030
Dan Bornstein6ac43c22009-10-24 15:33:49 -070031#
32# Include the definitions to build the native code.
33#
34
35include $(LOCAL_PATH)/NativeCode.mk
Jean-Baptiste Queru6e1c2a92010-04-30 10:13:35 -070036
Brian Carlstrom347b2a62011-04-26 11:34:16 -070037#
Piotr Jastrzebski983b2c62015-04-24 09:13:00 +010038# Copy OpenJDK prebuilt data files
39#
40include $(CLEAR_VARS)
41LOCAL_MODULE := currency.data-target
42LOCAL_MODULE_STEM := currency.data
43LOCAL_SRC_FILES := ojluni/currency.data
44LOCAL_MODULE_CLASS := ETC
45LOCAL_MODULE_TAGS := optional
46LOCAL_MODULE_PATH := $(TARGET_OUT)/usr/share
47include $(BUILD_PREBUILT)
48
Narayan Kamath4cb7ea32015-07-31 12:33:09 +010049include $(CLEAR_VARS)
50LOCAL_MODULE := currency.data-host
51LOCAL_MODULE_STEM := currency.data
52LOCAL_SRC_FILES := ojluni/currency.data
53LOCAL_MODULE_CLASS := ETC
54LOCAL_MODULE_TAGS := optional
55LOCAL_MODULE_PATH := $(HOST_OUT)/usr/share
56include $(BUILD_PREBUILT)
57
Piotr Jastrzebski983b2c62015-04-24 09:13:00 +010058#
Elliott Hughesc5cd6e82012-10-18 18:13:10 -070059# Disable test modules if LIBCORE_SKIP_TESTS environment variable is set.
Brian Carlstromf50f4482010-06-24 09:26:28 -070060#
61
62ifneq ($(LIBCORE_SKIP_TESTS),)
63$(info ********************************************************************************)
64$(info * libcore tests are skipped because environment variable LIBCORE_SKIP_TESTS=$(LIBCORE_SKIP_TESTS))
65$(info ********************************************************************************)
Brian Carlstromf50f4482010-06-24 09:26:28 -070066endif
Brian Carlstromd39b1d62011-03-06 23:15:39 -080067
Kenny Root58162772013-09-16 13:58:19 -070068include $(subdir_makefiles)