1- project (' libbyteconvert' ,' cpp' ,
2- version :' 0.1.4' ,
3- default_options : [
4- ' c_std=c11' ,
5- ' cpp_std=c++11' ])
1+ # Project info
2+ project (' byteconvert' , ' cpp' , version :' 1.0.0' , license : ' MIT' , default_options : [' cpp_std=c++11' ])
3+
4+ # Import modules
65pkg = import (' pkgconfig' )
76
8- subdir (' libbyteconvert' )
7+ subdir (' libbyteconvert' ) # Run meson script in libbyteconvert dir
8+ subdir (' examples' ) # Run meson script in examples dir
99
10- pkg.generate(libraries : mylib,
11- version : meson .project_version(),
12- name : ' libbyteconvert' ,
13- filebase : ' byteconvert' ,
14- description : ' A conversion library.' ,
15- url : ' https://github.com/SloCompTech/ByteConvert_cpp' )
10+ # Package info
11+ pkg.generate(
12+ name : ' lib' + meson .project_name(),
13+ description : ' Library for converting variables to bytes.' ,
14+ version : meson .project_version(),
15+ filebase : meson .project_name(),
16+ url : ' https://github.com/SloCompTech/ByteConvert_cpp' ,
17+ libraries : libbyteconvert
18+ )
1619
17- subdir (' examples' )
20+ # Declare as dependency so it can be used elsewhere
21+ libbyteconvert_inc = include_directories (' libbyteconvert' )
22+ libbyteconvert_dep = declare_dependency (
23+ link_with : libbyteconvert,
24+ include_directories : libbyteconvert_inc
25+ )
0 commit comments