Skip to content

Commit

Permalink
fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Sep 21, 2024
1 parent 4871ada commit 19c180a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ enable_testing()
set(HAKO_SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/hako")
set(HAKO_INTERFACE_DIR "${PROJECT_SOURCE_DIR}/src/include")

if (DEFINED HAKO_DATA_MAX_ASSET_NUM)
add_compile_definitions(HAKO_DATA_MAX_ASSET_NUM=${HAKO_DATA_MAX_ASSET_NUM})
message(STATUS "HAKO_DATA_MAX_ASSET_NUM is redefined with " ${HAKO_DATA_MAX_ASSET_NUM})
endif()

if (DEFINED HAKO_OPTION_FILEPATH)
include(${HAKO_OPTION_FILEPATH})
else()
Expand Down
2 changes: 2 additions & 0 deletions src/include/config/hako_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#define _HAKO_CONFIG_HPP_

#define HAKO_FIXED_STRLEN_MAX 256
#ifndef HAKO_DATA_MAX_ASSET_NUM
#define HAKO_DATA_MAX_ASSET_NUM 4
#endif /* HAKO_DATA_MAX_ASSET_NUM */
#define HAKO_ASSET_TIMEOUT_USEC (30 * 1000 * 1000)

#define HAKO_SHARED_MEMORY_BASE_ID 0x00FF
Expand Down

0 comments on commit 19c180a

Please sign in to comment.