#!/usr/bin/env omake #---------------------------------------------------------------------------- # Project: NintendoWare # File: OMakefile # # Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. 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. # # $Revision:$ #---------------------------------------------------------------------------- GEOMETRY_SHADER_INCLUDES[] = # シェーダーファイルを指定します。 SOURCES[] = gfx_DefaultShader0.vsh gfx_DefaultShader1.vsh gfx_DefaultShader2.vsh gfx_DefaultShader3.vsh CalcVertexLighting.vsh CalcHemiSphereLighting.vsh CalcQuaternion.vsh CalcTexcoord0.vsh CalcTexcoord1.vsh CalcTexcoord2.vsh GetTexcoordSource.vsh GenTexcoordReflection.vsh GenTexcoordSphereReflection.vsh CalcColor.vsh TransformMatrix.vsh # シェーダーの依存ファイルを含んだフォルダを指定します。 VERTEX_SHADER_INCLUDES[] = ../ TARGET_LIBRARY_SHADER = nwgfx_DefaultShader CSDR_TARGET = nwgfx_DefaultShader.csdr include $(ROOT)/build/omake/modulerules INSTALL_CSDR = $(NW4C_ROOT)/shaders/$(CSDR_TARGET) build: $(DEFAULT_TARGETS) # python が無い環境で問題が出たので、ひとまず omake への組み込みを中止 #.PHONY: build-csdr # # build-csdr : $(INSTALL_CSDR) # #$(INSTALL_CSDR) : $(IMAGES_DIR)$(DIRSEP)$(CSDR_TARGET) # cp -f $< $@ # #$(IMAGES_DIR)$(DIRSEP)$(CSDR_TARGET) : $(IMAGES_DIR)$(DIRSEP)$(TARGET_LIBRARY_SHADER).shbin # python $(NW4C_ROOT)/tools/ShbinToCsdr/ShbinToCsdr.py $< > $@ DefineDefaultRules()