meson.build (5040B)
1 # This build file is in the public domain 2 3 # Libraries 4 5 libtalerexchange_la_SOURCES = [ 6 'exchange_api_delete-purses-PURSE_PUB.c', 7 'exchange_api_get-aml-OFFICER_PUB-attributes-H_NORMALIZED_PAYTO.c', 8 'exchange_api_get-aml-OFFICER_PUB-decisions.c', 9 'exchange_api_get-aml-OFFICER_PUB-kyc-statistics-NAMES.c', 10 'exchange_api_get-aml-OFFICER_PUB-legitimizations.c', 11 'exchange_api_get-aml-OFFICER_PUB-measures.c', 12 'exchange_api_get-coins-COIN_PUB-history.c', 13 'exchange_api_get-contracts-CONTRACT_PUB.c', 14 'exchange_api_get-deposits-H_WIRE-MERCHANT_PUB-H_CONTRACT_TERMS-COIN_PUB.c', 15 'exchange_api_get-kyc-check-H_NORMALIZED_PAYTO.c', 16 'exchange_api_get-kyc-info-ACCESS_TOKEN.c', 17 'exchange_api_get-kyc-proof-PROVIDER_NAME.c', 18 'exchange_api_get-keys.c', 19 'exchange_api_get-management-keys.c', 20 'exchange_api_get-purses-PURSE_PUB-merge.c', 21 'exchange_api_get-reserves-RESERVE_PUB-attest.c', 22 'exchange_api_get-reserves-RESERVE_PUB.c', 23 'exchange_api_get-reserves-RESERVE_PUB-history.c', 24 'exchange_api_get-transfers-WTID.c', 25 'exchange_api_common.c', 26 'exchange_api_curl_defaults.c', 27 'exchange_api_handle.c', 28 'exchange_api_post-aml-OFFICER_PUB-decision.c', 29 'exchange_api_post-auditors-AUDITOR_PUB-H_DENOM_PUB.c', 30 'exchange_api_post-batch-deposit.c', 31 'exchange_api_post-blinding-prepare.c', 32 'exchange_api_post-coins-COIN_PUB-refund.c', 33 'exchange_api_post-kyc-start-ID.c', 34 'exchange_api_post-kyc-wallet.c', 35 'exchange_api_post-management-aml-officers.c', 36 'exchange_api_post-management-auditors-AUDITOR_PUB-disable.c', 37 'exchange_api_post-management-auditors.c', 38 'exchange_api_post-management-denominations-H_DENOM_PUB-revoke.c', 39 'exchange_api_post-management-drain.c', 40 'exchange_api_post-management-extensions.c', 41 'exchange_api_post-management-global-fees.c', 42 'exchange_api_post-management-keys.c', 43 'exchange_api_post-management-partners.c', 44 'exchange_api_post-management-signkeys-EXCHANGE_PUB-revoke.c', 45 'exchange_api_post-management-wire-disable.c', 46 'exchange_api_post-management-wire-fee.c', 47 'exchange_api_post-management-wire.c', 48 'exchange_api_post-melt.c', 49 'exchange_api_post-purses-PURSE_PUB-create.c', 50 'exchange_api_post-purses-PURSE_PUB-deposit.c', 51 'exchange_api_post-purses-PURSE_PUB-merge.c', 52 'exchange_api_post-recoup-refresh.c', 53 'exchange_api_post-recoup-withdraw.c', 54 'exchange_api_post-reserves-RESERVE_PUB-attest.c', 55 'exchange_api_post-reserves-RESERVE_PUB-close.c', 56 'exchange_api_post-reserves-RESERVE_PUB-open.c', 57 'exchange_api_post-reserves-RESERVE_PUB-purse.c', 58 'exchange_api_post-reveal-melt.c', 59 'exchange_api_post-reveal-withdraw.c', 60 'exchange_api_post-withdraw.c', 61 'exchange_api_post-withdraw_blinded.c', 62 'exchange_api_refresh_common.c', 63 'exchange_api_restrictions.c', 64 'exchange_api_stefan.c', 65 ] 66 67 libtalerauditor = library( 68 'talerauditor', 69 [ 70 'auditor_api_curl_defaults.c', 71 'auditor_api_get_config.c', 72 'auditor_api_put_deposit_confirmation.c', 73 ], 74 soversion: solibversions['libtalerauditor']['soversion'], 75 version: solibversions['libtalerauditor']['soversion'], 76 install_rpath: rpath_option, 77 dependencies: [ 78 libtalercurl_dep, 79 libtalerjson_dep, 80 libtalerutil_dep, 81 gnunetutil_dep, 82 gnunetcurl_dep, 83 gnunetjson_dep, 84 json_dep, 85 curl_dep, 86 m_dep, 87 ], 88 include_directories: [incdir, configuration_inc], 89 install: true, 90 install_dir: get_option('libdir'), 91 ) 92 93 libtalerauditor_dep = declare_dependency(link_with: libtalerauditor) 94 pkg.generate( 95 libtalerauditor, 96 url: 'https://taler.net', 97 description: 'GNU Taler auditor library', 98 ) 99 100 101 libtalerexchange = library( 102 'talerexchange', 103 libtalerexchange_la_SOURCES, 104 soversion: solibversions['libtalerexchange']['soversion'], 105 version: solibversions['libtalerexchange']['soversion'], 106 install_rpath: rpath_option, 107 dependencies: [ 108 libtalerauditor_dep, 109 libtalerkyclogic_dep, 110 libtalercurl_dep, 111 libtalerextensions_dep, 112 libtalerjson_dep, 113 libtalerutil_dep, 114 gnunetutil_dep, 115 gnunetcurl_dep, 116 gnunetjson_dep, 117 json_dep, 118 curl_dep, 119 m_dep, 120 ], 121 include_directories: [incdir, configuration_inc], 122 install: true, 123 install_dir: get_option('libdir'), 124 ) 125 126 libtalerexchange_dep = declare_dependency(link_with: libtalerexchange) 127 pkg.generate( 128 libtalerexchange, 129 url: 'https://taler.net', 130 description: 'GNU Taler exchange library', 131 ) 132 133 134 test_stefan = executable( 135 'test_stefan', 136 ['test_stefan.c'.format(t)], 137 dependencies: [gnunetutil_dep, libtalerutil_dep, libtalerexchange_dep], 138 include_directories: [incdir, configuration_inc], 139 build_by_default: false, 140 install: false, 141 ) 142 test( 143 'test_stefan', 144 test_stefan, 145 workdir: meson.current_build_dir(), 146 suite: ['stefan', 'installcheck'], 147 ) 148 149