blob: f9468a807c28c006fc864117f9fe216c47bf31f9 [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
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -080024# dalvik/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
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -080040define all-main-java-files-under
41$(foreach dir,$(1),$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(dir)/src/main/java -name "*.java" 2> /dev/null)))
Dan Bornstein6ac43c22009-10-24 15:33:49 -070042endef
43
Elliott Hughes7ee3a062010-02-18 17:20:15 -080044define all-test-java-files-under
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -080045$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(1)/src/test/java -name "*.java" 2> /dev/null))
Elliott Hughes7ee3a062010-02-18 17:20:15 -080046endef
47
Dan Bornstein6ac43c22009-10-24 15:33:49 -070048define all-core-resource-dirs
Elliott Hughes3e951a52010-02-22 15:01:55 -080049$(shell cd $(LOCAL_PATH) && ls -d */src/$(1)/{java,resources} 2> /dev/null)
Dan Bornstein6ac43c22009-10-24 15:33:49 -070050endef
51
Elliott Hughes3e951a52010-02-22 15:01:55 -080052# The Java files and their associated resources.
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -080053core_src_files := $(call all-main-java-files-under,annotation archive auth awt-kernel concurrent crypto dalvik dom icu json junit logging luni luni-kernel math nio nio_char openssl prefs regex security security-kernel sql suncompat support text x-net xml)
Dan Bornstein6ac43c22009-10-24 15:33:49 -070054core_resource_dirs := $(call all-core-resource-dirs,main)
Elliott Hughes3e951a52010-02-22 15:01:55 -080055test_resource_dirs := $(call all-core-resource-dirs,test)
Dan Bornstein6ac43c22009-10-24 15:33:49 -070056
57
58#
59# Build for the target (device).
60#
61
62# Definitions to make the core library.
63
64include $(CLEAR_VARS)
65
66LOCAL_SRC_FILES := $(core_src_files)
67LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
68
69LOCAL_NO_STANDARD_LIBRARIES := true
70LOCAL_DX_FLAGS := --core-library
71
72LOCAL_NO_EMMA_INSTRUMENT := true
73LOCAL_NO_EMMA_COMPILE := true
74
75LOCAL_MODULE := core
76
77include $(BUILD_JAVA_LIBRARY)
78
79core-intermediates := ${intermediates}
80
81
Elliott Hughes7ee3a062010-02-18 17:20:15 -080082
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -080083# Definitions to make the sqlite JDBC driver.
84
85include $(CLEAR_VARS)
86LOCAL_SRC_FILES := $(call all-main-java-files-under,sqlite-jdbc)
87LOCAL_NO_STANDARD_LIBRARIES := true
88LOCAL_JAVA_LIBRARIES := core
89LOCAL_MODULE := sqlite-jdbc
90include $(BUILD_JAVA_LIBRARY)
91
Elliott Hughes7ee3a062010-02-18 17:20:15 -080092
93# Definitions to make the core-tests libraries.
94#
95# We make a library per module, because otherwise the .jar files get too
96# large, to the point that dx(1) can't cope (and the build is
97# ridiculously slow).
98#
99# TODO: DalvikRunner will make this nonsense obsolete.
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700100
101include $(CLEAR_VARS)
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800102LOCAL_SRC_FILES := $(call all-test-java-files-under,annotation)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700103LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800104LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800105LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800106LOCAL_DX_FLAGS := --core-library
107LOCAL_MODULE_TAGS := tests
108LOCAL_MODULE := core-tests-annotation
109include $(BUILD_JAVA_LIBRARY)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700110
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800111include $(CLEAR_VARS)
112LOCAL_SRC_FILES := $(call all-test-java-files-under,archive)
113LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
114LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800115LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800116LOCAL_DX_FLAGS := --core-library
117LOCAL_MODULE_TAGS := tests
118LOCAL_MODULE := core-tests-archive
119include $(BUILD_JAVA_LIBRARY)
120
121include $(CLEAR_VARS)
122LOCAL_SRC_FILES := $(call all-test-java-files-under,concurrent)
123LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
124LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800125LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800126LOCAL_DX_FLAGS := --core-library
127LOCAL_MODULE_TAGS := tests
128LOCAL_MODULE := core-tests-concurrent
129include $(BUILD_JAVA_LIBRARY)
130
131include $(CLEAR_VARS)
132LOCAL_SRC_FILES := $(call all-test-java-files-under,crypto)
133LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
134LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800135LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800136LOCAL_DX_FLAGS := --core-library
137LOCAL_MODULE_TAGS := tests
138LOCAL_MODULE := core-tests-crypto
139include $(BUILD_JAVA_LIBRARY)
140
141include $(CLEAR_VARS)
142LOCAL_SRC_FILES := $(call all-test-java-files-under,dom)
143LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
144LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800145LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800146LOCAL_DX_FLAGS := --core-library
147LOCAL_MODULE_TAGS := tests
148LOCAL_MODULE := core-tests-dom
149include $(BUILD_JAVA_LIBRARY)
150
151include $(CLEAR_VARS)
152LOCAL_SRC_FILES := $(call all-test-java-files-under,icu)
153LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
154LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800155LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800156LOCAL_DX_FLAGS := --core-library
157LOCAL_MODULE_TAGS := tests
158LOCAL_MODULE := core-tests-icu
159include $(BUILD_JAVA_LIBRARY)
160
161include $(CLEAR_VARS)
Elliott Hughesbf1ecf22010-02-22 12:45:26 -0800162LOCAL_SRC_FILES := $(call all-test-java-files-under,json)
163LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
164LOCAL_NO_STANDARD_LIBRARIES := true
165LOCAL_JAVA_LIBRARIES := core core-tests-support
166LOCAL_DX_FLAGS := --core-library
167LOCAL_MODULE_TAGS := tests
168LOCAL_MODULE := core-tests-json
169include $(BUILD_JAVA_LIBRARY)
170
171include $(CLEAR_VARS)
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800172LOCAL_SRC_FILES := $(call all-test-java-files-under,logging)
173LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
174LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800175LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800176LOCAL_DX_FLAGS := --core-library
177LOCAL_MODULE_TAGS := tests
178LOCAL_MODULE := core-tests-logging
179include $(BUILD_JAVA_LIBRARY)
180
181include $(CLEAR_VARS)
182LOCAL_SRC_FILES := $(call all-test-java-files-under,luni-kernel)
183LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
184LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800185LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800186LOCAL_DX_FLAGS := --core-library
187LOCAL_MODULE_TAGS := tests
188LOCAL_MODULE := core-tests-luni-kernel
189include $(BUILD_JAVA_LIBRARY)
190
191include $(CLEAR_VARS)
192LOCAL_SRC_FILES := $(call all-test-java-files-under,luni)
193LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
194LOCAL_NO_STANDARD_LIBRARIES := true
195# This module contains the top-level "tests.AllTests" that ties everything
196# together, so it has compile-time dependencies on all the other test
197# libraries.
198# TODO: we should have a bogus module that just contains tests.AllTests for speed.
Elliott Hughesbf1ecf22010-02-22 12:45:26 -0800199LOCAL_JAVA_LIBRARIES := \
200 core \
201 core-tests-support \
202 core-tests-annotation \
203 core-tests-archive \
204 core-tests-concurrent \
205 core-tests-crypto \
206 core-tests-dom \
207 core-tests-icu \
208 core-tests-json \
209 core-tests-logging \
210 core-tests-luni-kernel \
211 core-tests-math \
212 core-tests-nio \
213 core-tests-nio_char \
214 core-tests-prefs \
215 core-tests-regex \
216 core-tests-security \
217 core-tests-sql \
218 core-tests-suncompat \
219 core-tests-text \
220 core-tests-x-net \
221 core-tests-xml
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800222LOCAL_DX_FLAGS := --core-library
223LOCAL_MODULE_TAGS := tests
224LOCAL_MODULE := core-tests-luni
225include $(BUILD_JAVA_LIBRARY)
226
227include $(CLEAR_VARS)
228LOCAL_SRC_FILES := $(call all-test-java-files-under,math)
229LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
230LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800231LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800232LOCAL_DX_FLAGS := --core-library
233LOCAL_MODULE_TAGS := tests
234LOCAL_MODULE := core-tests-math
235include $(BUILD_JAVA_LIBRARY)
236
237include $(CLEAR_VARS)
238LOCAL_SRC_FILES := $(call all-test-java-files-under,nio)
239LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
240LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800241LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800242LOCAL_DX_FLAGS := --core-library
243LOCAL_MODULE_TAGS := tests
244LOCAL_MODULE := core-tests-nio
245include $(BUILD_JAVA_LIBRARY)
246
247include $(CLEAR_VARS)
248LOCAL_SRC_FILES := $(call all-test-java-files-under,nio_char)
249LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
250LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800251LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800252LOCAL_DX_FLAGS := --core-library
253LOCAL_MODULE_TAGS := tests
254LOCAL_MODULE := core-tests-nio_char
255include $(BUILD_JAVA_LIBRARY)
256
257include $(CLEAR_VARS)
258LOCAL_SRC_FILES := $(call all-test-java-files-under,prefs)
259LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
260LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800261LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800262LOCAL_DX_FLAGS := --core-library
263LOCAL_MODULE_TAGS := tests
264LOCAL_MODULE := core-tests-prefs
265include $(BUILD_JAVA_LIBRARY)
266
267include $(CLEAR_VARS)
268LOCAL_SRC_FILES := $(call all-test-java-files-under,regex)
269LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
270LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800271LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800272LOCAL_DX_FLAGS := --core-library
273LOCAL_MODULE_TAGS := tests
274LOCAL_MODULE := core-tests-regex
275include $(BUILD_JAVA_LIBRARY)
276
277include $(CLEAR_VARS)
278LOCAL_SRC_FILES := $(call all-test-java-files-under,security)
279LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
280LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800281LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800282LOCAL_DX_FLAGS := --core-library
283LOCAL_MODULE_TAGS := tests
284LOCAL_MODULE := core-tests-security
285include $(BUILD_JAVA_LIBRARY)
286
287include $(CLEAR_VARS)
288LOCAL_SRC_FILES := $(call all-test-java-files-under,sql)
289LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
290LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughesb9cf9cb2010-02-26 14:46:53 -0800291LOCAL_JAVA_LIBRARIES := core core-tests-support sqlite-jdbc
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800292LOCAL_DX_FLAGS := --core-library
293LOCAL_MODULE_TAGS := tests
294LOCAL_MODULE := core-tests-sql
295include $(BUILD_JAVA_LIBRARY)
296
297include $(CLEAR_VARS)
298LOCAL_SRC_FILES := $(call all-test-java-files-under,suncompat)
299LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
300LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800301LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800302LOCAL_DX_FLAGS := --core-library
303LOCAL_MODULE_TAGS := tests
304LOCAL_MODULE := core-tests-suncompat
305include $(BUILD_JAVA_LIBRARY)
306
307include $(CLEAR_VARS)
308LOCAL_SRC_FILES := $(call all-test-java-files-under,support)
309LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700310LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughes67cc34b2010-02-19 22:14:19 -0800311LOCAL_JAVA_LIBRARIES := core
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700312LOCAL_DX_FLAGS := --core-library
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700313LOCAL_MODULE_TAGS := tests
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800314LOCAL_MODULE := core-tests-support
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700315include $(BUILD_JAVA_LIBRARY)
316
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800317include $(CLEAR_VARS)
318LOCAL_SRC_FILES := $(call all-test-java-files-under,text)
319LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
320LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800321LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800322LOCAL_DX_FLAGS := --core-library
323LOCAL_MODULE_TAGS := tests
324LOCAL_MODULE := core-tests-text
325include $(BUILD_JAVA_LIBRARY)
326
327include $(CLEAR_VARS)
328LOCAL_SRC_FILES := $(call all-test-java-files-under,x-net)
329LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
330LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800331LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800332LOCAL_DX_FLAGS := --core-library
333LOCAL_MODULE_TAGS := tests
334LOCAL_MODULE := core-tests-x-net
335include $(BUILD_JAVA_LIBRARY)
336
337include $(CLEAR_VARS)
338LOCAL_SRC_FILES := $(call all-test-java-files-under,xml)
339LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
340LOCAL_NO_STANDARD_LIBRARIES := true
Elliott Hughese2a6f772010-02-22 12:09:51 -0800341LOCAL_JAVA_LIBRARIES := core core-tests-support
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800342LOCAL_DX_FLAGS := --core-library
343LOCAL_MODULE_TAGS := tests
344LOCAL_MODULE := core-tests-xml
345include $(BUILD_JAVA_LIBRARY)
346
347
Dan Bornstein6ac43c22009-10-24 15:33:49 -0700348
349
350# This one's tricky. One of our tests needs to have a
351# resource with a "#" in its name, but Perforce doesn't
352# allow us to submit such a file. So we create it here
353# on-the-fly.
354TMP_RESOURCE_DIR := $(OUT_DIR)/tmp/
355TMP_RESOURCE_FILE := org/apache/harmony/luni/tests/java/lang/test\#.properties
356
357$(TMP_RESOURCE_DIR)$(TMP_RESOURCE_FILE):
358 @mkdir -p $(dir $@)
359 @echo "Hello, world!" > $@
360
361$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS := $(extra_jar_args) -C $(TMP_RESOURCE_DIR) $(TMP_RESOURCE_FILE)
362$(LOCAL_INTERMEDIATE_TARGETS): $(TMP_RESOURCE_DIR)$(TMP_RESOURCE_FILE)
363
364# Definitions for building a version of the core-tests.jar
365# that is suitable for execution on the RI. This JAR would
366# be better located in $HOST_OUT_JAVA_LIBRARIES, but it is
367# not possible to refer to that from a shell script (the
368# variable is not exported from envsetup.sh). There is also
369# some trickery involved: we need to include some classes
370# that reside in core.jar, but since we cannot incldue the
371# whole core.jar in the RI classpath, we copy those classses
372# over to our new file.
373HOST_CORE_JAR := $(HOST_COMMON_OUT_ROOT)/core-tests.jar
374
375$(HOST_CORE_JAR): PRIVATE_LOCAL_BUILT_MODULE := $(LOCAL_BUILT_MODULE)
376$(HOST_CORE_JAR): PRIVATE_CORE_INTERMEDIATES := $(core-intermediates)
377$(HOST_CORE_JAR): $(LOCAL_BUILT_MODULE)
378 @rm -rf $(dir $<)/hostctsclasses
379 $(call unzip-jar-files,$(dir $<)classes.jar,$(dir $<)hostctsclasses)
380 @unzip -qx -o $(PRIVATE_CORE_INTERMEDIATES)/classes.jar dalvik/annotation/* -d $(dir $<)hostctsclasses
381 @cp $< $@
382 @jar uf $@ -C $(dir $<)hostctsclasses .
383
384$(LOCAL_INSTALLED_MODULE): $(HOST_CORE_JAR)
385
386$(LOCAL_INSTALLED_MODULE): run-core-tests
387
388# Definitions to copy the core-tests runner script.
389
390include $(CLEAR_VARS)
391LOCAL_SRC_FILES := run-core-tests
392LOCAL_MODULE_CLASS := EXECUTABLES
393LOCAL_MODULE_TAGS := tests
394LOCAL_MODULE := run-core-tests
395include $(BUILD_PREBUILT)
396
397include $(CLEAR_VARS)
398LOCAL_SRC_FILES := run-core-tests-on-ri
399LOCAL_IS_HOST_MODULE := true
400LOCAL_MODULE_CLASS := EXECUTABLES
401LOCAL_MODULE_TAGS := tests
402LOCAL_MODULE := run-core-tests-on-ri
403include $(BUILD_PREBUILT)
404
405
406#
407# Build for the host.
408#
409
410ifeq ($(WITH_HOST_DALVIK),true)
411
412 # Definitions to make the core library.
413
414 include $(CLEAR_VARS)
415
416 LOCAL_SRC_FILES := $(core_src_files)
417 LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
418
419 LOCAL_NO_STANDARD_LIBRARIES := true
420 LOCAL_DX_FLAGS := --core-library
421
422 LOCAL_NO_EMMA_INSTRUMENT := true
423 LOCAL_NO_EMMA_COMPILE := true
424
425 LOCAL_MODULE := core
426
427 include $(BUILD_HOST_JAVA_LIBRARY)
428
Elliott Hughes7ee3a062010-02-18 17:20:15 -0800429endif