<commit_before>INCLUDE( MacroInstallFramework )
INCLUDE( MacroExtractArchive )

SET( CRIMILD_INCLUDE_DIRECTORIES
	 ${CRIMILD_SOURCE_DIR}/core/src
)

SET( CRIMILD_LIBRARY_LINK_LIBRARIES
	${CRIMILD_LIBRARY_LINK_LIBRARIES}
	 crimild_core
)

FIND_PACKAGE( Vulkan REQUIRED )

SET( CRIMILD_INCLUDE_DIRECTORIES
  ${CRIMILD_INCLUDE_DIRECTORIES}
		${Vulkan_INCLUDE_DIRS}
)

SET( CRIMILD_LIBRARY_LINK_LIBRARIES
 	  ${CRIMILD_LIBRARY_LINK_LIBRARIES}
		${Vulkan_LIBRARIES}
		#"-framework Metal"
		#"-framework IOSurface"
		#"-framework QuartzCore"
 )

INCLUDE( ModuleBuildLibrary )

ADD_CUSTOM_COMMAND(
	TARGET crimild_vulkan
	PRE_BUILD
	COMMAND sh
	ARGS ${CRIMILD_SOURCE_DIR}/vulkan/src/Rendering/Shaders/build_shaders.sh .
	WORKING_DIRECTORY ${CRIMILD_SOURCE_DIR}/vulkan/src/Rendering/Shaders
	COMMENT "Compiling Crimild::Vulkan built-in shaders"
	VERBATIM
)<commit_msg>Add a custom command to build vulkan shaders<commit_after>INCLUDE( MacroInstallFramework )
INCLUDE( MacroExtractArchive )

SET( CRIMILD_INCLUDE_DIRECTORIES
	 ${CRIMILD_SOURCE_DIR}/core/src
)

SET( CRIMILD_LIBRARY_LINK_LIBRARIES
	${CRIMILD_LIBRARY_LINK_LIBRARIES}
	 crimild_core
)

FIND_PACKAGE( Vulkan REQUIRED )

SET( CRIMILD_INCLUDE_DIRECTORIES
  ${CRIMILD_INCLUDE_DIRECTORIES}
		${Vulkan_INCLUDE_DIRS}
)

SET( CRIMILD_LIBRARY_LINK_LIBRARIES
 	  ${CRIMILD_LIBRARY_LINK_LIBRARIES}
		${Vulkan_LIBRARIES}
		#"-framework Metal"
		#"-framework IOSurface"
		#"-framework QuartzCore"
 )

INCLUDE( ModuleBuildLibrary )

ADD_CUSTOM_TARGET(
    crimild_vulkan_shaders
    ALL
	COMMAND sh ${CRIMILD_SOURCE_DIR}/vulkan/src/Rendering/Shaders/build_shaders.sh .
	WORKING_DIRECTORY ${CRIMILD_SOURCE_DIR}/vulkan/src/Rendering/Shaders
	COMMENT "Compiling Crimild::Vulkan built-in shaders"
	VERBATIM
)

ADD_DEPENDENCIES( crimild_vulkan_shaders crimild_core )
{'fraction_non_alphanumeric': 0.08435072142064373, 'fraction_numerical': 0.0, 'mean_word_length': 6.771551724137931, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1521218', 'n_tokens_mistral': 777, 'n_tokens_neox': 707, 'n_words': 100}