[tasque/xbuild] [MSBuild] Convert automake i18n build to MSBuild
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/xbuild] [MSBuild] Convert automake i18n build to MSBuild
- Date: Thu, 30 Aug 2012 20:45:24 +0000 (UTC)
commit 6d3a3afe8c1d20da37bb7844ba5af96b1887bec9
Author: Antonius Riha <antoniusriha gmail com>
Date: Thu Aug 30 22:41:04 2012 +0200
[MSBuild] Convert automake i18n build to MSBuild
MSBuild targets and resp. automake rules:
MSBuild (automake)
Build (all)
Rebuild
Clean (clean)
Install (install)
Update (update-po)
build/build.csproj | 3 +
po/po.mdproj | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++
tasque.sln | 8 +++
3 files changed, 142 insertions(+), 0 deletions(-)
---
diff --git a/build/build.csproj b/build/build.csproj
index c1aa169..98ddd82 100644
--- a/build/build.csproj
+++ b/build/build.csproj
@@ -68,6 +68,9 @@
<None Include="..\src\Addins\Backends\Sqlite\SqliteBackend.csproj">
<Link>Addins\Backends\SqliteBackend.csproj</Link>
</None>
+ <None Include="..\po\po.mdproj">
+ <Link>po.mdproj</Link>
+ </None>
</ItemGroup>
<ItemGroup>
<Folder Include="Addins\" />
diff --git a/po/po.mdproj b/po/po.mdproj
new file mode 100644
index 0000000..5ed0bba
--- /dev/null
+++ b/po/po.mdproj
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ItemType>TranslationProject</ItemType>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{51E65E50-71EE-4736-A47C-DA2ECF7F6793}</ProjectGuid>
+ <relPath>locale</relPath>
+ <outputType>RelativeToOutput</outputType>
+ <packageName>tasque</packageName>
+ <projectInformations>
+ <projectInformations>
+ <TranslationProjectInformation projectName="build" isIncluded="false" />
+ <TranslationProjectInformation projectName="tests" isIncluded="false" />
+ <TranslationProjectInformation projectName="RtmNet" isIncluded="false" />
+ <TranslationProjectInformation projectName="tasque" isIncluded="false" />
+ </projectInformations>
+ </projectInformations>
+ <translations>
+ <translations>
+ <Translation isoCode="ca" />
+ <Translation isoCode="ca valencia" />
+ <Translation isoCode="cs" />
+ <Translation isoCode="da" />
+ <Translation isoCode="de" />
+ <Translation isoCode="el" />
+ <Translation isoCode="en_GB" />
+ <Translation isoCode="eo" />
+ <Translation isoCode="es" />
+ <Translation isoCode="et" />
+ <Translation isoCode="fi" />
+ <Translation isoCode="fr" />
+ <Translation isoCode="gl" />
+ <Translation isoCode="hu" />
+ <Translation isoCode="id" />
+ <Translation isoCode="it" />
+ <Translation isoCode="ja" />
+ <Translation isoCode="lv" />
+ <Translation isoCode="nb" />
+ <Translation isoCode="nds" />
+ <Translation isoCode="nl" />
+ <Translation isoCode="ru" />
+ <Translation isoCode="pl" />
+ <Translation isoCode="pt" />
+ <Translation isoCode="pt_BR" />
+ <Translation isoCode="ro" />
+ <Translation isoCode="sl" />
+ <Translation isoCode="sr" />
+ <Translation isoCode="sr latin" />
+ <Translation isoCode="sv" />
+ <Translation isoCode="th" />
+ <Translation isoCode="tr" />
+ <Translation isoCode="zh_CN" />
+ <Translation isoCode="zh_TW" />
+ </translations>
+ </translations>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)' == 'Default' " />
+
+ <!-- The above is only for the MD Gettext addin, which provides a convenient environment for translation -->
+ <!-- Below are the xbuild instructions. New translations should be added to the GettextTranslation ItemGroup. -->
+
+ <ItemGroup>
+ <GettextTranslation Include="ca.po" />
+ <GettextTranslation Include="ca valencia po" />
+ <GettextTranslation Include="cs.po" />
+ <GettextTranslation Include="da.po" />
+ <GettextTranslation Include="de.po" />
+ <GettextTranslation Include="el.po" />
+ <GettextTranslation Include="en_GB.po" />
+ <GettextTranslation Include="eo.po" />
+ <GettextTranslation Include="es.po" />
+ <GettextTranslation Include="et.po" />
+ <GettextTranslation Include="fi.po" />
+ <GettextTranslation Include="fr.po" />
+ <GettextTranslation Include="gl.po" />
+ <GettextTranslation Include="hu.po" />
+ <GettextTranslation Include="id.po" />
+ <GettextTranslation Include="it.po" />
+ <GettextTranslation Include="ja.po" />
+ <GettextTranslation Include="lv.po" />
+ <GettextTranslation Include="nb.po" />
+ <GettextTranslation Include="nds.po" />
+ <GettextTranslation Include="nl.po" />
+ <GettextTranslation Include="pl.po" />
+ <GettextTranslation Include="pt_BR.po" />
+ <GettextTranslation Include="pt.po" />
+ <GettextTranslation Include="ro.po" />
+ <GettextTranslation Include="ru.po" />
+ <GettextTranslation Include="sl.po" />
+ <GettextTranslation Include="sr latin po" />
+ <GettextTranslation Include="sr.po" />
+ <GettextTranslation Include="sv.po" />
+ <GettextTranslation Include="th.po" />
+ <GettextTranslation Include="tr.po" />
+ <GettextTranslation Include="zh_CN.po" />
+ <GettextTranslation Include="zh_TW.po" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <Prefix Condition=" '$(Prefix)' == '' ">..\build\bin</Prefix>
+ <DataDir Condition=" '$(DataDir)' == '' ">$(Prefix)\share</DataDir>
+ <LocaleDir Condition=" '$(LocaleDir)' == '' ">$(DataDir)\locale</LocaleDir>
+ <MsgFmt>msgfmt</MsgFmt>
+ <IntlToolUpdate>intltool-update</IntlToolUpdate>
+ </PropertyGroup>
+ <PropertyGroup Condition="Exists('$(MSBuildProgramFiles32)\GnuWin32\bin\msgfmt.exe')">
+ <MsgFmt>$(MSBuildProgramFiles32)\GnuWin32\bin\msgfmt.exe</MsgFmt>
+ </PropertyGroup>
+ <PropertyGroup Condition="Exists('$(MSBuildProgramFiles32)\GnuWin32\bin\intltool-update.exe')">
+ <IntlToolUpdate>$(MSBuildProgramFiles32)\GnuWin32\bin\intltool-update.exe</IntlToolUpdate>
+ </PropertyGroup>
+ <Target Name="Rebuild" DependsOnTargets="Clean;Build" />
+ <Target Name="Build">
+ <Exec Command="$(MsgFmt) -o %(FileName).gmo @(GettextTranslation)" />
+ </Target>
+ <Target Name="Clean">
+ <Delete Files="%(GettextTranslation.FileName).gmo" />
+ </Target>
+ <Target Name="Install">
+ <Copy SourceFiles="%(GettextTranslation.FileName).gmo" DestinationFiles="$(DataDir)\%(GettextTranslation.FileName)\LC_MESSAGES\tasque.mo" />
+ </Target>
+ <Target Name="Update">
+ <Exec Command="$(IntlToolUpdate) --gettext-package tasque --pot" />
+ <Exec Command="$(IntlToolUpdate) --gettext-package tasque --dist -o %(GettextTranslation.FileName).new.po %(GettextTranslation.FileName)" />
+ <Copy SourceFiles="%(FileName).new.po" DestinationFiles="@(GettextTranslation)" />
+ <Delete Files="%(GettextTranslation.FileName).new.po" />
+ </Target>
+</Project>
diff --git a/tasque.sln b/tasque.sln
index 480802e..bcf7b7a 100644
--- a/tasque.sln
+++ b/tasque.sln
@@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoMac.Tasque", "src\MonoM
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "build", "build\build.csproj", "{BCC1964F-A6E3-4912-B120-6DA22C0EB294}"
EndProject
+Project("{9344bdbb-3e7f-41fc-a0dd-8665d75ee146}") = "po", "po\po.mdproj", "{51E65E50-71EE-4736-A47C-DA2ECF7F6793}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GtkLinuxDebug|Any CPU = GtkLinuxDebug|Any CPU
@@ -56,6 +58,12 @@ Global
{0F63E512-FD5A-482C-8389-6A0DBE1301CB}.MonoMacDebug|Any CPU.ActiveCfg = MonoMacDebug|Any CPU
{0F63E512-FD5A-482C-8389-6A0DBE1301CB}.MonoMacDebug|Any CPU.Build.0 = MonoMacDebug|Any CPU
{0F63E512-FD5A-482C-8389-6A0DBE1301CB}.MonoMacRelease|Any CPU.ActiveCfg = MonoMacDebug|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.GtkLinuxDebug|Any CPU.ActiveCfg = Default|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.GtkLinuxRelease|Any CPU.ActiveCfg = Default|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.GtkWinDebug|Any CPU.ActiveCfg = Default|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.GtkWinRelease|Any CPU.ActiveCfg = Default|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.MonoMacDebug|Any CPU.ActiveCfg = Default|Any CPU
+ {51E65E50-71EE-4736-A47C-DA2ECF7F6793}.MonoMacRelease|Any CPU.ActiveCfg = Default|Any CPU
{67188C62-9332-4402-8702-E8BC1CCA8D2F}.GtkLinuxDebug|Any CPU.ActiveCfg = Debug|Any CPU
{67188C62-9332-4402-8702-E8BC1CCA8D2F}.GtkLinuxRelease|Any CPU.ActiveCfg = Release|Any CPU
{67188C62-9332-4402-8702-E8BC1CCA8D2F}.GtkWinDebug|Any CPU.ActiveCfg = Debug|Any CPU
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]