Skip to content

Commit

Permalink
Merge pull request #5 from AtilaSaraiva/meson
Browse files Browse the repository at this point in the history
Added support for meson builder and also corrected a funcion call wit…
  • Loading branch information
jchristopherson authored Oct 31, 2021
2 parents f1d0a20 + 8b7ab06 commit 2b3fed5
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 177 deletions.
37 changes: 37 additions & 0 deletions examples/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
examples = [
['fplot_2d_1','fplot_2d_1.f90'],
['fplot_2d_2','fplot_2d_2.f90'],
['fplot_2d_3','fplot_2d_3.f90'],
['fplot_2d_4','fplot_2d_4.f90'],
['fplot_2d_5','fplot_2d_5.f90'],
['fplot_2d_6','fplot_2d_6.f90'],
['fplot_2d_7','fplot_2d_7.f90'],
['fplot_2d_8','fplot_2d_8.f90'],
['fplot_2d_9','fplot_2d_9.f90'],
['fplot_2d_clr_1','fplot_2d_clr_1.f90'],
['fplot_3d_1','fplot_3d_1.f90'],
['fplot_3d_clr_1','fplot_3d_clr_1.f90'],
['fplot_clear_1','fplot_clear_1.f90'],
['fplot_d2d_1','fplot_d2d_1.f90'],
['fplot_d2d_2','fplot_d2d_2.f90'],
['fplot_err_1','fplot_err_1.f90'],
['fplot_fill_1','fplot_fill_1.f90'],
['fplot_fill_2','fplot_fill_2.f90'],
['fplot_log_1','fplot_log_1.f90'],
['fplot_multi_1','fplot_multi_1.f90'],
['fplot_multi_2','fplot_multi_2.f90'],
['fplot_multi_3','fplot_multi_3.f90'],
['fplot_png_1','fplot_png_1.f90'],
['fplot_polar_1','fplot_polar_1.f90'],
['fplot_surf_1','fplot_surf_1.f90'],
['fplot_surf_2','fplot_surf_2.f90'],
['fplot_surf_3','fplot_surf_3.f90'],
['fplot_tri_surf_1','fplot_tri_surf_1.f90'],
['fplot_vector_1','fplot_vector_1.f90'],
['fplot_vector_2','fplot_vector_2.f90']
]

foreach example : examples
executable(example[0], example[1],
dependencies: fplot_dep)
endforeach
16 changes: 16 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project('fplot', 'fortran')

fcore_proj = subproject('fcore')
fcore_dep = fcore_proj.get_variable('fcore_dep')

ferror_proj = subproject('ferror')
ferror_dep = ferror_proj.get_variable('ferror_dep')

subdir('src')

fplot_lib = static_library('fplot', sources,
dependencies: [fcore_dep, ferror_dep])

fplot_dep = declare_dependency(link_with: fplot_lib)

subdir('examples')
Loading

0 comments on commit 2b3fed5

Please sign in to comment.