idf_component_register(
    SRCS 
        "main.c"
    INCLUDE_DIRS 
        "."
        "include"
    REQUIRES
        driver
        nvs_flash
        fatfs
        spi_flash
        st7789
        nfc_manager
        link_cable
        potentiometer_manager
        esp_hw_support
        vfs
        peanut-gb
)
# GNUBoy specific compiler flags
target_compile_options(${COMPONENT_LIB} PRIVATE
    -Wno-unused-variable
    -Wno-unused-function
    -Wno-pointer-sign
    -Wno-implicit-function-declaration
    -Wno-int-conversion
    -Wno-incompatible-pointer-types
    -Wno-format
)

# GNUBoy defines
target_compile_definitions(${COMPONENT_LIB} PRIVATE
    USE_ESP32=1
)
