blob: c440c0a92b8372ccf7c35e8f12bfdcafc76b81be [file] [log] [blame]
Elliott Hughes7ee3a062010-02-18 17:20:15 -08001# -*- mode: makefile -*-
Dan Bornstein6ac43c22009-10-24 15:33:49 -07002# Copyright (C) 2007 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
16#
17# Definitions for building the Java library and associated tests.
18#
19
20#
21# Common definitions for host and target.
22#
23
Jesse Wilsond5d35262010-05-12 23:56:14 -070024# libcore is divided into modules.
25#
26# The structure of each module is:
27#
28# src/
29# main/ # To be shipped on every device.
30# java/ # Java source for library code.
31# native/ # C++ source for library code.
32# resources/ # Support files.
33# test/ # Built only on demand, for testing.
34# java/ # Java source for tests.
35# native/ # C++ source for tests (rare).
36# resources/ # Support files.
37#
38# All subdirectories are optional (hence the "2> /dev/null"s below).
Dan Bornstein6ac43c22009-10-24 15:33:49 -070039
Narayan Kamath0a57ec22015-07-24 14:34:02 +010040include $(LOCAL_PATH)/openjdk_java_files.mk
41include $(LOCAL_PATH)/non_openjdk_java_files.mk
Jesse Wilson32cfe952010-05-04 16:36:03 -070042
43define all-test-java-files-under
Przemyslaw Szczepaniakebe4f192015-07-09 13:19:15 +010044$(foreach dir,$(1),$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && (find $(dir)/src/test/java -name "*.java" 2> /dev/null) | grep -v -f java_tests_blacklist)))
Dan Bornstein6ac43c22009-10-24 15:33:49 -070045endef
46
Dan Bornstein6ac43c22009-10-24 15:33:49 -070047define all-core-resource-dirs
48$(shell cd $(LOCAL_PATH) && ls -d */src/$(1)/{java,resources} 2> /dev/null)
49endef
50
Jesse Wilsond5d35262010-05-12 23:56:14 -070051# The Java files and their associated resources.
Narayan Kamath29c564f2015-07-30 12:05:42 +010052core_resource_dirs := \
53 luni/src/main/java \
54 ojluni/src/main/resources/
Dan Bornstein6ac43c22009-10-24 15:33:49 -070055test_resource_dirs := $(call all-core-resource-dirs,test)
Narayan Kamath51525b52013-11-15 18:02:54 +000056test_src_files := $(call all-test-java-files-under,dalvik dom harmony-tests json luni xml)
Dan Bornstein6ac43c22009-10-24 15:33:49 -070057
Jesse Wilson7898a912010-09-13 15:42:41 -070058ifeq ($(EMMA_INSTRUMENT),true)
Ying Wangff053c32012-08-21 17:20:51 -070059ifneq ($(EMMA_INSTRUMENT_STATIC),true)
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +000060 nojcore_src_files += $(call all-java-files-under, ../external/emma/core ../external/emma/pregenerated)
Jesse Wilson7898a912010-09-13 15:42:41 -070061 core_resource_dirs += ../external/emma/core/res ../external/emma/pregenerated/res
62endif
Ying Wangff053c32012-08-21 17:20:51 -070063endif
Jesse Wilson7898a912010-09-13 15:42:41 -070064
Elliott Hughes48d0b3f2010-12-14 09:48:52 -080065local_javac_flags=-encoding UTF-8
66#local_javac_flags+=-Xlint:all -Xlint:-serial,-deprecation,-unchecked
67local_javac_flags+=-Xmaxwarns 9999999
Dan Bornstein6ac43c22009-10-24 15:33:49 -070068
Narayan Kamath1a0f1842015-09-07 12:59:53 +010069
Dan Bornstein6ac43c22009-10-24 15:33:49 -070070#
Narayan Kamath844badd2015-09-11 12:43:29 +010071# ICU4J related rules.
72#
73# We compile icu4j along with core-libart because we're implementing parts of core-libart
74# in terms of icu4j.
75icu4j_root := ../external/icu/icu4j/
76icu4j_src_files := $(call all-java-files-under,$(icu4j_root)/main/classes)
77
78# Filter out bits of ICU4J we don't use yet : the SPIs (which we have limited support for),
Narayan Kamathf37f7812015-04-01 09:34:24 +010079# the charset encoders and the transliterators.
80icu4j_src_files := $(filter-out $(icu4j_root)/main/classes/localespi/%, $(icu4j_src_files))
81icu4j_src_files := $(filter-out $(icu4j_root)/main/classes/charset/%, $(icu4j_src_files))
82icu4j_src_files := $(filter-out $(icu4j_root)/main/classes/translit/%, $(icu4j_src_files))
83
84# Not all src dirs contain resources, some instead contain other random files
85# that should not be included as resources. The ones that should be included
86# can be identifed by the fact that they contain particular subdir trees.
87#
88define all-icu-subdir-with-subdir
89$(patsubst $(LOCAL_PATH)/%/$(2),%,$(wildcard $(LOCAL_PATH)/$(1)/$(2)))
90endef
91
Narayan Kamath3142d9382015-04-01 11:32:12 +010092icu4j_resource_dirs := $(call all-icu-subdir-with-subdir,$(icu4j_root)/main/classes/*/src,com/ibm/icu)
93icu4j_resource_dirs := $(filter-out $(icu4j_root)/main/classes/localespi/%, $(icu4j_resource_dirs))
94icu4j_resource_dirs := $(filter-out $(icu4j_root)/main/classes/charset/%, $(icu4j_resource_dirs))
95icu4j_resource_dirs := $(filter-out $(icu4j_root)/main/classes/translit/%, $(icu4j_resource_dirs))
96
97
Narayan Kamathf37f7812015-04-01 09:34:24 +010098
99#
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700100# Build for the target (device).
101#
102
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700103include $(CLEAR_VARS)
Narayan Kamath844badd2015-09-11 12:43:29 +0100104LOCAL_SRC_FILES := $(openjdk_java_files) $(non_openjdk_java_files) $(icu4j_src_files)
Narayan Kamathf37f7812015-04-01 09:34:24 +0100105LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs) $(icu4j_resource_dirs)
Brian Carlstrom3711c212013-06-25 15:59:29 -0700106LOCAL_NO_STANDARD_LIBRARIES := true
107LOCAL_JAVACFLAGS := $(local_javac_flags)
108LOCAL_DX_FLAGS := --core-library
109LOCAL_MODULE_TAGS := optional
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000110LOCAL_MODULE := core-all
Brian Carlstrom3711c212013-06-25 15:59:29 -0700111LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
112LOCAL_REQUIRED_MODULES := tzdata
Piotr Jastrzebski5c3c9df2015-04-20 10:56:00 +0100113LOCAL_CORE_LIBRARY := true
Narayan Kamath0ebbfbd2015-07-30 15:01:19 +0100114LOCAL_UNINSTALLABLE_MODULE := true
Narayan Kamath844badd2015-09-11 12:43:29 +0100115LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000116include $(BUILD_JAVA_LIBRARY)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700117
Brian Carlstrom3711c212013-06-25 15:59:29 -0700118include $(CLEAR_VARS)
Narayan Kamath0a57ec22015-07-24 14:34:02 +0100119LOCAL_SRC_FILES := $(openjdk_java_files)
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000120LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
121LOCAL_NO_STANDARD_LIBRARIES := true
122LOCAL_JAVACFLAGS := $(local_javac_flags)
123LOCAL_DX_FLAGS := --core-library
124LOCAL_MODULE_TAGS := optional
125LOCAL_MODULE := core-oj
Narayan Kamath647e4a62015-10-02 10:22:16 +0100126LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Narayan Kamath09f993b2015-11-18 09:28:42 +0000127LOCAL_JAVA_LIBRARIES := core-all
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000128LOCAL_REQUIRED_MODULES := tzdata
Piotr Jastrzebski5c3c9df2015-04-20 10:56:00 +0100129LOCAL_CORE_LIBRARY := true
Piotr Jastrzebski983b2c62015-04-24 09:13:00 +0100130LOCAL_REQUIRED_MODULES := currency.data-target
Narayan Kamath844badd2015-09-11 12:43:29 +0100131LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000132include $(BUILD_JAVA_LIBRARY)
133
134# Definitions to make the core library.
135include $(CLEAR_VARS)
Narayan Kamath844badd2015-09-11 12:43:29 +0100136LOCAL_SRC_FILES := $(non_openjdk_java_files) $(icu4j_src_files)
Brian Carlstrom3711c212013-06-25 15:59:29 -0700137LOCAL_NO_STANDARD_LIBRARIES := true
138LOCAL_JAVACFLAGS := $(local_javac_flags)
139LOCAL_DX_FLAGS := --core-library
140LOCAL_MODULE_TAGS := optional
141LOCAL_MODULE := core-libart
Narayan Kamath647e4a62015-10-02 10:22:16 +0100142LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/JavaLibrary.mk
Narayan Kamath09f993b2015-11-18 09:28:42 +0000143LOCAL_JAVA_LIBRARIES := core-all
Narayan Kamathb9853192015-09-02 13:38:48 +0100144LOCAL_CORE_LIBRARY := true
Brian Carlstrom3711c212013-06-25 15:59:29 -0700145LOCAL_REQUIRED_MODULES := tzdata
Narayan Kamathf37f7812015-04-01 09:34:24 +0100146LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Brian Carlstrom3711c212013-06-25 15:59:29 -0700147include $(BUILD_JAVA_LIBRARY)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700148
Narayan Kamathf37f7812015-04-01 09:34:24 +0100149# Path to the ICU4C data files in the Android device file system:
150icu4c_data := /system/usr/icu
151# TODO: It's quite hideous that this double-slash between icu4j and main is required.
152# It's because we provide a variable substition of the make-rule generated jar command
153# to substitute a processed ICUProperties.config file in place of the original.
154#
155# We can avoid this by filtering out ICUConfig.properties from our list of resources.
156icu4j_config_root := $(LOCAL_PATH)/../external/icu/icu4j//main/classes/core/src
157include external/icu/icu4j/adjust_icudt_path.mk
158
Kenny Root38375a42013-04-23 15:50:31 -0700159ifeq ($(LIBCORE_SKIP_TESTS),)
160# Make the core-tests library.
161include $(CLEAR_VARS)
Narayan Kamath51525b52013-11-15 18:02:54 +0000162LOCAL_SRC_FILES := $(test_src_files)
Brian Carlstrom51ee38b2010-07-23 15:57:52 -0700163LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
164LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000165LOCAL_JAVA_LIBRARIES := core-oj core-libart okhttp core-junit bouncycastle
Neil Fuller62fba1e2014-05-29 11:52:06 +0100166LOCAL_STATIC_JAVA_LIBRARIES := core-tests-support sqlite-jdbc mockwebserver nist-pkix-tests
Elliott Hughesd6108342011-02-22 10:13:54 -0800167LOCAL_JAVACFLAGS := $(local_javac_flags)
Brian Carlstromb094af32010-05-28 17:37:37 -0700168LOCAL_MODULE := core-tests
Elliott Hughes73d3e262012-08-28 17:56:09 -0700169LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Jesse Wilson706d5352010-06-08 17:20:09 -0700170include $(BUILD_STATIC_JAVA_LIBRARY)
Elliott Hughesc5cd6e82012-10-18 18:13:10 -0700171endif
Jesse Wilson706d5352010-06-08 17:20:09 -0700172
Tsu Chiang Chuang808558f2013-08-21 11:46:49 -0700173ifeq ($(LIBCORE_SKIP_TESTS),)
Kenny Rootb397b192013-08-29 14:24:47 -0700174# Make the core-tests-support library.
175include $(CLEAR_VARS)
176LOCAL_SRC_FILES := $(call all-test-java-files-under,support)
177LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
178LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000179LOCAL_JAVA_LIBRARIES := core-oj core-libart core-junit bouncycastle
Kenny Rootb397b192013-08-29 14:24:47 -0700180LOCAL_JAVACFLAGS := $(local_javac_flags)
Kenny Rootb397b192013-08-29 14:24:47 -0700181LOCAL_MODULE := core-tests-support
182LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
183include $(BUILD_STATIC_JAVA_LIBRARY)
184endif
185
186ifeq ($(LIBCORE_SKIP_TESTS),)
Tsu Chiang Chuang808558f2013-08-21 11:46:49 -0700187# Make the jsr166-tests library.
188include $(CLEAR_VARS)
189LOCAL_SRC_FILES := $(call all-test-java-files-under, jsr166-tests)
190LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
191LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000192LOCAL_JAVA_LIBRARIES := core-oj core-libart core-junit
Tsu Chiang Chuang808558f2013-08-21 11:46:49 -0700193LOCAL_JAVACFLAGS := $(local_javac_flags)
194LOCAL_MODULE := jsr166-tests
195LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
196include $(BUILD_STATIC_JAVA_LIBRARY)
197endif
198
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700199#
200# Build for the host.
201#
202
Elliott Hughese983a0b2015-01-16 10:47:17 -0800203ifeq ($(HOST_OS),linux)
204
Tsu Chiang Chuang25963ae2013-07-23 16:39:20 -0700205include $(CLEAR_VARS)
Narayan Kamath0a57ec22015-07-24 14:34:02 +0100206LOCAL_SRC_FILES := $(call all-java-files-under, dex/src/main)
Tsu Chiang Chuang25963ae2013-07-23 16:39:20 -0700207LOCAL_MODULE_TAGS := optional
208LOCAL_MODULE := dex-host
209include $(BUILD_HOST_JAVA_LIBRARY)
210
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000211include $(CLEAR_VARS)
Narayan Kamath844badd2015-09-11 12:43:29 +0100212LOCAL_SRC_FILES := $(non_openjdk_java_files) $(openjdk_java_files) $(icu4j_src_files)
Przemyslaw Szczepaniake3b37c22015-09-28 16:24:00 +0100213LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000214LOCAL_NO_STANDARD_LIBRARIES := true
215LOCAL_JAVACFLAGS := $(local_javac_flags)
216LOCAL_DX_FLAGS := --core-library
217LOCAL_MODULE_TAGS := optional
218LOCAL_MODULE := core-all-hostdex
219LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
220LOCAL_REQUIRED_MODULES := tzdata-host
Piotr Jastrzebski5c3c9df2015-04-20 10:56:00 +0100221LOCAL_CORE_LIBRARY := true
Narayan Kamath0ebbfbd2015-07-30 15:01:19 +0100222LOCAL_UNINSTALLABLE_MODULE := true
Narayan Kamathc011b242015-10-05 15:10:52 +0100223LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000224include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
225
226include $(CLEAR_VARS)
Narayan Kamath0a57ec22015-07-24 14:34:02 +0100227LOCAL_SRC_FILES := $(openjdk_java_files)
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000228LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
229LOCAL_NO_STANDARD_LIBRARIES := true
230LOCAL_JAVACFLAGS := $(local_javac_flags)
231LOCAL_DX_FLAGS := --core-library
232LOCAL_MODULE_TAGS := optional
233LOCAL_MODULE := core-oj-hostdex
234LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
235LOCAL_JAVA_LIBRARIES := core-all-hostdex
236LOCAL_REQUIRED_MODULES := tzdata-host
Piotr Jastrzebski5c3c9df2015-04-20 10:56:00 +0100237LOCAL_CORE_LIBRARY := true
Narayan Kamath4cb7ea32015-07-31 12:33:09 +0100238LOCAL_REQUIRED_MODULES := currency.data-host
Narayan Kamath844badd2015-09-11 12:43:29 +0100239LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000240include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
241
Ian Rogers3deabd22014-05-23 15:12:42 -0700242# Definitions to make the core library.
243include $(CLEAR_VARS)
Narayan Kamath844badd2015-09-11 12:43:29 +0100244LOCAL_SRC_FILES := $(non_openjdk_java_files) $(icu4j_src_files)
Ian Rogers3deabd22014-05-23 15:12:42 -0700245LOCAL_NO_STANDARD_LIBRARIES := true
246LOCAL_JAVACFLAGS := $(local_javac_flags)
247LOCAL_DX_FLAGS := --core-library
248LOCAL_MODULE_TAGS := optional
249LOCAL_MODULE := core-libart-hostdex
250LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000251LOCAL_JAVA_LIBRARIES := core-oj-hostdex
Ian Rogers3deabd22014-05-23 15:12:42 -0700252LOCAL_REQUIRED_MODULES := tzdata-host
Narayan Kamathf37f7812015-04-01 09:34:24 +0100253LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
Ian Rogers3deabd22014-05-23 15:12:42 -0700254include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700255
Ian Rogers3deabd22014-05-23 15:12:42 -0700256# Make the core-tests library.
257ifeq ($(LIBCORE_SKIP_TESTS),)
Brian Carlstromd39b1d62011-03-06 23:15:39 -0800258 include $(CLEAR_VARS)
Narayan Kamath51525b52013-11-15 18:02:54 +0000259 LOCAL_SRC_FILES := $(test_src_files)
Brian Carlstromd39b1d62011-03-06 23:15:39 -0800260 LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
Neil Fuller9496b212014-09-04 11:11:56 +0100261 LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000262 LOCAL_JAVA_LIBRARIES := core-oj-hostdex core-libart-hostdex okhttp-hostdex bouncycastle-hostdex core-junit-hostdex core-tests-support-hostdex
Brian Carlstrom22a12c92013-01-17 16:18:31 -0800263 LOCAL_STATIC_JAVA_LIBRARIES := sqlite-jdbc-host mockwebserver-host nist-pkix-tests-host
Brian Carlstromd39b1d62011-03-06 23:15:39 -0800264 LOCAL_JAVACFLAGS := $(local_javac_flags)
Ying Wange79ac582012-08-23 11:25:27 -0700265 LOCAL_MODULE_TAGS := optional
Brian Carlstromd39b1d62011-03-06 23:15:39 -0800266 LOCAL_MODULE := core-tests-hostdex
Elliott Hughes73d3e262012-08-28 17:56:09 -0700267 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Narayan Kamath70e8ce82013-10-28 14:17:35 +0000268 include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
Ian Rogers3deabd22014-05-23 15:12:42 -0700269endif
Kenny Rootba07db52013-08-29 13:40:35 -0700270
Ian Rogers3deabd22014-05-23 15:12:42 -0700271# Make the core-tests-support library.
272ifeq ($(LIBCORE_SKIP_TESTS),)
Kenny Rootba07db52013-08-29 13:40:35 -0700273 include $(CLEAR_VARS)
274 LOCAL_SRC_FILES := $(call all-test-java-files-under,support)
275 LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
Neil Fuller9496b212014-09-04 11:11:56 +0100276 LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebski51b1b692015-02-16 15:01:09 +0000277 LOCAL_JAVA_LIBRARIES := core-oj-hostdex core-libart-hostdex core-junit-hostdex bouncycastle-hostdex
Kenny Rootba07db52013-08-29 13:40:35 -0700278 LOCAL_JAVACFLAGS := $(local_javac_flags)
279 LOCAL_MODULE_TAGS := optional
280 LOCAL_MODULE := core-tests-support-hostdex
281 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Narayan Kamath70e8ce82013-10-28 14:17:35 +0000282 include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
Elliott Hughes67cc34b2010-02-19 22:14:19 -0800283endif
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800284
Elliott Hughese983a0b2015-01-16 10:47:17 -0800285endif # HOST_OS == linux
286
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800287#
288# Local droiddoc for faster libcore testing
289#
290#
291# Run with:
Elliott Hughes92fc63e2013-02-07 17:05:57 -0800292# mm -j32 libcore-docs
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800293#
294# Main output:
Elliott Hughes92fc63e2013-02-07 17:05:57 -0800295# ../out/target/common/docs/libcore/reference/packages.html
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800296#
297# All text for proofreading (or running tools over):
Elliott Hughes92fc63e2013-02-07 17:05:57 -0800298# ../out/target/common/docs/libcore-proofread.txt
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800299#
300# TODO list of missing javadoc, etc:
Elliott Hughes92fc63e2013-02-07 17:05:57 -0800301# ../out/target/common/docs/libcore-docs-todo.html
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800302#
303# Rerun:
Elliott Hughes92fc63e2013-02-07 17:05:57 -0800304# rm -rf ../out/target/common/docs/libcore-timestamp && mm -j32 libcore-docs
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800305#
306include $(CLEAR_VARS)
307
308# for shared defintion of libcore_to_document
309include $(LOCAL_PATH)/Docs.mk
310
Ying Wang21ac42d2013-12-04 15:54:36 -0800311LOCAL_SRC_FILES := $(libcore_to_document)
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800312# rerun doc generation without recompiling the java
313LOCAL_JAVA_LIBRARIES:=
Elliott Hughesd6108342011-02-22 10:13:54 -0800314LOCAL_JAVACFLAGS := $(local_javac_flags)
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800315LOCAL_MODULE_CLASS:=JAVA_LIBRARIES
316
317LOCAL_MODULE := libcore
Elliott Hughes73d3e262012-08-28 17:56:09 -0700318LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800319
Elliott Hughesb9863272012-11-08 14:28:29 -0800320LOCAL_DROIDDOC_OPTIONS := \
Brian Carlstromdc3c1522011-01-05 17:48:05 -0800321 -offlinemode \
322 -title "libcore" \
323 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
324 -todo ../$(LOCAL_MODULE)-docs-todo.html \
325 -hdf android.whichdoc offline
326
327LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
328
329include $(BUILD_DROIDDOC)
Narayan Kamath0a57ec22015-07-24 14:34:02 +0100330
331openjdk_java_files :=
332non_openjdk_java_files :=