OSDN Git Service

Automatic translation import
[android-x86/packages-apps-Trebuchet.git] / Android.mk
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
17 LOCAL_PATH := $(call my-dir)
18
19 #
20 # Build app code.
21 #
22 include $(CLEAR_VARS)
23
24 LOCAL_MODULE_TAGS := optional
25
26 LOCAL_STATIC_JAVA_LIBRARIES := \
27     android-support-v4 \
28     android-support-v7-recyclerview \
29     org.cyanogenmod.platform.internal
30
31 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
32     $(call all-proto-files-under, protos)
33
34 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res \
35     $(LOCAL_PATH)/res \
36     $(LOCAL_PATH)/../../../prebuilts/sdk/current/support/v7/recyclerview/res
37
38 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
39
40 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
41 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
42 LOCAL_AAPT_FLAGS := \
43     --auto-add-overlay \
44     --extra-packages android.support.v7.recyclerview
45
46 #LOCAL_SDK_VERSION := current
47 LOCAL_PACKAGE_NAME := Trebuchet
48 LOCAL_PRIVILEGED_MODULE := true
49 LOCAL_CERTIFICATE := platform
50
51 LOCAL_AAPT_FLAGS += --rename-manifest-package com.cyanogenmod.trebuchet
52
53 LOCAL_OVERRIDES_PACKAGES := Launcher3
54
55 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
56 LOCAL_PROGUARD_ENABLED := full
57
58 REMOTE_FOLDER_UPDATER ?= $(LOCAL_PATH)/RemoteFolder
59 include $(REMOTE_FOLDER_UPDATER)/Android.mk
60
61 include $(BUILD_PACKAGE)
62
63 include $(CLEAR_VARS)
64
65 REMOTE_FOLDER_UPDATER ?= $(LOCAL_PATH)/RemoteFolder
66 include $(REMOTE_FOLDER_UPDATER)/Android-prebuilt-libs.mk
67
68 include $(BUILD_MULTI_PREBUILT)
69
70 include $(CLEAR_VARS)
71
72 #
73 # Protocol Buffer Debug Utility in Java
74 #
75 include $(CLEAR_VARS)
76
77 LOCAL_SRC_FILES := $(call all-java-files-under, util) \
78     $(call all-proto-files-under, protos)
79
80 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
81 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
82
83 LOCAL_MODULE_TAGS := optional
84 LOCAL_MODULE := launcher_protoutil_lib
85 LOCAL_IS_HOST_MODULE := true
86 LOCAL_JAR_MANIFEST := util/etc/manifest.txt
87
88 include $(BUILD_HOST_JAVA_LIBRARY)
89
90
91 #
92 # Protocol Buffer Debug Utility Wrapper Script
93 #
94 include $(CLEAR_VARS)
95 LOCAL_IS_HOST_MODULE := true
96 LOCAL_MODULE_CLASS := EXECUTABLES
97 LOCAL_MODULE_TAGS := optional
98 LOCAL_MODULE := launcher_protoutil
99
100 include $(BUILD_SYSTEM)/base_rules.mk
101
102 $(LOCAL_BUILT_MODULE): | $(HOST_OUT_JAVA_LIBRARIES)/launcher_protoutil_lib.jar
103 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
104         @echo "Copy: $(PRIVATE_MODULE) ($@)"
105         $(copy-file-to-new-target)
106         $(hide) chmod 755 $@
107
108 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
109
110 include $(call all-makefiles-under,$(LOCAL_PATH))