From 81db439ca4a259f721e3d1f6de93f03ec02ccc2f Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 20 Dec 2015 19:15:15 -0800 Subject: [PATCH] add Xcode project and build script --- .gitignore | 1 + Batteries.xcodeproj/project.pbxproj | 198 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + build.sh | 7 + 4 files changed, 213 insertions(+) create mode 100644 Batteries.xcodeproj/project.pbxproj create mode 100644 Batteries.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100755 build.sh diff --git a/.gitignore b/.gitignore index 24e5b0a..cbce8da 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .build +xcuserdata diff --git a/Batteries.xcodeproj/project.pbxproj b/Batteries.xcodeproj/project.pbxproj new file mode 100644 index 0000000..8213974 --- /dev/null +++ b/Batteries.xcodeproj/project.pbxproj @@ -0,0 +1,198 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXFileReference section */ + 7B7481261C278A2A00764169 /* Sources */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Sources; sourceTree = ""; }; + 7B7481271C278A2A00764169 /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; + 7B7481281C278A2A00764169 /* Tests */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Tests; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXGroup section */ + 7B74811B1C278A0800764169 = { + isa = PBXGroup; + children = ( + 7B7481261C278A2A00764169 /* Sources */, + 7B7481271C278A2A00764169 /* Package.swift */, + 7B7481281C278A2A00764169 /* Tests */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXLegacyTarget section */ + 7B7481201C278A0800764169 /* Batteries */ = { + isa = PBXLegacyTarget; + buildArgumentsString = "$(ACTION)"; + buildConfigurationList = 7B7481231C278A0800764169 /* Build configuration list for PBXLegacyTarget "Batteries" */; + buildPhases = ( + ); + buildToolPath = /Users/sjs/Dropbox/Projects/SwiftBatteries/build.sh; + buildWorkingDirectory = /Users/sjs/Dropbox/Projects/SwiftBatteries; + dependencies = ( + ); + name = Batteries; + passBuildSettingsInEnvironment = 0; + productName = Batteries; + }; +/* End PBXLegacyTarget section */ + +/* Begin PBXProject section */ + 7B74811C1C278A0800764169 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = "Sami Samhuri"; + TargetAttributes = { + 7B7481201C278A0800764169 = { + CreatedOnToolsVersion = 7.2; + }; + }; + }; + buildConfigurationList = 7B74811F1C278A0800764169 /* Build configuration list for PBXProject "Batteries" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7B74811B1C278A0800764169; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7B7481201C278A0800764169 /* Batteries */, + ); + }; +/* End PBXProject section */ + +/* Begin XCBuildConfiguration section */ + 7B7481211C278A0800764169 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + }; + name = Debug; + }; + 7B7481221C278A0800764169 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = NO; + }; + name = Release; + }; + 7B7481241C278A0800764169 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + DEBUGGING_SYMBOLS = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 7B7481251C278A0800764169 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7B74811F1C278A0800764169 /* Build configuration list for PBXProject "Batteries" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7B7481211C278A0800764169 /* Debug */, + 7B7481221C278A0800764169 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7B7481231C278A0800764169 /* Build configuration list for PBXLegacyTarget "Batteries" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7B7481241C278A0800764169 /* Debug */, + 7B7481251C278A0800764169 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7B74811C1C278A0800764169 /* Project object */; +} diff --git a/Batteries.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Batteries.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..76164d1 --- /dev/null +++ b/Batteries.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5e90256 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +export PATH="/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:$PATH" +# env > env.txt +# echo "$0" "$*" > cmd.txt +# which -a swift > swift.txt +swift build