﻿#! make -f
#----------------------------------------------------------------------------
# Project:  NintendoWare
#
# Copyright (C)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.
#----------------------------------------------------------------------------

SUBDIRS     =


#----------------------------------------------------------------------------

NW_DEVENV           = VS11

TARGET_BIN          = EffectMaker.Application.exe
SOLUTION_NAME       = EffectMaker
SOLUTION            = ./$(SOLUTION_NAME).sln
BINDIR              = ./Application/EffectMaker.Application/EffectMaker.Application/bin/$(NW_BUILDDIR)

include $(NW4F_ROOT)/Library/build/make/commondefs.vs.mk

INSTALL_TARGETS =   $(BINDIR)/*.exe \
                    $(BINDIR)/*.dll

#INSTALL_DIR         = $(NW_INSTALL_ROOT)/Tool/EffectMaker
INSTALL_DIR         = ../EffectMaker
NW_LOCALIZE_DIR     = ./localization
NW_LOCALIZE_CONFIG  = $(NW_LOCALIZE_DIR)/$(SOLUTION_NAME)LocalizationConfig.xml


#----------------------------------------------------------------------------

do-build:   $(TARGETS)

do-install:
	install -d $(INSTALL_DIR)/CoreModules
	install $(BINDIR)/CoreModules/WeifenLuo.WinFormsUI.Docking.dll $(INSTALL_DIR)/CoreModules
	install -d $(INSTALL_DIR)/Addins
	install $(BINDIR)/Addins/*.xml $(INSTALL_DIR)/Addins
	install $(BINDIR)/Addins/*.xaml $(INSTALL_DIR)/Addins
	install $(BINDIR)/Addins/*.cs $(INSTALL_DIR)/Addins
	install -d $(INSTALL_DIR)/Converter
	install -d $(INSTALL_DIR)/Converter/shader
	install $(BINDIR)/Converter/shader/*.dll $(INSTALL_DIR)/Converter/shader
	install $(BINDIR)/Converter/shader/*.fsh $(INSTALL_DIR)/Converter/shader
	install $(BINDIR)/Converter/shader/*.vsh $(INSTALL_DIR)/Converter/shader
#	install $(BINDIR)/Converter/shader/*.gsh $(INSTALL_DIR)/Converter/shader
	install $(BINDIR)/Converter/shader/*.glsl $(INSTALL_DIR)/Converter/shader
	cp -r $(BINDIR)/g3dxsd $(INSTALL_DIR)
	chmod 755 -R $(INSTALL_DIR)/g3dxsd
	install -d $(INSTALL_DIR)/Primitives
	install $(BINDIR)/Primitives/* $(INSTALL_DIR)/Primitives
	install -d $(INSTALL_DIR)/Presets
ifneq '' '$(call test-nw-bool-var,NW_LOCALIZE)'
	install -d $(NW_SRCTREE_ROOT)/Tool/localization/EffectMaker
endif

include $(NW_BUILDTOOLSDIR)/modulerules.vs.mk


#===== End of Makefile =====
