1# 2# Copyright (C) 2008 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# Caution: This file is used by NDK to generate all platform library files. 18# Please don't change this file to Android.bp. 19LOCAL_PATH := $(call my-dir) 20 21# Default cflags 22MY_CFLAGS := -Wall -Werror -Wno-unused-parameter -D__ANDROID_ARCH__=\"$(TARGET_ARCH_ABI)\" 23 24# If the TARGET_ARCH_ABI is 32bit, it adds __LIVE_ONLY_32BIT__ in MY_CFLAGS. 25ABIS_FOR_32BIT_ONLY := armeabi-v7a armeabi x86 mips 26ifneq ($(filter $(TARGET_ARCH_ABI),$(ABIS_FOR_32BIT_ONLY)),) 27MY_CFLAGS += -D__LIVE_ONLY_32BIT__=1 28endif 29 30include $(CLEAR_VARS) 31 32LOCAL_MODULE := libsplitappjni 33LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 34LOCAL_LICENSE_CONDITIONS := notice 35LOCAL_SRC_FILES := com_android_cts_splitapp_Native.cpp 36 37LOCAL_LDLIBS += -llog 38 39LOCAL_CFLAGS := $(MY_CFLAGS) 40 41# tag this module as a cts test artifact 42LOCAL_COMPATIBILITY_SUITE := cts general-tests 43 44include $(BUILD_SHARED_LIBRARY) 45 46include $(CLEAR_VARS) 47 48LOCAL_MODULE := libsplitappjni_revision 49LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 50LOCAL_LICENSE_CONDITIONS := notice 51LOCAL_SRC_FILES := com_android_cts_splitapp_Native.cpp 52 53LOCAL_LDLIBS += -llog 54 55LOCAL_CFLAGS := $(MY_CFLAGS) -D__REVISION_HAVE_SUB__=1 56 57# tag this module as a cts test artifact 58LOCAL_COMPATIBILITY_SUITE := cts general-tests 59 60include $(BUILD_SHARED_LIBRARY) 61