1# Copyright (C) 2009 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 16# this file is included multiple times by build/core/setup-app.mk 17# 18 19$(call gdk_log,Building application '$(GDK_APP_NAME)' for ABI '$(TARGET_ARCH_ABI)') 20 21# Map ABIs to a target architecture 22TARGET_ARCH_for_llvm := llvm 23 24TARGET_ARCH := $(TARGET_ARCH_for_$(TARGET_ARCH_ABI)) 25 26TARGET_OUT := $(GDK_APP_OUT)/$(_app)/$(TARGET_ARCH_ABI) 27 28# Separate the debug and release objects. This prevents rebuilding 29# everything when you switch between these two modes. For projects 30# with lots of C++ sources, this can be a considerable time saver. 31ifeq ($(GDK_APP_OPTIM),debug) 32TARGET_OBJS := $(TARGET_OUT)/objs-debug 33else 34TARGET_OBJS := $(TARGET_OUT)/objs 35endif 36 37include $(BUILD_SYSTEM)/setup-toolchain.mk 38