Home | History | Annotate | Download | only in upgrade
      1 # Copyright (C) 2016 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 # We build two APKs from the same source files, each with a different set of resources.
     16 
     17 # =================================
     18 
     19 LOCAL_PATH:= $(call my-dir)
     20 
     21 include $(CLEAR_VARS)
     22 
     23 # Tag this module as a cts test artifact
     24 LOCAL_COMPATIBILITY_SUITE := cts
     25 
     26 LOCAL_PACKAGE_NAME := CtsShortcutUpgradeVersion1
     27 
     28 LOCAL_MODULE_TAGS := optional
     29 
     30 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
     31 
     32 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
     33     $(call all-java-files-under, ../common/src)
     34 
     35 LOCAL_RESOURCE_DIR :=  $(LOCAL_PATH)/version1/res
     36 
     37 LOCAL_STATIC_JAVA_LIBRARIES := \
     38     android-support-test \
     39     android-support-v4 \
     40     mockito-target-minus-junit4 \
     41     compatibility-device-util \
     42     ctstestrunner \
     43     ub-uiautomator \
     44     ShortcutManagerTestUtils
     45 
     46 LOCAL_SDK_VERSION := current
     47 
     48 include $(BUILD_CTS_PACKAGE)
     49 
     50 # =============================
     51 
     52 include $(CLEAR_VARS)
     53 
     54 # Tag this module as a cts test artifact
     55 LOCAL_COMPATIBILITY_SUITE := cts
     56 
     57 LOCAL_PACKAGE_NAME := CtsShortcutUpgradeVersion2
     58 
     59 LOCAL_MODULE_TAGS := optional
     60 
     61 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
     62 
     63 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
     64     $(call all-java-files-under, ../common/src)
     65 
     66 LOCAL_RESOURCE_DIR :=  $(LOCAL_PATH)/version2/res
     67 
     68 LOCAL_STATIC_JAVA_LIBRARIES := \
     69     android-support-test \
     70     android-support-v4 \
     71     mockito-target-minus-junit4 \
     72     compatibility-device-util \
     73     ctstestrunner \
     74     ub-uiautomator \
     75     ShortcutManagerTestUtils
     76 
     77 LOCAL_SDK_VERSION := current
     78 
     79 include $(BUILD_CTS_PACKAGE)
     80