Slight change to ProductInfo.h. Now just enter the strings without quotes in the PRODUCT_{NAME,VER}_BARE defines but still use PRODUCT_{NAME,VER} or PRODUCT_NAME_VER in the code.

Use PRODUCT_{NAME,VER}_BARE in the Info.plist instead of having to hand code that for every release (and forgetting for about a third of them).
This commit is contained in:
Steve Checkoway
2005-11-02 09:18:39 +00:00
parent 81c631e936
commit 937721f718
3 changed files with 20 additions and 8 deletions
+5 -5
View File
@@ -7,23 +7,23 @@
<key>CFBundleExecutable</key>
<string>StepMania</string>
<key>CFBundleGetInfoString</key>
<string>StepMania 4.0 CVS</string>
<string>PRODUCT_NAME_BARE PRODUCT_VER_BARE</string>
<key>CFBundleIconFile</key>
<string>smicon.icns</string>
<key>CFBundleIdentifier</key>
<string>StepMania</string>
<string>PRODUCT_NAME_BARE</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>StepMania</string>
<string>PRODUCT_NAME_BARE</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.0 CVS</string>
<string>PRODUCT_VER</string>
<key>CFBundleSignature</key>
<string>Step</string>
<key>CFBundleVersion</key>
<string>4.0</string>
<string>PRODUCT_VER_BARE</string>
<key>LSMinimumSystemVersion</key>
<string>10.2.8</string>
<key>NSHumanReadableCopyright</key>
@@ -4235,6 +4235,8 @@
"$(SDKROOT)/usr/include",
);
INFOPLIST_FILE = "Info-StepMania.plist";
INFOPLIST_PREFIX_HEADER = "$(SRCROOT)/../src/ProductInfo.h";
INFOPLIST_PREPROCESS = YES;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
"$(SDKROOT)/usr/lib",
@@ -4376,6 +4378,8 @@
"$(SYSTEM_LIBRARY_DIR)/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Versions/A/Headers",
);
INFOPLIST_FILE = "Info-StepMania.plist";
INFOPLIST_PREFIX_HEADER = "$(SRCROOT)/../src/ProductInfo.h";
INFOPLIST_PREPROCESS = YES;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
/usr/lib,
+11 -3
View File
@@ -5,9 +5,17 @@
// Don't forget to also change ProductInfo.inc!
#define PRODUCT_NAME "StepMania"
#define PRODUCT_VER "4.0 CVS"
//#define PRODUCT_VER "4.0 alpha 1"
// Change these two
#define PRODUCT_NAME_BARE StepMania
#define PRODUCT_VER_BARE 4.0 CVS
//#define PRODUCT_VER_BARE 4.0 alpha 1
// These cannot be #undef'd so make them unlikely to conflict with anything
#define PRODUCT_STRINGIFY(x) #x
#define PRODUCT_XSTRINGIFY(x) PRODUCT_STRINGIFY(x)
#define PRODUCT_NAME PRODUCT_XSTRINGIFY(PRODUCT_NAME_BARE)
#define PRODUCT_VER PRODUCT_XSTRINGIFY(PRODUCT_VER_BARE)
#define PRODUCT_NAME_VER PRODUCT_NAME " " PRODUCT_VER
#define VIDEO_TROUBLESHOOTING_URL "http://www.stepmania.com/stepmania/mediawiki.php?title=Video_Driver_Troubleshooting"