Home | History | Annotate | Download | only in CorpOwnedManagedProfile
      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 # IMPORTANT: We build two apps from the same source but with different package name.
     16 # This allow us to have different device owner and profile owner, some APIs may behave differently
     17 # in this situation.
     18 
     19 # === App 1 ===
     20 LOCAL_PATH:= $(call my-dir)
     21 
     22 include $(CLEAR_VARS)
     23 
     24 LOCAL_PACKAGE_NAME := CtsCorpOwnedManagedProfile
     25 
     26 LOCAL_MODULE_TAGS := optional
     27 
     28 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
     29 
     30 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
     31                    $(call all-Iaidl-files-under, src)
     32 
     33 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src
     34 
     35 LOCAL_JAVA_LIBRARIES := android.test.runner.stubs cts-junit android.test.base.stubs
     36 
     37 LOCAL_STATIC_JAVA_LIBRARIES := ctstestrunner compatibility-device-util
     38 
     39 LOCAL_SDK_VERSION := test_current
     40 
     41 # tag this module as a cts test artifact
     42 LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
     43 
     44 include $(BUILD_CTS_PACKAGE)
     45 
     46 # === App 2 ===
     47 include $(CLEAR_VARS)
     48 
     49 LOCAL_PACKAGE_NAME := CtsCorpOwnedManagedProfile2
     50 
     51 LOCAL_MODULE_TAGS := optional
     52 
     53 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
     54 
     55 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
     56                    $(call all-Iaidl-files-under, src)
     57 
     58 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src
     59 
     60 LOCAL_JAVA_LIBRARIES := android.test.runner.stubs cts-junit android.test.base.stubs
     61 
     62 LOCAL_STATIC_JAVA_LIBRARIES := ctstestrunner compatibility-device-util
     63 
     64 LOCAL_SDK_VERSION := test_current
     65 
     66 # tag this module as a cts test artifact
     67 LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
     68 LOCAL_AAPT_FLAGS += --rename-manifest-package com.android.cts.comp2 \
     69                     --rename-instrumentation-target-package com.android.cts.comp2
     70 
     71 include $(BUILD_CTS_PACKAGE)
     72