8000 GitHub - ragecryx/meson-cpp-skel: Skeleton project for C/C++ using Meson
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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]

About

Skeleton project for C/C++ using Meson

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0