exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

meson.build (3523B)


      1 configure_file(
      2     input: 'test_typst.conf',
      3     output: 'test_typst.conf',
      4     configuration: cdata,
      5     install: true,
      6     install_dir: pkgcfgdir,
      7 )
      8 
      9 configure_file(
     10     input: 'test_typst_1.typ',
     11     output: 'test_typst_1.typ',
     12     configuration: cdata,
     13     install: true,
     14     install_dir: pkgcfgdir,
     15 )
     16 
     17 
     18 
     19 libtalermhd_src = [
     20     'mhd.c',
     21     'mhd_config.c',
     22     'mhd_legal.c',
     23     'mhd_parsing.c',
     24     'mhd_responses.c',
     25     'mhd_run.c',
     26     'mhd_spa.c',
     27     'mhd_typst.c',
     28 ]
     29 
     30 libtalermhd = library(
     31     'talermhd',
     32     libtalermhd_src,
     33     soversion: solibversions['libtalermhd']['soversion'],
     34     version: solibversions['libtalermhd']['soversion'],
     35     install_rpath: rpath_option,
     36     dependencies: [
     37         libtalerutil_dep,
     38         libtalerjson_dep,
     39         gnunetutil_dep,
     40         gnunetjson_dep,
     41         gnunetmhd_dep,
     42         json_dep,
     43         mhd_dep,
     44         zlib_dep,
     45     ],
     46     include_directories: [incdir, configuration_inc],
     47     install: true,
     48     install_dir: get_option('libdir'),
     49 )
     50 
     51 libtalermhd_dep = declare_dependency(link_with: libtalermhd)
     52 pkg.generate(
     53     libtalermhd,
     54     url: 'https://taler.net',
     55     description: 'GNU Taler microhttpd library',
     56 )
     57 
     58 talermhd_tests = []
     59 
     60 talermhd_tests_installcheck = ['test_typst']
     61 
     62 foreach t : talermhd_tests
     63 
     64     test_tmp = executable(
     65         t,
     66         ['@0@.c'.format(t)],
     67         dependencies: [
     68             gnunetutil_dep,
     69             gnunetjson_dep,
     70             libtalermhd_dep,
     71             libtalerutil_dep,
     72             json_dep,
     73             mhd_dep,
     74         ],
     75         include_directories: [incdir, configuration_inc],
     76         build_by_default: false,
     77         install: false,
     78     )
     79     test(
     80         t,
     81         test_tmp,
     82         workdir: meson.current_build_dir(),
     83         env: ['PWD=' + meson.current_build_dir()],
     84         suite: ['mhd'],
     85         is_parallel: false,
     86     )
     87 endforeach
     88 
     89 foreach t : talermhd_tests_installcheck
     90 
     91     test_tmp = executable(
     92         t,
     93         ['@0@.c'.format(t)],
     94         dependencies: [
     95             gnunetutil_dep,
     96             gnunetjson_dep,
     97             libtalermhd_dep,
     98             libtalerutil_dep,
     99             json_dep,
    100             mhd_dep,
    101         ],
    102         include_directories: [incdir, configuration_inc],
    103         build_by_default: false,
    104         install: false,
    105     )
    106     test(
    107         t,
    108         test_tmp,
    109         workdir: meson.current_build_dir(),
    110         env: ['PWD=' + meson.current_build_dir()],
    111         suite: ['mhd', 'installcheck'],
    112         is_parallel: false,
    113     )
    114 
    115 
    116 endforeach
    117 
    118 if mhd2_dep.found()
    119 
    120     libtalermhd2_src = [
    121         'mhd2.c',
    122         'mhd_config.c',
    123         'mhd2_legal.c',
    124         'mhd2_responses.c',
    125         'mhd2_run.c',
    126         'mhd2_spa.c',
    127     ]
    128 
    129     libtalermhd2 = library(
    130         'talermhd2',
    131         libtalermhd2_src,
    132         soversion: solibversions['libtalermhd2']['soversion'],
    133         version: solibversions['libtalermhd2']['soversion'],
    134         install_rpath: rpath_option,
    135         dependencies: [
    136             libtalerutil_dep,
    137             libtalerjson_dep,
    138             gnunetutil_dep,
    139             gnunetjson_dep,
    140             gnunetmhd_dep,
    141             json_dep,
    142             mhd2_dep,
    143             zlib_dep,
    144         ],
    145         include_directories: [incdir, configuration_inc],
    146         install: true,
    147         install_dir: get_option('libdir'),
    148     )
    149 
    150     libtalermhd2_dep = declare_dependency(link_with: libtalermhd2)
    151     pkg.generate(
    152         libtalermhd2,
    153         url: 'https://taler.net',
    154         description: 'GNU Taler microhttpd2 wrapper library',
    155     )
    156 
    157 endif