-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject_config.js
233 lines (180 loc) · 9.8 KB
/
project_config.js
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// ____________________________
// ██▀▀█▀▀██▀▀▀▀▀▀▀█▀▀█ │ ▄▄▄ ▄▄
// ██ ▀ █▄ ▀██▄ ▀ ▄█ ▄▀▀ █ │ ▀█▄ ▄▀██ ▄█▄█ ██▀▄ ██ ▄███
// █ █ █ ▀▀ ▄█ █ █ ▀▄█ █▄ │ ▄▄█▀ ▀▄██ ██ █ ██▀ ▀█▄ ▀█▄▄
// ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀────────┘ ▀▀
// by Guillaume 'Aoineko' Blanchard under CC BY-SA license
//─────────────────────────────────────────────────────────────────────────────
//*****************************************************************************
// TOOLS SETTINGS
//*****************************************************************************
Emulator = `${ToolsDir}OpenMSX/openmsx`;
// Emulator = `${ToolsDir}Emulicious/Emulicious`;
// Emulator = `${ToolsDir}BlueMSX/blueMSX`;
// Emulator = `${ToolsDir}MEISEI/meisei`;
// Emulator = `${ToolsDir}fMSX/fMSX`;
// Emulator = `${ToolsDir}RuMSX/MSX`;
// Debugger = `${ToolsDir}OpenMSX/Debugger/openmsx-debugger`;
//*******************************************************************************
// BUILD STEPS
//*******************************************************************************
// DoClean = false; //-- Clear all intermediate files and exit (boolean)
// DoCompile = true; //-- Compile all the project and engine source code (boolean). Generate all REL files
// DoMake = true; //-- Link all the project and engine source code (boolean). Merge all REL into one IHX file
// DoPackage = true; //-- Generate final binary file (boolean). Binarize the IHX file
// DoDeploy = true; //-- Gathering of all files necessary for the program to work (boolean). Depends on the type of target
// DoRun = false; //-- Start the program automatically at the end of the build (boolean)
//*****************************************************************************
// PROJECT SETTINGS
//*****************************************************************************
//-- Project name (string). Will be use for output filename
ProjName = "vatt";
//-- List of project modules to build (array). If empty, ProjName will be added
ProjModules = [ "test", ProjName ];
//-- Project segments base name (string). ProjName will be used if not defined
// ProjSegments = "";
//-- List of library modules to build (array)
LibModules = [ "string", "fsm", "game_menu", "bios", "system", "vdp", "print", "input", "memory" ];
//-- Additional sources to be compiled and linked with the project (array)
// AddSources = [];
//-- Target MSX machine version (string)
// - 1 MSX 1
// - 2 MSX 2
// - 12 MSX 1 and 2 (multi support)
// - 2K Korean MSX 2 (SC9 support)
// - 2P MSX 2+
// - 22P MSX 2 and 2+ (multi support)
// - 122P MSX 1, 2 and 2+ (multi support)
// - 0 MSX 0
// - TR MSX turbo R
// - 3 MSX 3 (reserved)
Machine = "122P";
//-- Target program format (string)
// - BIN .bin BASIC binary program (8000h~)
// - BIN_USR .bin BASIC USR binary driver (C000h~)
// - ROM_8K .rom 8KB ROM in page 1 (4000h ~ 5FFFh)
// - ROM_8K_P2 .rom 8KB ROM in page 2 (8000h ~ 9FFFh)
// - ROM_16K .rom 16KB ROM in page 1 (4000h ~ 7FFFh)
// - ROM_16K_P2 .rom 16KB ROM in page 2 (8000h ~ BFFFh)
// - ROM_32K .rom 32KB ROM in page 1-2 (4000h ~ BFFFh)
// - ROM_48K .rom 48KB ROM in page 0-2 (0000h ~ BFFFh). Pages 1-2 visible at start
// - ROM_48K_ISR .rom 48KB ROM in page 0-2 (0000h ~ BFFFh). Pages 0-2 visible at start
// - ROM_64K .rom 64KB ROM in page 0-3 (0000h ~ FFFFh). Pages 1-2 visible at start
// - ROM_64K_ISR .rom 64KB ROM in page 0-3 (0000h ~ FFFFh). Pages 0-2 visible at start
// - ROM_ASCII8 .rom 128KB ROM using ASCII-8 mapper
// - ROM_ASCII16 .rom 128KB ROM using ASCII-16 mapper
// - ROM_KONAMI .rom 128KB ROM using Konami mapper (8KB segments)
// - ROM_KONAMI_SCC .rom 128KB ROM using Konami SCC mapper (8KB segments)
// - DOS1 .com MSX-DOS 1 program (0100h~) No direct acces to Main-ROM
// - DOS2 .com MSX-DOS 2 program (0100h~) No direct acces to Main-ROM
Target = "ROM_32K";
//-- ROM mapper size (from 64 to 4096). Must be a multiple of 8 or 16 depending on the mapper type
// ROMSize = 0;
//-- ROM mapper total size in KB (number). Must be a multiple of 8 or 16 depending on the mapper type (from 64 to 4096)
// ROMSize = 0;
//-- Postpone the ROM startup to let the other ROMs initialize like Disk controller or Network cartridge (boolean)
// ROMDelayBoot = false;
//-- Select RAM in slot 0 and install ISR there (boolean). For MSX with at least 64 KB of RAM
// InstallRAMISR = false;
//-- Type of custom ISR to install (string). ISR is install in RAM or ROM depending on Target and InstallRAMISR parameters
// - VBLANK V-blank handler
// - VHBLANK V-blank and h-blank handler (V9938 or V9958)
// - V9990 v-blank, h-blank and command end handler (V9990)
// CustomISR = "VBLANK";
//-- Use automatic banked call and trampoline functions (boolean). For mapped ROM
// BankedCall = 0;
//-- Overwrite RAM starting address (number). For example. 0xE0000 for 8K RAM machine
// ForceRamAddr = 0;
// --List of data files to copy to disk (array)
// DiskFiles = [];
//-- BASIC USR driver default address (number)
// USRAddr = 0xC000;
//-- Parse MSX-DOS command-line arguments
DOSParseArg = true;
//*******************************************************************************
// SIGNATURE SETTINGS
//*******************************************************************************
//-- Add application signature to binary data (boolean)
AppSignature = true;
//-- Application company (*). Can be 2 character string or 16-bits integer (0~65535)
AppCompany = "GL";
//-- Application ID. Can be 2 character string or 16-bits integer (0~65535)
AppID = "VT";
//-- Application extra data (array). Comma-separated bytes starting with data size
// AppExtra = [];
//*******************************************************************************
// MAKE SETTINGS
//*******************************************************************************
//-- Force to generate MSXgl static library even if 'msxgl.lib' already exist (boolean)
BuildLibrary = true;
//-- Prepare program for debug (boolean)
Debug = true;
//-- Move debug symbols to deployement folder (boolean)
DebugSymbols = true;
//-- Allow compiler to generate undocumented Z80 instructions (boolean)
// AllowUndocumented = true;
//-- Assembler code optimizer (string)
// - None
// - Peep SDCC peep hole otpimizer
// - MDL MDL z80 otpimizer
// AsmOptim = "None";
//-- Code optimization priority (string)
// - Default
// - Speed
// - Size
// Optim = "Speed";
//-- Code optimization priority (string/integer)
// - Fast 2000
// - Default 3000
// - Optimized 50000
// - Ultra 200000
// - Insane 10000000
CompileComplexity = "Optimized";
//-- Additionnal compilation options (string)
// CompileOpt = "";
//-- Skip file if compile data (REL) is newer than the source code (boolean)
// CompileSkipOld = false;
//-- Additionnal link options (string)
// LinkOpt = "";
//-- Automatic increment of build version in a header file (boolean)
// BuildVersion = false;
//*****************************************************************************
// BUILD TOOL OPTION
//*****************************************************************************
//-- Activate verbose mode and get more build information (boolean)
Verbose = true;
//-- Output build information to the standard console (boolean)
// LogStdout = true;
//-- Output build information to a log file (boolean)
// LogFile = false;
//-- Name of the log file (string)
// LogFileName = "";
//*******************************************************************************
// EMULATOR SETINGS
//*******************************************************************************
//-------------------------------------------------------------------------------
// General options
// EmulMachine = true; //-- Force the MSX version of the emulated machine (boolean)
// Emul60Hz = false; //-- Force the emulated machine to be at 60 Hz (boolean)
// EmulFullScreen = false; //-- Force the emulator to start in fullscreen mode (boolean)
// EmulMute = false; //-- Disable emulator sound (boolean)
// EmulDebug = false; //-- Start emulator debugger with program launch (boolean)
//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
// EmulExtraParam = "";
//-------------------------------------------------------------------------------
// Extension options
// EmulSCC = false; //-- Add SCC extension (boolean)
// EmulMSXMusic = false; //-- Add MSX-Music extension (boolean)
// EmulMSXAudio = false; //-- Add MSX-Audio extension (boolean)
// EmulPSG2 = false; //-- Add second PSG extension (boolean)
// EmulV9990 = false; //-- Add V9990 video-chip extension (boolean)
//-------------------------------------------------------------------------------
// Input options
//-- Plug a virtual device into the joystick port A (string)
// - Joystick
// - Keyboard Fake joystick
// - Mouse
// - NinjaTap
// EmulPortA = "";
//-- Plug a virtual device into the joystick port B (string)
// EmulPortB = "";