#!/usr/bin/env omake #---------------------------------------------------------------------------- # Project: Horizon # File: debuggerdefs.om # # Copyright 2007-2009 Nintendo. 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. # # $Date:: 2011-02-12#$ # $Rev: 34373 $ # $Author: hatamoto_minoru $ #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # グローバル変数の定義 #---------------------------------------------------------------------------- # 実行用ルールの対応 global.PROGRAM_RUNNER_MAP = $(Map) #---------------------------------------------------------------------------- # 設定ロード #---------------------------------------------------------------------------- include $(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).om foreach(om, $(ls i,$(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).*.om)) include $(removesuffix $(om)) export #---------------------------------------------------------------------------- # 実行用ルール追加 # # この関数が実行される時点で、 # DEFAULT_TARGETS の定義が終わっていることを前提とします。 # #---------------------------------------------------------------------------- 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))