-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathigniter.config.mjs
31 lines (29 loc) · 2.41 KB
/
igniter.config.mjs
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
29
30
31
import { ExecTask, TaskOfTasks } from '@flybywiresim/igniter';
import { getInstrumentsIgniterTasks } from './src/instruments/buildSrc/igniter/tasks.mjs';
export default new TaskOfTasks('a32nx', [
new TaskOfTasks('build', [
new TaskOfTasks('instruments', [...getInstrumentsIgniterTasks(), new ExecTask('pfd','npm run build:pfd', ['src/instruments/src/PFD','PackageSources/html_ui/Pages/VCockpit/Instruments/A32NX_SU95/PFD'])], true),
new ExecTask('atsu','npm run build:atsu', ['src/atsu', 'PackageSources/html_ui/JS_SU95/atsu']),
new ExecTask('sentry-client','npm run build:sentry-client', ['src/sentry-client', 'PackageSources/html_ui/JS_SU95/sentry-client']),
new ExecTask('failures','npm run build:failures', ['src/failures', 'PackageSources/html_ui/JS_SU95/generated/failures.js']),
new ExecTask('behavior','node src/behavior/build.js', ['src/behavior', 'PackageSources/ModelBehaviorDefs/SU95/generated']),
new ExecTask('model','node src/model/build.js', ['src/model', 'PackageSources/SimObjects/AirPlanes/SU95/model']),
new ExecTask('fmgc','npm run build:fmgc', ['src/fmgc', 'PackageSources/html_ui/JS_SU95/fmgc']),
new ExecTask('systems', [
'cargo build --target wasm32-wasi --release',
'wasm-opt -O3 -o PackageSources/SimObjects/AirPlanes/SU95/panel/systems.wasm target/wasm32-wasi/release/a320_systems_wasm.wasm',
], ['src/systems', 'Cargo.lock', 'Cargo.toml', 'PackageSources/SimObjects/AirPlanes/SU95/panel/systems.wasm']),
new ExecTask('systems-autopilot', [
'src/fbw/build.sh',
'wasm-opt -O1 -o PackageSources/SimObjects/AirPlanes/SU95/panel/fbw.wasm PackageSources/SimObjects/AirPlanes/SU95/panel/fbw.wasm'
], ['src/fbw', 'PackageSources/SimObjects/AirPlanes/SU95/panel/fbw.wasm']),
new ExecTask('systems-fadec', [
'src/fadec/build.sh',
'wasm-opt -O1 -o PackageSources/SimObjects/AirPlanes/SU95/panel/fadec.wasm PackageSources/SimObjects/AirPlanes/SU95/panel/fadec.wasm'
], ['src/fadec', 'PackageSources/SimObjects/AirPlanes/SU95/panel/fadec.wasm']),
new TaskOfTasks('mcdu-server', [
new ExecTask('client', ['npm run build:mcdu-client'], ['src/mcdu-server/client', 'src/mcdu-server/client/build']),
new ExecTask('server', ['npm run build:mcdu-server'], ['src/mcdu-server', 'PackageSources/MCDU SERVER/server.exe']),
]),
], true),
]);