Elliott Hughes | 7ee3a06 | 2010-02-18 17:20:15 -0800 | [diff] [blame] | 1 | # -*- mode: makefile -*- |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 2 | # 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 Wilson | d5d3526 | 2010-05-12 23:56:14 -0700 | [diff] [blame] | 24 | # 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 Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 39 | |
Jesse Wilson | 32cfe95 | 2010-05-04 16:36:03 -0700 | [diff] [blame] | 40 | define all-main-java-files-under |
| 41 | $(foreach dir,$(1),$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(dir)/src/main/java -name "*.java" 2> /dev/null))) |
| 42 | endef |
| 43 | |
| 44 | define all-test-java-files-under |
Brian Carlstrom | 302e330 | 2011-03-01 23:59:06 -0800 | [diff] [blame] | 45 | $(foreach dir,$(1),$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(dir)/src/test/java -name "*.java" 2> /dev/null))) |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 46 | endef |
| 47 | |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 48 | define all-core-resource-dirs |
| 49 | $(shell cd $(LOCAL_PATH) && ls -d */src/$(1)/{java,resources} 2> /dev/null) |
| 50 | endef |
| 51 | |
Jesse Wilson | d5d3526 | 2010-05-12 23:56:14 -0700 | [diff] [blame] | 52 | # The Java files and their associated resources. |
Jesse Wilson | 2bea5ee | 2011-09-18 12:55:16 -0400 | [diff] [blame] | 53 | core_src_files := $(call all-main-java-files-under,dalvik dex dom json luni support xml) |
Brian Carlstrom | 895bba4 | 2013-05-13 10:19:39 -0700 | [diff] [blame] | 54 | core_src_files += $(call all-main-java-files-under,libdvm) |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 55 | core_resource_dirs := $(call all-core-resource-dirs,main) |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 56 | test_resource_dirs := $(call all-core-resource-dirs,test) |
| 57 | |
Jesse Wilson | 7898a91 | 2010-09-13 15:42:41 -0700 | [diff] [blame] | 58 | ifeq ($(EMMA_INSTRUMENT),true) |
Ying Wang | ff053c3 | 2012-08-21 17:20:51 -0700 | [diff] [blame] | 59 | ifneq ($(EMMA_INSTRUMENT_STATIC),true) |
Jesse Wilson | 7898a91 | 2010-09-13 15:42:41 -0700 | [diff] [blame] | 60 | core_src_files += $(call all-java-files-under, ../external/emma/core ../external/emma/pregenerated) |
| 61 | core_resource_dirs += ../external/emma/core/res ../external/emma/pregenerated/res |
| 62 | endif |
Ying Wang | ff053c3 | 2012-08-21 17:20:51 -0700 | [diff] [blame] | 63 | endif |
Jesse Wilson | 7898a91 | 2010-09-13 15:42:41 -0700 | [diff] [blame] | 64 | |
Elliott Hughes | 48d0b3f | 2010-12-14 09:48:52 -0800 | [diff] [blame] | 65 | local_javac_flags=-encoding UTF-8 |
| 66 | #local_javac_flags+=-Xlint:all -Xlint:-serial,-deprecation,-unchecked |
| 67 | local_javac_flags+=-Xmaxwarns 9999999 |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 68 | |
| 69 | # |
| 70 | # Build for the target (device). |
| 71 | # |
| 72 | |
| 73 | # Definitions to make the core library. |
| 74 | |
| 75 | include $(CLEAR_VARS) |
| 76 | |
| 77 | LOCAL_SRC_FILES := $(core_src_files) |
| 78 | LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs) |
| 79 | |
| 80 | LOCAL_NO_STANDARD_LIBRARIES := true |
Elliott Hughes | 48d0b3f | 2010-12-14 09:48:52 -0800 | [diff] [blame] | 81 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 82 | LOCAL_DX_FLAGS := --core-library |
| 83 | |
Jesse Wilson | 53fbc0a | 2010-09-16 15:46:05 -0700 | [diff] [blame] | 84 | LOCAL_MODULE_TAGS := optional |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 85 | LOCAL_MODULE := core |
Elliott Hughes | 73d3e26 | 2012-08-28 17:56:09 -0700 | [diff] [blame] | 86 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Elliott Hughes | 055fe87 | 2012-10-18 11:26:48 -0700 | [diff] [blame] | 87 | LOCAL_REQUIRED_MODULES := tzdata |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 88 | |
| 89 | include $(BUILD_JAVA_LIBRARY) |
| 90 | |
| 91 | core-intermediates := ${intermediates} |
| 92 | |
| 93 | |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 94 | # Create the conscrypt library |
Brian Carlstrom | 51ee38b | 2010-07-23 15:57:52 -0700 | [diff] [blame] | 95 | include $(CLEAR_VARS) |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 96 | LOCAL_SRC_FILES := $(call all-main-java-files-under,crypto) |
| 97 | LOCAL_JAVA_LIBRARIES := core |
| 98 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 99 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 100 | LOCAL_JARJAR_RULES := $(LOCAL_PATH)/crypto/jarjar-rules.txt |
| 101 | LOCAL_MODULE_TAGS := optional |
| 102 | LOCAL_MODULE := conscrypt |
| 103 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
| 104 | include $(BUILD_JAVA_LIBRARY) |
| 105 | |
| 106 | # Create the conscrypt library without jarjar for tests |
| 107 | include $(CLEAR_VARS) |
| 108 | LOCAL_SRC_FILES := $(call all-main-java-files-under,crypto) |
| 109 | LOCAL_JAVA_LIBRARIES := core |
| 110 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 111 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 112 | LOCAL_MODULE_TAGS := optional |
| 113 | LOCAL_MODULE := conscrypt-nojarjar |
| 114 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Kenny Root | aae2e51 | 2013-08-29 10:09:03 -0700 | [diff] [blame^] | 115 | include $(BUILD_JAVA_LIBRARY) |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 116 | |
| 117 | |
| 118 | ifeq ($(LIBCORE_SKIP_TESTS),) |
| 119 | # Make the core-tests library. |
| 120 | include $(CLEAR_VARS) |
Ian Rogers | 3d41b9a | 2013-08-19 10:57:22 -0700 | [diff] [blame] | 121 | LOCAL_SRC_FILES := $(call all-test-java-files-under,crypto dalvik dom harmony-tests json luni support xml) |
Brian Carlstrom | 51ee38b | 2010-07-23 15:57:52 -0700 | [diff] [blame] | 122 | LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs) |
| 123 | LOCAL_NO_STANDARD_LIBRARIES := true |
Kenny Root | aae2e51 | 2013-08-29 10:09:03 -0700 | [diff] [blame^] | 124 | LOCAL_JAVA_LIBRARIES := bouncycastle core conscrypt-nojarjar core-junit okhttp |
| 125 | LOCAL_STATIC_JAVA_LIBRARIES := sqlite-jdbc mockwebserver nist-pkix-tests okhttp-tests |
Elliott Hughes | d610834 | 2011-02-22 10:13:54 -0800 | [diff] [blame] | 126 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 127 | LOCAL_JARJAR_RULES := $(LOCAL_PATH)/crypto/jarjar-rules.txt |
Brian Carlstrom | b094af3 | 2010-05-28 17:37:37 -0700 | [diff] [blame] | 128 | LOCAL_MODULE := core-tests |
Elliott Hughes | 73d3e26 | 2012-08-28 17:56:09 -0700 | [diff] [blame] | 129 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Jesse Wilson | 706d535 | 2010-06-08 17:20:09 -0700 | [diff] [blame] | 130 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Elliott Hughes | c5cd6e8 | 2012-10-18 18:13:10 -0700 | [diff] [blame] | 131 | endif |
Jesse Wilson | 706d535 | 2010-06-08 17:20:09 -0700 | [diff] [blame] | 132 | |
Tsu Chiang Chuang | 808558f | 2013-08-21 11:46:49 -0700 | [diff] [blame] | 133 | ifeq ($(LIBCORE_SKIP_TESTS),) |
| 134 | # Make the jsr166-tests library. |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_SRC_FILES := $(call all-test-java-files-under, jsr166-tests) |
| 137 | LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs) |
| 138 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 139 | LOCAL_JAVA_LIBRARIES := core core-junit |
| 140 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 141 | LOCAL_MODULE := jsr166-tests |
| 142 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
| 143 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 144 | endif |
| 145 | |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 146 | # This one's tricky. One of our tests needs to have a |
| 147 | # resource with a "#" in its name, but Perforce doesn't |
| 148 | # allow us to submit such a file. So we create it here |
| 149 | # on-the-fly. |
Ying Wang | 43624e7 | 2011-06-06 15:34:59 -0700 | [diff] [blame] | 150 | TMP_RESOURCE_DIR := $(intermediates.COMMON)/tmp/ |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 151 | TMP_RESOURCE_FILE := org/apache/harmony/luni/tests/java/lang/test\#.properties |
| 152 | |
| 153 | $(TMP_RESOURCE_DIR)$(TMP_RESOURCE_FILE): |
| 154 | @mkdir -p $(dir $@) |
| 155 | @echo "Hello, world!" > $@ |
| 156 | |
Ying Wang | 43624e7 | 2011-06-06 15:34:59 -0700 | [diff] [blame] | 157 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS := $(extra_jar_args) -C "$(TMP_RESOURCE_DIR)" "$(TMP_RESOURCE_FILE)" |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 158 | $(LOCAL_INTERMEDIATE_TARGETS): $(TMP_RESOURCE_DIR)$(TMP_RESOURCE_FILE) |
| 159 | |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 160 | |
| 161 | # |
| 162 | # Build for the host. |
| 163 | # |
| 164 | |
Tsu Chiang Chuang | 25963ae | 2013-07-23 16:39:20 -0700 | [diff] [blame] | 165 | include $(CLEAR_VARS) |
| 166 | LOCAL_SRC_FILES := $(call all-main-java-files-under, dex) |
| 167 | LOCAL_MODULE_TAGS := optional |
| 168 | LOCAL_MODULE := dex-host |
| 169 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 170 | |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 171 | ifeq ($(WITH_HOST_DALVIK),true) |
| 172 | |
| 173 | # Definitions to make the core library. |
| 174 | |
| 175 | include $(CLEAR_VARS) |
| 176 | |
| 177 | LOCAL_SRC_FILES := $(core_src_files) |
| 178 | LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs) |
| 179 | |
| 180 | LOCAL_NO_STANDARD_LIBRARIES := true |
Elliott Hughes | 48d0b3f | 2010-12-14 09:48:52 -0800 | [diff] [blame] | 181 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 182 | LOCAL_DX_FLAGS := --core-library |
| 183 | |
Jesse Wilson | 7898a91 | 2010-09-13 15:42:41 -0700 | [diff] [blame] | 184 | LOCAL_BUILD_HOST_DEX := true |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 185 | |
Jean-Baptiste Queru | f267896 | 2010-09-14 13:50:14 -0700 | [diff] [blame] | 186 | LOCAL_MODULE_TAGS := optional |
Jesse Wilson | 53fbc0a | 2010-09-16 15:46:05 -0700 | [diff] [blame] | 187 | LOCAL_MODULE := core-hostdex |
Elliott Hughes | 73d3e26 | 2012-08-28 17:56:09 -0700 | [diff] [blame] | 188 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Elliott Hughes | 055fe87 | 2012-10-18 11:26:48 -0700 | [diff] [blame] | 189 | LOCAL_REQUIRED_MODULES := tzdata-host |
Dan Bornstein | 6ac43c2 | 2009-10-24 15:33:49 -0700 | [diff] [blame] | 190 | |
| 191 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 192 | |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 193 | # Make the conscrypt-hostdex library |
| 194 | include $(CLEAR_VARS) |
| 195 | LOCAL_SRC_FILES := $(call all-main-java-files-under,crypto) |
| 196 | LOCAL_JAVA_LIBRARIES := core-hostdex |
| 197 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 198 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 199 | LOCAL_JARJAR_RULES := $(LOCAL_PATH)/crypto/jarjar-rules.txt |
| 200 | LOCAL_BUILD_HOST_DEX := true |
| 201 | LOCAL_MODULE_TAGS := optional |
| 202 | LOCAL_MODULE := conscrypt-hostdex |
| 203 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
| 204 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 205 | |
| 206 | # Make the conscrypt-hostdex-nojarjar for tests |
| 207 | include $(CLEAR_VARS) |
| 208 | LOCAL_SRC_FILES := $(call all-main-java-files-under,crypto) |
| 209 | LOCAL_JAVA_LIBRARIES := core-hostdex |
| 210 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 211 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 212 | LOCAL_BUILD_HOST_DEX := true |
| 213 | LOCAL_MODULE_TAGS := optional |
| 214 | LOCAL_MODULE := conscrypt-hostdex-nojarjar |
| 215 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
| 216 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 217 | |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 218 | # Make the core-tests library. |
Elliott Hughes | c5cd6e8 | 2012-10-18 18:13:10 -0700 | [diff] [blame] | 219 | ifeq ($(LIBCORE_SKIP_TESTS),) |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 220 | include $(CLEAR_VARS) |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 221 | LOCAL_SRC_FILES := $(call all-test-java-files-under,crypto dalvik dom json luni support xml) |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 222 | LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs) |
| 223 | LOCAL_NO_STANDARD_LIBRARIES := true |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 224 | LOCAL_JAVA_LIBRARIES := bouncycastle-hostdex core-hostdex conscrypt-hostdex-nojarjar core-junit-hostdex okhttp-hostdex |
Brian Carlstrom | 22a12c9 | 2013-01-17 16:18:31 -0800 | [diff] [blame] | 225 | LOCAL_STATIC_JAVA_LIBRARIES := sqlite-jdbc-host mockwebserver-host nist-pkix-tests-host |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 226 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
Kenny Root | 38375a4 | 2013-04-23 15:50:31 -0700 | [diff] [blame] | 227 | LOCAL_JARJAR_RULES := $(LOCAL_PATH)/crypto/jarjar-rules.txt |
Ying Wang | e79ac58 | 2012-08-23 11:25:27 -0700 | [diff] [blame] | 228 | LOCAL_MODULE_TAGS := optional |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 229 | LOCAL_MODULE := core-tests-hostdex |
Elliott Hughes | 73d3e26 | 2012-08-28 17:56:09 -0700 | [diff] [blame] | 230 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Brian Carlstrom | d39b1d6 | 2011-03-06 23:15:39 -0800 | [diff] [blame] | 231 | LOCAL_BUILD_HOST_DEX := true |
| 232 | include $(BUILD_HOST_JAVA_LIBRARY) |
Elliott Hughes | c5cd6e8 | 2012-10-18 18:13:10 -0700 | [diff] [blame] | 233 | endif |
Elliott Hughes | 67cc34b | 2010-02-19 22:14:19 -0800 | [diff] [blame] | 234 | endif |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 235 | |
| 236 | # |
| 237 | # Local droiddoc for faster libcore testing |
| 238 | # |
| 239 | # |
| 240 | # Run with: |
Elliott Hughes | 92fc63e | 2013-02-07 17:05:57 -0800 | [diff] [blame] | 241 | # mm -j32 libcore-docs |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 242 | # |
| 243 | # Main output: |
Elliott Hughes | 92fc63e | 2013-02-07 17:05:57 -0800 | [diff] [blame] | 244 | # ../out/target/common/docs/libcore/reference/packages.html |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 245 | # |
| 246 | # All text for proofreading (or running tools over): |
Elliott Hughes | 92fc63e | 2013-02-07 17:05:57 -0800 | [diff] [blame] | 247 | # ../out/target/common/docs/libcore-proofread.txt |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 248 | # |
| 249 | # TODO list of missing javadoc, etc: |
Elliott Hughes | 92fc63e | 2013-02-07 17:05:57 -0800 | [diff] [blame] | 250 | # ../out/target/common/docs/libcore-docs-todo.html |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 251 | # |
| 252 | # Rerun: |
Elliott Hughes | 92fc63e | 2013-02-07 17:05:57 -0800 | [diff] [blame] | 253 | # rm -rf ../out/target/common/docs/libcore-timestamp && mm -j32 libcore-docs |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 254 | # |
| 255 | include $(CLEAR_VARS) |
| 256 | |
| 257 | # for shared defintion of libcore_to_document |
| 258 | include $(LOCAL_PATH)/Docs.mk |
| 259 | |
Brian Carlstrom | cfa84a2 | 2011-03-24 13:55:02 -0700 | [diff] [blame] | 260 | LOCAL_SRC_FILES:=$(call libcore_to_document,$(LOCAL_PATH)) |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 261 | # rerun doc generation without recompiling the java |
| 262 | LOCAL_JAVA_LIBRARIES:= |
Elliott Hughes | d610834 | 2011-02-22 10:13:54 -0800 | [diff] [blame] | 263 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 264 | LOCAL_MODULE_CLASS:=JAVA_LIBRARIES |
| 265 | |
| 266 | LOCAL_MODULE := libcore |
Elliott Hughes | 73d3e26 | 2012-08-28 17:56:09 -0700 | [diff] [blame] | 267 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 268 | |
Elliott Hughes | b986327 | 2012-11-08 14:28:29 -0800 | [diff] [blame] | 269 | LOCAL_DROIDDOC_OPTIONS := \ |
Brian Carlstrom | dc3c152 | 2011-01-05 17:48:05 -0800 | [diff] [blame] | 270 | -offlinemode \ |
| 271 | -title "libcore" \ |
| 272 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
| 273 | -todo ../$(LOCAL_MODULE)-docs-todo.html \ |
| 274 | -hdf android.whichdoc offline |
| 275 | |
| 276 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk |
| 277 | |
| 278 | include $(BUILD_DROIDDOC) |