exchange

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

meson.build (4524B)


      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_contract.c',
     49     'crypto_helper_common.c',
     50     'crypto_helper_rsa.c',
     51     'crypto_helper_cs.c',
     52     'crypto_helper_esign.c',
     53     'crypto_wire.c',
     54     'denom.c',
     55     'exchange_signatures.c',
     56     'getopt.c',
     57     'lang.c',
     58     'iban.c',
     59     'kyc_signatures.c',
     60     'merchant_signatures.c',
     61     'offline_signatures.c',
     62     'payto.c',
     63     'secmod_common.c',
     64     'secmod_cs.c',
     65     'secmod_eddsa.c',
     66     'secmod_rsa.c',
     67     'secmod_signatures.c',
     68     'taler_error_codes.c',
     69     'tokens.c',
     70     'url.c',
     71     'util.c',
     72     'wallet_signatures.c',
     73     'xml.c',
     74     'yna.c',
     75     'os_installation.c',
     76 ]
     77 
     78 libtalerutil = library(
     79     'talerutil',
     80     libtalerutil_src,
     81     soversion: solibversions['libtalerutil']['soversion'],
     82     version: solibversions['libtalerutil']['soversion'],
     83     install_rpath: rpath_option,
     84     dependencies: [
     85         gnunetutil_dep,
     86         gnunetjson_dep,
     87         sodium_dep,
     88         json_dep,
     89         gcrypt_dep,
     90         mhd_dep,
     91         unistr_dep,
     92         zlib_dep,
     93         m_dep,
     94     ],
     95     include_directories: [incdir, configuration_inc],
     96     install: true,
     97     install_dir: get_option('libdir'),
     98 )
     99 
    100 libtalerutil_dep = declare_dependency(link_with: libtalerutil)
    101 pkg.generate(
    102     libtalerutil,
    103     url: 'https://taler.net',
    104     description: 'GNU Taler utilities library',
    105 )
    106 
    107 executable(
    108     'taler-auditor-config',
    109     ['taler-auditor-config.c'],
    110     dependencies: [gnunetutil_dep, libtalerutil_dep],
    111     include_directories: [incdir, configuration_inc],
    112     install: true,
    113 )
    114 
    115 executable(
    116     'taler-exchange-config',
    117     ['taler-exchange-config.c'],
    118     dependencies: [gnunetutil_dep, libtalerutil_dep],
    119     include_directories: [incdir, configuration_inc],
    120     install: true,
    121 )
    122 
    123 executable(
    124     'taler-exchange-secmod-rsa',
    125     ['taler-exchange-secmod-rsa.c'],
    126     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    127     include_directories: [incdir, configuration_inc],
    128     install: true,
    129 )
    130 
    131 executable(
    132     'taler-exchange-secmod-cs',
    133     ['taler-exchange-secmod-cs.c'],
    134     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    135     include_directories: [incdir, configuration_inc],
    136     install: true,
    137 )
    138 
    139 executable(
    140     'taler-exchange-secmod-eddsa',
    141     ['taler-exchange-secmod-eddsa.c'],
    142     dependencies: [gnunetutil_dep, libtalerutil_dep, gcrypt_dep],
    143     include_directories: [incdir, configuration_inc],
    144     install: true,
    145 )
    146 
    147 talerutil_tests = [
    148     'test_age_restriction',
    149     'test_amount',
    150     'test_crypto',
    151     'test_payto',
    152     'test_url',
    153 ]
    154 
    155 talerutil_tests_installcheck = [
    156     'test_helper_eddsa',
    157     'test_helper_rsa',
    158     'test_helper_cs',
    159 ]
    160 
    161 foreach t : talerutil_tests
    162 
    163     test_tmp = executable(
    164         t,
    165         ['@0@.c'.format(t)],
    166         dependencies: [gnunetutil_dep, libtalerutil_dep, json_dep],
    167         include_directories: [incdir, configuration_inc],
    168         build_by_default: false,
    169         install: false,
    170     )
    171     test(
    172         t,
    173         test_tmp,
    174         workdir: meson.current_build_dir(),
    175         suite: ['util'],
    176         is_parallel: false,
    177     )
    178 endforeach
    179 
    180 foreach t : talerutil_tests_installcheck
    181 
    182     test_tmp = executable(
    183         t,
    184         ['@0@.c'.format(t)],
    185         dependencies: [gnunetutil_dep, libtalerutil_dep, json_dep],
    186         include_directories: [incdir, configuration_inc],
    187         build_by_default: false,
    188         install: false,
    189     )
    190     test(
    191         t,
    192         test_tmp,
    193         workdir: meson.current_build_dir(),
    194         suite: ['util', 'installcheck'],
    195         is_parallel: false,
    196     )
    197 
    198 
    199 endforeach