<commit_before>PROJECT(RadDebugger)
cmake_minimum_required(VERSION 2.8)

set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${SRC_DIR}/cmake/Modules/")
set(CMAKE_EXTERNAL_PATH "${SRC_DIR}/../../external")

if (WIN32)
    # TODO: s/CMAKE_PREFIX_PATH/CMAKE_EXTERNAL_WINDOWS_PATH/g
    set(CMAKE_PREFIX_PATH "${CMAKE_EXTERNAL_PATH}/windows")
    set(WIN32_PTHREADS_PATH "${CMAKE_PREFIX_PATH}/pthreads.2")
    set(WIN32_PTHREADS_INCLUDE_PATH "${WIN32_PTHREADS_PATH}/include")
endif()

# Always look. It won't be found on Windows. Later build scripts will understand how to 
# WAR it being missing.
find_package(TinyXML)

message("")
message("cmake options:")
message("  -DCMAKE_BUILD_TYPE='${CMAKE_BUILD_TYPE}': Build debug or release. (Debug|Release)")
message("  -DVOGLTEST_LOAD_LIBVOGLTRACE='${VOGLTEST_LOAD_LIBVOGLTRACE}': glitest will load libvogltrace.so manually (don't implictly link against libgl.so). (On|Off)")
message("  -DVOGLTRACE_NO_PUBLIC_EXPORTS='${VOGLTRACE_NO_PUBLIC_EXPORTS}': Don't define any public GL exports in libvogltrace.so. (On|Off)")
message("  -DVOGL_ENABLE_ASSERTS='${VOGL_ENABLE_ASSERTS}': Enable assertions in all voglcore builds (including release). (On|Off)")
message("  -DCMAKE_VERBOSE='${CMAKE_VERBOSE}': Spew cmake project options. (On|Off)")
message("  -DBUILD_X64='${BUILD_X64}': Build 32 or 64-bit. (On|Off)")
message("  -DWITH_ASAN='${WITH_ASAN}': Build with Address sanitizer. (On|Off)")
message("  -DUSE_TELEMETRY='${USE_TELEMETRY}': Build with Telemetry. (On|Off)")
message("  -DUSE_MALLOC='${USE_MALLOC}': Use system malloc (not STB Malloc). (On|Off)")
message("")

#
#  Components to build
#

### All of these must be included eventually.
add_subdirectory(src/voglcore) # 1
add_subdirectory(src/voglgen) # 2
add_subdirectory(src/voglcommon) # 3
add_subdirectory(src/voglreplay) # 4
add_subdirectory(src/voglbench) # 5
add_subdirectory(src/vogltrace) # 6
add_subdirectory(src/vogltest) # 7
add_subdirectory(src/glxspheres) # 8

add_subdirectory(src/extlib/pxfmt) # 12
add_subdirectory(src/ktxtool) # 13

if (NOT WIN32)
    add_subdirectory(src/vogleditor) # 9
    add_subdirectory(src/libbacktrace) # 10
    add_subdirectory(src/libbacktrace_test) # 11
endif()
<commit_msg>Rename RadDebugger project to VoglDebugger and enable vogleditor to build in Windows<commit_after>PROJECT(VoglDebugger)
cmake_minimum_required(VERSION 2.8)

set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${SRC_DIR}/cmake/Modules/")
set(CMAKE_EXTERNAL_PATH "${SRC_DIR}/../../external")

if (WIN32)
    # TODO: s/CMAKE_PREFIX_PATH/CMAKE_EXTERNAL_WINDOWS_PATH/g
    set(CMAKE_PREFIX_PATH "${CMAKE_EXTERNAL_PATH}/windows")
    set(WIN32_PTHREADS_PATH "${CMAKE_PREFIX_PATH}/pthreads.2")
    set(WIN32_PTHREADS_INCLUDE_PATH "${WIN32_PTHREADS_PATH}/include")
endif()

# Always look. It won't be found on Windows. Later build scripts will understand how to 
# WAR it being missing.
find_package(TinyXML)

message("")
message("cmake options:")
message("  -DCMAKE_BUILD_TYPE='${CMAKE_BUILD_TYPE}': Build debug or release. (Debug|Release)")
message("  -DVOGLTEST_LOAD_LIBVOGLTRACE='${VOGLTEST_LOAD_LIBVOGLTRACE}': glitest will load libvogltrace.so manually (don't implictly link against libgl.so). (On|Off)")
message("  -DVOGLTRACE_NO_PUBLIC_EXPORTS='${VOGLTRACE_NO_PUBLIC_EXPORTS}': Don't define any public GL exports in libvogltrace.so. (On|Off)")
message("  -DVOGL_ENABLE_ASSERTS='${VOGL_ENABLE_ASSERTS}': Enable assertions in all voglcore builds (including release). (On|Off)")
message("  -DCMAKE_VERBOSE='${CMAKE_VERBOSE}': Spew cmake project options. (On|Off)")
message("  -DBUILD_X64='${BUILD_X64}': Build 32 or 64-bit. (On|Off)")
message("  -DWITH_ASAN='${WITH_ASAN}': Build with Address sanitizer. (On|Off)")
message("  -DUSE_TELEMETRY='${USE_TELEMETRY}': Build with Telemetry. (On|Off)")
message("  -DUSE_MALLOC='${USE_MALLOC}': Use system malloc (not STB Malloc). (On|Off)")
message("")

#
#  Components to build
#

### All of these must be included eventually.
add_subdirectory(src/voglcore) # 1
add_subdirectory(src/voglgen) # 2
add_subdirectory(src/voglcommon) # 3
add_subdirectory(src/voglreplay) # 4
add_subdirectory(src/voglbench) # 5
add_subdirectory(src/vogltrace) # 6
add_subdirectory(src/vogltest) # 7
add_subdirectory(src/glxspheres) # 8
add_subdirectory(src/vogleditor) # 9

add_subdirectory(src/extlib/pxfmt) # 12
add_subdirectory(src/ktxtool) # 13

if (NOT WIN32)
    add_subdirectory(src/libbacktrace) # 10
    add_subdirectory(src/libbacktrace_test) # 11
endif()

{'fraction_non_alphanumeric': 0.1388646288209607, 'fraction_numerical': 0.016593886462882096, 'mean_word_length': 6.790816326530612, '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': '7410147', 'n_tokens_mistral': 1821, 'n_tokens_neox': 1698, 'n_words': 337}