diff options
Diffstat (limited to 'meson/test cases/fortran/21 install static/subprojects')
-rw-r--r-- | meson/test cases/fortran/21 install static/subprojects/static_hello/meson.build | 12 | ||||
-rw-r--r-- | meson/test cases/fortran/21 install static/subprojects/static_hello/static_hello.f90 | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meson/test cases/fortran/21 install static/subprojects/static_hello/meson.build b/meson/test cases/fortran/21 install static/subprojects/static_hello/meson.build new file mode 100644 index 000000000..5e13bae55 --- /dev/null +++ b/meson/test cases/fortran/21 install static/subprojects/static_hello/meson.build @@ -0,0 +1,12 @@ +project('static-hello', 'fortran') + +# staticlibsource = 'static_hello.f90' +staticlibsource = configure_file( + copy: true, + input: 'static_hello.f90', + output: 'static_hello_output.F90' +) + +static_hello_lib = static_library('static_hello', staticlibsource, install: false) + +static_hello_dep = declare_dependency(link_with: static_hello_lib) diff --git a/meson/test cases/fortran/21 install static/subprojects/static_hello/static_hello.f90 b/meson/test cases/fortran/21 install static/subprojects/static_hello/static_hello.f90 new file mode 100644 index 000000000..5407560d7 --- /dev/null +++ b/meson/test cases/fortran/21 install static/subprojects/static_hello/static_hello.f90 @@ -0,0 +1,17 @@ +module static_hello +implicit none + +private +public :: static_say_hello + +interface static_say_hello + module procedure say_hello +end interface static_say_hello + +contains + +subroutine say_hello + print *, "Static library called." +end subroutine say_hello + +end module static_hello |