exchange

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

meson.build (4622B)


      1 pkgcfgadir = get_option('datadir') / 'taler-auditor' / 'config.d'
      2 
      3 configure_file(
      4     input: 'auditor-paths.conf',
      5     output: 'auditor-paths.conf',
      6     configuration: cdata,
      7     install: true,
      8     install_dir: pkgcfgadir,
      9 )
     10 
     11 exchange_configs = [
     12     'currencies.conf',
     13     'exchange-paths.conf',
     14     'taler-exchange-secmod-eddsa.conf',
     15     'taler-exchange-secmod-rsa.conf',
     16     'taler-exchange-secmod-cs.conf',
     17 ]
     18 
     19 
     20 foreach c : exchange_configs
     21     configure_file(
     22         input: c,
     23         output: c,
     24         configuration: cdata,
     25         install: true,
     26         install_dir: pkgcfgdir,
     27     )
     28 endforeach
     29 
     30 exchange_helper_configs = [
     31     'test_helper_eddsa.conf',
     32     'test_helper_rsa.conf',
     33     'test_helper_cs.conf',
     34 ]
     35 
     36 foreach c : exchange_helper_configs
     37     configure_file(input: c, output: c, copy: true)
     38 endforeach
     39 
     40 libtalerutil_src = [
     41     'age_restriction.c',
     42     'amount.c',
     43     'aml_signatures.c',
     44     'auditor_signatures.c',
     45     'config.c',
     46     'crypto.c',
     47     'crypto_confirmation.c',
     48     'crypto_ecdsa.c',
     49     'crypto_signatures.c',
     50     'crypto_contract.c',
     51     'crypto_helper_common.c',
     52     'crypto_helper_rsa.c',
     53     'crypto_helper_cs.c',
     54     'crypto_helper_esign.c',
     55     'crypto_wire.c',
     56     'denom.c',
     57     'exchange_signatures.c',
     58     'getopt.c',
     59     'lang.c',
     60     'iban.c',
     61     'kyc_signatures.c',
     62     'merchant_signatures.c',
     63     'offline_signatures.c',
     64     'payto.c',
     65     'secmod_common.c',
     66     'secmod_cs.c',
     67     'secmod_eddsa.c',
     68     'secmod_rsa.c',
     69     'secmod_signatures.c',
     70     'taler_error_codes.c',
     71     'tokens.c',
     72     'url.c',
     73     'util.c',
     74     'wallet_signatures.c',
     75     'xml.c',
     76     'yna.c',
     77     'os_installation.c',
     78 ]
     79 
     80 libtalerutil = library(
     81     'talerutil',
     82     libtalerutil_src,
     83     soversion: solibversions['libtalerutil']['soversion'],
     84     version: solibversions['libtalerutil']['soversion'],
     85     install_rpath: rpath_option,
     86     dependencies: [
     87         gnunetutil_dep,
     88         gnunetjson_dep,
     89         sodium_dep,
     90         json_dep,
     91         gcrypt_dep,
     92         mhd_dep,
     93         unistr_dep,
     94         zlib_dep,
     95         m_dep,
     96     ],
     97     include_directories: [incdir, configuration_inc],
     98     install: true,
     99     install_dir: get_option('libdir'),
    100 )
    101 
    102 libtalerutil_dep = declare_dependency(link_with: libtalerutil)
    103 pkg.generate(
    104     libtalerutil,
    105     url: 'https://taler.net',
    106     description: 'GNU Taler utilities library',
    107 )
    108 
    109 executable(
    110     'taler-auditor-config',
    111     ['taler-auditor-config.c'],
    112     dependencies: [gnunetutil_dep, libtalerutil_dep],
    113     include_directories: [incdir, configuration_inc],
    114     install: true,
    115 )
    116 
    117 executable(
    118     'taler-exchange-config',
    119     ['taler-exchange-config.c'],
    120     dependencies: [gnunetutil_dep, libtalerutil_dep],
    121     include_directories: [incdir, configuration_inc],
    122     install: true,
    123 )
    124 
    125 executable(
    126     'taler-exchange-secmod-rsa',
    127     ['taler-exchange-secmod-rsa.c'],
    128     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    129     include_directories: [incdir, configuration_inc],
    130     install: true,
    131 )
    132 
    133 executable(
    134     'taler-exchange-secmod-cs',
    135     ['taler-exchange-secmod-cs.c'],
    136     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    137     include_directories: [incdir, configuration_inc],
    138     install: true,
    139 )
    140 
    141 executable(
    142     'taler-exchange-secmod-eddsa',
    143     ['taler-exchange-secmod-eddsa.c'],
    144     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    145     include_directories: [incdir, configuration_inc],
    146     install: true,
    147 )
    148 
    149 talerutil_tests = [
    150     'test_age_restriction',
    151     'test_amount',
    152     'test_crypto',
    153     'test_crypto_confirmation',
    154     'test_payto',
    155     'test_slug',
    156     'test_url',
    157 ]
    158 
    159 talerutil_tests_installcheck = [
    160     'test_helper_eddsa',
    161     'test_helper_rsa',
    162     'test_helper_cs',
    163 ]
    164 
    165 foreach t : talerutil_tests
    166 
    167     test_tmp = executable(
    168         t,
    169         ['@0@.c'.format(t)],
    170         dependencies: [gnunetutil_dep, libtalerutil_dep, json_dep],
    171         include_directories: [incdir, configuration_inc],
    172         build_by_default: false,
    173         install: false,
    174     )
    175     test(
    176         t,
    177         test_tmp,
    178         workdir: meson.current_build_dir(),
    179         suite: ['util'],
    180         is_parallel: false,
    181     )
    182 endforeach
    183 
    184 foreach t : talerutil_tests_installcheck
    185 
    186     test_tmp = executable(
    187         t,
    188         ['@0@.c'.format(t)],
    189         dependencies: [gnunetutil_dep, libtalerutil_dep, json_dep],
    190         include_directories: [incdir, configuration_inc],
    191         build_by_default: false,
    192         install: false,
    193     )
    194     test(
    195         t,
    196         test_tmp,
    197         workdir: meson.current_build_dir(),
    198         suite: ['util', 'installcheck'],
    199         is_parallel: false,
    200     )
    201 
    202 
    203 endforeach