Microsoft.FSharp.SDK.Resources.swixproj 2.2 KB
Newer Older
O
Omar Tawfik 已提交
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
    <OutputArchitecture>neutral</OutputArchitecture>
O
Omar Tawfik 已提交
6
    <OutputLocalized>false</OutputLocalized>
O
Omar Tawfik 已提交
7
    <OutputType>manifest</OutputType>
8
    <OutputName>Microsoft.FSharp.SDK.Resources.$(LocaleCode)</OutputName>
9
    <IsPackage>true</IsPackage>
O
Omar Tawfik 已提交
10
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
11 12
    <BinariesFolder>$(FSharpSourcesRoot)\..\$(Configuration)</BinariesFolder>
    <OutputPath>$(BinariesFolder)\insertion</OutputPath>
O
Omar Tawfik 已提交
13 14 15 16 17
  </PropertyGroup>

  <Import Project="$(FSharpSourcesRoot)\Microbuild.Settings.targets" />

  <PropertyGroup>
18
    <PackagePreprocessorDefinitions>$(PackagePreprocessorDefinitions);BinariesFolder=$(BinariesFolder)</PackagePreprocessorDefinitions>
O
Omar Tawfik 已提交
19 20 21
    <PackagePreprocessorDefinitions>$(PackagePreprocessorDefinitions);LocaleCode=$(LocaleCode)</PackagePreprocessorDefinitions>
    <PackagePreprocessorDefinitions>$(PackagePreprocessorDefinitions);LocaleId=$(LocaleId)</PackagePreprocessorDefinitions>
    <PackagePreprocessorDefinitions>$(PackagePreprocessorDefinitions);LocaleRegion=$(LocaleRegion)</PackagePreprocessorDefinitions>
22
    <PackagePreprocessorDefinitions>$(PackagePreprocessorDefinitions);IsLangPack=$(IsLangPack)</PackagePreprocessorDefinitions>
O
Omar Tawfik 已提交
23 24
  </PropertyGroup>

25 26 27 28 29
  <ItemGroup Condition="'$(IsLangPack)' == 'false'">
    <Package Include="Empty.swr" />
  </ItemGroup>

  <ItemGroup Condition="'$(IsLangPack)' == 'true'">
30
    <Package Include="Files.swr" />
O
Omar Tawfik 已提交
31
  </ItemGroup>
O
Omar Tawfik 已提交
32
  
33 34 35 36
  <Target Name="GatherBinariesToBeSigned" AfterTargets="Localize">
    <!-- MSI is already signed before wrapping it here -->
  </Target>
  
O
Omar Tawfik 已提交
37 38 39 40
  <Target Name="CheckLocaleIsPassed" BeforeTargets="Compile">
    <Error Condition="'$(LocaleCode)' == ''" Text="A 'LocaleCode' property must be passed to the project." />
    <Error Condition="'$(LocaleId)' == ''" Text="A 'LocaleId' property must be passed to the project." />
    <Error Condition="'$(LocaleRegion)' == ''" Text="A 'LocaleRegion' property must be passed to the project." />
O
Omar Tawfik 已提交
41
    <Error Condition="'$(IsLangPack)' == ''" Text="A 'IsLangPack' property must be passed to the project." />
O
Omar Tawfik 已提交
42
  </Target>
O
Omar Tawfik 已提交
43
</Project>