151
edits
(Use <code> for better legibility) |
(→Installing Libraries: Mention SystemPropertiesAdvanced.exe shortcut, for better Windows versions/localisations portability) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 23: | Line 23: | ||
The easiest way to make Visual Studio find the supplied libraries is by using the environment variable <code>SCUMMVM_LIBS</code>. You can set it by performing the following steps: | The easiest way to make Visual Studio find the supplied libraries is by using the environment variable <code>SCUMMVM_LIBS</code>. You can set it by performing the following steps: | ||
* Unzip the library zip to a directory of your choice, for example <code>C:\Users\YourUsername\Documents\scummvm_libs_2015</code>. | * Unzip the library zip to a directory of your choice, for example <code>C:\Users\YourUsername\Documents\scummvm_libs_2015</code>. | ||
* Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables and add a new variable <code>SCUMMVM_LIBS</code> with a value of the path you extracted the zip in. It is important that you do point the variable to the folder containing the <code>bin\</code>, <code>include\</code>, and <code>lib\</code> directories. | * Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables (or <code>Win</code>+<code>R</code> and then <code>SystemPropertiesAdvanced.exe</code>) and add a new variable <code>SCUMMVM_LIBS</code> with a value of the path you extracted the zip in. It is important that you do point the variable to the folder containing the <code>bin\</code>, <code>include\</code>, and <code>lib\</code> directories. | ||
== Preparing the Project Files == | == Preparing the Project Files == | ||
Line 29: | Line 29: | ||
=== Building create_project === | === Building create_project === | ||
ScummVM uses a configure/Make based build system. We have a tool to generate Visual Studio project files from this build system. The first step you need to take is building this tool called | ScummVM uses a configure/Make based build system. We have a tool to generate Visual Studio project files from this build system. The first step you need to take is building this tool called <code>create_project.exe</code>. | ||
First, open the solution file <code>devtools\create_project\msvc\create_project.sln</code>. Then simply build the solution. The project file should automatically assure that the resulting <code>create_project.exe</code> is copied to <code>dists\msvc\</code>. | First, open the solution file <code>devtools\create_project\msvc\create_project.sln</code> (either from the File Explorer or from the File > Open project/solution menu). Then simply build the solution, with Build > Build solution. If this doesn't work, make sure that the Visual Studio C++ tools have been properly set up, as [[#Visual_Studio|explained above]]. | ||
The project file should automatically assure that the resulting <code>create_project.exe</code> is copied to <code>dists\msvc\</code>. | |||
=== Generating the Project Files === | === Generating the Project Files === | ||
Line 52: | Line 54: | ||
By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you can do one of the following: | By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you can do one of the following: | ||
* In the create_project command, add <code>--enable-text-console</code>. | * In the <code>create_project</code> command, add <code>--enable-text-console</code>. | ||
* In the Project Options for the ScummVM project, go to the Linker | System | SubSystem line, and change the <code>/SUBSYSTEM:WINDOWS</code> option to <code>/SUBSYSTEM:CONSOLE</code> | * In the Project Options for the ScummVM project, go to the Linker | System | SubSystem line, and change the <code>/SUBSYSTEM:WINDOWS</code> option to <code>/SUBSYSTEM:CONSOLE</code> |
edits