+
    U¦Bi-  ã                  ó„   € ^ RI Ht ^ RIt^ RIHt ]P                  '       d   ^RIHt Rt	Rt
RtRtR	tR
t ! R R]4      tR# )é    )ÚannotationsN)ÚFileHeaderImpl)Ú	Argumentsa  #pragma once
#if defined _WIN32 || defined __CYGWIN__
  #ifdef BUILDING_{utoken}
    #define {utoken}_PUBLIC __declspec(dllexport)
  #else
    #define {utoken}_PUBLIC __declspec(dllimport)
  #endif
#elif defined __OS2__
  #ifdef BUILDING_{utoken}
    #define {utoken}_PUBLIC __declspec(dllexport)
  #else
    #define {utoken}_PUBLIC
  #endif
#else
  #ifdef BUILDING_{utoken}
      #define {utoken}_PUBLIC __attribute__ ((visibility ("default")))
  #else
      #define {utoken}_PUBLIC
  #endif
#endif

int {utoken}_PUBLIC {function_name}();

zç#include <{header_file}>

/* This function will not be exported and is not
 * directly callable by users of this library.
 */
int internal_function() {{
    return 0;
}}

int {function_name}() {{
    return internal_function();
}}
zÕ#include <{header_file}>
#include <stdio.h>

int main(int argc, char **argv) {{
    if (argc != 1) {{
        printf("%s takes no arguments.\n", argv[0]);
        return 1;
    }}
    return {function_name}();
}}
a€  project(
  '{project_name}',
  'c',
  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}
]

sources = [{source_files}
]

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

test_exe = executable(
  '{test_exe_name}',
  '{test_source_file}',
  dependencies : dependencies,
  link_with : lib,
)
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)

# Make this library usable from the system's
# package manager.
install_headers('{header_file}', subdir : '{header_dir}')

pkg_mod = import('pkgconfig')
pkg_mod.generate(
  lib,
  description : 'Meson sample project.',
  subdirs : '{header_dir}',
)
a  #include <stdio.h>

#define PROJECT_NAME "{project_name}"

int main(int argc, char **argv) {{
    if (argc != 1) {{
        printf("%s takes no arguments.\n", argv[0]);
        return 1;
    }}
    printf("This is project %s.\n", PROJECT_NAME);
    return 0;
}}
aD  project(
  '{project_name}',
  'c',
  meson_version : '>= {meson_version}',
  version : '{version}',
  default_options : ['warning_level=3'],
)

dependencies = [{dependencies}
]

sources = [{source_files}
]

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

test('basic', exe)
c                  óN   a € ] tR t^ŸtRtRt]t]t	]
t]t]t]tR V 3R lltRtV ;t# )ÚCProjectÚcÚhc               ó   € V ^8„  d   QhRR/# )é   Úargsr   © )Úformats   "ÚD/usr/lib/python3.14/site-packages/mesonbuild/templates/ctemplates.pyÚ__annotate__ÚCProject.__annotate__ª   s   € ÷ %ñ %˜Yñ %ó    c                	ó4   <€ \         SV `  V4       R V n        R# )z1.3.0N)ÚsuperÚ__init__Úmeson_version)Úselfr   Ú	__class__s   &&€r   r   ÚCProject.__init__ª   s   ø€ Ü‰Ñ˜ÔØ$ˆÖr   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú
source_extÚ
header_extÚhello_c_templateÚexe_templateÚhello_c_meson_templateÚexe_meson_templateÚlib_c_templateÚlib_templateÚlib_h_templateÚlib_header_templateÚlib_c_test_templateÚlib_test_templateÚlib_c_meson_templateÚlib_meson_templater   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r   Ÿ   s9   ø† à€JØ€JØ#€LØ/ÐØ!€LØ(ÐØ+ÐØ-Ð÷%ö %r   r   )Ú
__future__r   ÚtypingÚTÚmesonbuild.templates.sampleimplr   ÚTYPE_CHECKINGÚminitr   r&   r$   r(   r*   r    r"   r   r   r   r   Ú<module>r4      sW   ðõ
 #Û å :à‡?‡?€?Ý!ð€ð2€ð
Ð ð5Ð ðnÐ ðÐ ô2%ˆ~ö %r   