<commit_before>set(codegen_in ${CMAKE_CURRENT_SOURCE_DIR}/input)
set(codegen_out ${CMAKE_CURRENT_BINARY_DIR}/)

set(codegen_GENERATED
    ${codegen_out}/entrypTypedefs.inl
    ${codegen_out}/wrappers.inl
    ${codegen_out}/exporters.inl
    ${codegen_out}/exporters-ext.inl
    ${codegen_out}/exporters-android.inl
    ${codegen_out}/functionList.inl
    ${codegen_out}/entrypointEnumList.inl
    ${codegen_out}/enum.inl
    ${codegen_out}/enum-groups.inl
    ${codegen_in}/GL/glx.h
    ${codegen_out}/GL/glx.h
    ${codegen_out}/GL/glxext.h
    ${codegen_out}/GL/wgl.h
    ${codegen_out}/GL/wglext.h
    ${codegen_out}/GLES/gl.h
    ${codegen_out}/GL/glext.h
    ${codegen_out}/GLES2/gl2.h
    ${codegen_out}/GLES2/gl2ext.h
    ${codegen_out}/GLES3/gl3.h 
    ${codegen_out}/GL/gl.h 


)
add_custom_command(
    OUTPUT ${codegen_GENERATED}
    COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../codegen/codegen.py 
        ${codegen_in} ${codegen_out}
        MAIN_DEPENDENCY ${codegen_in}/gl.xml
        DEPENDS
        ${CMAKE_CURRENT_SOURCE_DIR}/../codegen/codegen.py
        ${codegen_in}/gl.xml
        ${codegen_in}/egl.xml
        ${codegen_in}/glx.xml
        ${codegen_in}/wgl.xml
        ${codegen_in}/../wgl-notrace.xml<commit_msg>Fixup codegen's CMakeLists.txt to not re-generate all files each time.<commit_after>set(codegen_in ${CMAKE_CURRENT_SOURCE_DIR}/input)
set(codegen_out ${CMAKE_CURRENT_BINARY_DIR}/)

set(codegen_GENERATED
    ${codegen_out}/entrypTypedefs.inl
    ${codegen_out}/wrappers.inl
    ${codegen_out}/exporters.inl
    ${codegen_out}/exporters-ext.inl
    ${codegen_out}/exporters-android.inl
    ${codegen_out}/functionList.inl
    ${codegen_out}/entrypointEnumList.inl
    ${codegen_out}/enum.inl
    ${codegen_out}/enum-groups.inl
    ${codegen_out}/GL/glx.h
    ${codegen_out}/GL/glxext.h
    ${codegen_out}/GL/wgl.h
    ${codegen_out}/GL/wglext.h
    ${codegen_out}/GLES/gl.h
    ${codegen_out}/GL/glext.h
    ${codegen_out}/GLES2/gl2.h
    ${codegen_out}/GLES2/gl2ext.h
    ${codegen_out}/GLES3/gl3.h 
    ${codegen_out}/GL/gl.h 


)
add_custom_command(
    OUTPUT ${codegen_GENERATED}
    COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../codegen/codegen.py 
        ${codegen_in} ${codegen_out}
        MAIN_DEPENDENCY ${codegen_in}/gl.xml
        DEPENDS
        ${CMAKE_CURRENT_SOURCE_DIR}/../codegen/codegen.py
        ${codegen_in}/gl.xml
        ${codegen_in}/egl.xml
        ${codegen_in}/glx.xml
        ${codegen_in}/wgl.xml
        ${codegen_in}/../wgl-notrace.xml
{'fraction_non_alphanumeric': 0.15323224261771748, 'fraction_numerical': 0.004788507581803671, 'mean_word_length': 3.256366723259762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '743933', 'n_tokens_mistral': 974, 'n_tokens_neox': 1014, 'n_words': 91}