• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2013 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
17LOCAL_PATH := $(call my-dir)
18
19#
20# Build app code.
21#
22include $(CLEAR_VARS)
23
24LOCAL_MODULE_TAGS := optional
25
26LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
27
28LOCAL_SRC_FILES := $(call all-java-files-under, src) \
29    $(call all-java-files-under, WallpaperPicker/src) \
30    $(call all-renderscript-files-under, src) \
31    $(call all-proto-files-under, protos)
32LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res
33
34LOCAL_AAPT_FLAGS := --auto-add-overlay
35
36LOCAL_PROTOC_OPTIMIZE_TYPE := nano
37LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
38
39LOCAL_SDK_VERSION := 21
40
41LOCAL_PACKAGE_NAME := Launcher3
42#LOCAL_CERTIFICATE := shared
43
44LOCAL_OVERRIDES_PACKAGES := Launcher2
45
46LOCAL_PROGUARD_FLAG_FILES := proguard.flags
47
48include $(BUILD_PACKAGE)
49
50include $(call all-makefiles-under,$(LOCAL_PATH))
51
52#
53# Protocol Buffer Debug Utility in Java
54#
55include $(CLEAR_VARS)
56
57LOCAL_SRC_FILES := $(call all-java-files-under, util) \
58    $(call all-proto-files-under, protos)
59
60LOCAL_PROTOC_OPTIMIZE_TYPE := nano
61LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
62
63LOCAL_MODULE_TAGS := optional
64LOCAL_MODULE := launcher_protoutil_lib
65LOCAL_IS_HOST_MODULE := true
66LOCAL_JAR_MANIFEST := util/etc/manifest.txt
67LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-2.3.0-nano
68
69include $(BUILD_HOST_JAVA_LIBRARY)
70
71#
72# Protocol Buffer Debug Utility Wrapper Script
73#
74include $(CLEAR_VARS)
75LOCAL_IS_HOST_MODULE := true
76LOCAL_MODULE_CLASS := EXECUTABLES
77LOCAL_MODULE_TAGS := optional
78LOCAL_MODULE := launcher_protoutil
79
80include $(BUILD_SYSTEM)/base_rules.mk
81
82$(LOCAL_BUILT_MODULE): launcher_protoutil_lib
83$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
84	@echo "Copy: $(PRIVATE_MODULE) ($@)"
85	$(copy-file-to-new-target)
86	$(hide) chmod 755 $@
87
88INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
89