move libraries to "third-party" directory (#1879)

This commit is contained in:
Roman Fomin 2024-09-04 01:52:17 +07:00 committed by GitHub
parent bbead25071
commit cd63e89417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 37 additions and 51 deletions

View File

@ -166,8 +166,7 @@ jobs:
--std=c99 \ --std=c99 \
--suppress="memleak:${{ github.workspace }}/src/u_scanner.c" \ --suppress="memleak:${{ github.workspace }}/src/u_scanner.c" \
--project="${{ github.workspace }}/build/compile_commands.json" \ --project="${{ github.workspace }}/build/compile_commands.json" \
-i"${{ github.workspace }}/miniz" \ -i"${{ github.workspace }}/third-party" \
-i"${{ github.workspace }}/spng" \
-D__GNUC__ -D__GNUC__
- name: Run Clang-Tidy - name: Run Clang-Tidy
@ -188,4 +187,4 @@ jobs:
,-clang-analyzer-security* ,-clang-analyzer-security*
,-clang-analyzer-valist* ,-clang-analyzer-valist*
database: 'build' database: 'build'
ignore: 'miniz|spng|win32|toolsrc|src/i_pcsound.c' ignore: 'third-party|win32|toolsrc|src/i_pcsound.c'

View File

@ -202,8 +202,7 @@ include(CPack)
add_subdirectory(data) add_subdirectory(data)
add_subdirectory(opl) add_subdirectory(opl)
add_subdirectory(textscreen) add_subdirectory(textscreen)
add_subdirectory(miniz) add_subdirectory(third-party)
add_subdirectory(spng)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(setup) add_subdirectory(setup)
add_subdirectory(docs) add_subdirectory(docs)

View File

@ -211,13 +211,13 @@ Files: `data/woof.ico, data/woof.png, src/icon.c, data/setup.ico, data/woof-setu
Copyright: © 2020-2022 Julia Nechaevskaya. Copyright: © 2020-2022 Julia Nechaevskaya.
License: [CC-BY-3.0](https://creativecommons.org/licenses/by/3.0/) License: [CC-BY-3.0](https://creativecommons.org/licenses/by/3.0/)
Files: `miniz/*` Files: `third-party/miniz/*`
Copyright: Copyright:
© 2010-2014 Rich Geldreich and Tenacious Software LLC; © 2010-2014 Rich Geldreich and Tenacious Software LLC;
© 2013-2014 RAD Game Tools and Valve Software. © 2013-2014 RAD Game Tools and Valve Software.
License: [MIT](https://opensource.org/licenses/MIT) License: [MIT](https://opensource.org/licenses/MIT)
Files: `spng/*` Files: `third-party/spng/*`
Copyright: © 2018-2023 Randy. Copyright: © 2018-2023 Randy.
License: [BSD-2-Clause](https://opensource.org/license/bsd-2-clause) License: [BSD-2-Clause](https://opensource.org/license/bsd-2-clause)

View File

@ -1,11 +0,0 @@
include(WoofSettings)
add_library(miniz STATIC miniz.c miniz.h)
target_woof_settings(miniz)
target_compile_definitions(miniz PRIVATE MINIZ_NO_TIME)
target_include_directories(miniz INTERFACE ".")
target_link_libraries(miniz)

View File

@ -1,11 +0,0 @@
include(WoofSettings)
add_library(spng STATIC spng.c spng.h)
target_woof_settings(spng)
target_compile_definitions(spng PRIVATE SPNG_USE_MINIZ INTERFACE SPNG_STATIC)
target_include_directories(spng INTERFACE ".")
target_link_libraries(spng miniz)

10
third-party/CMakeLists.txt vendored Normal file
View File

@ -0,0 +1,10 @@
include(WoofSettings)
add_library(miniz STATIC miniz/miniz.c)
target_compile_definitions(miniz PRIVATE MINIZ_NO_TIME)
target_include_directories(miniz INTERFACE miniz)
add_library(spng STATIC spng/spng.c)
target_compile_definitions(spng PRIVATE SPNG_USE_MINIZ INTERFACE SPNG_STATIC)
target_include_directories(spng INTERFACE spng)
target_link_libraries(spng miniz)

View File

@ -1,22 +1,22 @@
Copyright 2013-2014 RAD Game Tools and Valve Software Copyright 2013-2014 RAD Game Tools and Valve Software
Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
All Rights Reserved. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.