Skip to content

Commit

Permalink
support log archive and compress
Browse files Browse the repository at this point in the history
  • Loading branch information
Shareong committed Mar 9, 2024
1 parent afe8c0f commit 7589c03
Show file tree
Hide file tree
Showing 21 changed files with 1,677 additions and 2,533 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@
*.exe
*.out
*.app

build
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ HunterGate(
FILEPATH "${BCOS_UTILITIES_CMAKE_DIR}/config.cmake"
)
project(bcos-utilities VERSION "1.0.0")
set(VERSION_SUFFIX "-rc3")

# basic settings
include(Options)
Expand All @@ -48,7 +47,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

# install dependencies
hunter_add_package(Boost COMPONENTS all)
hunter_add_package(ZLIB)
hunter_add_package(Boost COMPONENTS all iostreams)

if(NOT MSVC)
hunter_add_package(range-v3)
find_package(range-v3 CONFIG REQUIRED)
Expand Down
2,427 changes: 0 additions & 2,427 deletions bcos-cmake-scripts/.Doxyfile.in

This file was deleted.

7 changes: 4 additions & 3 deletions bcos-cmake-scripts/CompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
add_compile_options(-Wall)
add_compile_options(-pedantic)
add_compile_options(-Wextra)
# add_compile_options(-Wno-unused-variable)
# add_compile_options(-Wno-unused-parameter)
# add_compile_options(-Wno-unused-function)
add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unused-parameter)
add_compile_options(-Wno-unused-function)
add_compile_options(-Wno-unused-const-variable)
# add_compile_options(-Wno-missing-field-initializers)
# Disable warnings about unknown pragmas (which is enabled by -Wall).
add_compile_options(-Wno-unknown-pragmas)
Expand Down
6 changes: 1 addition & 5 deletions bcos-cmake-scripts/Options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,13 @@ macro(configure_project)
add_definitions(-DFISCO_DEBUG)
endif()

# Suffix like "-rc1" e.t.c. to append to versions wherever needed.
if (NOT DEFINED VERSION_SUFFIX)
set(VERSION_SUFFIX "")
endif()
print_config(${NAME})
endmacro()

macro(print_config NAME)
message("")
message("------------------------------------------------------------------------")
message("-- Configuring ${NAME} ${PROJECT_VERSION}${VERSION_SUFFIX}")
message("-- Configuring ${NAME} ${PROJECT_VERSION}")
message("------------------------------------------------------------------------")
message("-- CMake Cmake version and location ${CMAKE_VERSION} (${CMAKE_COMMAND})")
message("-- Compiler C++ compiler version ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
Expand Down
Loading

0 comments on commit 7589c03

Please sign in to comment.