diff options
Diffstat (limited to 'rust/CMakeLists.txt')
| -rw-r--r-- | rust/CMakeLists.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt index ac679832..f1e3ddc5 100644 --- a/rust/CMakeLists.txt +++ b/rust/CMakeLists.txt @@ -14,10 +14,12 @@ file(GLOB RUST_API_SOURCES CONFIGURE_DEPENDS if(CMAKE_BUILD_TYPE MATCHES Debug) set(CARGO_CHECK_OPTS --workspace) - set(CARGO_DOC_OPTS --no-deps) + # Documentation for both binaryninja and binaryninjacore-sys crates + set(CARGO_DOC_OPTS --no-deps -p binaryninja -p binaryninjacore-sys) else() set(CARGO_CHECK_OPTS --workspace --release) - set(CARGO_DOC_OPTS --no-deps --release) + # Documentation for both binaryninja and binaryninjacore-sys crates + set(CARGO_DOC_OPTS --no-deps --release -p binaryninja -p binaryninjacore-sys) endif() if (BN_BUILD_NUMBER) @@ -56,8 +58,4 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E env BINARYNINJADIR=${BN_INSTALL_BIN_DIR} RUSTDOCFLAGS=${RUST_DOC_FLAGS} ${RUSTUP_DOC_COMMAND} ${CARGO_DOC_OPTS} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} DEPENDS ${RUST_API_SOURCES} -) - -if(BN_API_BUILD_EXAMPLES) - add_subdirectory(examples/basic_script) -endif() +)
\ No newline at end of file |
