Added csv_to_array tool
Some checks failed
Build Dusk / run-tests (push) Failing after 1m41s
Build Dusk / build-linux (push) Failing after 1m26s
Build Dusk / build-psp (push) Failing after 1m46s

This commit is contained in:
2026-01-26 08:37:36 -06:00
parent 9c25fde548
commit 0392dd0e7f
12 changed files with 239 additions and 41 deletions

View File

@@ -0,0 +1,29 @@
# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
function(dusk_input_csv CSV_FILE)
dusk_csv_to_enum(
${CSV_FILE}
input/inputactiontype.h
inputaction_t
INPUT_ACTION_
id
)
dusk_csv_to_array(
${CSV_FILE}
input/inputactionname.h
INPUT_ACTION_NAMES
input/inputactiontype.h
INPUT_ACTION_
id
id
)
target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME}
PUBLIC
INPUT_CSV_GENERATED=1
)
endfunction()