diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-08-09 14:55:07 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-08-09 14:55:07 -0600 |
commit | d3769010aa3a2975167e97f12da8cc0d8091438f (patch) | |
tree | 9304ab3d40cb9d955a8d8cdfcd4e850dd69015ed /Package.swift | |
parent | c736b833f360576bc0c436bb65eebc4ce05b708a (diff) |
swift-format
Diffstat (limited to 'Package.swift')
-rw-r--r-- | Package.swift | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/Package.swift b/Package.swift index af094a6..6126286 100644 --- a/Package.swift +++ b/Package.swift @@ -1,41 +1,42 @@ // swift-tools-version: 5.10 import PackageDescription -let lvConfPath: String = Context.environment["LV_CONF_PATH"] ?? "\(Context.packageDirectory)/Sources/CLVGL/lv_conf.h" +let lvConfPath: String = + Context.environment["LV_CONF_PATH"] ?? "\(Context.packageDirectory)/Sources/CLVGL/lv_conf.h" #if os(macOS) -let sdlCFlags = [Context.environment["SDL_INCLUDE_PATH"] ?? "-I/opt/homebrew/include"] + let sdlCFlags = [Context.environment["SDL_INCLUDE_PATH"] ?? "-I/opt/homebrew/include"] #else -let sdlCFlags = [Context.environment["SDL_INCLUDE_PATH"] ?? ""] + let sdlCFlags = [Context.environment["SDL_INCLUDE_PATH"] ?? ""] #endif let package = Package( - name: "SwiftLVGL", - products: [ + name: "SwiftLVGL", + products: [ .library(name: "CLVGL", targets: ["CLVGL"]), - .library(name: "SwiftLVGL", targets: ["SwiftLVGL"]), - ], - targets: [ - .target( - name: "CLVGL", - dependencies: [], - exclude: ["lvgl/demos", "lvgl/examples", "lvgl/tests"], - cSettings: [ - .headerSearchPath("lvgl"), - .headerSearchPath("."), - .define("LV_CONF_INCLUDE_SIMPLE"), - .define("LV_CONF_PATH", to: lvConfPath), - .unsafeFlags(sdlCFlags) - ], - linkerSettings: [.unsafeFlags(["-L/opt/homebrew/lib", "-lSDL2"])] - ), - .target( - name: "SwiftLVGL", - dependencies: ["CLVGL"] - ), - .executableTarget( - name: "SwiftLVGLDemo", - dependencies: ["SwiftLVGL"] - ) - ] + .library(name: "SwiftLVGL", targets: ["SwiftLVGL"]), + ], + targets: [ + .target( + name: "CLVGL", + dependencies: [], + exclude: ["lvgl/demos", "lvgl/examples", "lvgl/tests"], + cSettings: [ + .headerSearchPath("lvgl"), + .headerSearchPath("."), + .define("LV_CONF_INCLUDE_SIMPLE"), + .define("LV_CONF_PATH", to: lvConfPath), + .unsafeFlags(sdlCFlags), + ], + linkerSettings: [.unsafeFlags(["-L/opt/homebrew/lib", "-lSDL2"])] + ), + .target( + name: "SwiftLVGL", + dependencies: ["CLVGL"] + ), + .executableTarget( + name: "SwiftLVGLDemo", + dependencies: ["SwiftLVGL"] + ), + ] ) |