• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 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# We build two apps from the same source
18
19LOCAL_PATH:= $(call my-dir)
20
21# === App 1 ===
22include $(CLEAR_VARS)
23
24LOCAL_PACKAGE_NAME := ShortcutLauncherDemo
25
26LOCAL_MODULE_TAGS := samples tests
27
28LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutlauncherdemo
29
30LOCAL_SRC_FILES := $(call all-java-files-under, src)
31LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src)
32
33LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
34LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
35LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res1
36
37LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 android-support-v13
38
39LOCAL_SDK_VERSION := current
40
41include $(BUILD_PACKAGE)
42
43# === App 2 ===
44include $(CLEAR_VARS)
45
46LOCAL_PACKAGE_NAME := ShortcutLauncherDemo2
47
48LOCAL_MODULE_TAGS := samples tests
49
50LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutlauncherdemo2
51
52LOCAL_SRC_FILES := $(call all-java-files-under, src)
53LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src)
54
55LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
56LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
57LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res2
58
59LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 android-support-v13
60
61LOCAL_SDK_VERSION := current
62
63include $(BUILD_PACKAGE)
64