mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
3 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
THIRD-PARTY LICENSE NOTICES
|
||||
RocketWerkz.Brutal.ZLib
|
||||
|
||||
This package ships one third-party component, zlib, as native libraries and as its
|
||||
public C headers in source form. The license governing it is reproduced in full below.
|
||||
|
||||
|
||||
==============================================================================
|
||||
zlib
|
||||
==============================================================================
|
||||
|
||||
Name zlib, a general purpose data compression library
|
||||
Version 1.3.2.1-motley
|
||||
built from upstream commit e3dc0a85b7032e98380dec011bc8f2c2ee0d8fca
|
||||
(v1.3.2-85-ge3dc0a8)
|
||||
Upstream https://zlib.net -- https://github.com/madler/zlib
|
||||
SPDX Zlib
|
||||
Shipped as zlib.dll (win-x64); libzlib.so, libzlib.so.1 and libzlib.so.1.3.2.1
|
||||
(linux-x64); libzlib.dylib, libzlib.1.dylib and libzlib.1.3.2.1.dylib
|
||||
(osx-arm64); the public C headers zlib.h and zconf.h in source form;
|
||||
and the Windows import library zlib.lib
|
||||
|
||||
Built from unaltered upstream source. The build names the output library zlib on all
|
||||
three platforms, where an upstream build produces z on Linux and macOS; no source is
|
||||
changed.
|
||||
|
||||
Acknowledgement, as invited by the first condition below:
|
||||
|
||||
This software is based in part on the work of Jean-loup Gailly and Mark Adler,
|
||||
the authors of the zlib general purpose compression library (https://zlib.net).
|
||||
|
||||
Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Jean-loup Gailly Mark Adler
|
||||
jloup@gzip.org madler@alumni.caltech.edu
|
||||
41
brutal.zlib/Brutal.ZLib/cmake/FindZLIB.cmake
Normal file
41
brutal.zlib/Brutal.ZLib/cmake/FindZLIB.cmake
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Finds Zlib from the RocketWerkz.Brutal.Zlib NuGet package, for consumers building native
|
||||
# code against zlib. Shipped inside the package (build/natives/cmake/); a consumer puts this dir
|
||||
# on CMAKE_MODULE_PATH and calls find_package(ZLIB). ZLIB_NUGET_DIR is injected by the
|
||||
# package's auto-imported .targets.
|
||||
|
||||
# Normalise path separators (MSBuild may produce backslashes on Windows).
|
||||
file(TO_CMAKE_PATH "${ZLIB_NUGET_DIR}" ZLIB_NUGET_DIR)
|
||||
|
||||
# Point at the shared lib (and Windows import lib) inside the NuGet package.
|
||||
if(WIN32)
|
||||
set(zlib_shared "${ZLIB_NUGET_DIR}/runtimes/win-x64/native/zlib.dll")
|
||||
set(zlib_implib "${ZLIB_NUGET_DIR}/build/natives/lib/win-x64/zlib.lib")
|
||||
elseif(APPLE)
|
||||
set(zlib_shared "${ZLIB_NUGET_DIR}/runtimes/osx-arm64/native/libzlib.dylib")
|
||||
else()
|
||||
set(zlib_shared "${ZLIB_NUGET_DIR}/runtimes/linux-x64/native/libzlib.so")
|
||||
endif()
|
||||
|
||||
# Hand find_package the results it expects.
|
||||
set(ZLIB_FOUND TRUE)
|
||||
set(ZLIB_INCLUDE_DIRS "${ZLIB_NUGET_DIR}/build/natives/include")
|
||||
set(ZLIB_LIBRARIES "${zlib_shared}")
|
||||
|
||||
# Expose the standard ZLIB::ZLIB target so consumers (FreeType/libpng) can link it.
|
||||
if(NOT TARGET ZLIB::ZLIB)
|
||||
add_library(ZLIB::ZLIB SHARED IMPORTED GLOBAL)
|
||||
set_target_properties(ZLIB::ZLIB PROPERTIES
|
||||
IMPORTED_LOCATION "${zlib_shared}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${ZLIB_NUGET_DIR}/build/natives/include"
|
||||
)
|
||||
# Match the soname/implib the linker expects per platform.
|
||||
if(WIN32)
|
||||
set_property(TARGET ZLIB::ZLIB PROPERTY IMPORTED_IMPLIB "${zlib_implib}")
|
||||
elseif(APPLE)
|
||||
set_property(TARGET ZLIB::ZLIB PROPERTY IMPORTED_SONAME "@rpath/libzlib.1.dylib")
|
||||
else()
|
||||
set_property(TARGET ZLIB::ZLIB PROPERTY IMPORTED_SONAME "libzlib.so.1")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced(ZLIB_FOUND ZLIB_INCLUDE_DIRS ZLIB_LIBRARIES)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<Project>
|
||||
<!-- Injects -DZLIB_NUGET_DIR into cmake for any project referencing this package. -->
|
||||
<PropertyGroup>
|
||||
<ZLibNuGetDir>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)', '..').Replace('\', '/'))</ZLibNuGetDir>
|
||||
<CMakeBuildArgs Condition="'$(CMakeBuildArgs)' != ''"
|
||||
>$(CMakeBuildArgs) -DZLIB_NUGET_DIR=$(ZLibNuGetDir)</CMakeBuildArgs
|
||||
>
|
||||
<CMakeBuildArgs Condition="'$(CMakeBuildArgs)' == ''">-DZLIB_NUGET_DIR=$(ZLibNuGetDir)</CMakeBuildArgs>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Loading…
Reference in a new issue