1#!/usr/bin/env omake 2#---------------------------------------------------------------------------- 3# Project: Horizon 4# File: debuggerdefs.om 5# 6# Copyright (C)2009-2011 Nintendo Co., Ltd. All rights reserved. 7# 8# These coded instructions, statements, and computer programs contain 9# proprietary information of Nintendo of America Inc. and/or Nintendo 10# Company Ltd., and are protected by Federal copyright law. They may 11# not be disclosed to third parties or copied or duplicated in any form, 12# in whole or in part, without the prior written consent of Nintendo. 13# 14# $Rev:$ 15#---------------------------------------------------------------------------- 16 17#---------------------------------------------------------------------------- 18# Global Variable Definitions 19#---------------------------------------------------------------------------- 20 21# Execution Rule support 22global.PROGRAM_RUNNER_MAP = $(Map) 23 24 25#---------------------------------------------------------------------------- 26# Load settings 27#---------------------------------------------------------------------------- 28 29include $(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).om 30 31 32#---------------------------------------------------------------------------- 33# Add execution rules 34# 35# It is assumed that the DEFAULT_TARGETS definition has finished at the time this function is executed. 36# 37# 38#---------------------------------------------------------------------------- 39public.HORIZON_POST_ADDITIONAL_RULES += 40 fun() 41 if $(filter run%, $(TARGETS)) 42 foreach (runtype, $(filter $(PROGRAM_RUNNER_MAP.keys), $(TARGETS))) 43 private.runner = $(global.PROGRAM_RUNNER_MAP.find $(runtype)) 44 if $(runner) 45 value $(apply $(runner), $(runtype), $(DEFAULT_TARGETS)) 46 47