• 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
25LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
26LOCAL_LICENSE_CONDITIONS := notice
27
28LOCAL_MODULE_TAGS := samples tests
29
30LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutlauncherdemo
31
32LOCAL_SRC_FILES := $(call all-java-files-under, src)
33LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src)
34
35LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
36LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
37LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res1
38
39LOCAL_STATIC_ANDROID_LIBRARIES := \
40    androidx.legacy_legacy-support-v4 \
41    androidx.legacy_legacy-support-v13
42
43LOCAL_USE_AAPT2 := true
44
45LOCAL_SDK_VERSION := current
46
47include $(BUILD_PACKAGE)
48
49# === App 2 ===
50include $(CLEAR_VARS)
51
52LOCAL_PACKAGE_NAME := ShortcutLauncherDemo2
53LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
54LOCAL_LICENSE_CONDITIONS := notice
55
56LOCAL_MODULE_TAGS := samples tests
57
58
59LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutlauncherdemo2
60
61LOCAL_SRC_FILES := $(call all-java-files-under, src)
62LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src)
63
64LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
65LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
66LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res2
67
68LOCAL_STATIC_ANDROID_LIBRARIES := \
69    androidx.legacy_legacy-support-v4 \
70    androidx.legacy_legacy-support-v13
71
72LOCAL_USE_AAPT2 := true
73
74LOCAL_SDK_VERSION := current
75
76include $(BUILD_PACKAGE)
77