diff --git a/sys/unix/.gitignore b/sys/unix/.gitignore new file mode 100644 index 000000000..775181f34 --- /dev/null +++ b/sys/unix/.gitignore @@ -0,0 +1 @@ +XCodeLocal.xcconfig diff --git a/sys/unix/NetHack.xcodeproj/project.pbxproj b/sys/unix/NetHack.xcodeproj/project.pbxproj index be5ae1524..48bce7083 100644 --- a/sys/unix/NetHack.xcodeproj/project.pbxproj +++ b/sys/unix/NetHack.xcodeproj/project.pbxproj @@ -330,6 +330,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 2A953FB221A3F404007906E5 /* XCode.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = XCode.xcconfig; sourceTree = ""; }; 3189577121A1FCC100FB2ABE /* NetHack */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = NetHack; sourceTree = BUILT_PRODUCTS_DIR; }; 3189577F21A1FDA400FB2ABE /* makedefs */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = makedefs; sourceTree = BUILT_PRODUCTS_DIR; }; 3192867B21A3ACAB00325BEB /* lev_comp.y */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.yacc; name = lev_comp.y; path = ../../util/lev_comp.y; sourceTree = ""; }; @@ -530,6 +531,7 @@ 3189576821A1FCC100FB2ABE = { isa = PBXGroup; children = ( + 2A953FB221A3F404007906E5 /* XCode.xcconfig */, 31B8A3F821A23E490055BD01 /* win */, 31B8A3E921A23CC40055BD01 /* sys */, 3189579621A2046700FB2ABE /* include */, @@ -1732,6 +1734,7 @@ /* Begin XCBuildConfiguration section */ 3189577621A1FCC100FB2ABE /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 2A953FB221A3F404007906E5 /* XCode.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -1813,6 +1816,7 @@ }; 3189577721A1FCC100FB2ABE /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 2A953FB221A3F404007906E5 /* XCode.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -1889,7 +1893,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; OTHER_CFLAGS = ( "-DNOMAIL", "-DNOTPARMDECL", @@ -1910,7 +1913,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; OTHER_CFLAGS = ( "-DNOMAIL", "-DNOTPARMDECL", @@ -1931,7 +1933,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -1940,7 +1941,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; @@ -1951,7 +1951,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1964,7 +1963,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1977,7 +1975,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1990,7 +1987,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2003,7 +1999,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2016,7 +2011,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2029,7 +2023,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2042,7 +2035,6 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = T4L96T5775; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/sys/unix/NetHack.xcodeproj/xcshareddata/xcschemes/recover.xcscheme b/sys/unix/NetHack.xcodeproj/xcshareddata/xcschemes/recover.xcscheme new file mode 100644 index 000000000..4a2449167 --- /dev/null +++ b/sys/unix/NetHack.xcodeproj/xcshareddata/xcschemes/recover.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sys/unix/XCode.xcconfig b/sys/unix/XCode.xcconfig new file mode 100644 index 000000000..0f582e07f --- /dev/null +++ b/sys/unix/XCode.xcconfig @@ -0,0 +1,38 @@ +// XCodeConfig.xcconfig +// NetHack +// +// Created by Groot on 11/19/18. +// Copyright © 2018 Bart House. All rights reserved. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 + +// PLEASE READ +// +// You must define the build configuration setting DEVELOPMENT_TEAM +// in order for the project to build successfully. This setting provides +// the identifier XCode needs in order to sign your builds. +// +// Your DEVELOPMENT_TEAM can be found by opening Keychain Access +// (found by Finder->Applications->Utilities). Click on "My Certificates". +// Look for your "Mac Developer" certificate. Right click on +// the certificate to open a dialog that shows certificate details. +// Look for "Organizational Unit" among the details. This ten digit value +// is your development team identifier. +// +// Once found, you now need to create a file named "XCodeLocal.xcconfig" +// in the same folder as "XCode.xcconfig". This file should contain at +// least one line that defines your DEVELOPMENT_TEAM. The line should have +// the form: +// DEVELOPMENT_TEAM = XXXXXXXXXX +// +// If you know what you are doing, it can also have other build settings +// you wish to override. +// +// This new file is ignored by git and should never be submitted to the +// repository. It is meant to be local to you machine only. +// + +// Include locally provided config file that must define DEVELOPMENT_TEAM +#include? "XCodeLocal.xcconfig"