Difference between revisions of "FreeBSD"

From uGFX Wiki
Jump to: navigation, search
(Makefile)
Line 10: Line 10:
 
= Makefile =
 
= Makefile =
 
A sample Makefile can be found under <code>/boards/base/FreeBSD-SDL/example/Makefile</code>. Copy it to your project directory.
 
A sample Makefile can be found under <code>/boards/base/FreeBSD-SDL/example/Makefile</code>. Copy it to your project directory.
 +
 +
From there, set the <code>GFXLIB</code> variable in the Makefile to point to the root directory of the µGFX library.
 +
 +
If the <code>GFXDEMO</code> variable is set to non-empty (it has to point to one of the demo directories in <code>/demos</code>, the corresponding demo will be compiled. If you want to compile your own application code, add the source files to the <code>SRC</code> variable.

Revision as of 00:14, 24 September 2021

µGFX can be compiled into native FreeBSD applications. This is especially useful for developing µGFX applications on a Desktop machine. The SDL2 library is used to spawn a desktop window. Mouse & keyboard inputs are supported.

Dependencies

The following dependencies are required:

Makefile

A sample Makefile can be found under /boards/base/FreeBSD-SDL/example/Makefile. Copy it to your project directory.

From there, set the GFXLIB variable in the Makefile to point to the root directory of the µGFX library.

If the GFXDEMO variable is set to non-empty (it has to point to one of the demo directories in /demos, the corresponding demo will be compiled. If you want to compile your own application code, add the source files to the SRC variable.