blob: c7623c3135426444f99f2a94db21a02c170f4ef7 [file] [log] [blame]
The Android Open Source Project146de362009-03-03 19:32:18 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Mindy Pereira18cabd22011-06-09 18:31:23 -07004# Include res dir from chips
Scott Kennedy27339c92014-03-26 13:48:47 -07005chips_dir := ../../../frameworks/opt/chips/res
James Kunga8b8c0d2013-02-13 17:28:16 -08006color_picker_dir := ../../../frameworks/opt/colorpicker/res
Sam Blitzstein7674b692013-01-29 11:45:20 -08007datetimepicker_dir := ../../../frameworks/opt/datetimepicker/res
Michael Chane6aa9372013-04-01 00:31:54 -07008timezonepicker_dir := ../../../frameworks/opt/timezonepicker/res
9res_dirs := $(chips_dir) $(color_picker_dir) $(datetimepicker_dir) $(timezonepicker_dir) res
Sara Tingf84b1a92012-12-17 10:16:03 -080010src_dirs := src
Mindy Pereira18cabd22011-06-09 18:31:23 -070011
Michael Chan49701592010-06-30 11:04:03 -070012LOCAL_EMMA_COVERAGE_FILTER := +com.android.calendar.*
13
Jean-Baptiste Queru25cd65e2010-01-05 16:27:21 -080014LOCAL_MODULE_TAGS := optional
The Android Open Source Project146de362009-03-03 19:32:18 -080015
Sara Ting19da7822012-07-16 11:02:27 -070016LOCAL_SRC_FILES := $(call all-java-files-under,$(src_dirs))
The Android Open Source Project146de362009-03-03 19:32:18 -080017
Andy McFaddend46b1152011-06-09 15:18:23 -070018# bundled
Andy McFadden8ed988f2011-07-06 15:17:54 -070019#LOCAL_STATIC_JAVA_LIBRARIES += \
Sam Blitzstein7674b692013-01-29 11:45:20 -080020# android-common \
Scott Kennedy27339c92014-03-26 13:48:47 -070021# libchips \
Sam Blitzstein7674b692013-01-29 11:45:20 -080022# calendar-common
Andy McFaddend46b1152011-06-09 15:18:23 -070023
24# unbundled
Andy McFadden8ed988f2011-07-06 15:17:54 -070025LOCAL_STATIC_JAVA_LIBRARIES := \
Sam Blitzstein7674b692013-01-29 11:45:20 -080026 android-common \
Scott Kennedy27339c92014-03-26 13:48:47 -070027 libchips \
Sam Blitzstein7674b692013-01-29 11:45:20 -080028 colorpicker \
29 android-opt-datetimepicker \
Michael Chane6aa9372013-04-01 00:31:54 -070030 android-opt-timezonepicker \
Sam Blitzstein7674b692013-01-29 11:45:20 -080031 android-support-v4 \
32 calendar-common
Michael Chande1d7002012-11-16 09:28:25 -080033
Michael Jurka1db6f012012-09-14 13:24:24 -070034LOCAL_SDK_VERSION := current
Michael Chan037c0692010-02-09 13:32:22 -080035
Mindy Pereira18cabd22011-06-09 18:31:23 -070036LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
37
The Android Open Source Project146de362009-03-03 19:32:18 -080038LOCAL_PACKAGE_NAME := Calendar
39
Sam Blitzstein7674b692013-01-29 11:45:20 -080040LOCAL_PROGUARD_FLAG_FILES := proguard.flags \
41 ../../../frameworks/opt/datetimepicker/proguard.flags
Daisuke Miyakawa551f69c2010-10-14 11:10:28 -070042
Mindy Pereira3b4d4892011-12-16 08:44:10 -080043LOCAL_AAPT_FLAGS := --auto-add-overlay
44LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips
James Kunga8b8c0d2013-02-13 17:28:16 -080045LOCAL_AAPT_FLAGS += --extra-packages com.android.colorpicker
Sam Blitzstein7674b692013-01-29 11:45:20 -080046LOCAL_AAPT_FLAGS += --extra-packages com.android.datetimepicker
Michael Chane6aa9372013-04-01 00:31:54 -070047LOCAL_AAPT_FLAGS += --extra-packages com.android.timezonepicker
Mindy Pereira18cabd22011-06-09 18:31:23 -070048
The Android Open Source Project146de362009-03-03 19:32:18 -080049include $(BUILD_PACKAGE)
50
51# Use the following include to make our test apk.
52include $(call all-makefiles-under,$(LOCAL_PATH))