forked from mirror/OpenTTD
Cleanup #6960: Remove parts of generate used only for MSVC pre-2015.
This commit is contained in:
@@ -124,17 +124,7 @@ load_main_data() {
|
||||
gsub(" ", "", $0);
|
||||
gsub("^#", "", $0);
|
||||
gsub("^ ", "", $0);
|
||||
|
||||
if (first_time != 0) {
|
||||
print "#1 </Filter>";
|
||||
} else {
|
||||
first_time = 1;
|
||||
}
|
||||
|
||||
filter = $0;
|
||||
print "#1 <Filter";
|
||||
print "#1 Name=\\""filter"\\"";
|
||||
print "#1 >";
|
||||
print "#3 <Filter Include=\\""filter"\\">";
|
||||
printf "#3 <UniqueIdentifier>{c76ff9f1-1e62-46d8-8d55-%012d}</UniqueIdentifier>\n", i;
|
||||
print "#3 </Filter>";
|
||||
@@ -148,10 +138,6 @@ load_main_data() {
|
||||
if (deep == skip) {
|
||||
gsub(" ", "", $0);
|
||||
gsub("/", "\\\\", $0);
|
||||
print "#1 <File";
|
||||
print "#1 RelativePath=\\".\\\\'$file_prefix'"$0"\\"";
|
||||
print "#1 >";
|
||||
print "#1 </File>";
|
||||
split($0, file, ".");
|
||||
cltype = "ClInclude"
|
||||
if (file[2] == "cpp") cltype = "ClCompile";
|
||||
@@ -162,7 +148,6 @@ load_main_data() {
|
||||
print "#4 </"cltype">";
|
||||
}
|
||||
}
|
||||
END { print "#1 </Filter>"; }
|
||||
'`"
|
||||
|
||||
eval "$2=\"\$RES\""
|
||||
@@ -180,21 +165,6 @@ load_lang_data() {
|
||||
continue
|
||||
fi
|
||||
RES="$RES
|
||||
#1 <File
|
||||
#1 RelativePath=\"..\\src\\lang\\"$i".txt\"
|
||||
#1 >
|
||||
#1 <FileConfiguration
|
||||
#1 Name=\"Debug|Win32\"
|
||||
#1 >
|
||||
#1 <Tool
|
||||
#1 Name=\"VCCustomBuildTool\"
|
||||
#1 Description=\"Generating "$i" language file\"
|
||||
#1 CommandLine=\"..\\objs\\strgen\\strgen.exe -s ..\\src\\lang -d ..\\bin\\lang "\$(InputPath)"
exit 0
\"
|
||||
#1 AdditionalDependencies=\"..\\src\\lang\\english.txt;..\\objs\\strgen\\strgen.exe\"
|
||||
#1 Outputs=\"..\\bin\\lang\\"$i".lng\"
|
||||
#1 />
|
||||
#1 </FileConfiguration>
|
||||
#1 </File>
|
||||
#2 <CustomBuild Include=\"..\\src\\lang\\"$i".txt\">
|
||||
#2 <Message Condition=\"'\$(Configuration)|\$(Platform)'=='Debug|Win32'\">Generating "$i" language file</Message>
|
||||
#2 <Command Condition=\"'\$(Configuration)|\$(Platform)'=='Debug|Win32'\">..\\objs\\strgen\\strgen.exe -s ..\\src\\lang -d ..\\bin\\lang \"%(FullPath)\"</Command>
|
||||
@@ -217,10 +187,6 @@ load_settings_data() {
|
||||
do
|
||||
i=`basename $i`
|
||||
RES="$RES
|
||||
#1 <File
|
||||
#1 RelativePath=\"..\\src\\table\\"$i"\"
|
||||
#1 >
|
||||
#1 </File>
|
||||
#2 <None Include=\"..\\src\\table\\"$i"\" />
|
||||
#4 <None Include=\"..\\src\\table\\"$i"\">
|
||||
#4 <Filter>INI</Filter>
|
||||
@@ -287,18 +253,15 @@ load_main_data "$ROOT_DIR/source.list" openttd
|
||||
openttdfiles=`echo "$openttd" | grep "^#4" | sed "s~#4~~g"`
|
||||
openttdfilters=`echo "$openttd" | grep "^#3" | sed "s~#3~~g"`
|
||||
openttdvcxproj=`echo "$openttd" | grep "^#2" | sed "s~#2~~g"`
|
||||
openttd=`echo "$openttd" | grep "^#1" | sed "s~#1~~g"`
|
||||
|
||||
load_lang_data "$ROOT_DIR/src/lang/*.txt" lang
|
||||
langfiles=`echo "$lang" | grep "^#3" | sed "s~#3~~g"`
|
||||
langvcxproj=`echo "$lang" | grep "^#2" | sed "s~#2~~g"`
|
||||
lang=`echo "$lang" | grep "^#1" | sed "s~#1~~g"`
|
||||
|
||||
load_settings_data "$ROOT_DIR/src/table/*.ini" settings
|
||||
settingsfiles=`echo "$settings" | grep "^#4" | sed "s~#4~~g"`
|
||||
settingscommand=`echo "$settings" | grep "^#3" | sed "s~#3~~g"`
|
||||
settingsvcxproj=`echo "$settings" | grep "^#2" | sed "s~#2~~g"`
|
||||
settings=`echo "$settings" | grep "^#1" | sed "s~#1~~g"`
|
||||
|
||||
generate "$openttdvcxproj" "openttd_vs140.vcxproj"
|
||||
generate "$openttdfiles" "openttd_vs140.vcxproj.filters" "$openttdfilters"
|
||||
|
Reference in New Issue
Block a user