<commit_before>
set(BREAKPAD_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../src)

if(WIN32)
	set(CLIENT_SRC_DIR ${BREAKPAD_SRC_DIR}/client/windows)
	include_directories(${BREAKPAD_SRC_DIR} ${BREAKPAD_SRC_DIR}/third_party/windows/include)
	set(CLIENT_LIB_SRCS
		${CLIENT_SRC_DIR}/handler/exception_handler.cc
		${CLIENT_SRC_DIR}/crash_generation/client_info.cc
		${CLIENT_SRC_DIR}/crash_generation/crash_generation_client.cc
		${CLIENT_SRC_DIR}/crash_generation/crash_generation_server.cc
		${CLIENT_SRC_DIR}/crash_generation/minidump_generator.cc
		${BREAKPAD_SRC_DIR}/common/windows/guid_string.cc
	)
	add_library(breakpad ${CLIENT_LIB_SRCS})
elseif(APPLE)
	# TODO - Mac build system
elseif(UNIX)
	set(CLIENT_SRC_DIR ${BREAKPAD_SRC_DIR}/client/linux)
	include_directories(${BREAKPAD_SRC_DIR} ${BREAKPAD_SRC_DIR}/third_party/linux/include)
	set(CLIENT_LIB_SRCS
		${CLIENT_SRC_DIR}/handler/exception_handler.cc
		${CLIENT_SRC_DIR}/minidump_writer/linux_dumper.cc
		${CLIENT_SRC_DIR}/minidump_writer/minidump_writer.cc
		${CLIENT_SRC_DIR}/../minidump_file_writer.cc
		${BREAKPAD_SRC_DIR}/common/string_conversion.cc
		${BREAKPAD_SRC_DIR}/common/linux/file_id.cc
		${BREAKPAD_SRC_DIR}/common/linux/guid_creator.cc
		${BREAKPAD_SRC_DIR}/common/convert_UTF.c
	)
	add_library(breakpad ${CLIENT_LIB_SRCS})
endif()
<commit_msg>Implement CMake build system for breakpad client crash handler library on Mac.<commit_after>
set(BREAKPAD_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../src)

if(WIN32)
	set(CLIENT_SRC_DIR ${BREAKPAD_SRC_DIR}/client/windows)
	include_directories(${BREAKPAD_SRC_DIR} ${BREAKPAD_SRC_DIR}/third_party/windows/include)
	set(CLIENT_LIB_SRCS
		${CLIENT_SRC_DIR}/handler/exception_handler.cc
		${CLIENT_SRC_DIR}/crash_generation/client_info.cc
		${CLIENT_SRC_DIR}/crash_generation/crash_generation_client.cc
		${CLIENT_SRC_DIR}/crash_generation/crash_generation_server.cc
		${CLIENT_SRC_DIR}/crash_generation/minidump_generator.cc
		${BREAKPAD_SRC_DIR}/common/windows/guid_string.cc
	)
	add_library(breakpad ${CLIENT_LIB_SRCS})
elseif(APPLE)
	set(CLIENT_SRC_DIR ${BREAKPAD_SRC_DIR}/client/mac)
	include_directories(${BREAKPAD_SRC_DIR} ${BREAKPAD_SRC_DIR}/third_party/mac/include)
	set(CLIENT_LIB_SRCS
			${CLIENT_SRC_DIR}/handler/exception_handler.cc
			${CLIENT_SRC_DIR}/handler/dynamic_images.cc
			${CLIENT_SRC_DIR}/handler/minidump_generator.cc
			${BREAKPAD_SRC_DIR}/common/mac/file_id.cc
			${BREAKPAD_SRC_DIR}/common/mac/macho_id.cc
			${BREAKPAD_SRC_DIR}/common/mac/macho_utilities.cc
			${BREAKPAD_SRC_DIR}/common/mac/macho_walker.cc
			${BREAKPAD_SRC_DIR}/common/mac/string_utilities.cc
			${BREAKPAD_SRC_DIR}/common/string_conversion.cc
			${BREAKPAD_SRC_DIR}/common/convert_UTF.c
			${BREAKPAD_SRC_DIR}/client/minidump_file_writer.cc
	)
	add_library(breakpad ${CLIENT_LIB_SRCS})
	target_link_libraries(breakpad crypto)
elseif(UNIX)
	set(CLIENT_SRC_DIR ${BREAKPAD_SRC_DIR}/client/linux)
	include_directories(${BREAKPAD_SRC_DIR} ${BREAKPAD_SRC_DIR}/third_party/linux/include)
	set(CLIENT_LIB_SRCS
		${CLIENT_SRC_DIR}/handler/exception_handler.cc
		${CLIENT_SRC_DIR}/minidump_writer/linux_dumper.cc
		${CLIENT_SRC_DIR}/minidump_writer/minidump_writer.cc
		${CLIENT_SRC_DIR}/../minidump_file_writer.cc
		${BREAKPAD_SRC_DIR}/common/string_conversion.cc
		${BREAKPAD_SRC_DIR}/common/linux/file_id.cc
		${BREAKPAD_SRC_DIR}/common/linux/guid_creator.cc
		${BREAKPAD_SRC_DIR}/common/convert_UTF.c
	)
	add_library(breakpad ${CLIENT_LIB_SRCS})
endif()

{'fraction_non_alphanumeric': 0.12148448825746594, 'fraction_numerical': 0.0011597564511452595, 'mean_word_length': 7.668341708542713, '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': '2847586', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1366, 'n_words': 105}