@@ -19,29 +19,59 @@ set(GBC_COMPONENTS "gbc")
1919set (SMS_COMPONENTS "sms" )
2020
2121### SNES ###
22- set (SNES_COMPONENTS "snes" )
22+ # set(SNES_COMPONENTS "snes")
2323
2424### MSX ###
25- set (MSX_COMPONENTS "msx" )
25+ # set(MSX_COMPONENTS "msx")
2626
2727### DOOM ###
28- set (DOOM_COMPONENTS "doom" )
28+ # set(DOOM_COMPONENTS "doom")
2929
3030add_compile_definitions (BOARD_HAS_PSRAM)
3131
32+ # if NES_COMPONENTS is set, add compile definitions for the NES
33+ if (NES_COMPONENTS)
34+ add_compile_definitions (ENABLE_NES)
35+ endif ()
36+
37+ # if GBC_COMPONENTS is set, add compile definitions for the GBC
38+ if (GBC_COMPONENTS)
39+ add_compile_definitions (ENABLE_GBC)
40+ endif ()
41+
42+ # if SMS_COMPONENTS is set, add compile definitions for the SMS
43+ if (SMS_COMPONENTS)
44+ add_compile_definitions (ENABLE_SMS)
45+ endif ()
46+
47+ # if SNES_COMPONENTS is set, add compile definitions for the SNES
48+ if (SNES_COMPONENTS)
49+ add_compile_definitions (ENABLE_SNES)
50+ endif ()
51+
52+ # if MSX_COMPONENTS is set, add compile definitions for the MSX
53+ if (MSX_COMPONENTS)
54+ add_compile_definitions (ENABLE_MSX)
55+ endif ()
56+
57+ # if DOOM_COMPONENTS is set, add compile definitions for the DOOM
58+ if (DOOM_COMPONENTS)
59+ add_compile_definitions (ENABLE_DOOM)
60+ endif ()
61+
3262# make the components list for the emulators we want
3363set (EMULATOR_COMPONENTS
3464 ${NES_COMPONENTS}
3565 ${GBC_COMPONENTS}
3666 ${SMS_COMPONENTS}
37- # ${SNES_COMPONENTS}
38- # ${MSX_COMPONENTS}
39- # ${DOOM_COMPONENTS}
67+ ${SNES_COMPONENTS}
68+ ${MSX_COMPONENTS}
69+ ${DOOM_COMPONENTS}
4070 )
4171
4272set (
4373 COMPONENTS
44- "main esptool_py esp_lcd esp_psram task format display display_drivers monitor esp-idf-cxx ${EMULATOR_COMPONENTS} box-emu-hal gui menu"
74+ "main esptool_py esp_lcd esp_psram task format display display_drivers monitor timer ${EMULATOR_COMPONENTS} box-emu-hal gui menu"
4575 CACHE STRING
4676 "List of components to include"
4777 )
0 commit comments