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 19 LOCAL_PATH:= $(call my-dir) 20 21 # === App 1 === 22 include $(CLEAR_VARS) 23 24 LOCAL_PACKAGE_NAME := ShortcutDemo 25 26 LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 27 28 LOCAL_MODULE_TAGS := samples tests 29 30 LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutdemo 31 32 LOCAL_SRC_FILES := $(call all-java-files-under, src) 33 LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src) 34 35 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 36 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res 37 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res1 38 39 LOCAL_SDK_VERSION := current 40 41 include $(BUILD_PACKAGE) 42 43 # === App 2 === 44 include $(CLEAR_VARS) 45 46 LOCAL_PACKAGE_NAME := ShortcutDemo2 47 48 LOCAL_STATIC_JAVA_LIBRARIES = android-support-v4 49 50 LOCAL_MODULE_TAGS := samples tests 51 52 LOCAL_AAPT_FLAGS += --rename-manifest-package com.example.android.pm.shortcutdemo2 53 54 LOCAL_SRC_FILES := $(call all-java-files-under, src) 55 LOCAL_SRC_FILES += $(call all-java-files-under, ../common/src) 56 57 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 58 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res 59 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res2 60 61 LOCAL_SDK_VERSION := current 62 63 include $(BUILD_PACKAGE) 64