@geastack/apple 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/apple",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Generated Apple SDK bindings plus the macOS and iOS native build targets for Gea apps.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@geastack/compiler": "^1.0.
|
|
115
|
-
"@geastack/core": "^0.1.
|
|
116
|
-
"@geastack/elements": "^0.1.
|
|
117
|
-
"@geastack/engine": "^0.1.
|
|
114
|
+
"@geastack/compiler": "^1.0.22",
|
|
115
|
+
"@geastack/core": "^0.1.37",
|
|
116
|
+
"@geastack/elements": "^0.1.5",
|
|
117
|
+
"@geastack/engine": "^0.1.13",
|
|
118
118
|
"@geastack/geaos": "^0.1.3",
|
|
119
119
|
"@geastack/geatsc-plugin-apple-native": "^0.1.4",
|
|
120
|
-
"@geastack/geatsc-plugin-gea": "^0.1.
|
|
121
|
-
"@geastack/host": "^0.1.
|
|
120
|
+
"@geastack/geatsc-plugin-gea": "^0.1.19",
|
|
121
|
+
"@geastack/host": "^0.1.14"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"prepublishOnly": "npm run build",
|
|
@@ -549,22 +549,12 @@ generate_app() {
|
|
|
549
549
|
--isolate-symbols
|
|
550
550
|
)
|
|
551
551
|
fi
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
# docs/TRANSLATION-UNITS.md for the measured trade.
|
|
559
|
-
if [[ "${GEA_PER_FILE_UNITS:-0}" == "1" ]]; then
|
|
560
|
-
extraArgs+=(--per-file-units)
|
|
561
|
-
fi
|
|
562
|
-
if [[ "$id" == "three-angle-metal" && "${GEA_THREE_MODULE_GRAPH_ONLY:-0}" == "1" ]]; then
|
|
563
|
-
extraArgs+=(--module-graph-only)
|
|
564
|
-
fi
|
|
565
|
-
if [[ "$id" == "three-angle-metal" && "${GEA_THREE_MODULE_GRAPH_COMPILE:-1}" != "0" ]]; then
|
|
566
|
-
extraArgs+=(--compile-module-graph --allow-any)
|
|
567
|
-
fi
|
|
552
|
+
local buildConfig="$outDir/gea-build-config.json"
|
|
553
|
+
mkdir -p "$outDir"
|
|
554
|
+
node "${GEA_CLI_BIN:?Use gea build --target macos}" config --project "$appDir" --target macos > "$buildConfig"
|
|
555
|
+
extraArgs+=(--build-config "$buildConfig")
|
|
556
|
+
local moduleGraphOnly
|
|
557
|
+
moduleGraphOnly="$(node -e 'console.log(require(process.argv[1]).settings.compiler?.moduleGraph === "only" ? "1" : "0")' "$buildConfig")"
|
|
568
558
|
# `gea build` resolves which compiler plugins this app's packages ship and
|
|
569
559
|
# names them here, so no app needs a stub file re-exporting one. The appDir
|
|
570
560
|
# fallback is for a direct invocation of this script, not a decision.
|
|
@@ -582,17 +572,11 @@ generate_app() {
|
|
|
582
572
|
local envSignatureFile="$outDir/.gea-build-env"
|
|
583
573
|
local compilerFingerprint
|
|
584
574
|
compilerFingerprint="$(node "$ROOT_DIR/targets/macos/compiler-input-fingerprint.mjs" "$GEA_COMPILER")"
|
|
585
|
-
local envSignature="
|
|
586
|
-
GEA_THREE_REFERENCE_DEMO=${GEA_THREE_REFERENCE_DEMO:-}
|
|
587
|
-
GEA_THREE_MODULE_GRAPH=${GEA_THREE_MODULE_GRAPH:-1}
|
|
588
|
-
GEA_VITE_MODULE_GRAPH=${GEA_VITE_MODULE_GRAPH:-0}
|
|
589
|
-
GEA_THREE_MODULE_GRAPH_ONLY=${GEA_THREE_MODULE_GRAPH_ONLY:-0}
|
|
590
|
-
GEA_THREE_MODULE_GRAPH_COMPILE=${GEA_THREE_MODULE_GRAPH_COMPILE:-1}
|
|
591
|
-
GEA_PER_FILE_UNITS=${GEA_PER_FILE_UNITS:-0}
|
|
592
|
-
GEA_CPP_TRANSLATION_UNITS=${GEA_CPP_TRANSLATION_UNITS:-}
|
|
575
|
+
local envSignature="GEA_BUILD_CONFIG=$(cat "$buildConfig")
|
|
593
576
|
GEA_WEBGL_AUTO_INSTANCE=${GEA_WEBGL_AUTO_INSTANCE:-}
|
|
594
577
|
GEA_WEBGL_AUTO_INSTANCE_TEST=${GEA_WEBGL_AUTO_INSTANCE_TEST:-}
|
|
595
578
|
GEA_COMPILER_FINGERPRINT=${compilerFingerprint}"
|
|
579
|
+
|
|
596
580
|
# Only when an alternate compiler was named, so the default signature -- and
|
|
597
581
|
# therefore every existing generated directory's freshness -- is unchanged.
|
|
598
582
|
if [[ -n "${GEA_GEATSC_BIN:-}" ]]; then
|
|
@@ -635,8 +619,8 @@ GEA_GEATSC_FINGERPRINT=$(tree_fingerprint "$(dirname "$GEA_GEATSC_BIN")")"
|
|
|
635
619
|
newer="${newer:-env:apple-native-output-inconsistent}"
|
|
636
620
|
fi
|
|
637
621
|
fi
|
|
638
|
-
if [[ "$
|
|
639
|
-
newer="${newer:-env:
|
|
622
|
+
if [[ "$moduleGraphOnly" == "1" && ! -f "$outDir/module-graph/gea-module-graph.json" ]]; then
|
|
623
|
+
newer="${newer:-env:module-graph-only}"
|
|
640
624
|
fi
|
|
641
625
|
fi
|
|
642
626
|
if [[ ! -f "$sourceList" || ! -f "$generationSentinel" || -n "$newer" ]]; then
|
|
@@ -651,7 +635,7 @@ GEA_GEATSC_FINGERPRINT=$(tree_fingerprint "$(dirname "$GEA_GEATSC_BIN")")"
|
|
|
651
635
|
--apple-platform macos \
|
|
652
636
|
--geatsc-apple-native-plugin "$GEA_APPLE_NATIVE_PLUGIN/dist/index.js" \
|
|
653
637
|
"${extraArgs[@]+"${extraArgs[@]}"}"; then
|
|
654
|
-
if [[ "$
|
|
638
|
+
if [[ "$moduleGraphOnly" == "1" ]]; then
|
|
655
639
|
echo "Module graph generation failed for '$id'; native generation state is unchanged" >&2
|
|
656
640
|
return 1
|
|
657
641
|
fi
|
|
@@ -659,7 +643,7 @@ GEA_GEATSC_FINGERPRINT=$(tree_fingerprint "$(dirname "$GEA_GEATSC_BIN")")"
|
|
|
659
643
|
echo "C++ generation failed for '$id'; invalidated freshness state" >&2
|
|
660
644
|
return 1
|
|
661
645
|
fi
|
|
662
|
-
if [[ "$
|
|
646
|
+
if [[ "$moduleGraphOnly" == "1" ]]; then
|
|
663
647
|
echo "Generated module graph only for '$id' at $outDir/module-graph"
|
|
664
648
|
exit 0
|
|
665
649
|
fi
|
|
@@ -686,7 +670,7 @@ GEA_GEATSC_FINGERPRINT=$(tree_fingerprint "$(dirname "$GEA_GEATSC_BIN")")"
|
|
|
686
670
|
touch "$generationSentinel"
|
|
687
671
|
generatedNow=1
|
|
688
672
|
fi
|
|
689
|
-
if [[ "$
|
|
673
|
+
if [[ "$moduleGraphOnly" == "1" ]]; then
|
|
690
674
|
echo "Module graph already fresh for '$id' at $outDir/module-graph"
|
|
691
675
|
exit 0
|
|
692
676
|
fi
|
|
@@ -1175,6 +1175,9 @@ bool AudioSystem::playPcm(const std::int16_t *samples, std::size_t sample_count,
|
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
1177
|
void AudioSystem::stopPlayback() { Engine::instance().stopPlayback(); }
|
|
1178
|
+
// No PCM stream output is queued by this backend (only the ESP32 runtime
|
|
1179
|
+
// streams PCM), so a flush has nothing to discard.
|
|
1180
|
+
void AudioSystem::flushPlayback() {}
|
|
1178
1181
|
|
|
1179
1182
|
namespace testing {
|
|
1180
1183
|
|