Skip to content

Commit

Permalink
First approach, compiling in MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Fernandez committed Dec 11, 2017
1 parent d0d8c36 commit 6c80716
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ let package = Package(
// 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 which this package depends on.
.target(name: "QRCodeGenerator", dependencies: ["QRCodeGenerator-Wrapper"]),
.target(name: "QRCodeGenerator-Wrapper", dependencies: ["QRCodeGenerator-CPP"]),
.target(name: "QRCodeGenerator-CPP", dependencies: []),
.testTarget(name: "QRCodeGeneratorTests", dependencies: ["QRCodeGenerator", "QRCodeGenerator-Wrapper"]),
],
cxxLanguageStandard: .cxx11
)

#if os(Linux)
package.dependencies.append(.package(url:"https://github.com/fjfdeztoro/SwiftNUStep", from: "0.0.1"))
package.targets.append(.target(name: "QRCodeGenerator-Wrapper", dependencies: ["QRCodeGenerator-CPP", "GNUStep"]))
#else
package.targets.append(.target(name: "QRCodeGenerator-Wrapper", dependencies: ["QRCodeGenerator-CPP"]))
#endif

0 comments on commit 6c80716

Please sign in to comment.