
    <h
                    |    S SK Jr  S SKrS SKJr  \R                  (       a  SSKJr  Sr	Sr
SrS	rS
r " S S\5      rg)    )annotationsN)FileImpl   )	Argumentsa  
! This procedure will not be exported and is not
! directly callable by users of this library.

module modfoo

implicit none
private
public :: {function_name}

contains

integer function internal_function()
    internal_function = 0
end function internal_function

integer function {function_name}()
    {function_name} = internal_function()
end function {function_name}

end module modfoo
z4
use modfoo

print *,{function_name}()

end program
a  project(
  '{project_name}',
  'fortran',
  version : '{version}',
  meson_version : '>= {meson_version}',
  default_options : ['warning_level=3'],
)

# These arguments are only used to build the shared library
# not the executables that use the library.
lib_args = ['-DBUILDING_{utoken}']

dependencies = [{dependencies}
]

lib = library(
  '{lib_name}',
  '{source_file}',
  install : true,
  fortran_shared_args : lib_args,
  gnu_symbol_visibility : 'hidden',
  dependencies : dependencies,
)

test_exe = executable(
  '{test_exe_name}',
  '{test_source_file}',
  link_with : lib,
  dependencies : dependencies,
)
test('{test_name}', test_exe)

# Make this library usable as a Meson subproject.
{ltoken}_dep = declare_dependency(
  include_directories : include_directories('.'),
  dependencies : dependencies,
  link_with : lib,
)
meson.override_dependency('{project_name}', {ltoken}_dep)

pkg_mod = import('pkgconfig')
pkg_mod.generate(
  lib,
  description : 'Meson sample project.',
  subdirs : '{header_dir}',
)
z
implicit none

character(len=*), parameter :: PROJECT_NAME = "{project_name}"

print *,"This is project ", PROJECT_NAME

end program
a5  project(
  '{project_name}',
  'fortran',
  version : '{version}',
  meson_version : '>= {meson_version}',
  default_options : ['warning_level=3'],
)

dependencies = [{dependencies}
]

exe = executable(
  '{exe_name}',
  '{source_name}',
  dependencies : dependencies,
  install : true,
)

test('basic', exe)
c                  D   ^  \ rS rSrSr\r\r\	r
\r\rSU 4S jjrSrU =r$ )FortranProject|   f90c                2   > [         TU ]  U5        SU l        g )Nz1.3.0)super__init__meson_version)selfargs	__class__s     چ/mnt/mint/home/seanl/mnt/public/Repos/ladybird/Build/vcpkg/downloads/tools/meson-1.9.0-d1fcc2/mesonbuild/templates/fortrantemplates.pyr   FortranProject.__init__   s    $    )r   )r   r   )__name__
__module____qualname____firstlineno__
source_exthello_fortran_templateexe_templatehello_fortran_meson_templateexe_meson_templatelib_fortran_templatelib_templatelib_fortran_meson_templatelib_meson_templatelib_fortran_test_templatelib_test_templater   __static_attributes____classcell__)r   s   @r   r   r   |   s.    J)L5'L31% %r   r   )
__future__r   typingTmesonbuild.templates.sampleimplr   TYPE_CHECKINGminitr   r   r"   r    r   r   r    r   r   <module>r-      sO   
 #  4??! . . `   ,%X %r   