diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..7d25f80 --- /dev/null +++ b/Package.swift @@ -0,0 +1,8 @@ +import PackageDescription + +let package = Package( + name: "DBus", + dependencies: [ + .Package(url: "https://github.com/PureSwift/CDBus.git", majorVersion: 0), + ] +) \ No newline at end of file diff --git a/Tests/main.swift b/Tests/main.swift index 6e3bed8..8fc47ef 100644 --- a/Tests/main.swift +++ b/Tests/main.swift @@ -7,5 +7,8 @@ // import XCTest +import DBus - +#if os(Linux) + //XCTestMain() +#endif diff --git a/Xcode/DBus.xcodeproj/project.pbxproj b/Xcode/DBus.xcodeproj/project.pbxproj index 62e7dd6..5f08ca6 100644 --- a/Xcode/DBus.xcodeproj/project.pbxproj +++ b/Xcode/DBus.xcodeproj/project.pbxproj @@ -10,7 +10,7 @@ 6E0C5B861C816BB300AF63E5 /* PendingCall.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0C5B851C816BB300AF63E5 /* PendingCall.swift */; }; 6E0C5B881C8184D400AF63E5 /* DispatchStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0C5B871C8184D400AF63E5 /* DispatchStatus.swift */; }; 6E0C5B8A1C820D9F00AF63E5 /* HandlerResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0C5B891C820D9F00AF63E5 /* HandlerResult.swift */; }; - 6E0C5B8F1C82368000AF63E5 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0C5B8E1C82368000AF63E5 /* main.swift */; }; + 6E0C5B901C82378400AF63E5 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0C5B8E1C82368000AF63E5 /* main.swift */; }; 6E0F0B201C7FF4B0000B6B07 /* Boolean.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0F0B1F1C7FF4B0000B6B07 /* Boolean.swift */; }; 6E0F0B221C7FF862000B6B07 /* Type.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0F0B211C7FF862000B6B07 /* Type.swift */; }; 6E0F0B241C7FFF72000B6B07 /* Message.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E0F0B231C7FFF72000B6B07 /* Message.swift */; }; @@ -40,6 +40,7 @@ 6E0C5B871C8184D400AF63E5 /* DispatchStatus.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DispatchStatus.swift; sourceTree = ""; }; 6E0C5B891C820D9F00AF63E5 /* HandlerResult.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HandlerResult.swift; sourceTree = ""; }; 6E0C5B8E1C82368000AF63E5 /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; + 6E0C5B911C82429400AF63E5 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Package.swift; path = ../Package.swift; sourceTree = SOURCE_ROOT; }; 6E0F0B1F1C7FF4B0000B6B07 /* Boolean.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Boolean.swift; sourceTree = ""; }; 6E0F0B211C7FF862000B6B07 /* Type.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Type.swift; sourceTree = ""; }; 6E0F0B231C7FFF72000B6B07 /* Message.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Message.swift; sourceTree = ""; }; @@ -54,7 +55,7 @@ 6E10BE8D1C7F4D82009AF706 /* Connection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Connection.swift; sourceTree = ""; }; 6E10BE901C7F4F01009AF706 /* dbus */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dbus; path = "../../../../../usr/local/include/dbus-1.0/dbus"; sourceTree = ""; }; 6E10BE921C7F560C009AF706 /* module.map */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.map; sourceTree = SOURCE_ROOT; }; - 6E10BE931C7F576F009AF706 /* libdbus-1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libdbus-1.dylib"; path = "../../../../../usr/local/lib/libdbus-1.dylib"; sourceTree = ""; }; + 6E10BE931C7F576F009AF706 /* libdbus-1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libdbus-1.dylib"; path = "/Users/coleman/Developer/DBus/Xcode/../../../../../usr/local/lib/libdbus-1.dylib"; sourceTree = ""; }; 6E10BE951C7F5FF7009AF706 /* Error.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Error.swift; sourceTree = ""; }; 6EFED11E1C813D2B0060A2BA /* MessageArgument.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MessageArgument.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -100,6 +101,7 @@ 6E10BE641C7EA8B7009AF706 = { isa = PBXGroup; children = ( + 6E0C5B911C82429400AF63E5 /* Package.swift */, 6E10BE931C7F576F009AF706 /* libdbus-1.dylib */, 6E10BE901C7F4F01009AF706 /* dbus */, 6E10BE8A1C7EAD9F009AF706 /* Sources */, @@ -265,7 +267,6 @@ buildActionMask = 2147483647; files = ( 6E0F0B281C8013B3000B6B07 /* ConvertString.swift in Sources */, - 6E0C5B8F1C82368000AF63E5 /* main.swift in Sources */, 6E10BE961C7F5FF7009AF706 /* Error.swift in Sources */, 6EFED11F1C813D2B0060A2BA /* MessageArgument.swift in Sources */, 6E0F0B201C7FF4B0000B6B07 /* Boolean.swift in Sources */, @@ -284,6 +285,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 6E0C5B901C82378400AF63E5 /* main.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };