Déja
Beyond the Mod
- Joined
- Dec 19, 2005
- Messages
- 353
Since VS2005's editor is so much better than VS2003, and you can get VC++ 2005 Express for free (google for it), I thought this would be nice solution for people to be able to use these superior tools to build the SDK.
****
Note
****
In theory, this should work for building using the SDK using Visual C++ 2005 Express, though I have not personally tested this.
There are also few lines in the makefile that should be changed to point to the correct path of your Visual C++ install, if it is not the default one.
**********
Instructions
**********
Simply download the makefile (attached below), rename it to "makefile.vs8", and follow the directions at the top of the makefile. I've copied and pasted the header from the makefile below:
Let me know if you test it with VC++ 2005 Express, so I can update the instructions to account for it better.
Also, feel free to reply here or PM me with any praise/scorn for this tool
Please don't forget to rename the file to makefile.vs8. The forums wouldn't let me attach it as a .vs8 file, so I had to go with makefile.vs8.txt
****
Note
****
In theory, this should work for building using the SDK using Visual C++ 2005 Express, though I have not personally tested this.
There are also few lines in the makefile that should be changed to point to the correct path of your Visual C++ install, if it is not the default one.
**********
Instructions
**********
Simply download the makefile (attached below), rename it to "makefile.vs8", and follow the directions at the top of the makefile. I've copied and pasted the header from the makefile below:
Code:
########################################################
#
# makefile.vs8
#
# A Makefile for the CivilizationIV CvGameCoreDLL
#
# Written by Déja Augustine (deja at sadgame.com)
#
########################################################
#
# ** NOTE **
# If you do not have VS2003 installed in its default location
# you will have to edit the VSINSTALLDIR and VCINSTALLDIR
# macros half-way down the file. You may have to change other
# options if you are using VC++ 2005 Express and the PlatformSDK.
#
# To build the project, use the following command, either from
# within VS2005 or on the command-line:
#
# > nmake /f makefile.vs8 all
#
# To build the debug configuration, use the following instead
#
# > nmake /f makefile.vs8 "DEBUGBUILD=_DEBUG" all
#
# * Note that whatever you supply for DEBUGBUILD will be added
# to the DLL's filename. The default _DEBUG would result in
# CvGameCoreDLL_DEBUG.dll. This can be left blank by using
# "DEBUGBUILD=" which would result in CvGameCoreDLL.dll
#
# You can also substitute clean or rebuild for all
#
# To configure VS8/VC8 to use the makefile, simply:
#
# 1. Open the project's properties screen and change
# Configuration Properties > General > Configuration Type to "Makefile"
#
# 2. Click Apply
#
# 3. Most of the options will disappear and you'll be left with General,
# Debugging and NMake. Under NMake, set the options to the following
# (for the final release):
#
# Build Command Line: nmake /f makefile.vs8 all
# Rebuild Command Line: nmake /f makefile.vs8 rebuild
# Clean Command Line: nmake /f makefile.vs8 clean
#
# 4. That's it! Now when you hit build/rebuild/clean it'll use the makefile
#
# The debug configuration can be changed in the same manner, using the
# "DEBUGBUILD=" flag as listed above.
#
# In order to add new .cpp files to the project it is necessary
# to make changes in two places. The first is the FILES macro,
# and the second is the list of object files at the bottom of
# the makefile. There are instructions on the format in each
# section
#
#########################################################
Let me know if you test it with VC++ 2005 Express, so I can update the instructions to account for it better.
Also, feel free to reply here or PM me with any praise/scorn for this tool

Please don't forget to rename the file to makefile.vs8. The forums wouldn't let me attach it as a .vs8 file, so I had to go with makefile.vs8.txt