You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
fbx: Fix include for zlib that broke unbundling
It's possible to link against system zlib on Linux, so we should use system paths.
(cherry picked from commit 93b7406138)
This commit is contained in:
@@ -8,6 +8,9 @@ env_fbx = env_modules.Clone()
|
|||||||
# Make includes relative to the folder path specified here so our includes are clean
|
# Make includes relative to the folder path specified here so our includes are clean
|
||||||
env_fbx.Prepend(CPPPATH=["#modules/fbx/"])
|
env_fbx.Prepend(CPPPATH=["#modules/fbx/"])
|
||||||
|
|
||||||
|
if env["builtin_zlib"]:
|
||||||
|
env_fbx.Prepend(CPPPATH=["#thirdparty/zlib/"])
|
||||||
|
|
||||||
# Godot's own source files
|
# Godot's own source files
|
||||||
env_fbx.add_source_files(env.modules_sources, "tools/*.cpp")
|
env_fbx.add_source_files(env.modules_sources, "tools/*.cpp")
|
||||||
env_fbx.add_source_files(env.modules_sources, "data/*.cpp")
|
env_fbx.add_source_files(env.modules_sources, "data/*.cpp")
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
* @brief Implementation of the FBX parser and the rudimentary DOM that we use
|
* @brief Implementation of the FBX parser and the rudimentary DOM that we use
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "thirdparty/zlib/zlib.h"
|
|
||||||
#include <stdlib.h> /* strtol */
|
#include <stdlib.h> /* strtol */
|
||||||
|
#include <zlib.h>
|
||||||
|
|
||||||
#include "ByteSwapper.h"
|
#include "ByteSwapper.h"
|
||||||
#include "FBXParseTools.h"
|
#include "FBXParseTools.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user