Changeset 2253 for trunk


Ignore:
Timestamp:
Jan 21, 2013, 11:37:54 PM (7 years ago)
Author:
sam
Message:

build: replace \ with / on the PS3 instead of trying to escape backslashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/vs2010/Lol.Core.Rules.props

    r2252 r2253  
    1919      <PreprocessorDefinitions>NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    2020
    21       <!-- The "\\" replacement is a hack for the SNC VSI; the proper way to
    22            do that is using $([System.Text.RegularExpressions.Regex]...) -->
    23       <PreprocessorDefinitions>LOL_CONFIG_PROJECTDIR=\"$(ProjectDir.Replace('\\','\').Replace('\','\\'))\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
    24       <PreprocessorDefinitions>LOL_CONFIG_SOLUTIONDIR=\"$(SolutionDir.Replace('\\','\').Replace('\','\\'))\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
     21      <!-- Escape backslashes for C++, but replace \ with / on the PS3
     22           because the SNC VSI seems to have trouble with backslashes -->
     23      <PreprocessorDefinitions Condition="'$(Platform)'!='PS3'">LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\','\\'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
     24      <PreprocessorDefinitions Condition="'$(Platform)'!='PS3'">LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\','\\'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
     25      <PreprocessorDefinitions Condition="'$(Platform)'=='PS3'">LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
     26      <PreprocessorDefinitions Condition="'$(Platform)'=='PS3'">LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
    2527
    2628      <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
Note: See TracChangeset for help on using the changeset viewer.