-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy patha339x-igniter.config.mjs
134 lines (128 loc) · 6.6 KB
/
a339x-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import { ExecTask, TaskOfTasks } from "@flybywiresim/igniter";
import { getInstrumentsIgniterTasks } from "./build-a339x/src/systems/instruments/buildSrc/igniter/tasks.mjs";
export default new TaskOfTasks("all", [
new TaskOfTasks("A339X", [
// Prepare the out folder and any other pre tasks.
// Currently, these can be run in parallel but in the future, we may need to run them in sequence if there are any dependencies.
new TaskOfTasks("preparation", [
new TaskOfTasks("copy", [
new ExecTask("textures-cockpit", "npm run build-a339x:copy-textures-cockpit"),
new ExecTask("textures-fuselage", "npm run build-a339x:copy-textures-fuselage"),
new ExecTask("cargo-config", "npm run build-a339x:copy-cargo-config"),
new ExecTask("cmake-config", "npm run build-a339x:copy-cmake-config"),
], true),
new TaskOfTasks("localization", [
new ExecTask("efb-translation", "npm run build-a339x:efb-translation"),
new ExecTask("locPak-translation", "npm run build-a339x:locPak-translation")
], true),
], false),
new TaskOfTasks("A330-941", [
// Group all typescript and react build tasks together.
new TaskOfTasks("build", [
new ExecTask("model",
"npm run build-a339x:model",
[
"build-a339x/src/model",
"build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/model"
]),
new ExecTask("behavior",
"npm run build-a339x:behavior",
[
"build-a339x/src/behavior",
"build-a339x/out/headwindsim-aircraft-a330-900/ModelBehaviorDefs/A339X/generated"
]),
new ExecTask(
'extras-host',
'npm run build-a339x:extras-host',
[
'build-a339x/src/systems/extras-host',
'build-a339x/out/headwindsim-aircraft-a330-900/html_ui/Pages/VCockpit/Instruments/A339X/ExtrasHost',
'build-common/src/systems/shared/src/extras',
]
),
new ExecTask(
'systems-host',
'npm run build-a339x:systems-host',
[
'build-a339x/src/systems/systems-host',
'build-common/src/systems/datalink',
'build-a339x/out/headwindsim-aircraft-a330-900/html_ui/Pages/VCockpit/Instruments/A339X/SystemsHost'
]
),
new TaskOfTasks("instruments", getInstrumentsIgniterTasks(), true),
], true),
// Group all WASM build tasks together but separate from the rest of the tasks as build run more stable like this.
new TaskOfTasks("wasm", [
new ExecTask("systems",
"npm run build-a339x:systems",
[
"build-a339x/src/wasm/systems",
"build-common/src/wasm/systems",
"Cargo.lock",
"Cargo.toml",
"build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/panel/systems.wasm"
]),
new ExecTask("systems-fbw",
"npm run build-a339x:fbw",
[
"build-a339x/src/wasm/fbw_a330",
"build-common/src/wasm/fbw_common",
"build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/panel/fbw.wasm"
]),
new ExecTask("systems-terronnd", [
"npm run build-a339x:terronnd",
], [
"build-common/src/wasm/terronnd",
"build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/panel/terronnd.wasm",
"build-common/src/wasm/terronnd/out/terronnd.wasm",
]),
new ExecTask('cpp-wasm-cmake',
"npm run build-a339x:cpp-wasm-cmake",
[
'build-common/src/wasm/cpp-msfs-framework',
'build-common/src/wasm/extra-backend',
'build-common/src/wasm/fadec_common',
'build-a339x/src/wasm/extra-backend-a339x',
'build-a339x/src/wasm/fadec_a339x',
'build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/panel/extra-backend-a339x.wasm',
'build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/panel/fadec-a339x.wasm'
])
], true),
]),
/*
new TaskOfTasks("ACJ330neo", [
// Group all WASM build tasks together but separate from the rest of the tasks as build run more stable like this.
new TaskOfTasks("wasm", [
new ExecTask("copy-wasm",
"npm run build-a339x-acj:copy-wasm"
),
new ExecTask("systems",
"npm run build-a339x-acj:systems",
[
"build-a339x-acj/src/wasm/systems",
"build-common/src/wasm/systems",
"Cargo.lock",
"Cargo.toml",
"build-a339x/out/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_ACJ330_900/panel/systems.wasm"
])
], true),
]),
*/
// Create final package meta files.
new TaskOfTasks("dist", [
new ExecTask("metadata", "npm run build-a339x:metadata"),
new ExecTask("manifests", "npm run build-a339x:manifest")
])
]),
// A339X Livery Package Task
new TaskOfTasks("a339x-livery-package", [
// Prepare the out folder and any other pre tasks.
// Currently, these can be run in parallel but in the future, we may need to run them in sequence if there are any dependencies.
new TaskOfTasks("preparation", [
new ExecTask("copy-base-files", "npm run build-a339x-livery-package:copy-base-files")
], true),
new TaskOfTasks("dist", [
new ExecTask("manifests", "npm run build-a339x-livery-package:manifest")
])
])
]);