<commit_before>set(sources
    arm_counters.h
)

if(ANDROID)
    list(APPEND sources
        arm_counters.cpp

        official/lizard/include/lizard/lizard_api.h
        official/lizard/lizard_api.cpp

        official/lizard/include/lizard/lizard.hpp
        official/lizard/lizard.cpp
        official/lizard/lizard_counter.cpp
        official/lizard/lizard_communication.hpp
        official/lizard/lizard_communication.cpp
        official/lizard/hwcpipe_communication.hpp
        official/lizard/hwcpipe_communication.cpp
        official/lizard/hwcpipe_api.hpp
        official/lizard/hwcpipe_api.cpp
        official/lizard/gatord_xml_reader.cpp

        official/lizard/gator_api.cpp
        official/lizard/gator_constants.hpp
        official/lizard/gator_message.cpp
        official/lizard/gator_message.hpp
        official/lizard/message_util.cpp
        official/lizard/message_util.hpp
        official/lizard/socket.cpp

        official/lizard/thirdparty/hwcpipe/hwcpipe.h
        official/lizard/thirdparty/hwcpipe/hwcpipe.cpp
        official/lizard/thirdparty/hwcpipe/cpu_profiler.h
        official/lizard/thirdparty/hwcpipe/gpu_profiler.h
        official/lizard/thirdparty/hwcpipe/value.h

        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/hwc.hpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/hwc_names.hpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/mali_profiler.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/mali_profiler.cpp

        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_counter.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_counter.cpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_profiler.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_profiler.cpp
    )
else()
    list(APPEND sources
         arm_counters_stub.cpp
    )
endif()

set_property(SOURCE ${sources}
    PROPERTY COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-range-loop-construct")

add_library(rdoc_arm OBJECT ${sources})

set(include_dirs
    ${RDOC_INCLUDES}
    official/lizard/
    official/lizard/include/lizard
    official/lizard/thirdparty/hwcpipe/
)
target_include_directories(rdoc_arm ${include_dirs})
target_compile_definitions(rdoc_arm ${RDOC_DEFINITIONS})<commit_msg>Disable -Wshadow & -Wshorten-64-to-32 for ihv/arm<commit_after>set(sources
    arm_counters.h
)

if(ANDROID)
    list(APPEND sources
        arm_counters.cpp

        official/lizard/include/lizard/lizard_api.h
        official/lizard/lizard_api.cpp

        official/lizard/include/lizard/lizard.hpp
        official/lizard/lizard.cpp
        official/lizard/lizard_counter.cpp
        official/lizard/lizard_communication.hpp
        official/lizard/lizard_communication.cpp
        official/lizard/hwcpipe_communication.hpp
        official/lizard/hwcpipe_communication.cpp
        official/lizard/hwcpipe_api.hpp
        official/lizard/hwcpipe_api.cpp
        official/lizard/gatord_xml_reader.cpp

        official/lizard/gator_api.cpp
        official/lizard/gator_constants.hpp
        official/lizard/gator_message.cpp
        official/lizard/gator_message.hpp
        official/lizard/message_util.cpp
        official/lizard/message_util.hpp
        official/lizard/socket.cpp

        official/lizard/thirdparty/hwcpipe/hwcpipe.h
        official/lizard/thirdparty/hwcpipe/hwcpipe.cpp
        official/lizard/thirdparty/hwcpipe/cpu_profiler.h
        official/lizard/thirdparty/hwcpipe/gpu_profiler.h
        official/lizard/thirdparty/hwcpipe/value.h

        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/hwc.hpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/hwc_names.hpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/mali_profiler.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/mali/mali_profiler.cpp

        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_counter.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_counter.cpp
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_profiler.h
        official/lizard/thirdparty/hwcpipe/vendor/arm/pmu/pmu_profiler.cpp
    )
else()
    list(APPEND sources
         arm_counters_stub.cpp
    )
endif()

set_property(SOURCE ${sources}
    PROPERTY COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-range-loop-construct")

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
    set_property(SOURCE ${sources} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-shadow -Wno-shorten-64-to-32")
endif()

add_library(rdoc_arm OBJECT ${sources})

set(include_dirs
    ${RDOC_INCLUDES}
    official/lizard/
    official/lizard/include/lizard
    official/lizard/thirdparty/hwcpipe/
)
target_include_directories(rdoc_arm ${include_dirs})
target_compile_definitions(rdoc_arm ${RDOC_DEFINITIONS})
{'fraction_non_alphanumeric': 0.09401709401709402, 'fraction_numerical': 0.0016677089847821555, 'mean_word_length': 3.172173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6705680', 'n_tokens_mistral': 1686, 'n_tokens_neox': 1667, 'n_words': 136}