Skip to content

Commit

Permalink
Xcode project update
Browse files Browse the repository at this point in the history
- accommodating for the new folder structure
- fixing YAML dependency
- minor text changes and cleanups
  • Loading branch information
Vasyl Zubko committed Sep 3, 2015
1 parent 19c589b commit c3c2511
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 33 deletions.
35 changes: 8 additions & 27 deletions xcode/OpenXcom.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/* Begin PBXBuildFile section */
5E5BA7DA1974481400F8E44F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E5BA7D91974481400F8E44F /* OpenGL.framework */; };
6B13748C1B9639EE00A43B58 /* TFTD in Resources */ = {isa = PBXBuildFile; fileRef = 6B13748A1B9639EE00A43B58 /* TFTD */; };
6B13748D1B9639EE00A43B58 /* UFO in Resources */ = {isa = PBXBuildFile; fileRef = 6B13748B1B9639EE00A43B58 /* UFO */; };
6BACF5FC19350F9700E1A981 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BACF5FB19350F9700E1A981 /* Cocoa.framework */; };
6BACF61419350F9700E1A981 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6BACF61319350F9700E1A981 /* Images.xcassets */; };
6BACF63119350FF800E1A981 /* SDLMain.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BACF63019350FF800E1A981 /* SDLMain.m */; };
Expand All @@ -19,36 +21,13 @@
6BB58D571936FB7500DF3F68 /* libSDL.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BB58D521936FB7500DF3F68 /* libSDL.a */; };
6BB58D581936FB7500DF3F68 /* libyaml-cpp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BB58D531936FB7500DF3F68 /* libyaml-cpp.a */; };
F21366471B89937900657DCE /* standard in Resources */ = {isa = PBXBuildFile; fileRef = F21366461B89937900657DCE /* standard */; };
F21366491B89939000657DCE /* standard in CopyFiles */ = {isa = PBXBuildFile; fileRef = F21366461B89937900657DCE /* standard */; };
F213664B1B8993A500657DCE /* common in Resources */ = {isa = PBXBuildFile; fileRef = F213664A1B8993A500657DCE /* common */; };
F213664D1B8993BC00657DCE /* common in CopyFiles */ = {isa = PBXBuildFile; fileRef = F213664A1B8993A500657DCE /* common */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
F21365801B8992B400657DCE /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 12;
dstPath = standard;
dstSubfolderSpec = 7;
files = (
F21366491B89939000657DCE /* standard in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F213664C1B8993B000657DCE /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = common;
dstSubfolderSpec = 7;
files = (
F213664D1B8993BC00657DCE /* common in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
5E5BA7D91974481400F8E44F /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; };
6B13748A1B9639EE00A43B58 /* TFTD */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TFTD; path = ../bin/TFTD; sourceTree = "<group>"; };
6B13748B1B9639EE00A43B58 /* UFO */ = {isa = PBXFileReference; lastKnownFileType = folder; name = UFO; path = ../bin/UFO; sourceTree = "<group>"; };
6BACF5F819350F9700E1A981 /* OpenXcom.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenXcom.app; sourceTree = BUILT_PRODUCTS_DIR; };
6BACF5FB19350F9700E1A981 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
6BACF5FE19350F9700E1A981 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -91,6 +70,8 @@
6BACF5EF19350F9700E1A981 = {
isa = PBXGroup;
children = (
6B13748A1B9639EE00A43B58 /* TFTD */,
6B13748B1B9639EE00A43B58 /* UFO */,
F213664A1B8993A500657DCE /* common */,
F21366461B89937900657DCE /* standard */,
6BACF60119350F9700E1A981 /* OpenXcom */,
Expand Down Expand Up @@ -164,8 +145,6 @@
6BACF5F419350F9700E1A981 /* Sources */,
6BACF5F519350F9700E1A981 /* Frameworks */,
6BACF5F619350F9700E1A981 /* Resources */,
F21365801B8992B400657DCE /* CopyFiles */,
F213664C1B8993B000657DCE /* CopyFiles */,
);
buildRules = (
);
Expand Down Expand Up @@ -208,11 +187,13 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6B13748C1B9639EE00A43B58 /* TFTD in Resources */,
F213664B1B8993A500657DCE /* common in Resources */,
6BACF61419350F9700E1A981 /* Images.xcassets in Resources */,
F21366471B89937900657DCE /* standard in Resources */,
6BB58D4E1936FADC00DF3F68 /* README.md in Resources */,
6BB58D4D1936FADC00DF3F68 /* CHANGELOG.txt in Resources */,
6B13748D1B9639EE00A43B58 /* UFO in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion xcode/OpenXcom/OpenXcom-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>git20140527</string>
<string>nightly</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.strategy-games</string>
<key>LSMinimumSystemVersion</key>
Expand Down
17 changes: 12 additions & 5 deletions xcode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If you want to save yourself the trouble - don’t do it manually, use Homebrew

This guide assumes you listened to the previous recommendation and had your dependencies installed with brew terminal command (for Homebrew), like this:
```
$ brew install yaml-cpp sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib
$ brew install cmake yaml-cpp —-with-static-lib sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib
```
or port terminal command (for MacPorts), like this:
```
Expand All @@ -20,12 +20,19 @@ $ sudo port install yaml-cpp+universal libsdl+universal libsdl_gfx+universal lib

1. Open the `OpenxXcom.xcodeproj` with Xcode. Right click on the project (on the left pane) and click 'Add files to "OpenxXcom"'. Select the 'src' directory from the root of the project. Don't copy the files and do create folder groups.

1. Create the directory `/Users/Shared/OpenXcom/` and move your original xcom data files (UFO and TFTD directories) there.
1. Push the ‘Build’ button and cross your fingers. Congratulations, you have a working build! But it is still unplayable though.

1. Find your newly created bundle in ‘./Build/Products/Release’ folder or otherwise 'DerivedData' (find it within your Xcode preferences), and copy it to some place you feel comfortable keeping your games in.

If you want to use the portable bundle, then:

1. Push the ‘Build’ button and cross your fingers ;)
1. Copy the relevant original game data files you possess into the ‘UFO’ (for UFO: Enemy Unknown) and/or ‘TFTD’ (for XCOM: Terror from the Deep) folder within the bundle respectively. If asked by the system what to do with the files and folders already present there, select ‘Merge’.

Or, if you prefer to keep your build always separate from the game data files for various reasons:

1. Create the directory `/Users/Shared/OpenXcom/` and move your original xcom data files (UFO and TFTD directories) there.

1. Find your newly created bundle in ‘./Build/Products/Release’ folder and copy it to some place you feel comfortable keeping your games in.

1. Enjoy!

Should you require any further assistance regarding the OSX build - feel free to ask around on the official forums - http://openxcom.org/forum/ or contact me directly on GitHub - http://github.com/rcreasey
Should you require any further assistance regarding the OSX build - feel free to ask around on the official forums - http://openxcom.org/forum/ or contact us directly on GitHub - http://github.com/luciderous, http://github.com/rcreasey

0 comments on commit c3c2511

Please sign in to comment.