Skip to content
/ meson-cpp-skel Public template

Skeleton project for C/C++ using Meson

License

Notifications You must be signed in to change notification settings

ragecryx/meson-cpp-skel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meson-cpp-skel

Skeleton 💀 project for C++ (or C) using Meson

Build for current machine

  • Make build directory mkdir build and cd build
  • Run Meson on parent dir/project root meson ..
  • Run Ninja to actually build the project ninja

Build for Win32 through Linux

  • Make build directory mkdir build and cd build
  • Run Meson while providing a cross-compilation conf meson .. --cross-file ../cross_file.txt
  • Run Ninja to actually build the project ninja

Installing new Meson Wraps

  • Install the wrap (for example Lua): meson wrap install lua
  • Reference the subproject/dependency inside meson.build, like:
    lua = subproject('lua')
    lua_dep = lua.get_variable('lua_dep')
  • Add lua_dep in the array of common dependencies, like:
    lib_common_dep = [lua_dep, thread_dep]

Releases

No releases published

Packages

No packages published