sudo apt-get install python3 ninja-build shared_library('hello', ['lib1.c', 'lib2.c'],version : '1.2.3') CC=clang meson ~/helloworld/src ~/helloworld/src/build CFLAGS="-o2" meson --buildtype=plain ~/helloworld/src ~/helloworld/build DESTDIR=/opt/helloworld ninja install ninja install --prefix /usr cd helloworld/src mkdir build meson ~/helloworld/src ~/helloworld/src/build cd build ninja lib = static_library('hello', ['lib1.c','lib2.c']) executable('hello', 'main.c', link_with : lib) obj = lib.extract_objects('lib2.c') executable('hello', 'main.c', objects : obj) subdir('gui') header = include_directories('include') executable('hello', 'main.c',include_dirs : header) gtk = dependency('gtk+-3.0') executable('hello', 'main.c', deps : gtk) boost = dependency('boost', modules : ['thread', 'utility']) test('A Test', prg, is_parallel : false) ninja coverage-xml executable('hello', sources: src, c_pch : 'pch/hello_pch.h') project('Hello World', 'c') # Name of project src = ['main.c', 'file1.c', 'file2.c'] executable('hello', sources : src)