
    -Ph
                    p    d dl mZ d dlZd dlmZ ej        rddlmZ dZ	dZ
dZd	Zd
Z G d de          ZdS )    )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                  8     e Zd ZdZeZeZeZ	e
ZeZd fdZ xZS )FortranProjectf90argsr   c                X    t                                          |           d| _        d S )Nz1.3.0)super__init__meson_version)selfr
   	__class__s     e/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/mesonbuild/templates/fortrantemplates.pyr   zFortranProject.__init__   s)    $    )r
   r   )__name__
__module____qualname__
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   __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)      s   
 # " " " " "     4 4 4 4 4 4? "!!!!!! . . `   ,% % % % %X % % % % %r   