summaryrefslogtreecommitdiffhomepage
path: root/third-party/libpng/4.aliases.patch
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-12 22:07:03 +0100
committerAki <please@ignore.pl>2024-03-12 22:07:36 +0100
commit81bb6873f1c0291fecbf6e429ad15ac3db66a4c0 (patch)
treefd7552ecabeeffb45a1fbe3730ab62bc7a64dd85 /third-party/libpng/4.aliases.patch
parentf43d32d6d2cc7ecd04f4f06f20d5a6fc2c87c9ae (diff)
downloadstarshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.zip
starshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.tar.gz
starshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.tar.bz2
Legal notices updated
Rename contrib -> third-party intendes to express the origin and purpose of that part of the code better. I plan to readd contrib/ again but with more in-project things like bash-completions, dev workflow scripts etc.
Diffstat (limited to 'third-party/libpng/4.aliases.patch')
-rw-r--r--third-party/libpng/4.aliases.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/third-party/libpng/4.aliases.patch b/third-party/libpng/4.aliases.patch
new file mode 100644
index 0000000..14d81d4
--- /dev/null
+++ b/third-party/libpng/4.aliases.patch
@@ -0,0 +1,19 @@
+diff '--color=auto' -arNu a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2024-03-03 12:45:31.540235890 +0100
++++ b/CMakeLists.txt 2024-03-03 12:46:11.986903772 +0100
+@@ -185,6 +185,7 @@
+ endif()
+ target_include_directories(${PNG_LIB_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+ target_link_libraries(${PNG_LIB_NAME} Zlib::zlib ${M_LIBRARY})
++ add_library(Png::png ALIAS ${PNG_LIB_NAME})
+ endif()
+
+ if(PNG_STATIC)
+@@ -197,6 +198,7 @@
+ endif()
+ target_include_directories(${PNG_LIB_NAME_STATIC} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+ target_link_libraries(${PNG_LIB_NAME_STATIC} Zlib::zlibstatic ${M_LIBRARY})
++ add_library(Png::pngstatic ALIAS ${PNG_LIB_NAME_STATIC})
+ endif()
+
+