ladybird/Meta/CMake/libjs_generators.cmake
Timothy Flynn 5c34c7f554 Meta: Move python code generators to a subdirectory
Let's have a bit of organization here, rather than an ever-growing Meta
folder.
2026-04-23 07:31:19 -04:00

12 lines
450 B
CMake

function(generate_bytecode_def_derived)
set(LIBJS_INPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}")
invoke_py_generator(
"Op.cpp"
"generate_libjs_bytecode_def_derived.py"
"${LIBJS_INPUT_FOLDER}/Bytecode/Bytecode.def"
"Bytecode/Op.h"
"Bytecode/Op.cpp"
EXTRA_HEADER "Bytecode/OpCodes.h"
arguments -i "${LIBJS_INPUT_FOLDER}/Bytecode/Bytecode.def"
)
endfunction()