<commit_before>cmake_minimum_required(VERSION 3.7.1)

#set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_DISABLE_SOURCE_CHANGES  ON)

project(nany-bootstrap)

option(WITH_PACKAGE_DEB "Build DEB control" OFF)

include(CMakeParseArguments)

# for information related to nany, see settings.txt


include("cmake/messages.cmake")
include(GNUInstallDirs)

nmessage("nany c++/bootstrap")
nmessage("")
nmessage("cmake ${CMAKE_VERSION} in '${CMAKE_SYSTEM}' ${CMAKE_SYSTEM_PROCESSOR}")
nmessage("  from '${CMAKE_COMMAND}', '${CMAKE_ROOT}'")
nmessage("current listdir: ${CMAKE_CURRENT_LIST_DIR}")
nmessage("")

include("cmake/utils.cmake")
include("cmake/build-settings.cmake")
include("cmake/compilation-database.cmake")
include("cmake/arch-platform.cmake")

include("cmake/libdyncall.cmake")
include("cmake/libyuni.cmake")
include("cmake/grammar.cmake")

add_subdirectory(tools)
add_subdirectory("libnanyc")
add_subdirectory(src)

get_filename_component(nany_tests_root "${CMAKE_CURRENT_LIST_DIR}/../../tests/" REALPATH)
add_custom_target(check
	DEPENDS nanyc-unittest
	COMMAND "${CMAKE_COMMAND}" -E "echo" # for beauty
	COMMAND "$<TARGET_FILE:nanyc-unittest>" --nsl
	VERBATIM
)
<commit_msg>cmake: compile dyncall after libyuni to inherit C++ compilation flags<commit_after>cmake_minimum_required(VERSION 3.7.1)

#set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_DISABLE_SOURCE_CHANGES  ON)

project(nany-bootstrap)

option(WITH_PACKAGE_DEB "Build DEB control" OFF)

include(CMakeParseArguments)

# for information related to nany, see settings.txt


include("cmake/messages.cmake")
include(GNUInstallDirs)

nmessage("nany c++/bootstrap")
nmessage("")
nmessage("cmake ${CMAKE_VERSION} in '${CMAKE_SYSTEM}' ${CMAKE_SYSTEM_PROCESSOR}")
nmessage("  from '${CMAKE_COMMAND}', '${CMAKE_ROOT}'")
nmessage("current listdir: ${CMAKE_CURRENT_LIST_DIR}")
nmessage("")

include("cmake/utils.cmake")
include("cmake/build-settings.cmake")
include("cmake/compilation-database.cmake")
include("cmake/arch-platform.cmake")

include("cmake/libyuni.cmake")
include("cmake/libdyncall.cmake")
include("cmake/grammar.cmake")

add_subdirectory(tools)
add_subdirectory("libnanyc")
add_subdirectory(src)

get_filename_component(nany_tests_root "${CMAKE_CURRENT_LIST_DIR}/../../tests/" REALPATH)
add_custom_target(check
	DEPENDS nanyc-unittest
	COMMAND "${CMAKE_COMMAND}" -E "echo" # for beauty
	COMMAND "$<TARGET_FILE:nanyc-unittest>" --nsl
	VERBATIM
)

{'fraction_non_alphanumeric': 0.1452814569536424, 'fraction_numerical': 0.0024834437086092716, 'mean_word_length': 8.515748031496063, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2815852', 'n_tokens_mistral': 909, 'n_tokens_neox': 893, 'n_words': 137}