Kaynağa Gözat

build: try to bypass a SNC VSI issue with string replacements.

legacy
Sam Hocevar sam 12 yıl önce
ebeveyn
işleme
b00282a79f
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. +6
    -2
      build/vs2010/Lol.Core.Rules.props

+ 6
- 2
build/vs2010/Lol.Core.Rules.props Dosyayı Görüntüle

@@ -17,8 +17,12 @@
<AdditionalIncludeDirectories Condition="'$(Platform)'=='Win32'">$(GlIncludes);$(SdlIncludes);$(D3d9Includes);$(XinputIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories Condition="'$(Platform)'=='x64'">$(GlIncludes);$(SdlIncludes);$(D3d9Includes);$(XinputIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\',"\\"))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\',"\\"))";%(PreprocessorDefinitions)</PreprocessorDefinitions>

<!-- The "\\" replacement is a hack for the SNC VSI; the proper way to
do that is using $([System.Text.RegularExpressions.Regex]...) -->
<PreprocessorDefinitions>LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)</PreprocessorDefinitions>

<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='Xbox 360'">_XBOX;$(XboxDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>


Yükleniyor…
İptal
Kaydet