<commit_before>cmake_minimum_required (VERSION 2.8)
project (JDKSAvdeccLogger)

include_directories( "." "jdksavdecc-c/include" "microsupport/include" )

set( JDKSAVDECC_C_FILES
jdksavdecc-c/src/jdksavdecc.c jdksavdecc-c/src/jdksavdecc_acmp_print.c jdksavdecc-c/src/jdksavdecc_adp_print.c jdksavdecc-c/src/jdksavdecc_aecp_print.c jdksavdecc-c/src/jdksavdecc_aem_descriptor.c jdksavdecc-c/src/jdksavdecc_aem_print.c jdksavdecc-c/src/jdksavdecc_allocator.c jdksavdecc-c/src/jdksavdecc_app.c jdksavdecc-c/src/jdksavdecc_app_print.c jdksavdecc-c/src/jdksavdecc_descriptor_storage.c jdksavdecc-c/src/jdksavdecc_descriptor_storage_gen.c jdksavdecc-c/src/jdksavdecc_frame.c jdksavdecc-c/src/jdksavdecc_maap.c jdksavdecc-c/src/jdksavdecc_maap_print.c jdksavdecc-c/src/jdksavdecc_pdu.c jdksavdecc-c/src/jdksavdecc_pdu_print.c jdksavdecc-c/src/jdksavdecc_print.c
jdksavdecc-c/include/jdksavdecc.h jdksavdecc-c/include/jdksavdecc_acmp.h jdksavdecc-c/include/jdksavdecc_acmp_print.h jdksavdecc-c/include/jdksavdecc_adp.h jdksavdecc-c/include/jdksavdecc_adp_print.h jdksavdecc-c/include/jdksavdecc_aecp.h jdksavdecc-c/include/jdksavdecc_aecp_aa.h jdksavdecc-c/include/jdksavdecc_aecp_aem.h jdksavdecc-c/include/jdksavdecc_aecp_avc.h jdksavdecc-c/include/jdksavdecc_aecp_hdcp_apm.h jdksavdecc-c/include/jdksavdecc_aecp_print.h jdksavdecc-c/include/jdksavdecc_aecp_vendor.h jdksavdecc-c/include/jdksavdecc_aem_command.h jdksavdecc-c/include/jdksavdecc_aem_descriptor.h jdksavdecc-c/include/jdksavdecc_aem_print.h jdksavdecc-c/include/jdksavdecc_allocator.h jdksavdecc-c/include/jdksavdecc_app.h jdksavdecc-c/include/jdksavdecc_app_print.h jdksavdecc-c/include/jdksavdecc_avr.h jdksavdecc-c/include/jdksavdecc_descriptor_storage.h jdksavdecc-c/include/jdksavdecc_descriptor_storage_gen.h jdksavdecc-c/include/jdksavdecc_frame.h jdksavdecc-c/include/jdksavdecc_jdks.h jdksavdecc-c/include/jdksavdecc_maap.h jdksavdecc-c/include/jdksavdecc_maap_print.h jdksavdecc-c/include/jdksavdecc_ms.h jdksavdecc-c/include/jdksavdecc_msinttypes.h jdksavdecc-c/include/jdksavdecc_msstdint.h jdksavdecc-c/include/jdksavdecc_pdu.h jdksavdecc-c/include/jdksavdecc_pdu_print.h jdksavdecc-c/include/jdksavdecc_print.h jdksavdecc-c/include/jdksavdecc_util.h jdksavdecc-c/include/jdksavdecc_world.h
)


set( MICROSUPPORT_C_FILES microsupport/src/us_allocator.c  microsupport/src/us_buffer.c microsupport/src/us_buffer_print.c microsupport/src/us_getopt.c microsupport/src/us_http.c microsupport/src/us_logger.c microsupport/src/us_logger_printer.c microsupport/src/us_logger_stdio.c microsupport/src/us_logger_syslog.c  microsupport/src/us_packet.c microsupport/src/us_packet_queue.c microsupport/src/us_parse.c microsupport/src/us_platform.c microsupport/src/us_print.c microsupport/src/us_queue.c microsupport/src/us_rawnet.c microsupport/include/us_rawnet.h microsupport/src/us_time.c microsupport/src/us_rawnet_multi.c microsupport/include/us_rawnet_multi.h microsupport/src/us_world.c )

add_executable("jdksavdecc-logger" "jdksavdecc-logger.h" "jdksavdecc-logger.c" ${MICROSUPPORT_C_FILES} ${JDKSAVDECC_C_FILES})
target_link_libraries("jdksavdecc-logger" ${LIBS})

if(APPLE)
  add_definitions( -DUS_ENABLE_PCAP=1 )
  target_link_libraries( "jdksavdecc-logger" pcap)
elseif(UNIX)
  add_definitions( -DUS_ENABLE_RAW_ETHERNET=1 )
elseif(WIN32)
  add_definitions( -DUS_ENABLE_PCAP=1 )
  target_link_libraries("jdksavdecc-logger" wpcap Iphlpapi Ws2_32)<commit_msg>posix for mac os x and unix<commit_after>cmake_minimum_required (VERSION 2.8)
project (JDKSAvdeccLogger)

include_directories( "." "jdksavdecc-c/include" "microsupport/include" )

set( JDKSAVDECC_C_FILES
jdksavdecc-c/src/jdksavdecc.c jdksavdecc-c/src/jdksavdecc_acmp_print.c jdksavdecc-c/src/jdksavdecc_adp_print.c jdksavdecc-c/src/jdksavdecc_aecp_print.c jdksavdecc-c/src/jdksavdecc_aem_descriptor.c jdksavdecc-c/src/jdksavdecc_aem_print.c jdksavdecc-c/src/jdksavdecc_allocator.c jdksavdecc-c/src/jdksavdecc_app.c jdksavdecc-c/src/jdksavdecc_app_print.c jdksavdecc-c/src/jdksavdecc_descriptor_storage.c jdksavdecc-c/src/jdksavdecc_descriptor_storage_gen.c jdksavdecc-c/src/jdksavdecc_frame.c jdksavdecc-c/src/jdksavdecc_maap.c jdksavdecc-c/src/jdksavdecc_maap_print.c jdksavdecc-c/src/jdksavdecc_pdu.c jdksavdecc-c/src/jdksavdecc_pdu_print.c jdksavdecc-c/src/jdksavdecc_print.c
jdksavdecc-c/include/jdksavdecc.h jdksavdecc-c/include/jdksavdecc_acmp.h jdksavdecc-c/include/jdksavdecc_acmp_print.h jdksavdecc-c/include/jdksavdecc_adp.h jdksavdecc-c/include/jdksavdecc_adp_print.h jdksavdecc-c/include/jdksavdecc_aecp.h jdksavdecc-c/include/jdksavdecc_aecp_aa.h jdksavdecc-c/include/jdksavdecc_aecp_aem.h jdksavdecc-c/include/jdksavdecc_aecp_avc.h jdksavdecc-c/include/jdksavdecc_aecp_hdcp_apm.h jdksavdecc-c/include/jdksavdecc_aecp_print.h jdksavdecc-c/include/jdksavdecc_aecp_vendor.h jdksavdecc-c/include/jdksavdecc_aem_command.h jdksavdecc-c/include/jdksavdecc_aem_descriptor.h jdksavdecc-c/include/jdksavdecc_aem_print.h jdksavdecc-c/include/jdksavdecc_allocator.h jdksavdecc-c/include/jdksavdecc_app.h jdksavdecc-c/include/jdksavdecc_app_print.h jdksavdecc-c/include/jdksavdecc_avr.h jdksavdecc-c/include/jdksavdecc_descriptor_storage.h jdksavdecc-c/include/jdksavdecc_descriptor_storage_gen.h jdksavdecc-c/include/jdksavdecc_frame.h jdksavdecc-c/include/jdksavdecc_jdks.h jdksavdecc-c/include/jdksavdecc_maap.h jdksavdecc-c/include/jdksavdecc_maap_print.h jdksavdecc-c/include/jdksavdecc_ms.h jdksavdecc-c/include/jdksavdecc_msinttypes.h jdksavdecc-c/include/jdksavdecc_msstdint.h jdksavdecc-c/include/jdksavdecc_pdu.h jdksavdecc-c/include/jdksavdecc_pdu_print.h jdksavdecc-c/include/jdksavdecc_print.h jdksavdecc-c/include/jdksavdecc_util.h jdksavdecc-c/include/jdksavdecc_world.h
)


set( MICROSUPPORT_C_FILES microsupport/src/us_allocator.c  microsupport/src/us_buffer.c microsupport/src/us_buffer_print.c microsupport/src/us_getopt.c microsupport/src/us_http.c microsupport/src/us_logger.c microsupport/src/us_logger_printer.c microsupport/src/us_logger_stdio.c microsupport/src/us_logger_syslog.c  microsupport/src/us_packet.c microsupport/src/us_packet_queue.c microsupport/src/us_parse.c microsupport/src/us_platform.c microsupport/src/us_print.c microsupport/src/us_queue.c microsupport/src/us_rawnet.c microsupport/include/us_rawnet.h microsupport/src/us_time.c microsupport/src/us_rawnet_multi.c microsupport/include/us_rawnet_multi.h microsupport/src/us_world.c )

add_executable("jdksavdecc-logger" "jdksavdecc-logger.h" "jdksavdecc-logger.c" ${MICROSUPPORT_C_FILES} ${JDKSAVDECC_C_FILES})
target_link_libraries("jdksavdecc-logger" ${LIBS})

if(APPLE)
  add_definitions( -DUS_ENABLE_PCAP=1 -DUS_CONFIG_POSIX=1)
  target_link_libraries( "jdksavdecc-logger" pcap)
elseif(UNIX)
    add_definitions( -DUS_ENABLE_RAW_ETHERNET=1 -US_CONFIG_POSIX=1)
elseif(WIN32)
  add_definitions( -DUS_ENABLE_PCAP=1 )
  target_link_libraries("jdksavdecc-logger" wpcap Iphlpapi Ws2_32)
{'fraction_non_alphanumeric': 0.09960909222527871, 'fraction_numerical': 0.0031851744606920516, 'mean_word_length': 7.332931242460796, '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': '1145977', 'n_tokens_mistral': 3358, 'n_tokens_neox': 3294, 'n_words': 219}