diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..80c93f5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Submodules/ZoneDetect"] + path = Submodules/ZoneDetect + url = https://github.com/BertoldVdb/ZoneDetect.git diff --git a/Package.swift b/Package.swift index 0856567..ad0e9bf 100644 --- a/Package.swift +++ b/Package.swift @@ -18,9 +18,10 @@ let package = Package( targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target(name: "CZoneDetect"), .target( name: "SwiftTimeZoneLookup", - dependencies: []), + dependencies: ["CZoneDetect"]), .testTarget( name: "SwiftTimeZoneLookupTests", dependencies: ["SwiftTimeZoneLookup"]), diff --git a/Sources/CZoneDetect/include/include.h b/Sources/CZoneDetect/include/include.h new file mode 100644 index 0000000..83dc748 --- /dev/null +++ b/Sources/CZoneDetect/include/include.h @@ -0,0 +1 @@ +#include "../src/timezonedetect.h" \ No newline at end of file diff --git a/Sources/CZoneDetect/src b/Sources/CZoneDetect/src new file mode 120000 index 0000000..1924d06 --- /dev/null +++ b/Sources/CZoneDetect/src @@ -0,0 +1 @@ +../../Submodules/ZoneDetect/library \ No newline at end of file diff --git a/Submodules/ZoneDetect b/Submodules/ZoneDetect new file mode 160000 index 0000000..0e7c272 --- /dev/null +++ b/Submodules/ZoneDetect @@ -0,0 +1 @@ +Subproject commit 0e7c2729c1bd54deea8121d830745243a1970df3