0 votes

I want to include a 3-rd party library to my С++ module. How could I do this?

in Engine by (85 points)

I'm not into modules (yet) but if you don't have the source, look at this steam module to see how external libraries are used https://github.com/Mavhod/GodotSteam

1 Answer

0 votes
Best answer

The simplest way is to include the sources of your library in your module. If your library doesn't let you do that for license reasons, I guess you should take a look at how SCons handles it (I'm not an expert on this).

You can take model on existing modules to see how things are done. In the case of FreeType, for example, the library was added in the thirdparty folder of Godot (still in source format though).

by (28,876 points)
selected by

Thanks! I took the simplest way :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.