| 1 | <?xml version="1.0" encoding="shift-jis"?>
|
|---|
| 2 | <!--
|
|---|
| 3 | Copyright (c) 2008, Kouji Yamaguchi
|
|---|
| 4 | All rights reserved.
|
|---|
| 5 |
|
|---|
| 6 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|---|
| 7 |
|
|---|
| 8 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|---|
| 9 |
|
|---|
| 10 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|---|
| 11 |
|
|---|
| 12 | * Neither the name of coma2n nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|---|
| 13 |
|
|---|
| 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|---|
| 15 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|---|
| 16 | IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|---|
| 17 | OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|---|
| 18 | OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|---|
| 19 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|---|
| 20 | -->
|
|---|
| 21 | <project xmlns="http://nant.sf.net/release/0.85/nant.xsd"
|
|---|
| 22 | name="Dotnet.PowerShell.PSTodo" default="build" basedir="../">
|
|---|
| 23 |
|
|---|
| 24 | <!-- �t���[�����[�N�̃o�[�W���� -->
|
|---|
| 25 | <property name="framework.ver" value="${framework::get-target-framework()}" />
|
|---|
| 26 | <!-- �v���W�F�N�g�̖��O -->
|
|---|
| 27 | <property name="project.name" value="${project::get-name()}" />
|
|---|
| 28 |
|
|---|
| 29 | <!-- �\�[�X�f�B���N�g�� -->
|
|---|
| 30 | <property name="src.dir" value="src/${project.name}/" />
|
|---|
| 31 | <!-- �r���h�̎� -->
|
|---|
| 32 | <property name="configuration" value="Release" />
|
|---|
| 33 |
|
|---|
| 34 | <!-- �o�̓t�@�C�� -->
|
|---|
| 35 | <property name="out.file" value="bin/${framework.ver}/${project.name}.dll" />
|
|---|
| 36 | <!-- �A�Z���u���̊��S�����>
|
|---|
| 37 | <property name="assembly.name"
|
|---|
| 38 | value='"${project.name}, culture=neutral, publicKeyToken=00e182375cf5cfbd, version=0.1.0.0"'
|
|---|
| 39 | />
|
|---|
| 40 |
|
|---|
| 41 | <!-- MSBuild�c�[���̃p�X�iVS2005�p�j -->
|
|---|
| 42 | <property name="msbuild" value="${environment::get-variable('windir')}\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe" />
|
|---|
| 43 | <!-- gacutil�c�[���̃p�X -->
|
|---|
| 44 | <property name="gacutil" value="${environment::get-variable('VS80COMNTOOLS')}..\..\SDK\v2.0\Bin\gacutil.exe" />
|
|---|
| 45 | <!-- installutil�c�[���̃p�X -->
|
|---|
| 46 | <property name="installutil" value="${environment::get-variable('windir')}\Microsoft.NET\Framework\v2.0.50727\installutil.exe" />
|
|---|
| 47 |
|
|---|
| 48 | <target name="build" description="�\�[�X����h���܂�" depends="clean">
|
|---|
| 49 | <if test="${framework.ver == 'net-1.1'}">
|
|---|
| 50 | <fail message="net-1.1 version is not supported" />
|
|---|
| 51 | </if>
|
|---|
| 52 | <if test="${framework::get-target-framework() == 'net-2.0'}">
|
|---|
| 53 | <exec program="${msbuild}"
|
|---|
| 54 | commandline="/p:Configuration=${configuration} ${src.dir}${project.name}.2005.csproj" />
|
|---|
| 55 | </if>
|
|---|
| 56 | </target>
|
|---|
| 57 |
|
|---|
| 58 | <target name="debug" description="�\�[�X��ug���[�h�Ńr���h���܂�">
|
|---|
| 59 | <property name="configuration" value="Debug" />
|
|---|
| 60 |
|
|---|
| 61 | <call target="build" />
|
|---|
| 62 | </target>
|
|---|
| 63 |
|
|---|
| 64 | <target name="clean" description="�o�̓t�@�C��������܂�">
|
|---|
| 65 | <!-- �o�̓L���b�V���������->
|
|---|
| 66 | <delete failonerror="false" dir="${src.dir}bin" />
|
|---|
| 67 | <delete failonerror="false" dir="${src.dir}obj" />
|
|---|
| 68 | </target>
|
|---|
| 69 |
|
|---|
| 70 | <target name="install" description="���W���[������X�g�[�����܂�">
|
|---|
| 71 | <exec program="${gacutil}" commandline="/f /i ${out.file}" />
|
|---|
| 72 | <exec program="${installutil}" commandline='/AssemblyName ${assembly.name}' />
|
|---|
| 73 | </target>
|
|---|
| 74 |
|
|---|
| 75 | <target name="uninstall" description="���W���[������C���X�g�[�����܂�">
|
|---|
| 76 | <exec program="${installutil}" commandline='/u /AssemblyName ${assembly.name}' />
|
|---|
| 77 | <exec program="${gacutil}" commandline="/u ${project::get-name()}" />
|
|---|
| 78 | </target>
|
|---|
| 79 |
|
|---|
| 80 | <target name="install-debug" description="Debug���W���[������X�g�[�����܂�">
|
|---|
| 81 | <property name="out.file" value="${src.dir}bin/Debug/${project.name}.dll" />
|
|---|
| 82 |
|
|---|
| 83 | <exec program="${installutil}" commandline='${out.file}' />
|
|---|
| 84 | </target>
|
|---|
| 85 |
|
|---|
| 86 | <target name="uninstall-debug" description="Debug���W���[������C���X�g�[�����܂�">
|
|---|
| 87 | <property name="out.file" value="${src.dir}bin/Debug/${project.name}.dll" />
|
|---|
| 88 |
|
|---|
| 89 | <exec program="${installutil}" commandline='/u ${out.file}' />
|
|---|
| 90 | </target>
|
|---|
| 91 |
|
|---|
| 92 | </project> |
|---|