Skip to content

Commit

Permalink
Keep CMake files sorted
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700423079
  • Loading branch information
dhoekwater authored and copybara-github committed Nov 26, 2024
1 parent 9827311 commit 11137e5
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions propeller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,88 +16,102 @@

# Build all Proto targets into a unified C++ library.
add_library(propeller_protos
# keep-sorted start
branch_frequencies.proto
cfg.proto
propeller_options.proto
# keep-sorted end
)
protobuf_generate(TARGET propeller_protos LANGUAGE cpp)
target_link_libraries(propeller_protos PUBLIC ${Protobuf_LIBRARIES})

# Build all CXX targets into a unified library.
add_library(propeller_lib OBJECT
# keep-sorted start
addr2cu.cc
binary_address_mapper.cc
binary_content.cc
branch_aggregation.cc
branch_frequencies.cc
cfg.cc
cfg_edge_kind.cc
cfg_node.cc
cfg.cc
chain_cluster_builder.cc
code_layout_scorer.cc
code_layout.cc
code_layout_scorer.cc
file_perf_data_provider.cc
frequencies_branch_aggregator.cc
lbr_branch_aggregator.cc
node_chain.cc
node_chain_assembly.cc
node_chain_builder.cc
node_chain.cc
perfdata_reader.cc
perf_branch_frequencies_aggregator.cc
program_cfg_builder.cc
perfdata_reader.cc
program_cfg.cc
program_cfg_builder.cc
propeller_statistics.cc
proto_branch_frequencies_aggregator.cc
resolve_mmap_name.cc
spe_tid_pid_provider.cc
# keep-sorted end
)
target_link_libraries(propeller_lib
absl::base
propeller_protos
# keep-sorted start
LLVMDebugInfoDWARF
LLVMSupport
quipper_protos
absl::base
propeller_protos
quipper_lib
quipper_protos
# keep-sorted end
)

# Build all CXX test utilities into a unified library.
add_library(propeller_test_lib OBJECT
# keep-sorted start
cfg_testutil.cc
function_chain_info_matchers.cc
mock_program_cfg_builder.cc
# keep-sorted end
)
target_link_libraries(propeller_test_lib
# keep-sorted start
absl::base
absl::flat_hash_map
propeller_lib
# keep-sorted end
)

# Build all CXX tests into a unified test target.
include(${CMAKE_HOME_DIRECTORY}/CMake/GenerateTests.cmake)
propeller_generate_tests(
SRCS
# keep-sorted start
branch_aggregation_test.cc
branch_frequencies_test.cc
cfg_test.cc
file_perf_data_provider_test.cc
frequencies_branch_aggregator_test.cc
lazy_evaluator_test.cc
lbr_branch_aggregator_test.cc
perfdata_reader_test.cc
perf_branch_frequencies_aggregator_test.cc
perfdata_reader_test.cc
propeller_statistics_test.cc
proto_branch_frequencies_aggregator_test.cc
spe_tid_pid_provider_test.cc
status_macros_test.cc
status_testing_macros_test.cc
# keep-sorted end
DEPS
propeller_lib
propeller_test_lib
# keep-sorted start
GTest::gmock_main
absl::base
absl::hash
absl::flat_hash_set
absl::hash
absl::status_matchers
GTest::gmock_main
quipper_protos
propeller_lib
propeller_test_lib
quipper_lib
quipper_protos
# keep-sorted end
)

0 comments on commit 11137e5

Please sign in to comment.