mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[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:
parent
02dec24ab7
commit
880f3c59f5
@ -18,6 +18,10 @@ let package = Package(
|
||||
.library(
|
||||
name: "Spine",
|
||||
targets: ["SpineModule"]
|
||||
),
|
||||
.library(
|
||||
name: "SpineCppLite",
|
||||
targets: ["SpineCppLite"]
|
||||
)
|
||||
],
|
||||
targets: [
|
||||
|
||||
@ -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 *
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user