Removed zlib dep

This commit is contained in:
JackCarterSmith 2022-08-25 23:13:37 +02:00
parent f19a2306d1
commit 85c86c4a27
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
7 changed files with 11 additions and 38 deletions

View File

@ -74,5 +74,5 @@ install(TARGETS ${RSE_TERRAIN_TARGETS_LIST}
# Install library includes
install(FILES ${RSP_PUBLIC_HRDS} DESTINATION ${INSTALL_INC_DIR})
# Install dependancies
install(FILES ${PROJECT_BINARY_DIR}/bin/glew32.dll ${PROJECT_BINARY_DIR}/bin/libpng16.dll ${PROJECT_BINARY_DIR}/bin/zlib1.dll
install(FILES ${PROJECT_BINARY_DIR}/bin/glew32.dll ${PROJECT_BINARY_DIR}/bin/libpng16.dll
DESTINATION ${INSTALL_BIN_DIR})

2
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ pipeline {
}
environment {
CI_OUTPUT_NAME = "RSETerrain"
CI_VERSION = "2.0.1"
CI_VERSION = "2.0.2"
CI_BUILD_NUMBER = "$BUILD_NUMBER"
}
stages {

View File

@ -1,21 +0,0 @@
Copyright (C) 1995-2022 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

View File

@ -15,7 +15,7 @@ It's extract terrain datas from Rogue Squadron 3D (PC) game map files (hmp).
This module can do:
- Interpolate 3D model mesh of the terrain,
- Export it as OBJ model file (pretty heavy (~15MB), not to be use directly for display),
- Export it as OBJ model file (pretty heavy (~15MB), not to be use direcly for display),
- Export an heightmap-like PNG,
- Multiple inputs files.
@ -27,10 +27,10 @@ This module can do:
### Using
`RSETerrain [options] <hmp files...>` or you can simply drag&drop HMP files on it.
`RSETerrain [options] <hob files...>` or you can simply drag&drop HOB files on it.
A futur main program can extract all HMP files directly from DAT file.
Due to issue with copyrights, I can't provide samples... You need to extract HMP files yourself.
A futur main program can extract all HOB files directly from DAT file.
Due to issue with copyrights, I can't provide samples... You need to extract HOB files yourself.
<img src="https://repo.jcsmith.fr/pictures/rse-terrain.gif" width="620" height="400" />
@ -38,19 +38,18 @@ Due to issue with copyrights, I can't provide samples... You need to extract HMP
- -h Print this message
- -v,-vv Activate verbose/debug output mode respectively
- -no-subdir Export models inside current folder
- -no-mtl Disable texture exporting
- -invZ Invert Z axis when parsing
- -subdir Export outputs to a sub-directory
- -neg Negative heightmap output
### Dependencies
- libpng (1.6.37)
- obj-lib: as obj file exporter. (https://git.jcsmith.fr/jackcartersmith/obj)
### Compiling
You can compile on both Windows (MinGW) or native Linux system thanks to CMake, you only need to adjust your dependencies on Windows or use Conan packages manager (https://conan.io).
zlib-dev (zlib1g-dev) and libpng16-dev distrib packages can be used on debian/ubuntu.
libpng16-dev distrib package can be used on debian/ubuntu.
To compile, just clone (**don't forget git submodules**) and launch cmake:

View File

@ -13,8 +13,6 @@ include(CheckCSourceCompiles)
add_definitions(-DCONF_NO_GL) # Used for obj-lib to not compile GL part
# Import needed packages and references their include path
find_package(ZLIB 1.2.12 REQUIRED)
include_directories(${ZLIB_INCLUDE_DIR})
find_package(PNG 1.6.37 REQUIRED)
include_directories(${PNG_INCLUDE_DIR})
#find_package(GLEW REQUIRED) # Enable when GL rendering is ready
@ -43,7 +41,7 @@ set_target_properties(rse-terrain PROPERTIES OUTPUT_NAME ${RSE_TERRAIN_NAME})
if(MSVC)
# msvc does not append 'lib' - do it here to have consistent name
set_target_properties(rse-terrain PROPERTIES IMPORT_PREFIX "lib")
target_link_libraries(rse-terrain PRIVATE rsp-terrain-libstatic ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${GLEW_LIBRARIES})
target_link_libraries(rse-terrain PRIVATE rsp-terrain-libstatic ${PNG_LIBRARIES} ${GLEW_LIBRARIES})
else()
target_link_libraries(rse-terrain PRIVATE rsp-terrain-libstatic ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${GLEW_LIBRARIES} m)
target_link_libraries(rse-terrain PRIVATE rsp-terrain-libstatic ${PNG_LIBRARIES} ${GLEW_LIBRARIES} m)
endif()

View File

@ -13,7 +13,6 @@
#include "options.h"
#include <RSPTerrain_datatypes.h>
#include <RSPTerrain_errordefs.h>
#include <zlib.h>
#include <png.h>
#include "obj/obj.h"
#include "terrain_export.h"

View File

@ -1,5 +1,4 @@
[requires]
zlib/1.2.12
libpng/1.6.37
glew/2.2.0
@ -8,7 +7,6 @@ cmake
cmake_find_package
[options]
zlib:shared=True
libpng:shared=True
glew:shared=True