Home | History | Annotate | Download | only in tests
      1 #
      2 # Copyright (C) 2014 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 # ==========================================================
     18 # Setup some common variables for the different build
     19 # targets here.
     20 # ==========================================================
     21 LOCAL_PATH:= $(call my-dir)
     22 testFiles := \
     23     AttributeFinder_test.cpp \
     24     ByteBucketArray_test.cpp \
     25     Config_test.cpp \
     26     ConfigLocale_test.cpp \
     27     Idmap_test.cpp \
     28     ResTable_test.cpp \
     29     Split_test.cpp \
     30     TestHelpers.cpp \
     31     Theme_test.cpp \
     32     TypeWrappers_test.cpp \
     33     ZipUtils_test.cpp
     34 
     35 # ==========================================================
     36 # Build the host tests: libandroidfw_tests
     37 # ==========================================================
     38 include $(CLEAR_VARS)
     39 
     40 LOCAL_MODULE := libandroidfw_tests
     41 LOCAL_SRC_FILES := $(testFiles)
     42 LOCAL_STATIC_LIBRARIES := \
     43     libandroidfw \
     44     libutils \
     45     libcutils \
     46 	liblog
     47 
     48 include $(BUILD_HOST_NATIVE_TEST)
     49 
     50 
     51 # ==========================================================
     52 # Build the device tests: libandroidfw_tests
     53 # ==========================================================
     54 ifneq ($(SDK_ONLY),true)
     55 include $(CLEAR_VARS)
     56 
     57 LOCAL_MODULE := libandroidfw_tests
     58 LOCAL_SRC_FILES := $(testFiles) \
     59     BackupData_test.cpp \
     60     ObbFile_test.cpp
     61 LOCAL_SHARED_LIBRARIES := \
     62     libandroidfw \
     63     libcutils \
     64     libutils \
     65     libui \
     66     libstlport
     67 
     68 include $(BUILD_NATIVE_TEST)
     69 endif # Not SDK_ONLY
     70 
     71