1#!/usr/bin/env omake 2#---------------------------------------------------------------------------- 3# Project: NintendoWare 4# File: OMakefile 5# 6# Copyright (C)2009-2011 Nintendo Co., Ltd./HAL Laboratory, Inc. 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# $Revision: 38331 $ 15#---------------------------------------------------------------------------- 16 17SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir ../../common/include) 18INCLUDES += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR) 19 20SUPPORTED_TARGETS = CTR-*.Process.MPCore.* 21 22SOURCES[] = 23 main.cpp 24 25TARGET_PROGRAM = PackedFont 26 27FONT_OPTIONS = -i win -in Tahoma -is 16 -ic A6 -ia -o bcfnt -op resources/layoutDemo.xggp -f resources/layoutDemo.xllt 28FONT_CONVERTER = $(CTRSDK_ROOT)/tools/FontConverter/ctr_FontConverterConsole.exe 29 30SHADER_BIN = nnfont_TextWriterShader.shbin 31 32LIBS += lib_demo lib_applet 33 34# Specifies the file root that is included in the ROM . 35# Files under this path will be loaded from the file system that the ROM includes. 36ROMFS_ROOT = romfiles 37 38SHADER_PATH = $(ROMFS_ROOT)/$(SHADER_BIN) 39 40FONT_FILE = $(ROMFS_ROOT)/tahoma.bcfna 41 42ROMFS_DEPENDENCIES = $(FONT_FILE) $(SHADER_PATH) 43 44include $(ROOT_OMAKE)/modulerules 45 46build: $(DEFAULT_TARGETS) 47 48$(FONT_FILE): 49 mkdir -p $(dirname $@) 50 $(FONT_CONVERTER) -of $@ $(FONT_OPTIONS) 51 52$(SHADER_PATH): $(CTRSDK_ROOT)/resources/shaders/font/$(SHADER_BIN) 53 mkdir -p $(dirname $@) 54 cp $< $@ 55