2025-06-24 21:55:50 -03:00
|
|
|
function(generate_encoding_indexes)
|
2024-05-27 21:34:24 -03:00
|
|
|
set(LIBTEXTCODEC_INPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
|
|
|
|
|
# indexes.json can be found at https://encoding.spec.whatwg.org/indexes.json
|
2025-06-24 21:55:50 -03:00
|
|
|
invoke_py_generator(
|
|
|
|
|
"LookupTables.cpp"
|
|
|
|
|
"generate_encoding_indexes.py"
|
|
|
|
|
"${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
|
|
|
|
"LookupTables.h"
|
|
|
|
|
"LookupTables.cpp"
|
|
|
|
|
arguments -j "${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
2024-05-27 21:34:24 -03:00
|
|
|
)
|
|
|
|
|
|
2025-06-24 21:55:50 -03:00
|
|
|
if(ENABLE_INSTALL_HEADERS)
|
2024-07-20 14:03:24 -03:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LookupTables.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibTextCodec/")
|
|
|
|
|
endif()
|
2024-05-27 21:34:24 -03:00
|
|
|
endfunction()
|