#!/usr/bin/env omake #---------------------------------------------------------------------------- # Project: Horizon # File: debuggerdefs.om # # Copyright (C)2009-2011 Nintendo Co., Ltd. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # # $Rev:$ #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # Global Variable Definitions #---------------------------------------------------------------------------- # Execution Rule support global.PROGRAM_RUNNER_MAP = $(Map) #---------------------------------------------------------------------------- # Load settings #---------------------------------------------------------------------------- include $(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).om #---------------------------------------------------------------------------- # Add execution rules # # It is assumed that the DEFAULT_TARGETS definition has finished at the time this function is executed. # # #---------------------------------------------------------------------------- public.HORIZON_POST_ADDITIONAL_RULES += fun() if $(filter run%, $(TARGETS)) foreach (runtype, $(filter $(PROGRAM_RUNNER_MAP.keys), $(TARGETS))) private.runner = $(global.PROGRAM_RUNNER_MAP.find $(runtype)) if $(runner) value $(apply $(runner), $(runtype), $(DEFAULT_TARGETS))