<commit_before>if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	find_package(Freetype REQUIRED)
	include_directories(${FREETYPE_INCLUDE_DIRS})
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

include_directories (
	${PROJECT_SOURCE_DIR}/../ext-deps/EASTL/include
	${CMAKE_SOURCE_DIR}/
	${CMAKE_SOURCE_DIR}/common
	${CMAKE_SOURCE_DIR}/common/math
	${CMAKE_SOURCE_DIR}/tinker
)

set (TINKER_GLGUI_SOURCES
	glgui/glgui.cpp
	glgui/basecontrol.cpp
	glgui/button.cpp
	glgui/checkbox.cpp
	glgui/colorpicker.cpp
	glgui/droppablepanel.cpp
	glgui/filedialog.cpp
	glgui/label.cpp
	glgui/menu.cpp
	glgui/movablepanel.cpp
	glgui/panel.cpp
	glgui/picturebutton.cpp
	glgui/rootpanel.cpp
	glgui/scrollbar.cpp
	glgui/slidingpanel.cpp
	glgui/tree.cpp
	glgui/textfield.cpp
)

set (TINKER_RENDERER_SOURCES
	renderer/renderer.cpp
	renderer/renderingcontext.cpp
	renderer/shaders.cpp
)

set (TINKER_TEXTURES_SOURCES
	textures/materiallibrary.cpp
	textures/texturelibrary.cpp
	textures/texturesheet.cpp
)

set (TINKER_MANIPULATOR_SOURCES
	tools/manipulator/manipulator.cpp
	tools/manipulator/GizmoTransform.cpp
	tools/manipulator/GizmoTransformMove.cpp
	tools/manipulator/GizmoTransformRender.cpp
	tools/manipulator/GizmoTransformRotate.cpp
	tools/manipulator/GizmoTransformScale.cpp
	tools/manipulator/ZBaseMaths.cpp
	tools/manipulator/ZMathsFunc.cpp
)

set (TINKER_SOURCES
	shell.cpp
	application.cpp
	console.cpp
	cvar.cpp
	profiler.cpp

	${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/src/gl3w.c

	${TINKER_GLGUI_SOURCES}
	${TINKER_RENDERER_SOURCES}
	${TINKER_TEXTURES_SOURCES}
	${TINKER_MANIPULATOR_SOURCES}
)

source_group(GLGUI FILES ${TINKER_GLGUI_SOURCES})
source_group(Renderer FILES ${TINKER_RENDERER_SOURCES})
source_group(Textures FILES ${TINKER_TEXTURES_SOURCES})
source_group(Tools\\Manipulator FILES ${TINKER_MANIPULATOR_SOURCES})

include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/include)
include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/SDL2_image-2.0.0/include)
include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/ftgl-gl3/src)

if (WIN32)
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/include)
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/include)
endif (WIN32)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/include)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

add_library(tinker STATIC ${TINKER_SOURCES})
target_link_libraries(tinker lwbase)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECTUABLE} -static-libgcc")
	#target_link_libraries (tinker /usr/lib/libc.a)
	target_link_libraries (tinker ${FREETYPE_LIBRARIES})
	target_link_libraries (tinker X11 Xrandr GL GLU)
	target_link_libraries (tinker ${CMAKE_SOURCE_DIR}/../ext-deps/ftgl-gl3/src/libftgl-gl3.a)
	target_link_libraries (tinker ${CMAKE_SOURCE_DIR}/../ext-deps/glfw/src/libglfw.a)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if (WIN32)
	target_link_libraries(tinker debug D:/build/ftgl-vs2013/src/Debug/ftgl-gl3.lib)
	target_link_libraries(tinker optimized D:/build/ftgl-vs2013/src/Release/ftgl-gl3.lib)
	target_link_libraries(tinker debug ${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/objs/win32/vc2013/freetype2311_D.lib)
	target_link_libraries(tinker optimized ${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/objs/win32/vc2013/freetype2311.lib)

	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/lib/x86/SDL2.lib)
	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/lib/x86/SDL2main.lib)
	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2_image-2.0.0/lib/x86/SDL2_image.lib)

	target_link_libraries(tinker opengl32 glu32)
endif (WIN32)<commit_msg>Build fix<commit_after>if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	find_package(Freetype REQUIRED)
	include_directories(${FREETYPE_INCLUDE_DIRS})
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

include_directories (
	${PROJECT_SOURCE_DIR}/../ext-deps/EASTL/include
	${CMAKE_SOURCE_DIR}/
	${CMAKE_SOURCE_DIR}/common
	${CMAKE_SOURCE_DIR}/common/math
	${CMAKE_SOURCE_DIR}/tinker
)

set (TINKER_GLGUI_SOURCES
	glgui/glgui.cpp
	glgui/basecontrol.cpp
	glgui/button.cpp
	glgui/checkbox.cpp
	glgui/colorpicker.cpp
	glgui/droppablepanel.cpp
	glgui/filedialog.cpp
	glgui/label.cpp
	glgui/menu.cpp
	glgui/movablepanel.cpp
	glgui/panel.cpp
	glgui/picturebutton.cpp
	glgui/rootpanel.cpp
	glgui/scrollbar.cpp
	glgui/slidingpanel.cpp
	glgui/tree.cpp
	glgui/textfield.cpp
)

set (TINKER_RENDERER_SOURCES
	renderer/renderer.cpp
	renderer/renderingcontext.cpp
	renderer/shaders.cpp
)

set (TINKER_TEXTURES_SOURCES
	textures/materiallibrary.cpp
	textures/texturelibrary.cpp
	textures/texturesheet.cpp
)

set (TINKER_MANIPULATOR_SOURCES
	tools/manipulator/manipulator.cpp
	tools/manipulator/GizmoTransform.cpp
	tools/manipulator/GizmoTransformMove.cpp
	tools/manipulator/GizmoTransformRender.cpp
	tools/manipulator/GizmoTransformRotate.cpp
	tools/manipulator/GizmoTransformScale.cpp
	tools/manipulator/ZBaseMaths.cpp
	tools/manipulator/ZMathsFunc.cpp
)

set (TINKER_SOURCES
	shell.cpp
	application.cpp
	console.cpp
	cvar.cpp
	profiler.cpp

	${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/src/gl3w.c

	${TINKER_GLGUI_SOURCES}
	${TINKER_RENDERER_SOURCES}
	${TINKER_TEXTURES_SOURCES}
	${TINKER_MANIPULATOR_SOURCES}
)

source_group(GLGUI FILES ${TINKER_GLGUI_SOURCES})
source_group(Renderer FILES ${TINKER_RENDERER_SOURCES})
source_group(Textures FILES ${TINKER_TEXTURES_SOURCES})
source_group(Tools\\Manipulator FILES ${TINKER_MANIPULATOR_SOURCES})

include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/include)
include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/SDL2_image-2.0.0/include)
include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/ftgl-gl3/src)

if (WIN32)
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/include)
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/include)
endif (WIN32)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	include_directories(${CMAKE_SOURCE_DIR}/../ext-deps/gl3w/include)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

add_library(tinker STATIC ${TINKER_SOURCES})
target_link_libraries(tinker lwbase)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECTUABLE} -static-libgcc")
	#target_link_libraries (tinker /usr/lib/libc.a)
	target_link_libraries (tinker ${FREETYPE_LIBRARIES})
	target_link_libraries (tinker X11 Xrandr GL GLU)
	target_link_libraries (tinker ${CMAKE_SOURCE_DIR}/../ext-deps/ftgl-gl3/src/libftgl-gl3.a)
	target_link_libraries (tinker ${CMAKE_SOURCE_DIR}/../ext-deps/glfw/src/libglfw.a)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if (WIN32)
	target_link_libraries(tinker debug /build/ftgl-vs2013/src/Debug/ftgl-gl3.lib)
	target_link_libraries(tinker optimized /build/ftgl-vs2013/src/Release/ftgl-gl3.lib)
	target_link_libraries(tinker debug ${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/objs/win32/vc2013/freetype2311_D.lib)
	target_link_libraries(tinker optimized ${CMAKE_SOURCE_DIR}/../ext-deps/freetype-2.3.11/objs/win32/vc2013/freetype2311.lib)

	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/lib/x86/SDL2.lib)
	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2-2.0.2/lib/x86/SDL2main.lib)
	target_link_libraries(tinker ${CMAKE_SOURCE_DIR}/../ext-deps/SDL2_image-2.0.0/lib/x86/SDL2_image.lib)

	target_link_libraries(tinker opengl32 glu32)
endif (WIN32)
{'fraction_non_alphanumeric': 0.12860609328660016, 'fraction_numerical': 0.02480452952278242, 'mean_word_length': 6.3310276679841895, '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': '6776575', 'n_tokens_mistral': 3406, 'n_tokens_neox': 3112, 'n_words': 316}