Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ install(FILES ${CMAKE_BINARY_DIR}/etc/gitinfo.txt DESTINATION ${CMAKE_INSTALL_SY
#---Recurse into the given subdirectories. This does not actually cause another cmake executable
# to run. The same process will walk through the project's entire directory structure.
add_subdirectory (core)
add_subdirectory (builtins/clib) # hard coded builtin for core
add_subdirectory (math)
add_subdirectory (hist)
add_subdirectory (tree)
Expand Down
54 changes: 54 additions & 0 deletions builtins/clib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

############################################################################
# CMakeLists.txt file for building ROOT core/clib package
############################################################################

set_property(TARGET Core APPEND PROPERTY DICT_HEADERS
strlcpy.h # custom ROOT file (https://github.com/root-project/root/blob/b48975de4dcbcd5f1ecf7f60c3f8e39c38a1f6e3/core/clib/inc/strlcpy.h)
snprintf.h # custom ROOT file (https://github.com/root-project/root/blob/3c0f42cd0d4f7aeab78e01533afefeb6f1248946/clib/inc/snprintf.h vs https://github.com/daztucker/historic-ssh/blob/658f5a469b028b54a9934db11fb43f65319bb811/snprintf.h)
strtok.h # custom ROOT file (https://github.com/root-project/root/blob/d39c9211ba045c0b9aaa780ec76a32666e04cd1e/core/clib/inc/strtok.h)
)

ROOT_OBJECT_LIBRARY(Clib
# All this code below is LGPL (GNU Lesser General Public License was called at that time GNU Library General Public License)
src/attach.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/attach.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/attach.c)
src/detach.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/detach.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/detach.c)
src/getpagesize.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/getpagesize.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mvalloc.c)
src/keys.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/keys.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/keys.c)
src/mcalloc.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mcalloc.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mcalloc.c)
src/mfree.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mfree.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mfree.c)
src/mmalloc.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mmalloc.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mmalloc.c)
src/mmapsup.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mmapsup.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mmap-sup.c)
src/mmcheck.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mmcheck.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mmcheck.c)
src/mrealloc.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/mrealloc.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mrealloc.c)
src/sbrksup.c # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/src/sbrksup.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/sbrk-sup.c)
src/snprintf.c # forked in ~1998 maybe from Revision 1.19 / ssh 1.2.26 (https://github.com/root-project/root/blob/3c0f42cd0d4f7aeab78e01533afefeb6f1248946/clib/src/snprintf.c vs https://github.com/daztucker/historic-ssh/blob/ssh/snprintf.c)
src/strlcat.c # forked in 2010 from OpenBSD (https://github.com/root-project/root/blob/b48975de4dcbcd5f1ecf7f60c3f8e39c38a1f6e3/core/clib/src/strlcat.c vs https://github.com/libressl/openbsd/blob/032d9a965adfb74e42b18dc939b34fcda2cf740e/src/lib/libc/string/strlcat.c)
src/strlcpy.c # forked in 2010 from OpenBSD (https://github.com/root-project/root/blob/b48975de4dcbcd5f1ecf7f60c3f8e39c38a1f6e3/core/clib/src/strlcpy.c vs https://github.com/libressl/openbsd/blob/032d9a965adfb74e42b18dc939b34fcda2cf740e/src/lib/libc/string/strlcpy.c)
# res/mmalloc.h (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/inc/mmalloc.h vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mmalloc.h)
# res/mmconfig.h # custom ROOT file (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/inc/mmconfig.h)
# res/mmprivate.h # forked in 1999 from gdb-4 (https://github.com/root-project/root/blob/852600061bcacd9b255d44f6312c96b6b1e00a2d/clib/inc/mmprivate.c vs https://github.com/gnutools/binutils-gdb/blob/c906108c21474dfb4ed285bcc0ac6fe02cd400cc/mmalloc/mmprivate.c)
)

target_include_directories(Clib
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
PRIVATE
${CMAKE_BINARY_DIR}/ginclude
${CMAKE_CURRENT_SOURCE_DIR}/res
${CMAKE_CURRENT_SOURCE_DIR}/../../core/foundation/inc # for RConfig.hxx
)

target_include_directories(Core
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
)

target_sources(Core PRIVATE $<TARGET_OBJECTS:Clib>)

ROOT_INSTALL_HEADERS()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ add_subdirectory(sanitizer)
add_subdirectory(rootcling_stage1)

add_subdirectory(base)
add_subdirectory(clib)
add_subdirectory(clingutils)
add_subdirectory(cont)
add_subdirectory(dictgen)
Expand Down
50 changes: 0 additions & 50 deletions core/clib/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion core/clingutils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target_include_directories(ClingUtils PRIVATE
${CMAKE_SOURCE_DIR}/core/foundation/res
${CMAKE_SOURCE_DIR}/core/foundation/inc
${CMAKE_SOURCE_DIR}/core/base/inc
${CMAKE_SOURCE_DIR}/core/clib/inc
${CMAKE_SOURCE_DIR}/builtins/clib/inc
${CMAKE_SOURCE_DIR}/core/meta/inc
${CMAKE_BINARY_DIR}/ginclude)

Expand Down
2 changes: 1 addition & 1 deletion core/dictgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ target_include_directories(Dictgen PRIVATE
${CMAKE_SOURCE_DIR}/core/foundation/res
${CMAKE_SOURCE_DIR}/core/clingutils/res
${CMAKE_SOURCE_DIR}/core/base/inc
${CMAKE_SOURCE_DIR}/core/clib/inc
${CMAKE_SOURCE_DIR}/builtins/clib/inc
${CMAKE_SOURCE_DIR}/core/meta/inc
${CMAKE_SOURCE_DIR}/core/foundation/inc
${CMAKE_BINARY_DIR}/ginclude
Expand Down
1 change: 1 addition & 0 deletions core/macosx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if(cocoa)

target_compile_options(Macosx PRIVATE -ObjC++)
target_include_directories(Macosx PRIVATE ../unix/inc)
target_include_directories(Macosx PRIVATE ${CMAKE_SOURCE_DIR}/builtins/clib/inc) # for strtok.h

target_sources(Core PRIVATE $<TARGET_OBJECTS:Macosx>)

Expand Down
2 changes: 1 addition & 1 deletion core/metacling/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ target_include_directories(MetaCling SYSTEM PRIVATE
target_include_directories(MetaCling PRIVATE
${CLING_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/core/base/inc
${CMAKE_SOURCE_DIR}/core/clib/inc
${CMAKE_SOURCE_DIR}/builtins/clib/inc
${CMAKE_SOURCE_DIR}/core/clingutils/res
${CMAKE_SOURCE_DIR}/core/cont/inc
${CMAKE_SOURCE_DIR}/core/foundation/inc
Expand Down
2 changes: 1 addition & 1 deletion core/newdelete/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ ROOT_LINKER_LIBRARY(New
Core
)

target_include_directories(New PRIVATE ${CMAKE_SOURCE_DIR}/core/clib/res)
target_include_directories(New PRIVATE ${CMAKE_SOURCE_DIR}/builtins/clib/res)

ROOT_INSTALL_HEADERS()
2 changes: 1 addition & 1 deletion core/unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif()

set_property(TARGET Core APPEND PROPERTY DICT_HEADERS TUnixSystem.h)
target_sources(Core PRIVATE src/TUnixSystem.cxx)
target_include_directories(Core PRIVATE inc ../clib/res)
target_include_directories(Core PRIVATE inc ../../builtins/clib/res)

if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
target_link_libraries(Core PRIVATE execinfo util)
Expand Down
2 changes: 1 addition & 1 deletion documentation/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ EXCLUDE = ../../interpreter/ \
../../cmake \
../../etc \
../../js \
../../core/clib/ \
../../builtins/clib/ \
../../core/lzma/ \
../../core/newdelete/ \
../../core/textinput/ \
Expand Down
2 changes: 1 addition & 1 deletion documentation/doxygen/makeinput.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ echo " ../../bindings/pyroot/ \\" >> Doxyfile_INPUT
echo " ../../bindings/pyroot/pythonizations/python/ROOT/_pythonization/ \\" >> Doxyfile_INPUT
echo " ../../bindings/r/ \\" >> Doxyfile_INPUT

# echo " ../../core/clib/ \\" >> Doxyfile_INPUT
# echo " ../../builtins/clib/ \\" >> Doxyfile_INPUT
# echo " ../../core/lzma/ \\" >> Doxyfile_INPUT
# echo " ../../core/newdelete/ \\" >> Doxyfile_INPUT
# echo " ../../core/textinput/ \\" >> Doxyfile_INPUT
Expand Down
2 changes: 1 addition & 1 deletion io/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ROOT_LINKER_LIBRARY(RIO
Core
)

target_include_directories(RIO PRIVATE ${CMAKE_SOURCE_DIR}/core/clib/res)
target_include_directories(RIO PRIVATE ${CMAKE_SOURCE_DIR}/builtins/clib/res)
target_link_libraries(RIO PUBLIC ${ROOT_ATOMIC_LIBS})
target_link_libraries(RIO PRIVATE nlohmann_json::nlohmann_json)

Expand Down
2 changes: 1 addition & 1 deletion rootx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ target_include_directories(root PRIVATE
${CMAKE_SOURCE_DIR}/core/foundation/inc
${CMAKE_SOURCE_DIR}/core/base/inc
${CMAKE_SOURCE_DIR}/core/base/res
${CMAKE_SOURCE_DIR}/core/clib/inc # for snprintf.h
${CMAKE_SOURCE_DIR}/builtins/clib/inc# for snprintf.h
${CMAKE_SOURCE_DIR}/core/meta/inc # for TGenericClassInfo.h
${CMAKE_BINARY_DIR}/ginclude # for RConfigure.h and rootCommandLineOptionsHelp.h
)
Loading