exchange

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

meson.build (1789B)


      1 libtalerpq_src = ['pq_common.c', 'pq_query_helper.c', 'pq_result_helper.c']
      2 
      3 libtalerpq = library(
      4     'talerpq',
      5     libtalerpq_src,
      6     soversion: solibversions['libtalerpq']['soversion'],
      7     version: solibversions['libtalerpq']['soversion'],
      8     install_rpath: rpath_option,
      9     dependencies: [
     10         libtalerutil_dep,
     11         gnunetutil_dep,
     12         gnunetpq_dep,
     13         json_dep,
     14         pq_dep,
     15     ],
     16     include_directories: [incdir, configuration_inc],
     17     install: true,
     18     install_dir: get_option('libdir'),
     19 )
     20 
     21 libtalerpq_dep = declare_dependency(link_with: libtalerpq)
     22 pkg.generate(
     23     libtalerpq,
     24     url: 'https://taler.net',
     25     description: 'GNU Taler postgresql wrapper library',
     26 )
     27 
     28 talerpq_tests = ['test_pq']
     29 
     30 talerpq_tests_installcheck = []
     31 
     32 foreach t : talerpq_tests
     33 
     34     test_tmp = executable(
     35         t,
     36         ['@0@.c'.format(t)],
     37         dependencies: [
     38             gnunetutil_dep,
     39             gnunetpq_dep,
     40             libtalerpq_dep,
     41             libtalerutil_dep,
     42             json_dep,
     43             pq_dep,
     44         ],
     45         include_directories: [incdir, configuration_inc],
     46         build_by_default: false,
     47         install: false,
     48     )
     49     test(
     50         t,
     51         test_tmp,
     52         workdir: meson.current_build_dir(),
     53         suite: ['pq'],
     54         is_parallel: false,
     55     )
     56 endforeach
     57 
     58 foreach t : talerpq_tests_installcheck
     59 
     60     test_tmp = executable(
     61         t,
     62         ['@0@.c'.format(t)],
     63         dependencies: [gnunetutil_dep, libtalerutil_dep, json_dep],
     64         include_directories: [incdir, configuration_inc],
     65         build_by_default: false,
     66         install: false,
     67     )
     68     test(
     69         t,
     70         test_tmp,
     71         workdir: meson.current_build_dir(),
     72         suite: ['pq', 'installcheck'],
     73         is_parallel: false,
     74     )
     75 
     76 
     77 endforeach