Skip to content

Commit 24e0a92

Browse files
authored
Merge branch 'master' into spell_warr_surge_of_adrenaline
2 parents 161625c + 7334880 commit 24e0a92

375 files changed

Lines changed: 360901 additions & 13751 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmake/macros/AutoCollect.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
# ${CMAKE_CURRENT_SOURCE_DIR}
1717
# EXCLUDE
1818
# ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders
19-
# ${CMAKE_CURRENT_SOURCE_DIR}/Platform)
19+
# ${CMAKE_CURRENT_SOURCE_DIR}/Platform
20+
# HEADER_VISIBILITY PRIVATE) # default is PUBLIC, this controls whether other targets that have this target as dependency will be able to access its headers
2021
#
2122
function(CollectAndAddSourceFiles target_name current_dir)
22-
cmake_parse_arguments(PARSE_ARGV 2 arg "" "BASE_DIR" "EXCLUDE")
23+
cmake_parse_arguments(PARSE_ARGV 2 arg "" "BASE_DIR;HEADER_VISIBILITY" "EXCLUDE")
2324
if(NOT arg_BASE_DIR)
2425
set(arg_BASE_DIR "${current_dir}")
2526
endif()
27+
if(NOT arg_HEADER_VISIBILITY)
28+
set(arg_HEADER_VISIBILITY "PUBLIC")
29+
endif()
2630
list(FIND arg_EXCLUDE "${current_dir}" IS_EXCLUDED)
2731
if(IS_EXCLUDED EQUAL -1)
2832
cmake_path(RELATIVE_PATH current_dir BASE_DIRECTORY "${arg_BASE_DIR}" OUTPUT_VARIABLE fileset_name)
@@ -41,12 +45,12 @@ function(CollectAndAddSourceFiles target_name current_dir)
4145
${current_dir}/*.hpp)
4246

4347
target_sources(${target_name} PRIVATE ${private_source_files})
44-
target_sources(${target_name} PUBLIC FILE_SET "headers_${fileset_name}" TYPE HEADERS BASE_DIRS ${current_dir} FILES ${public_header_files})
48+
target_sources(${target_name} ${arg_HEADER_VISIBILITY} FILE_SET "headers_${fileset_name}" TYPE HEADERS BASE_DIRS ${current_dir} FILES ${public_header_files})
4549

4650
file(GLOB SUB_DIRECTORIES ${current_dir}/*)
4751
foreach(SUB_DIRECTORY ${SUB_DIRECTORIES})
4852
if(IS_DIRECTORY ${SUB_DIRECTORY})
49-
CollectAndAddSourceFiles("${target_name}" "${SUB_DIRECTORY}" BASE_DIR ${arg_BASE_DIR} EXCLUDE ${arg_EXCLUDE})
53+
CollectAndAddSourceFiles("${target_name}" "${SUB_DIRECTORY}" BASE_DIR ${arg_BASE_DIR} HEADER_VISIBILITY ${arg_HEADER_VISIBILITY} EXCLUDE ${arg_EXCLUDE})
5054
endif()
5155
endforeach()
5256
endif()

dep/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ if(SERVERS OR TOOLS)
2020
add_subdirectory(utf8cpp)
2121
add_subdirectory(valgrind)
2222
add_subdirectory(openssl)
23-
add_subdirectory(jemalloc)
23+
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT NOJEM)
24+
add_subdirectory(jemalloc)
25+
endif()
2426
add_subdirectory(argon2)
2527
add_subdirectory(openssl_ed25519)
2628
add_subdirectory(short_alloc)

dep/PackageList.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ G3D (a commercial-grade C++ 3D engine available as Open Source (BSD License)
1717
Version: 9.0-Release r4036
1818

1919
jemalloc (a general-purpose scalable concurrent malloc-implementation)
20-
http://www.canonware.com/jemalloc/
21-
Version: 5.2.1
20+
https://github.com/jemalloc/jemalloc
21+
Version: 5.3.0
2222

2323
libreadline (command line editing library)
2424
https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html

0 commit comments

Comments
 (0)