diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/fortran/21 install static/subprojects | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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 |