2024-05-28 00:34:24 +00:00
|
|
|
function (generate_encoding_indexes)
|
|
|
|
set(LIBTEXTCODEC_INPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
|
|
|
# indexes.json can be found at https://encoding.spec.whatwg.org/indexes.json
|
|
|
|
invoke_generator(
|
|
|
|
"LookupTables.cpp"
|
|
|
|
Lagom::GenerateEncodingIndexes
|
|
|
|
"${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
|
|
|
"LookupTables.h"
|
|
|
|
"LookupTables.cpp"
|
|
|
|
arguments -j "${LIBTEXTCODEC_INPUT_FOLDER}/indexes.json"
|
|
|
|
)
|
|
|
|
|
2024-07-20 17:03:24 +00:00
|
|
|
if (ENABLE_INSTALL_HEADERS)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LookupTables.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibTextCodec/")
|
|
|
|
endif()
|
2024-05-28 00:34:24 +00:00
|
|
|
endfunction()
|