Skip to content

Commit

Permalink
DO NOT MERGE: awkward-cpp stripped down to only AwkwardForth
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Aug 1, 2024
1 parent 85a1535 commit 0c860e8
Show file tree
Hide file tree
Showing 166 changed files with 1 addition and 15,191 deletions.
12 changes: 1 addition & 11 deletions awkward-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ endif()

# Three tiers: [cpu-kernels (extern "C" interface), cuda-kernels (extern "C" interface)],
# libawkward (C++), and Python modules.
file(GLOB CPU_KERNEL_SOURCES CONFIGURE_DEPENDS "src/cpu-kernels/*.cpp")
file(GLOB_RECURSE LIBAWKWARD_SOURCES CONFIGURE_DEPENDS "src/libawkward/*.cpp")

# Shared properties
Expand All @@ -58,15 +57,6 @@ target_include_directories(awkward-parent INTERFACE rapidjson/include)
add_subdirectory(header-only EXCLUDE_FROM_ALL)
target_link_libraries(awkward-parent INTERFACE awkward::growable-buffer)

# First tier: cpu-kernels
add_library(awkward-cpu-kernels SHARED ${CPU_KERNEL_SOURCES})
target_link_libraries(awkward-cpu-kernels PUBLIC awkward-parent)
set_target_properties(
awkward-cpu-kernels
PROPERTIES CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
CXX_EXTENSIONS NO)

# Second tier: libawkward
add_library(awkward SHARED ${LIBAWKWARD_SOURCES})
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
Expand Down Expand Up @@ -109,7 +99,7 @@ set_target_properties(
file(GLOB_RECURSE PYTHON_SOURCES "src/${SKBUILD_PROJECT_NAME}/*.py")

install(
TARGETS awkward awkward-parent awkward-cpu-kernels _ext
TARGETS awkward awkward-parent _ext
LIBRARY DESTINATION "${SKBUILD_PROJECT_NAME}/lib"
RUNTIME DESTINATION "${SKBUILD_PROJECT_NAME}/lib"
ARCHIVE DESTINATION "${SKBUILD_PROJECT_NAME}/lib")
Expand Down
3 changes: 0 additions & 3 deletions awkward-cpp/src/awkward_cpp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE

from __future__ import annotations

import awkward_cpp.cpu_kernels
import awkward_cpp.libawkward # noqa: F401

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions awkward-cpp/src/cpu-kernels/awkward_ByteMaskedArray_numnull.cpp

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0c860e8

Please sign in to comment.