diff --git a/Package.swift b/Package.swift index 5b2d78785..201d35c0e 100644 --- a/Package.swift +++ b/Package.swift @@ -18,6 +18,10 @@ let package = Package( .library( name: "Spine", targets: ["SpineModule"] + ), + .library( + name: "SpineCppLite", + targets: ["SpineCppLite"] ) ], targets: [ diff --git a/spine-ios/Sources/SpineCppLite/include/module.modulemap b/spine-ios/Sources/SpineCppLite/include/module.modulemap index c79fa7471..17f1dd153 100644 --- a/spine-ios/Sources/SpineCppLite/include/module.modulemap +++ b/spine-ios/Sources/SpineCppLite/include/module.modulemap @@ -1,4 +1,13 @@ module SpineCppLite { - header "spine-cpp-lite.h" - export * + use c + export c + explicit module cpp { + umbrella header "spine/spine.h" + requires cplusplus11 + export * + } + explicit module c { + header "spine-cpp-lite.h" + export * + } }