Skip to content

Commit

Permalink
Update the minimodules
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerw committed Apr 12, 2021
1 parent 8d10f1b commit 04cb499
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Expand Up @@ -21,7 +21,7 @@
ignore = dirty
[submodule "lib/jsoncpp"]
path = lib/jsoncpp
url = https://github.com/cuberite/jsoncpp.git
url = https://github.com/open-source-parsers/jsoncpp.git
ignore = dirty
[submodule "lib/TCLAP"]
path = lib/TCLAP
Expand Down
9 changes: 6 additions & 3 deletions CMake/AddDependencies.cmake
Expand Up @@ -20,6 +20,9 @@ function(build_dependencies)
set(JSONCPP_WITH_TESTS OFF CACHE BOOL "Compile and (for jsoncpp_check) run JsonCpp test executables")
set(JSONCPP_WITH_POST_BUILD_UNITTEST OFF CACHE BOOL "Automatically run unit-tests as a post build step")
set(JSONCPP_WITH_PKGCONFIG_SUPPORT OFF CACHE BOOL "Generate and install .pc files")
set(JSONCPP_WITH_CMAKE_PACKAGE OFF CACHE BOOL "Generate and install cmake package files")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build jsoncpp_lib as a shared library.")
set(BUILD_OBJECT_LIBS OFF CACHE BOOL "Build jsoncpp_lib as a object library.")

# Set options for mbedtls:
set(ENABLE_PROGRAMS OFF CACHE BOOL "Build mbed TLS programs.")
Expand Down Expand Up @@ -60,7 +63,7 @@ function(link_dependencies TARGET)
event_core
event_extra
fmt::fmt
jsoncpp_lib
jsoncpp_static
libdeflate
lsqlite
lualib
Expand All @@ -80,6 +83,6 @@ function(link_dependencies TARGET)
target_link_libraries(${TARGET} PRIVATE event_pthreads)
endif()

# Prettify jsoncpp_lib name in VS solution explorer:
set_property(TARGET jsoncpp_lib PROPERTY PROJECT_LABEL "jsoncpp")
# Prettify jsoncpp_static name in VS solution explorer:
set_property(TARGET jsoncpp_static PROPERTY PROJECT_LABEL "jsoncpp")
endfunction()
2 changes: 1 addition & 1 deletion CMake/GroupSources.cmake
Expand Up @@ -8,7 +8,7 @@ function(group_sources)
event_extra_static
expat
fmt
jsoncpp_lib
jsoncpp_static
libdeflate
lualib
luaexpat
Expand Down
2 changes: 1 addition & 1 deletion lib/fmt
Submodule fmt updated 65 files
+44 −0 .github/workflows/windows.yml
+43 −25 CMakeLists.txt
+3 −0 CONTRIBUTING.md
+479 −11 ChangeLog.rst
+127 −115 README.rst
+6 −2 doc/CMakeLists.txt
+67 −17 doc/api.rst
+9 −19 doc/build.py
+22 −24 doc/index.rst
+63 −0 doc/usage.rst
+37 −42 include/fmt/chrono.h
+47 −10 include/fmt/color.h
+59 −23 include/fmt/compile.h
+351 −107 include/fmt/core.h
+1,621 −273 include/fmt/format-inl.h
+709 −466 include/fmt/format.h
+15 −29 include/fmt/locale.h
+67 −37 include/fmt/os.h
+19 −9 include/fmt/ostream.h
+2 −2 include/fmt/printf.h
+16 −6 include/fmt/ranges.h
+0 −0 pull_request_template.md
+33 −2 src/format.cc
+11 −6 src/os.cc
+0 −2 support/README
+0 −27 support/fmt.pro
+18 −1 support/manage.py
+0 −30 support/update-coverity-branch.py
+12 −4 test/CMakeLists.txt
+1 −1 test/add-subdirectory-test/CMakeLists.txt
+5 −1 test/assert-test.cc
+11 −0 test/chrono-test.cc
+13 −0 test/color-test.cc
+1 −1 test/compile-error-test/CMakeLists.txt
+32 −25 test/compile-test.cc
+88 −101 test/core-test.cc
+0 −58 test/custom-formatter-test.cc
+1 −1 test/find-package-test/CMakeLists.txt
+3 −3 test/format
+0 −6 test/format-dyn-args-test.cc
+55 −65 test/format-impl-test.cc
+141 −114 test/format-test.cc
+17 −25 test/fuzzing/CMakeLists.txt
+3 −26 test/fuzzing/README.md
+6 −28 test/fuzzing/build.sh
+135 −0 test/fuzzing/chrono-duration.cc
+0 −152 test/fuzzing/chrono_duration.cpp
+34 −0 test/fuzzing/float.cc
+75 −0 test/fuzzing/fuzzer-common.h
+0 −67 test/fuzzing/fuzzer_common.h
+22 −0 test/fuzzing/main.cc
+0 −21 test/fuzzing/main.cpp
+100 −0 test/fuzzing/named-arg.cc
+0 −128 test/fuzzing/named_arg.cpp
+91 −0 test/fuzzing/one-arg.cc
+0 −131 test/fuzzing/one_arg.cpp
+0 −116 test/fuzzing/sprintf.cpp
+105 −0 test/fuzzing/two-args.cc
+0 −112 test/fuzzing/two_args.cpp
+0 −75 test/grisu-test.cc
+7 −1 test/gtest-extra.h
+69 −0 test/locale-test.cc
+23 −11 test/os-test.cc
+27 −6 test/ostream-test.cc
+50 −2 test/ranges-test.cc
4 changes: 2 additions & 2 deletions tests/BlockTypeRegistry/CMakeLists.txt
Expand Up @@ -23,7 +23,7 @@ add_executable(BlockTypePaletteTest
${PROJECT_SOURCE_DIR}/src/OSSupport/CriticalSection.cpp
${PROJECT_SOURCE_DIR}/src/OSSupport/File.cpp
)
target_link_libraries(BlockTypePaletteTest fmt::fmt jsoncpp_lib)
target_link_libraries(BlockTypePaletteTest fmt::fmt jsoncpp_static)

# BlockTypeRegistryTest: Verify that the BlockTypeRegistry class works as intended:
add_executable(BlockTypeRegistryTest
Expand All @@ -48,7 +48,7 @@ add_executable(PalettedBlockAreaTest
${PROJECT_SOURCE_DIR}/src/StringUtils.cpp
${PROJECT_SOURCE_DIR}/src/OSSupport/CriticalSection.cpp
)
target_link_libraries(PalettedBlockAreaTest fmt::fmt jsoncpp_lib)
target_link_libraries(PalettedBlockAreaTest fmt::fmt jsoncpp_static)

# Extra files for BlockTypePalette test:
file (COPY
Expand Down
2 changes: 1 addition & 1 deletion tests/CompositeChat/CMakeLists.txt
Expand Up @@ -24,7 +24,7 @@ set (SRCS
source_group("Shared" FILES ${SHARED_SRCS} ${SHARED_HDRS})
source_group("Sources" FILES ${SRCS})
add_executable(CompositeChat-exe ${SRCS} ${SHARED_SRCS} ${SHARED_HDRS})
target_link_libraries(CompositeChat-exe jsoncpp_lib fmt::fmt)
target_link_libraries(CompositeChat-exe jsoncpp_static fmt::fmt)
add_test(NAME CompositeChat-test COMMAND CompositeChat-exe)


Expand Down
2 changes: 1 addition & 1 deletion tests/Generating/CMakeLists.txt
Expand Up @@ -161,7 +161,7 @@ add_library(GeneratorTestingSupport STATIC
${GENERATING_HDRS}
${STUBS}
)
target_link_libraries(GeneratorTestingSupport fmt::fmt jsoncpp_lib tolualib libdeflate)
target_link_libraries(GeneratorTestingSupport fmt::fmt jsoncpp_static tolualib libdeflate)
source_group("Stubs" FILES ${STUBS})
source_group("Generating" FILES ${GENERATING_HDRS} ${GENERATING_SRCS})

Expand Down

0 comments on commit 04cb499

Please sign in to comment.