Skip to content

Totto16/ffi-experiments

 
 

Repository files navigation

FFI Experiments

C++ + luajit FFI = horrible cross-platform messes.

BadMutex

A global mutex.

PreciseTimer

Measure times down to the nanosecond. Except not really.

DownloadManager

Download things with libcurl without blocking Lua.

requireffi

Load C libraries using package.path.

Building

The preferred build system is meson, but a basic makefile is also provided for those who do not wish to install it.

You will need:

  • A recent version of meson.
  • A working c99 compiler.
  • A working c++11 compiler.
  • A working Moonscript compiler.
  • Either libcurl installed in some place meson/your linker will think to look for it or, on Windows and OSX, a working CMake installation.

Building on OSX and Linux should be as simple as running the following:

cd /path/to/ffi-experiments
meson build
meson compile -C build

If you are on Windows, you should do this from the relevant VS native tools command prompt.

Should you wish to statically link dependencies, simply include -Ddefault_library=static with the meson build command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C++ 38.0%
  • MoonScript 28.8%
  • C 15.2%
  • Meson 7.1%
  • Makefile 6.2%
  • Python 2.7%
  • Shell 2.0%