Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into test-platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Oct 31, 2024
2 parents 44768e2 + 582ad09 commit 9e051b8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
- name: "Dependency Review"
uses: actions/dependency-review-action@v4
with:
allow-dependencies-licenses: pkg:pypi/pylint, pkg:pypi/pyinstaller
allow-dependencies-licenses: pkg:pypi/pyinstaller
deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-1.0-or-later, AGPL-3.0-or-later, GPL-1.0-only, GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ endif()

set(BLAKE3_SRC ${blake3_SOURCE_DIR}/c)
set(BLAKE3_INCLUDE_DIR ${blake3_SOURCE_DIR}/c)
set_target_properties(blake3 PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib$<0:>")
target_link_libraries(chiapos PRIVATE blake3)
target_link_libraries(ProofOfSpace PRIVATE blake3)
include_directories(
Expand All @@ -157,6 +158,7 @@ IF (BUILD_STATIC_CHIAPOS_LIBRARY)
add_library(chiapos_static STATIC src/chacha8.c c-bindings/wrapper.cpp)
target_link_libraries(chiapos_static PRIVATE blake3)
target_include_directories(chiapos_static PUBLIC lib/include)
set_target_properties(chiapos_static PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib$<0:>")
ENDIF()

FetchContent_Declare(
Expand Down
1 change: 0 additions & 1 deletion c-bindings/wrapper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <stdint.h>
#include "picosha2.hpp"

extern "C" {
bool validate_proof(const uint8_t* plot_id, uint8_t k, const uint8_t* challenge, const uint8_t* proof, uint16_t proof_len, uint8_t* quality_buf);
Expand Down
10 changes: 1 addition & 9 deletions rust-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ fn main() {

println!(
"cargo:rustc-link-search=native={}",
dst.join("build").to_str().unwrap()
);
println!(
"cargo:rustc-link-search=native={}",
dst.join("build")
.join("_deps")
.join("blake3-build")
.to_str()
.unwrap()
dst.join("build").join("lib").to_str().unwrap()
);

println!("cargo:rustc-link-lib=static=chiapos_static");
Expand Down
1 change: 0 additions & 1 deletion src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <set>

#include "cxxopts.hpp"
#include "../lib/include/picosha2.hpp"
#include "plotter_disk.hpp"
#include "prover_disk.hpp"
#include "verifier.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/verifier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <vector>

#include "calculate_bucket.hpp"
#include "../lib/include/picosha2.hpp"

class Verifier {
public:
Expand Down
1 change: 0 additions & 1 deletion tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <catch2/catch_session.hpp>
#include <catch2/matchers/catch_matchers.hpp>

#include "../lib/include/picosha2.hpp"
#include "calculate_bucket.hpp"
#include "disk.hpp"
#include "plotter_disk.hpp"
Expand Down

0 comments on commit 9e051b8

Please sign in to comment.