MCPcopy Create free account
hub / github.com/cocos/cocos-engine / bundleNativeAdapter

Function bundleNativeAdapter

scripts/build-adapter.js:37–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37async function bundleNativeAdapter () {
38 console.log(green('\nBundling native adapter'));
39 // bundle engine-adapter.js
40 const engineAdapterEntry = normalizePath(ps.join(engineRoot, 'platforms/native/engine/index.js'));
41 const engineAdapterOutput = normalizePath(ps.join(engineRoot, 'bin/adapter/native/engine-adapter.js'));
42 await bundle(engineAdapterEntry, engineAdapterOutput, true, 'chrome 80');
43
44 // bundle web-adapter.js
45 const webAdapterEntry = normalizePath(ps.join(engineRoot, 'platforms/native/builtin/index.js'));
46 const webAdapterOutput = normalizePath(ps.join(engineRoot, 'bin/adapter/native/web-adapter.js'));
47 await bundle(webAdapterEntry, webAdapterOutput, true, 'chrome 80');
48}
49
50async function bundleMinigameAdapter () {
51 const platformsPath = ps.join(engineRoot, 'platforms/minigame/platforms');

Callers 1

build-adapter.jsFile · 0.85

Calls 4

bundleFunction · 0.85
logMethod · 0.80
joinMethod · 0.80
normalizePathFunction · 0.70

Tested by

no test coverage detected