Skip to content

Commit

Permalink
chore: rename barretenberg_module to circuits_cmake_module in cir…
Browse files Browse the repository at this point in the history
…cuits (#1122)
  • Loading branch information
dbanks12 authored Jul 19, 2023
1 parent e287d03 commit a0d93eb
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions circuits/cpp/cmake/module.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# copyright 2019 Spilsbury Holdings
# copyright 2020 Spilsbury Holdings
#
# usage: barretenberg_module(module_name [dependencies ...])
# usage: circuits_cmake_module(module_name [dependencies ...])
#
# Scans for all .cpp files in a subdirectory, and creates a library named <module_name>.
# Scans for all .test.cpp files in a subdirectory, and creates a gtest binary named <module name>_tests.
Expand All @@ -12,7 +12,7 @@
# Then we declare executables/libraries that are to be built from these object files.
# These assets will only be linked as their dependencies complete, but we can parallelise the compilation at least.

function(barretenberg_module MODULE_NAME)
function(circuits_cmake_module MODULE_NAME)
file(GLOB_RECURSE SOURCE_FILES *.cpp)
file(GLOB_RECURSE HEADER_FILES *.hpp *.tcc)
list(FILTER SOURCE_FILES EXCLUDE REGEX ".*\.(fuzzer|test|bench).cpp$")
Expand Down
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/circuits/abis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_abis
barretenberg
)
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/circuits/apps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_apps
barretenberg
)
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/circuits/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_kernel

# Question: why can't I link to these barretenberg modules?
Expand Down
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/circuits/recursion/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_recursion
barretenberg
)
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/circuits/rollup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_rollup
aztec3_circuits_kernel
barretenberg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_rollup
aztec3_circuits_kernel
barretenberg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_rollup
barretenberg
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_circuits_rollup
aztec3_circuits_kernel
barretenberg
Expand Down
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/dbs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(NOT WASM)
link_libraries(leveldb)
endif()

barretenberg_module(
circuits_cmake_module(
aztec3_dbs
barretenberg
)
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/oracle/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_oracle
aztec3_circuits_apps
barretenberg
Expand Down
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_subdirectory(types)

barretenberg_module(
circuits_cmake_module(
aztec3_utils
barretenberg
)
2 changes: 1 addition & 1 deletion circuits/cpp/src/aztec3/utils/types/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
barretenberg_module(
circuits_cmake_module(
aztec3_types
barretenberg
)

0 comments on commit a0d93eb

Please sign in to comment.