Home | History | Annotate | Download | only in aslr
      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 LOCAL_PATH:= $(call my-dir)
     16 
     17 test_executable := CtsAslrMallocTestCases
     18 list_executable := $(test_executable)_list
     19 
     20 include $(CLEAR_VARS)
     21 LOCAL_MODULE:= $(test_executable)
     22 LOCAL_MODULE_TAGS := optional
     23 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
     24 LOCAL_MULTILIB := both
     25 LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
     26 LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
     27 
     28 LOCAL_C_INCLUDES := \
     29     external/gtest/include
     30 
     31 LOCAL_SRC_FILES := \
     32     src/AslrMallocTest.cpp
     33 
     34 LOCAL_SHARED_LIBRARIES := \
     35     libbase \
     36     libutils \
     37     liblog \
     38 
     39 LOCAL_STATIC_LIBRARIES := \
     40     libgtest
     41 
     42 # Tag this module as a cts test artifact
     43 LOCAL_COMPATIBILITY_SUITE := cts
     44 
     45 include $(BUILD_CTS_EXECUTABLE)
     46 
     47 include $(CLEAR_VARS)
     48 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     49 
     50 LOCAL_MODULE := $(list_executable)
     51 LOCAL_MODULE_TAGS := optional
     52 
     53 LOCAL_SRC_FILES := \
     54     src/AslrMallocTest.cpp
     55 
     56 LOCAL_CFLAGS := \
     57     -DBUILD_ONLY \
     58 
     59 LOCAL_SHARED_LIBRARIES := \
     60     liblog
     61 
     62 include $(BUILD_HOST_NATIVE_TEST)
     63