Răsfoiți Sursa

Merge pull request #73 from julien-c/master

Working on Linux support
Damian Kołakowski 10 ani în urmă
părinte
comite
ffd897a595
3 a modificat fișierele cu 12 adăugiri și 2 ștergeri
  1. 4 1
      .gitignore
  2. 4 1
      Package.swift
  3. 4 0
      Sources/Swifter/HttpServer.swift

+ 4 - 1
.gitignore

@@ -23,4 +23,7 @@ DerivedData
 # you should judge for yourself, the pros and cons are mentioned at:
 # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
 #
-# Pods/
+# Pods/
+
+.build/
+Packages/

+ 4 - 1
Package.swift

@@ -1,5 +1,8 @@
 import PackageDescription
 
 let package = Package(
-    name: "Swifter"
+    name: "Swifter",
+    dependencies: [
+        .Package(url: "https://github.com/johnno1962/NSLinux.git", majorVersion: 1),
+    ]
 )

+ 4 - 0
Sources/Swifter/HttpServer.swift

@@ -6,6 +6,10 @@
 
 import Foundation
 
+#if os(Linux)
+    import NSLinux
+#endif
+
 public class HttpServer {
     
     static let VERSION = "1.0.2";