[ios] backport from 4.3-beta: expose explict module for c & cpp (#2975)

* [ios] backport from 4.3-beta: expose explict module for c & cpp

- standard user can import spine-c based api as usual
- dedicated swift/cpp user can import cpp interface with explict import and enabling cpp interp
- objective-c user can import cpp using objective-c++

* [ios] expose `SpineCppLite` so that the library user can build there own runtime based on swift package => macOS, spriteKit texture
This commit is contained in:
Byeong Gwan 2025-11-17 23:01:21 +09:00 committed by GitHub
parent 02dec24ab7
commit 880f3c59f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -18,6 +18,10 @@ let package = Package(
.library(
name: "Spine",
targets: ["SpineModule"]
),
.library(
name: "SpineCppLite",
targets: ["SpineCppLite"]
)
],
targets: [

View File

@ -1,4 +1,13 @@
module SpineCppLite {
use c
export c
explicit module cpp {
umbrella header "spine/spine.h"
requires cplusplus11
export *
}
explicit module c {
header "spine-cpp-lite.h"
export *
}
}