comparison gui_ze/gui_ze.bzl @ 168:f3084bca7317

[Misc] Fixed all errors and all tests should pass now.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 16:29:02 -0800
parents cd35e600ae34
children 71ad34a8bc9a 8c74204fd362
comparison
equal deleted inserted replaced
167:589bab390fb4 168:f3084bca7317
22 22
23 # Build clang command 23 # Build clang command
24 cmd_parts = [ 24 cmd_parts = [
25 setup_cmd, 25 setup_cmd,
26 "$CLANG", 26 "$CLANG",
27 "--target=wasm32", 27 "--target=wasm32-unknown-unknown",
28 "-nostdlib",
29 "-O2", 28 "-O2",
30 "-Wl,--no-entry", 29 "-Wl,--no-entry",
31 "-Wl,--export-dynamic", 30 "-Wl,--export-dynamic",
32 ] 31 ]
33 32
442 Generates: 441 Generates:
443 {name}_app: The .app bundle 442 {name}_app: The .app bundle
444 {name}_signed_app: The signed .app bundle 443 {name}_signed_app: The signed .app bundle
445 {name}_dmg: The final DMG file 444 {name}_dmg: The final DMG file
446 """ 445 """
446 macos_constraint = ["@platforms//os:macos"]
447
447 # 1. Build the .app bundle 448 # 1. Build the .app bundle
448 _macos_app( 449 _macos_app(
449 name = name + "_app", 450 name = name + "_app",
450 binary = binary, 451 binary = binary,
451 app_name = name, 452 app_name = name,
452 bundle_id = bundle_id, 453 bundle_id = bundle_id,
454 target_compatible_with = macos_constraint,
453 ) 455 )
454 456
455 # 2. Sign the .app 457 # 2. Sign the .app
456 _macos_signed_app( 458 _macos_signed_app(
457 name = name + "_signed_app", 459 name = name + "_signed_app",
458 app = ":" + name + "_app", 460 app = ":" + name + "_app",
459 app_name = name, 461 app_name = name,
462 target_compatible_with = macos_constraint,
460 ) 463 )
461 464
462 # 3. Create the DMG 465 # 3. Create the DMG
463 native.genrule( 466 native.genrule(
464 name = name + "_dmg", 467 name = name + "_dmg",
474 -srcfolder "$$SIGNEDDIR" \ 477 -srcfolder "$$SIGNEDDIR" \
475 -ov -format UDZO "$@" 478 -ov -format UDZO "$@"
476 """.format(name = name), 479 """.format(name = name),
477 local = 1, # Disable sandboxing for hdiutil 480 local = 1, # Disable sandboxing for hdiutil
478 tags = ["no-sandbox"], 481 tags = ["no-sandbox"],
479 ) 482 target_compatible_with = macos_constraint,
483 )