浏览代码

msbuild: more robust handling of NDA property sheets

main
Sam Hocevar 8 个月前
父节点
当前提交
0779afc3f4
共有 5 个文件被更改,包括 19 次插入20 次删除
  1. +2
    -0
      msbuild/default.props
  2. +1
    -2
      msbuild/default.targets
  3. +2
    -3
      msbuild/kore.props
  4. +12
    -6
      msbuild/nda.props
  5. +2
    -9
      msbuild/vars.props

+ 2
- 0
msbuild/default.props 查看文件

@@ -65,6 +65,8 @@
</PropertyGroup> </PropertyGroup>


<Import Project="$(LolEngineDir)msbuild/nda.props" /> <Import Project="$(LolEngineDir)msbuild/nda.props" />

<!-- Needs to be imported after nda.props -->
<Import Project="$(LolEngineDir)msbuild/kore.props" /> <Import Project="$(LolEngineDir)msbuild/kore.props" />


<!-- Override settings with the user’s build.config file --> <!-- Override settings with the user’s build.config file -->


+ 1
- 2
msbuild/default.targets 查看文件

@@ -15,8 +15,7 @@
<Import Project="$(LolEngineDir)msbuild/features.targets" /> <Import Project="$(LolEngineDir)msbuild/features.targets" />
<Import Project="$(LolEngineDir)msbuild/kore.targets" /> <Import Project="$(LolEngineDir)msbuild/kore.targets" />
<Import Project="$(LolEngineDir)msbuild/kore/shaders.targets" /> <Import Project="$(LolEngineDir)msbuild/kore/shaders.targets" />
<Import Project="$(LolNdaDirectory)/msbuild/platform.targets"
Condition="'$(LolNdaDirectory)'!='' and exists('$(LolNdaDirectory)/msbuild/platform.targets')" />
<Import Project="$(LolNdaPlatformTargets)" Condition="'$(LolNdaPlatformTargetsFound)'=='true'" />
</ImportGroup> </ImportGroup>


<!-- Re-add our sanity checks first, in case Microsoft.Cpp.targets meddled with the task priorities. --> <!-- Re-add our sanity checks first, in case Microsoft.Cpp.targets meddled with the task priorities. -->


+ 2
- 3
msbuild/kore.props 查看文件

@@ -90,8 +90,7 @@
- Kore support for NDA platforms - Kore support for NDA platforms
--> -->


<Import Project="$(LolNdaDirectory)/msbuild/kore.props"
Condition="'$(LolNdaDirectory)'!='' and exists('$(LolNdaDirectory)/msbuild/kore.props')" />
<Import Project="$(LolNdaKoreProps)" Condition="'$(LolNdaKorePropsFound)'=='true'" />


<!-- <!--
- Compile and link with Kore if enabled - Compile and link with Kore if enabled
@@ -127,7 +126,7 @@
Text="project $(ProjectName) configured for Kore but '$(KoreDirectory)/make' was not found; is the repository up to date?" /> Text="project $(ProjectName) configured for Kore but '$(KoreDirectory)/make' was not found; is the repository up to date?" />


<Error Condition="'$(LolNdaPlatform)'!='' and '$(KoreNdaDirectory)'==''" <Error Condition="'$(LolNdaPlatform)'!='' and '$(KoreNdaDirectory)'==''"
Text="NDA platform '$(Platform)' selected, but '$(LolNdaDirectory)/msbuild/config.props' did not define %24(KoreNdaDirectory); is the '$(LolNdaRepository)' repository up-to-date?" />
Text="NDA platform '$(Platform)' selected, but '$(LolNdaPlatformProps)' did not define %24(KoreNdaDirectory); is the '$(LolNdaRepository)' repository up-to-date?" />


<Error Condition="'$(KoreNdaDirectory)'!='' and !exists('$(KoreNdaDirectory)/kincfile.js')" <Error Condition="'$(KoreNdaDirectory)'!='' and !exists('$(KoreNdaDirectory)/kincfile.js')"
Text="NDA platform '$(Platform)' selected, but '$(KoreNdaDirectory)/kincfile.js' was not found; are the '$(LolNdaDirectory)' submodules up-to-date?" /> Text="NDA platform '$(Platform)' selected, but '$(KoreNdaDirectory)/kincfile.js' was not found; are the '$(LolNdaDirectory)' submodules up-to-date?" />


+ 12
- 6
msbuild/nda.props 查看文件

@@ -16,14 +16,20 @@
- because it does not support subpaths. --> - because it does not support subpaths. -->
<PropertyGroup> <PropertyGroup>
<LolNdaRepository>lol-$(LolNdaPlatform)</LolNdaRepository> <LolNdaRepository>lol-$(LolNdaPlatform)</LolNdaRepository>
<_Temp>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), $(LolNdaRepository)/msbuild/config.props))</_Temp>
<_Temp>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), $(LolNdaRepository)/msbuild/platform.props))</_Temp>
<LolNdaDirectory Condition="'$(_Temp)'!=''">$(_Temp)/$(LolNdaRepository)</LolNdaDirectory> <LolNdaDirectory Condition="'$(_Temp)'!=''">$(_Temp)/$(LolNdaRepository)</LolNdaDirectory>


<LolNdaConfigProps>$(LolNdaDirectory)/msbuild/config.props</LolNdaConfigProps>
<LolNdaConfigPropsFound Condition="exists('$(LolNdaConfigProps)')">true</LolNdaConfigPropsFound>
<LolNdaPlatformProps>$(LolNdaDirectory)/msbuild/platform.props</LolNdaPlatformProps>
<LolNdaPlatformPropsFound>$([System.IO.File]::Exists($(LolNdaPlatformProps)))</LolNdaPlatformPropsFound>

<LolNdaKoreProps>$(LolNdaDirectory)/msbuild/kore.props</LolNdaKoreProps>
<LolNdaKorePropsFound>$([System.IO.File]::Exists($(LolNdaKoreProps)))</LolNdaKorePropsFound>

<LolNdaPlatformTargets>$(LolNdaDirectory)/msbuild/platform.targets</LolNdaPlatformTargets>
<LolNdaPlatformTargetsFound>$([System.IO.File]::Exists($(LolNdaPlatformTargets)))</LolNdaPlatformTargetsFound>
</PropertyGroup> </PropertyGroup>


<Import Project="$(LolNdaConfigProps)" Condition="$(LolNdaConfigPropsFound)" />
<Import Project="$(LolNdaPlatformProps)" Condition="'$(LolNdaPlatformPropsFound)'=='true'" />


<!-- <!--
- Sanity checks - Sanity checks
@@ -34,8 +40,8 @@
<Error Condition="'$(LolNdaPlatform)'!='' and '$(LolNdaDirectory)'==''" <Error Condition="'$(LolNdaPlatform)'!='' and '$(LolNdaDirectory)'==''"
Text="NDA platform $(LolNdaPlatform) selected but support repository $(LolNdaRepository) was not found" /> Text="NDA platform $(LolNdaPlatform) selected but support repository $(LolNdaRepository) was not found" />


<Error Condition="'$(LolNdaPlatform)'!='' and !$(LolNdaConfigPropsFound)"
Text="NDA platform '$(Platform)' selected, but '$(LolNdaConfigProps)' was not found; is the '$(LolNdaRepository)' repository up-to-date?" />
<Error Condition="'$(LolNdaPlatform)'!='' and !$(LolNdaPlatformPropsFound)"
Text="NDA platform '$(Platform)' selected, but '$(LolNdaPlatformProps)' was not found; is the '$(LolNdaRepository)' repository up-to-date?" />


</Target> </Target>




+ 2
- 9
msbuild/vars.props 查看文件

@@ -65,21 +65,14 @@
</PropertyGroup> </PropertyGroup>


<!-- <!--
- Build tasks
- Build tasks and rules
--> -->


<ImportGroup Label="PropertySheets"> <ImportGroup Label="PropertySheets">
<Import Project="$(LolEngineDir)msbuild/embed/task.props" /> <Import Project="$(LolEngineDir)msbuild/embed/task.props" />
<Import Project="$(LolEngineDir)msbuild/rules.props" />
</ImportGroup> </ImportGroup>


<!--
- Build rules
-->

<Import Project="$(LolNdaDirectory)/msbuild/rules.props"
Condition="'$(LolNdaDirectory)'!='' and exists('$(LolNdaDirectory)/msbuild/rules.props')" />
<Import Project="$(LolEngineDir)msbuild/rules.props" />

<ItemDefinitionGroup /> <ItemDefinitionGroup />


<!-- <!--


正在加载...
取消
保存