diff --git a/Package.swift b/Package.swift index 9405e25..bb2f517 100644 --- a/Package.swift +++ b/Package.swift @@ -7,8 +7,8 @@ import PackageDescription let package = Package( name: "SwiftOracle", + targets: [Target(name: "SwiftOracle", dependencies: ["cocilib"])], dependencies: [ - .Package(url: "https://github.com/goloveychuk/cocilib.git", majorVersion: 0), .Package(url: "https://github.com/Zewo/String.git", majorVersion: 0, minor: 4), ] ) diff --git a/Sources/BindVar.swift b/Sources/SwiftOracle/BindVar.swift similarity index 100% rename from Sources/BindVar.swift rename to Sources/SwiftOracle/BindVar.swift diff --git a/Sources/Column.swift b/Sources/SwiftOracle/Column.swift similarity index 100% rename from Sources/Column.swift rename to Sources/SwiftOracle/Column.swift diff --git a/Sources/Connection.swift b/Sources/SwiftOracle/Connection.swift similarity index 100% rename from Sources/Connection.swift rename to Sources/SwiftOracle/Connection.swift diff --git a/Sources/Cursor.swift b/Sources/SwiftOracle/Cursor.swift similarity index 100% rename from Sources/Cursor.swift rename to Sources/SwiftOracle/Cursor.swift diff --git a/Sources/Row.swift b/Sources/SwiftOracle/Row.swift similarity index 100% rename from Sources/Row.swift rename to Sources/SwiftOracle/Row.swift diff --git a/Sources/cocilib/empty.c b/Sources/cocilib/empty.c new file mode 100644 index 0000000..e69de29 diff --git a/Sources/cocilib/include/module.modulemap b/Sources/cocilib/include/module.modulemap new file mode 100644 index 0000000..d61117a --- /dev/null +++ b/Sources/cocilib/include/module.modulemap @@ -0,0 +1,7 @@ + + +module cocilib [system] { + header "/usr/local/include/ocilib.h" + link "ocilib" + export * +} \ No newline at end of file