<commit_before>set(BUILD_OSC 1)


if(BUILD_OSC)
message(STATUS "Building OSC module.")

set(OSC_HEADERS
    allocore/protocol/al_OSC.hpp
    allocore/system/al_Parameter.hpp
)

# for oscpack (oscpack sources are included with AlloSystem)
include(TestBigEndian)
test_big_endian(TEST_ENDIAN)
if (TEST_ENDIAN MATCHES 0)
  add_definitions(-DOSC_HOST_LITTLE_ENDIAN)
else()
  add_definitions(-DOSC_HOST_BIG_ENDIAN)
endif()

set(OSCPACK_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/oscpack")

list(APPEND ALLOCORE_SRC
  ${OSCPACK_ROOT_DIR}/osc/OscOutboundPacketStream.cpp
  ${OSCPACK_ROOT_DIR}/osc/OscPrintReceivedElements.cpp
  ${OSCPACK_ROOT_DIR}/osc/OscReceivedElements.cpp
  ${OSCPACK_ROOT_DIR}/osc/OscTypes.cpp
  src/protocol/al_OSC.cpp
  src/system/al_Parameter.cpp)

INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/external")

list(APPEND ALLOCORE_HEADERS ${OSC_HEADERS})

#list(APPEND ALLOCORE_DEP_INCLUDE_DIRS
#  ${GLUT_INCLUDE_DIR})

#list(APPEND ALLOCORE_LINK_LIBRARIES
#  ${GLUT_LIBRARY})

else()
    message("NOT Building OSC module.")
    foreach(header ${OSC_HEADERS})
        list(APPEND OSC_DUMMY_HEADER_INFO "${header}::::OSC")
    endforeach()
    list(APPEND ALLOCORE_DUMMY_HEADERS ${OSC_DUMMY_HEADER_INFO})<commit_msg>Cleaner path handling for oscpath<commit_after>set(BUILD_OSC 1)


if(BUILD_OSC)
message(STATUS "Building OSC module.")

set(OSC_HEADERS
    allocore/protocol/al_OSC.hpp
    allocore/system/al_Parameter.hpp
)

# for oscpack (oscpack sources are included with AlloSystem)
include(TestBigEndian)
test_big_endian(TEST_ENDIAN)
if (TEST_ENDIAN MATCHES 0)
  add_definitions(-DOSC_HOST_LITTLE_ENDIAN)
else()
  add_definitions(-DOSC_HOST_BIG_ENDIAN)
endif()

set(OSCPACK_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/")

list(APPEND ALLOCORE_SRC
  ${OSCPACK_ROOT_DIR}/oscpack/osc/OscOutboundPacketStream.cpp
  ${OSCPACK_ROOT_DIR}/oscpack/osc/OscPrintReceivedElements.cpp
  ${OSCPACK_ROOT_DIR}/oscpack/osc/OscReceivedElements.cpp
  ${OSCPACK_ROOT_DIR}/oscpack/osc/OscTypes.cpp
  src/protocol/al_OSC.cpp
  src/system/al_Parameter.cpp)

INCLUDE_DIRECTORIES("${OSCPACK_ROOT_DIR}")

list(APPEND ALLOCORE_HEADERS ${OSC_HEADERS})

#list(APPEND ALLOCORE_DEP_INCLUDE_DIRS
#  ${GLUT_INCLUDE_DIR})

#list(APPEND ALLOCORE_LINK_LIBRARIES
#  ${GLUT_LIBRARY})

else()
    message("NOT Building OSC module.")
    foreach(header ${OSC_HEADERS})
        list(APPEND OSC_DUMMY_HEADER_INFO "${header}::::OSC")
    endforeach()
    list(APPEND ALLOCORE_DUMMY_HEADERS ${OSC_DUMMY_HEADER_INFO})
{'fraction_non_alphanumeric': 0.11088871096877502, 'fraction_numerical': 0.0016012810248198558, 'mean_word_length': 6.760869565217392, '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': '3201617', 'n_tokens_mistral': 1015, 'n_tokens_neox': 977, 'n_words': 127}