Skip to content

Commit

Permalink
Improve fuzzig cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed May 21, 2024
1 parent 4018f2e commit e62973d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions fuzzing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,24 @@ include_directories(
${SRC_DIR}
)

# Take all source files from the application and the sdk
file(GLOB_RECURSE APPLICATION_SRC
# Take all plugin sources
${SRC_DIR}/*.c

# Take all sdk sources
${ETH_DIR}/src/*.c
)
# Filter out main.c from the SDK, the fuzzing has its own main
list(FILTER APPLICATION_SRC EXCLUDE REGEX "${ETH_DIR}/src/main")

add_executable(fuzz
${APPLICATION_SRC}

# fuzzing specific files
fuzz_plugin.c
mocks.c

${SRC_DIR}/plugin.c
${SRC_DIR}/handle_init_contract.c
${SRC_DIR}/handle_provide_parameter.c
${SRC_DIR}/handle_finalize.c
${SRC_DIR}/handle_provide_token.c
${SRC_DIR}/handle_query_contract_ui.c
${SRC_DIR}/handle_query_contract_id.c

# Ethereum SDK
${ETH_DIR}/src/common_utils.c
${ETH_DIR}/src/plugin_utils.c

# sdk utils
${BOLOS_SDK}/src/ledger_assert.c
${BOLOS_SDK}/lib_standard_app/format.c
Expand Down

0 comments on commit e62973d

Please sign in to comment.