Skip to content

Commit

Permalink
[Fwd-port] Apply latest changes to Xcode project from 1.14 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hrubymar10 committed Jan 31, 2019
1 parent ed3e1ac commit 8629cbf
Show file tree
Hide file tree
Showing 11 changed files with 140 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -36,6 +36,7 @@ projectfiles/Xcode/**/*.mode1v3
projectfiles/Xcode/**/*.pbxuser
projectfiles/Xcode/**/xcuserdata
projectfiles/Xcode/**/*.xcworkspace
!projectfiles/Xcode/**/project.pbxproj

# CodeBlocks
projectfiles/**/.clang
Expand Down
2 changes: 1 addition & 1 deletion projectfiles/Xcode/Fix_Xcode_Dependencies
Expand Up @@ -50,7 +50,7 @@ if [ -z "$MY_PATH" ] ; then
fi
cd "$MY_PATH"

if ! [ -d "Wesnoth.xcodeproj" ]; then
if ! [ -d "The Battle for Wesnoth.xcodeproj" ]; then
echo "Error: I am in bad directory! I must be in wesnoth/projectfiles/Xcode !" >&2
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion projectfiles/Xcode/README.md
Expand Up @@ -35,7 +35,7 @@ Builds for maximum compiling speed, and uses the current OS as the SDK. If you j
2. Use `Finder` to navigate into `wesnoth/projectfiles/Xcode` . And now, there will be 2 options.
3. Double click on `Fix_Xcode_Dependencies` script and wait until it will be done.
5. (Optional) Compile translations as it is described in **Translations** section.
6. Now you can open `Wesnoth.xcodeproj` file in Xcode.
6. Now you can open `The Battle for Wesnoth.xcodeproj` file in Xcode.

## Translations
To compile translations you need `gettext-tools` and `scons`. You can obtain these tools using `brew install gettext scons`. In the Terminal, `cd` to the Wesnoth root directory, and run `scons translations`. This will compile all the translations into a translations directory.
Expand Down
55 changes: 34 additions & 21 deletions projectfiles/Xcode/Resources/SDLMain.nib/designable.nib

Large diffs are not rendered by default.

Binary file modified projectfiles/Xcode/Resources/SDLMain.nib/keyedobjects.nib
Binary file not shown.
12 changes: 12 additions & 0 deletions projectfiles/Xcode/Resources/Wesnoth.entitlements
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions projectfiles/Xcode/Resources/container-migration.plist
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Move</key>
<array>
<string>${ApplicationSupport}/Wesnoth_1.15</string>
</array>
</dict>
</plist>
Expand Up @@ -97,6 +97,7 @@
46BED4DA2050711600842FA5 /* scenario-story.cfg in Copy Data Files */ = {isa = PBXBuildFile; fileRef = 46BED4D92050710800842FA5 /* scenario-story.cfg */; };
46EEFB762087434300E1E75A /* chat_log.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46EEFB742087434200E1E75A /* chat_log.cpp */; };
46EEFB772087434300E1E75A /* chat_log.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46EEFB742087434200E1E75A /* chat_log.cpp */; };
46F302EE220327FE0028938F /* container-migration.plist in Resources */ = {isa = PBXBuildFile; fileRef = 46F302EC220327FD0028938F /* container-migration.plist */; };
46F54C27211DFB7200374A1C /* apple_version.mm in Sources */ = {isa = PBXBuildFile; fileRef = 46F54C26211DFB7200374A1C /* apple_version.mm */; };
46F57084205FCE34007031BF /* base64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 469BDB53205C357400DBF748 /* base64.cpp */; };
46F57085205FCE48007031BF /* crypt_blowfish.c in Sources */ = {isa = PBXBuildFile; fileRef = 46BED4D1205060EA00842FA5 /* crypt_blowfish.c */; };
Expand Down Expand Up @@ -1505,7 +1506,7 @@
468C1B951F09245E002DF652 /* function_gamestate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = function_gamestate.cpp; sourceTree = "<group>"; };
468C1B961F09245E002DF652 /* function_gamestate.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = function_gamestate.hpp; sourceTree = "<group>"; };
469BDB53205C357400DBF748 /* base64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = base64.cpp; sourceTree = "<group>"; };
469DD17E21F89888008ECF5F /* Vorbis.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Vorbis.framework; path = "lib/Vorbis.framework"; sourceTree = "<group>"; };
469DD17E21F89888008ECF5F /* Vorbis.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Vorbis.framework; path = lib/Vorbis.framework; sourceTree = "<group>"; };
46B58F4121E097900070BB8E /* parse_network_address.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = parse_network_address.cpp; sourceTree = "<group>"; };
46B58F4221E097900070BB8E /* parse_network_address.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = parse_network_address.hpp; sourceTree = "<group>"; };
46BAF784206672240004711F /* libboost_chrono-mt.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libboost_chrono-mt.dylib"; path = "lib/libboost_chrono-mt.dylib"; sourceTree = "<group>"; };
Expand All @@ -1523,6 +1524,8 @@
46DF5BCC1F46173700BE6D24 /* irdya_datetime.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = irdya_datetime.cpp; sourceTree = "<group>"; };
46EEFB742087434200E1E75A /* chat_log.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = chat_log.cpp; sourceTree = "<group>"; };
46EEFB752087434200E1E75A /* chat_log.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = chat_log.hpp; sourceTree = "<group>"; };
46F302EC220327FD0028938F /* container-migration.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "container-migration.plist"; path = "Resources/container-migration.plist"; sourceTree = "<group>"; };
46F302ED220327FE0028938F /* Wesnoth.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; name = Wesnoth.entitlements; path = Resources/Wesnoth.entitlements; sourceTree = "<group>"; };
46F54C26211DFB7200374A1C /* apple_version.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = apple_version.mm; path = ../../src/desktop/apple_version.mm; sourceTree = "<group>"; };
46F54C28211DFB9100374A1C /* apple_version.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = apple_version.hpp; path = ../../src/desktop/apple_version.hpp; sourceTree = "<group>"; };
46F5709D205FF856007031BF /* fs_commit.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = fs_commit.hpp; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2012,7 +2015,7 @@
62D24F331519994300350848 /* palette_manager.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = palette_manager.hpp; sourceTree = "<group>"; };
62D24F341519995200350848 /* palette_manager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = palette_manager.cpp; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* Wesnoth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Wesnoth.app; sourceTree = BUILT_PRODUCTS_DIR; };
8D1107320486CEB800E47090 /* The Battle for Wesnoth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "The Battle for Wesnoth.app"; sourceTree = BUILT_PRODUCTS_DIR; };
903F959B1ED5489500F1BDD3 /* credentials.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = credentials.cpp; path = preferences/credentials.cpp; sourceTree = "<group>"; };
903F959D1ED5489D00F1BDD3 /* credentials.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = credentials.hpp; path = preferences/credentials.hpp; sourceTree = "<group>"; };
90606A2A1D5599BA00719B40 /* libpcre.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpcre.1.dylib; path = lib/libpcre.1.dylib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2970,7 +2973,7 @@
19C28FACFE9D520D11CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
8D1107320486CEB800E47090 /* Wesnoth.app */,
8D1107320486CEB800E47090 /* The Battle for Wesnoth.app */,
B5BB6B4B0F890FBA00444FBF /* wesnothd */,
B597C4980FACD3CD00CE81F5 /* unit_tests */,
91C548CE1D8866ED00FE6A7B /* campaignd */,
Expand Down Expand Up @@ -3270,6 +3273,7 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
46F302EC220327FD0028938F /* container-migration.plist */,
91273E541C7BF141005E7F81 /* data */,
B5A9914A0ECA4064002BE442 /* fonts */,
B5A9BE290ECE927C002BE442 /* icon.icns */,
Expand All @@ -3279,16 +3283,16 @@
4654109E2078BC02002BCD13 /* l10n-track */,
B5BB6EFD0F93B83500444FBF /* SDLMain.nib */,
B5A9B2140ECA4074002BE442 /* sounds */,
46F302ED220327FE0028938F /* Wesnoth.entitlements */,
);
name = Resources;
sourceTree = "<group>";
};
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
469DD17E21F89888008ECF5F /* Vorbis.framework */,
46BCC904211A1E68003BDB8C /* IOKit.framework */,
1058C7A2FEA54F0111CA2CBB /* Included Frameworks */,
46BCC904211A1E68003BDB8C /* IOKit.framework */,
46BAF784206672240004711F /* libboost_chrono-mt.dylib */,
ECF9D43F19F4026D00E6C9D9 /* libboost_filesystem-mt.dylib */,
F4EF0D4B13AD4D53003C701D /* libboost_iostreams-mt.dylib */,
Expand Down Expand Up @@ -3324,6 +3328,7 @@
EC5C243A18EF07B4001FA499 /* libz.1.dylib */,
1058C7A0FEA54F0111CA2CBB /* Linked System Frameworks */,
B5A5E3AD12132C790047782D /* lua */,
469DD17E21F89888008ECF5F /* Vorbis.framework */,
90606A2A1D5599BA00719B40 /* libpcre.1.dylib */,
);
name = Frameworks;
Expand Down Expand Up @@ -4826,9 +4831,9 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
8D1107260486CEB800E47090 /* Wesnoth */ = {
8D1107260486CEB800E47090 /* The Battle for Wesnoth */ = {
isa = PBXNativeTarget;
buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Wesnoth" */;
buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "The Battle for Wesnoth" */;
buildPhases = (
46B626461D635BC900863502 /* Update Revision.h */,
8D11072C0486CEB800E47090 /* Sources */,
Expand All @@ -4845,10 +4850,10 @@
B5BB6DA50F93899E00444FBF /* PBXTargetDependency */,
9107AE391DB3295A001927B0 /* PBXTargetDependency */,
);
name = Wesnoth;
name = "The Battle for Wesnoth";
productInstallPath = "$(HOME)/Applications";
productName = Wesnoth;
productReference = 8D1107320486CEB800E47090 /* Wesnoth.app */;
productReference = 8D1107320486CEB800E47090 /* The Battle for Wesnoth.app */;
productType = "com.apple.product-type.application";
};
9107AE131DB32862001927B0 /* liblua */ = {
Expand Down Expand Up @@ -4926,7 +4931,7 @@
attributes = {
LastUpgradeCheck = 0900;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Wesnoth" */;
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "The Battle for Wesnoth" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
Expand All @@ -4940,7 +4945,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
8D1107260486CEB800E47090 /* Wesnoth */,
8D1107260486CEB800E47090 /* The Battle for Wesnoth */,
B5BB6B4A0F890FBA00444FBF /* wesnothd */,
B597C4970FACD3CD00CE81F5 /* unit_tests */,
91C548A01D8866ED00FE6A7B /* campaignd */,
Expand All @@ -4955,6 +4960,7 @@
buildActionMask = 2147483647;
files = (
465410A02078BC77002BCD13 /* l10n-track in Resources */,
46F302EE220327FE0028938F /* container-migration.plist in Resources */,
B5A9B2290ECA4074002BE442 /* fonts in Resources */,
B5A9BE2A0ECE927C002BE442 /* icon.icns in Resources */,
B5A9B22B0ECA4074002BE442 /* images in Resources */,
Expand All @@ -4980,7 +4986,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"$SOURCE_ROOT/../..\"\n./utils/autorevision.sh -t h > src/revision.h";
shellScript = "cd \"$SOURCE_ROOT/../..\"\n./utils/autorevision.sh -t h > src/revision.h\n";
};
91C2A6EB1B843AA900346948 /* Copy Translations (if present) */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -6382,6 +6388,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = Resources/Wesnoth.entitlements;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
Expand Down Expand Up @@ -6409,7 +6416,7 @@
"-llua",
);
PRODUCT_BUNDLE_IDENTIFIER = org.wesnoth.Wesnoth;
PRODUCT_NAME = Wesnoth;
PRODUCT_NAME = "The Battle for Wesnoth";
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand All @@ -6418,7 +6425,11 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = Resources/Wesnoth.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = N5CYW96P9T;
ENABLE_HARDENED_RUNTIME = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"LOCALEDIR=\\\"translations\\\"",
Expand All @@ -6430,6 +6441,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
OTHER_CODE_SIGN_FLAGS = "--force --deep";
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-include",
Expand All @@ -6442,7 +6454,7 @@
"-llua",
);
PRODUCT_BUNDLE_IDENTIFIER = org.wesnoth.Wesnoth;
PRODUCT_NAME = Wesnoth;
PRODUCT_NAME = "The Battle for Wesnoth";
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down Expand Up @@ -6614,7 +6626,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Wesnoth" */ = {
C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "The Battle for Wesnoth" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C01FCF4B08A954540054247B /* Debug */,
Expand All @@ -6623,7 +6635,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Wesnoth" */ = {
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "The Battle for Wesnoth" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C01FCF4F08A954540054247B /* Debug */,
Expand Down
Expand Up @@ -17,16 +17,16 @@
BlueprintIdentifier = "B597C4970FACD3CD00CE81F5"
BuildableName = "unit_tests"
BlueprintName = "unit_tests"
ReferencedContainer = "container:Wesnoth.xcodeproj">
ReferencedContainer = "container:The Battle for Wesnoth.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
Expand All @@ -35,27 +35,31 @@
BlueprintIdentifier = "B597C4970FACD3CD00CE81F5"
BuildableName = "unit_tests"
BlueprintName = "unit_tests"
ReferencedContainer = "container:Wesnoth.xcodeproj">
ReferencedContainer = "container:The Battle for Wesnoth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "YES"
customWorkingDirectory = "$BUILT_PRODUCTS_DIR/Wesnoth.app/Contents/Resources"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "NO"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B597C4970FACD3CD00CE81F5"
BuildableName = "unit_tests"
BlueprintName = "unit_tests"
ReferencedContainer = "container:Wesnoth.xcodeproj">
ReferencedContainer = "container:The Battle for Wesnoth.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
Expand All @@ -79,17 +83,19 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release">
<BuildableProductRunnable>
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B597C4970FACD3CD00CE81F5"
BuildableName = "unit_tests"
BlueprintName = "unit_tests"
ReferencedContainer = "container:Wesnoth.xcodeproj">
ReferencedContainer = "container:The Battle for Wesnoth.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
36 changes: 36 additions & 0 deletions src/filesystem.cpp
Expand Up @@ -543,8 +543,44 @@ static const std::string& get_version_path_suffix()
return suffix;
}

#if defined(__APPLE__) && !defined(__IPHONEOS__)
// Starting from Wesnoth 1.14.6, we have to use sandboxing function on macOS
// The problem is, that only signed builds can use sandbox. Unsigned builds
// would use other config directory then signed ones. So if we don't want
// to have two separate config dirs, we have to create symlink to new config
// location if exists. This part of code is only required on macOS.
static void migrate_apple_config_directory_for_unsandboxed_builds()
{
const char* home_str = getenv("HOME");
bfs::path home = home_str ? home_str : ".";

// We don't know which of the two is in PREFERENCES_DIR now.
boost::filesystem::path old_saves_dir = home / "Library/Application Support/Wesnoth_";
old_saves_dir += get_version_path_suffix();
boost::filesystem::path new_saves_dir = home / "Library/Containers/org.wesnoth.Wesnoth/Data/Library/Application Support/Wesnoth_";
new_saves_dir += get_version_path_suffix();

if(bfs::is_directory(new_saves_dir)) {
if(!bfs::exists(old_saves_dir)) {
std::cout << "Apple developer's userdata migration: ";
std::cout << "symlinking " << old_saves_dir << " to " << new_saves_dir << "\n";
bfs::create_symlink(new_saves_dir, old_saves_dir);
} else if(!bfs::symbolic_link_exists(old_saves_dir)) {
std::cout << "Apple developer's userdata migration: ";
std::cout << "Problem! Old (non-containerized) directory " << old_saves_dir << " is not a symlink. Your savegames are scattered around 2 locations.\n";
}
return;
}
}
#endif


static void setup_user_data_dir()
{
#if defined(__APPLE__) && !defined(__IPHONEOS__)
migrate_apple_config_directory_for_unsandboxed_builds();
#endif

if(!create_directory_if_missing_recursive(user_data_dir)) {
ERR_FS << "could not open or create user data directory at " << user_data_dir.string() << '\n';
return;
Expand Down
2 changes: 1 addition & 1 deletion utils/travis/steps/script.sh
Expand Up @@ -11,7 +11,7 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CCACHE_MAXSIZE=200M
export CCACHE_COMPILERCHECK=content

xcodebuild GCC_GENERATE_DEBUGGING_SYMBOLS=NO -project Wesnoth.xcodeproj -target Wesnoth -configuration Debug
xcodebuild GCC_GENERATE_DEBUGGING_SYMBOLS=NO -project "The Battle for Wesnoth.xcodeproj" -target "The Battle for Wesnoth" -configuration Debug

BUILD_RET=$?

Expand Down

0 comments on commit 8629cbf

Please sign in to comment.