1#!/usr/bin/env omake 2#---------------------------------------------------------------------------- 3# Project: NintendoWare 4# File: OMakefile 5# 6# Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. 7# 8# These coded instructions, statements, and computer programs contain proprietary 9# information of Nintendo and/or its licensed developers and are protected by 10# national and international copyright laws. They may not be disclosed to third 11# parties or copied or duplicated in any form, in whole or in part, without the 12# prior written consent of Nintendo. 13# 14# The content herein is highly confidential and should be handled accordingly. 15# 16# $Revision: $ 17#---------------------------------------------------------------------------- 18 19# �v���Z�X���T�|�[�g����^�[�Q�b�g���L�q���܂��B 20# �V�X�e�����͕K�� Process �ɂȂ�͂��ł��B 21SUPPORTED_TARGETS = CTR-*.Process.MPCore.* 22 23# ���f���Z�b�g���w�肵�܂��B 24MODEL_SET_NAME = MultiAnimation.bcmdl 25MODEL_SET[] = 26 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.cmdl 27 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.ctex 28 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.cmdl 29 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.ctex 30 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/VisibilityAnim.cmdl 31 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/CameraAnim.cmdl 32 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cmdl 33 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Pierrot.cmdl 34 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Pierrot.ctex 35 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Robot.cmdl 36 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Robot.ctex 37 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/ToyShared.clts 38 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/ToyShared.ctex 39 40SKY_MODEL = $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SkySphere.cmdl 41 42# �t���x�C�N�`���̃A�j���[�V�����t�@�C�����w�肵�܂��B 43FULL_BAKE_ANIMATION_FILES[] = 44 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Pierrot.cskla 45 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/Robot.cskla 46 47# ���̑��̃��\�[�X�t�@�C�����w�肵�܂��B 48RESOURCE_FILES[] = 49 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SceneEnvironmentSetting.cenv 50 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/FragmentLight.cenv 51 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Walk.cskla 52 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.cmata 53 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/VisibilityAnim.cmdla 54 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/CameraAnim.ccam 55 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cenv 56 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.clgt 57 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cres 58 59# �t�H���g�`��p�̃V�F�[�_�[�t�@�C�����w�肵�܂��B 60FONT_SHADER_SHBIN = $(NW4C_ROOT)/shaders/nwfont_RectDrawerShader.shbin 61 62# 2D �̐}�`�̕`��p�̃V�F�[�_�[�t�@�C�����w�肵�܂��B 63SHAPE_2D_SHADER_SHBIN = $(NW4C_ROOT)/shaders/nwdemo_Common.shbin 64 65# �v���O���������w�肵�܂��B 66TARGET_PROGRAM = MultiAnimationDemo 67 68# �r���h����\�[�X�R�[�h���w�肵�܂��B 69SOURCES[] = sources/$(TARGET_PROGRAM).cpp 70 71# ROM�Ɋ܂߂�t�@�C���̃��[�g���L�q���܂��B 72# ���̃p�X�ȉ��̃t�@�C���́AROM�Ɋ܂܂�t�@�C���V�X�e������ǂݍ��߂܂��B 73ROMFS_ROOT = romfiles 74 75# �o�C�i���R���o�[�g�̃I�v�V�������w�肵�܂��B 76MODEL_OPTION = --auto_create_shader=on 77 78SKY_MODEL_OPTION = --auto_create_shader=on 79 80FULL_BAKE_ANIMATION_OPTION = --auto_create_shader=off --use_full_baked_anim 81 82RESOURCE_OPTION = --auto_create_shader=off 83 84MODEL_TARGET = $(GfxBinaryObject $(ROMFS_ROOT)/$(MODEL_SET_NAME), $(MODEL_SET), $(MODEL_OPTION)) 85 86SKY_MODEL_TARGET = $(GfxBinaryObjects $(ROMFS_ROOT), $(SKY_MODEL), $(SKY_MODEL_OPTION)) 87 88FULL_BAKE_ANIMATION_TARGET = $(GfxBinaryObjects $(ROMFS_ROOT), $(FULL_BAKE_ANIMATION_FILES), $(FULL_BAKE_ANIMATION_OPTION)) 89 90RESOUCE_TARGETS = $(GfxBinaryObjects $(ROMFS_ROOT), $(RESOURCE_FILES), $(RESOURCE_OPTION)) 91 92FONT_SHADER_TARGET = $(ROMFS_ROOT)/$(basename $(FONT_SHADER_SHBIN)) 93 94$(FONT_SHADER_TARGET): $(FONT_SHADER_SHBIN) 95 mkdir -p $(dirname $@) 96 cp $< $@ 97 98SHAPE_2D_SHADER_TARGET = $(ROMFS_ROOT)/$(basename $(SHAPE_2D_SHADER_SHBIN)) 99 100$(SHAPE_2D_SHADER_TARGET): $(SHAPE_2D_SHADER_SHBIN) 101 mkdir -p $(dirname $@) 102 cp $< $@ 103 104ROMFS_DEPENDENCIES = $(MODEL_TARGET) $(SKY_MODEL_TARGET) $(FULL_BAKE_ANIMATION_TARGET) $(RESOUCE_TARGETS) $(FONT_SHADER_TARGET) $(SHAPE_2D_SHADER_TARGET) 105 106include $(NW4C_ROOT)/build/omake/modulerules 107 108build: $(DEFAULT_TARGETS) 109 110resource: $(ROMFS_DEPENDENCIES)