Files
leonarski_fandClaude Opus 5.5 a45dcfee2e SPDX: compound expressions for adapted files, LicenseRef-HDF5, tags on untagged files
- Files adapted from other projects carry both licences: StrongPixelSet.cpp,
  SpotExtractorGPU.cu and the four GEMMI-derived structure_refinement files
  "GPL-3.0-only AND MPL-2.0"; FFBIDXIndexerCPU.cpp, LMSolver.{h,cpp} and
  xds-plugin/plugin.* "GPL-3.0-only AND BSD-3-Clause"; fpga/hls/parallel_stream.h
  "CERN-OHL-S-2.0 AND Apache-2.0"; fpga/hls/icmp.cpp and ip_header_checksum.h
  (HPCN UAM, with PSI modifications) "CERN-OHL-S-2.0 AND BSD-3-Clause".
- writer/H5FDpoison_sec2.{c,h} and tests/enospc_shim.c: "OR HDF5" is not an
  SPDX id; now "OR LicenseRef-HDF5", with the text named (licenses/hdf5.txt).
  The poison driver wraps the stock sec2 driver rather than copying it (only
  the H5FD_class_t initialiser layout matches H5FDsec2.c), so the files stay
  dual-licensed (OR), not derived (AND).
- 151 first-party files without a tag (CMake, shell, Python, frontend, docs
  JS, a few C++) get one: GPL-3.0-only, CERN-OHL-S-2.0 for fpga/, fpga/hls/
  and fpga/scripts/, with the copyright line of the neighbouring files and the
  year the file was added. Generated and vendored code is not touched;
  fpga/pcie_driver/postinstall.sh and preuninstall.sh are left untagged, as
  they say they are taken from a blog post.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK
2026-11-15 16:18:09 +01:00

66 lines
2.1 KiB
CMake

# SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
# SPDX-License-Identifier: GPL-3.0-only
ADD_LIBRARY(JFJochReader STATIC
JFJochReader.cpp JFJochReader.h
JFJochHDF5Reader.cpp
JFJochHDF5Reader.h
JFJochMultiReader.cpp
JFJochMultiReader.h
SweepLayout.cpp
SweepLayout.h
ImgCIF.cpp
ImgCIF.h
MiniCBF.cpp
MiniCBF.h
JFJochCBFReader.cpp
JFJochCBFReader.h
MarCCD.cpp
MarCCD.h
JFJochMarCCDReader.cpp
JFJochMarCCDReader.h
CrystFELGeometry.cpp
CrystFELGeometry.h
JFJochXFELReader.cpp
JFJochXFELReader.h
DetectorLayout.h
SMV.cpp
SMV.h
JFJochSMVReader.cpp
JFJochSMVReader.h
XTC.cpp
XTC.h
JFJochXTCReader.cpp
JFJochXTCReader.h
NXmxModules.cpp
NXmxModules.h
SFRM.cpp
SFRM.h
JFJochSFRMReader.cpp
JFJochSFRMReader.h
HDF5ImageLocator.cpp
JFJochStartMessageReader.cpp
JFJochStartMessageReader.h
JFJochImageBufferReader.cpp
JFJochImageBufferReader.h
HDF5ImageLocator.h
HDF5ImageSource.cpp
HDF5ImageSource.h
HDF5MetadataSource.cpp
HDF5MetadataSource.h
JFJochReaderImage.cpp
JFJochReaderImage.h
JFJochReaderDataset.cpp
JFJochReaderDataset.h
JFJochReaderSpots.h
)
# NB: JFJochHttpReader (the viewer's live-broker HTTP client) lives in viewer/ and links Mbed TLS;
# it is deliberately NOT part of this always-built library, so the broker/writer never pull in a
# TLS stack.
# tiff: the marCCD reader's files are ordinary uncompressed TIFFs, so libtiff - which the build
# already fetches for JFJochPreview in every mode - reads the pixels and there is no new dependency.
TARGET_LINK_LIBRARIES(JFJochReader JFJochImageAnalysis JFJochAPI JFJochCommon JFJochZMQ JFJochLogger
JFJochHDF5Wrappers CBORStream2FrameSerialize tiff ZLIB::ZLIB
${CMAKE_DL_LIBS})