<commit_before>cmake_minimum_required(VERSION 2.8)

project(orbit.lv2)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})

set(CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
add_definitions("-D_GNU_SOURCE=1") # asprintf

set(ORBIT_MAJOR_VERSION 0)
set(ORBIT_MINOR_VERSION 1)
set(ORBIT_MICRO_VERSION 0)
set(ORBIT_VERSION "${ORBIT_MAJOR_VERSION}.${ORBIT_MINOR_VERSION}.${ORBIT_MICRO_VERSION}")
add_definitions("-DORBIT_VERSION=\"${ORBIT_VERSION}\"")

set(DEST lib/lv2/orbit.lv2)
if(WIN32)
	set(LIB_EXT ".dll")
elseif(APPLE)
	set(LIB_EXT ".so")
else()
	set(LIB_EXT ".so")
endif()

find_package(PkgConfig) # ${PKG_CONFIG_FOUND}

# orbit
add_library(orbit MODULE
	orbit.c
	orbit_looper.c
	orbit_pacemaker.c)
target_link_libraries(orbit ${LIBS})
set_target_properties(orbit PROPERTIES PREFIX "")
install(TARGETS orbit DESTINATION ${DEST})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/orbit.ttl DESTINATION ${DEST})

# manifest
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/manifest.ttl.in ${PROJECT_BINARY_DIR}/manifest.ttl)
install(FILES ${PROJECT_BINARY_DIR}/manifest.ttl DESTINATION ${DEST})
<commit_msg>fix symbol visibility.<commit_after>cmake_minimum_required(VERSION 2.8)

project(orbit.lv2)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})

set(CMAKE_C_FLAGS "-std=gnu99 -fvisibility=hidden ${CMAKE_C_FLAGS}")
add_definitions("-D_GNU_SOURCE=1") # asprintf

set(ORBIT_MAJOR_VERSION 0)
set(ORBIT_MINOR_VERSION 1)
set(ORBIT_MICRO_VERSION 0)
set(ORBIT_VERSION "${ORBIT_MAJOR_VERSION}.${ORBIT_MINOR_VERSION}.${ORBIT_MICRO_VERSION}")
add_definitions("-DORBIT_VERSION=\"${ORBIT_VERSION}\"")

set(DEST lib/lv2/orbit.lv2)
if(WIN32)
	set(LIB_EXT ".dll")
elseif(APPLE)
	set(LIB_EXT ".so")
else()
	set(LIB_EXT ".so")
endif()

find_package(PkgConfig) # ${PKG_CONFIG_FOUND}

# orbit
add_library(orbit MODULE
	orbit.c
	orbit_looper.c
	orbit_pacemaker.c)
target_link_libraries(orbit ${LIBS})
set_target_properties(orbit PROPERTIES PREFIX "")
install(TARGETS orbit DESTINATION ${DEST})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/orbit.ttl DESTINATION ${DEST})

# manifest
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/manifest.ttl.in ${PROJECT_BINARY_DIR}/manifest.ttl)
install(FILES ${PROJECT_BINARY_DIR}/manifest.ttl DESTINATION ${DEST})

{'fraction_non_alphanumeric': 0.1386095321381723, 'fraction_numerical': 0.011368605159597726, 'mean_word_length': 9.592592592592593, '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': '2794101', 'n_tokens_mistral': 955, 'n_tokens_neox': 901, 'n_words': 121}