#!/usr/bin/env omake #---------------------------------------------------------------------------- # Project: NintendoWare # File: OMakefile # # Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. # # These coded instructions, statements, and computer programs contain proprietary # information of Nintendo and/or its licensed developers and are protected by # national and international copyright laws. 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. # # The content herein is highly confidential and should be handled accordingly. # # $Revision: $ #---------------------------------------------------------------------------- NW_LIBRARIES += libnw_demo NW4C_LAYOUT_ARCHIVER = $(NW4C_ROOT)/tools/LayoutEditor/Converter/NW4C_LayoutArchiver.exe NW4C_LAYOUT_CONVERTER = $(NW4C_ROOT)/tools/LayoutEditor/Converter/NW4C_LayoutConverter.exe public.LayoutBinary(outdir, sources) = $(outdir): $(sources) rm -rf $(outdir) mkdir -p $(outdir) $(NW4C_LAYOUT_CONVERTER) $(sources) $(outdir) return $(outdir) public.LayoutArchive(outfile, indir) = $(outfile): mkdir -p $(dirname $@) CREATE_SUBDIRS = true .SUBDIRS: $(indir) $(NW4C_LAYOUT_ARCHIVER) -c . $@ return $(outfile) public.LayoutResources(rootDir) = SHADER_ROOT = $(NW4C_ROOT)/shaders/ LYT_SHADER_FILES = $(addprefix $(SHADER_ROOT), $(NW_LYT_SHADER_NAMES)) OFILES[] = foreach(file, $(LYT_SHADER_FILES)) OUTPUT = $(rootDir)/shaders/$(basename $(file)) OFILES[] += $(OUTPUT) $(OUTPUT): $(file) mkdir -p $(dirname $@) cp $< $@ export OFILES return $(OFILES) SAMPLE_FONTS[] = $(file commonRes/font/sample.bcfnt) $(file commonRes/font/sample.bcfna) COMMON_RESOURCES[] = $(SAMPLE_FONTS) public.SetupScript(script, outputDir, files) = OFILES = $(addprefix $(outputDir)$(DIRSEP), $(files)) $(OFILES): $(COMMON_RESOURCES) $(script) return $(OFILES) .SUBDIRS: animShare archiveFont bounding commonRes extUserData group locationAdjust multiArc perspective simple simple2 tagGroupBind orthoStereo texVram DefineDefaultRules()