aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project
diff options
context:
space:
mode:
authorSupSuper2018-12-19 04:13:49 +0000
committerFilippos Karapetis2018-12-23 18:39:06 +0200
commitddb3b6fba74be5d075fb811e1bb30427aeb56626 (patch)
treec4cf1e03321955dba7434d38fbc7c873d10bab63 /devtools/create_project
parent35ea621a4ef883b0735c827d5d5c126b86451e3c (diff)
downloadscummvm-rg350-ddb3b6fba74be5d075fb811e1bb30427aeb56626.tar.gz
scummvm-rg350-ddb3b6fba74be5d075fb811e1bb30427aeb56626.tar.bz2
scummvm-rg350-ddb3b6fba74be5d075fb811e1bb30427aeb56626.zip
MSVC: Fix resource file not including translations.dat
Diffstat (limited to 'devtools/create_project')
-rw-r--r--devtools/create_project/msbuild.cpp1
-rw-r--r--devtools/create_project/scripts/postbuild.cmd1
-rw-r--r--devtools/create_project/visualstudio.cpp1
3 files changed, 2 insertions, 1 deletions
diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
index ba4833eeb6..f260ad03f9 100644
--- a/devtools/create_project/msbuild.cpp
+++ b/devtools/create_project/msbuild.cpp
@@ -405,6 +405,7 @@ void MSBuildProvider::outputGlobalPropFile(const BuildSetup &setup, std::ofstrea
properties << "\t\t</Link>\n"
"\t\t<ResourceCompile>\n"
"\t\t\t<AdditionalIncludeDirectories>" << prefix << ";%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\n"
+ "\t\t\t<PreprocessorDefinitions>" << definesList << "%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
"\t\t</ResourceCompile>\n"
"\t</ItemDefinitionGroup>\n"
"</Project>\n";
diff --git a/devtools/create_project/scripts/postbuild.cmd b/devtools/create_project/scripts/postbuild.cmd
index 31d2a94416..e30d662eb7 100644
--- a/devtools/create_project/scripts/postbuild.cmd
+++ b/devtools/create_project/scripts/postbuild.cmd
@@ -27,7 +27,6 @@ xcopy /F /Y "%~4/lib/%~3/SDL.dll" "%~2" 1>NUL 2>&1
xcopy /F /Y "%~4/lib/%~3/freetype6.dll" "%~2" 1>NUL 2>&1
xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_default.zip" "%~2" 1>NUL 2>&1
xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_small.zip" "%~2" 1>NUL 2>&1
-xcopy /F /Y "%~1/gui/themes/translations.dat" "%~2" 1>NUL 2>&1
if "%~5"=="0" goto done
diff --git a/devtools/create_project/visualstudio.cpp b/devtools/create_project/visualstudio.cpp
index d63c347b17..f18d625874 100644
--- a/devtools/create_project/visualstudio.cpp
+++ b/devtools/create_project/visualstudio.cpp
@@ -259,6 +259,7 @@ void VisualStudioProvider::outputGlobalPropFile(const BuildSetup &setup, std::of
"\t<Tool\n"
"\t\tName=\"VCResourceCompilerTool\"\n"
"\t\tAdditionalIncludeDirectories=\"" << prefix << "\"\n"
+ "\t\tPreprocessorDefinitions=\"" << definesList << "\"\n"
"\t/>\n"
"</VisualStudioPropertySheet>\n";