blob: 850fd5b2059b32813167afcabddf26e380f39ffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// The mac/BUILD.kts of the reference module.
isPublic = true // //mac/:bridge is used by //tests/
objc.bin("greeter-mac") { // .m
sources(glob("src/*.m"))
depends("//core/:core", ":bridge")
targetTriple("aarch64-apple-darwin", "x86_64-apple-darwin")
arc = true // objc and objcpp only; default: true
frameworks("Foundation", "AppKit")
bundle { // objc and objcpp bin only; a .app bundle; default: a plain program
identifier = "com.example.greeter"
infoPlist = "Info.plist"
resources(glob("Resources/**"))
codesignIdentity = env("TAZEL_CODESIGN_IDENTITY") // default: not signed
}
}
objcpp.staticlib("bridge") { // .mm
sources(glob("bridge/*.mm"))
headers("bridge/include")
depends("//core/:core")
targetTriple("aarch64-apple-darwin", "x86_64-apple-darwin")
standard = CppStandard.CPP23
arc = true
frameworks("Foundation")
}
|