<commit_before>cmake_minimum_required(VERSION 2.8)

# project config
project(libaroma)
set(CMAKE_BUILD_TYPE Release)

# default values
if(NOT DEFINED CMAKE_LINK_TYPE)
	set(CMAKE_LINK_TYPE STATIC)
endif()
if(NOT DEFINED LIBAROMA_PLATFORM_NAME)
	set(LIBAROMA_PLATFORM_NAME "linux")
endif()
if(NOT DEFINED NEON)
	set(NEON true)
endif()
if(NOT DEFINED VFPV3)
	set(VFPV3 true)
endif()
message("NEON:\t\t ${NEON}")
message("VFPV3:\t\t ${VFPV3}")

# linkage
if("${CMAKE_LINK_TYPE}" STREQUAL "STATIC")
	message("Linkage:\t static")
	set(CMAKE_SKIP_RPATH YES)
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
else()
	message("Linkage:\t shared")
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()

# release&debug flags<commit_msg>cmake: set NEON/VFP config for ARM only<commit_after>cmake_minimum_required(VERSION 2.8)

# project config
project(libaroma)
set(CMAKE_BUILD_TYPE Release)

# default values
if(NOT DEFINED CMAKE_LINK_TYPE)
	set(CMAKE_LINK_TYPE STATIC)
endif()
if(NOT DEFINED LIBAROMA_PLATFORM_NAME)
	set(LIBAROMA_PLATFORM_NAME "linux")
endif()
if("${ARCHITECTURE}" STREQUAL "arm")
	if(NOT DEFINED NEON)
		set(NEON true)
	endif()
	if(NOT DEFINED VFPV3)
		set(VFPV3 true)
	endif()
	message("NEON:\t\t ${NEON}")
	message("VFPV3:\t\t ${VFPV3}")
endif()

# linkage
if("${CMAKE_LINK_TYPE}" STREQUAL "STATIC")
	message("Linkage:\t static")
	set(CMAKE_SKIP_RPATH YES)
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
else()
	message("Linkage:\t shared")
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()

# release&debug flags
{'fraction_non_alphanumeric': 0.146836912362159, 'fraction_numerical': 0.006964596633778294, 'mean_word_length': 7.450980392156863, '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': '6222238', 'n_tokens_mistral': 784, 'n_tokens_neox': 732, 'n_words': 135}