3-rd party libraries

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kovalski
:warning: Old Version Published before Godot 3 was released.

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

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 GitHub - Mavhod/GodotSteam: Steam api for Godot game engine

eons | 2017-02-10 13:21

:bust_in_silhouette: Reply From: Zylann

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).

Thanks! I took the simplest way :slight_smile:

Kovalski | 2017-02-11 15:31