meson.build (12197B)
1 # This build file is in the public domain 2 install_data('kudos.conf', 'merchant.conf', 'tops.conf', install_dir: pkgcfgdir) 3 4 5 configure_file( 6 input: 'taler-merchant-report-generator-email', 7 output: 'taler-merchant-report-generator-email', 8 install: true, 9 copy: true, 10 install_dir: get_option('bindir'), 11 ) 12 13 configure_file( 14 input: 'taler-merchant-report-generator-file', 15 output: 'taler-merchant-report-generator-file', 16 install: true, 17 copy: true, 18 install_dir: get_option('bindir'), 19 ) 20 21 22 executable( 23 'taler-merchant-depositcheck', 24 ['taler-merchant-depositcheck.c'], 25 dependencies: [ 26 libtalermerchantutil_dep, 27 talerutil_dep, 28 talerjson_dep, 29 libtalermerchantdb_dep, 30 talerpq_dep, 31 talerexchange_dep, 32 gnunetutil_dep, 33 gnunetjson_dep, 34 gnunetcurl_dep, 35 pq_dep, 36 curl_dep, 37 json_dep, 38 ], 39 include_directories: [incdir, configuration_inc], 40 install: true, 41 ) 42 43 44 executable( 45 'taler-merchant-exchangekeyupdate', 46 ['taler-merchant-exchangekeyupdate.c'], 47 dependencies: [ 48 libtalermerchantutil_dep, 49 talerutil_dep, 50 talerjson_dep, 51 libtalermerchantdb_dep, 52 talerpq_dep, 53 talerexchange_dep, 54 gnunetutil_dep, 55 gnunetjson_dep, 56 gnunetcurl_dep, 57 pq_dep, 58 curl_dep, 59 json_dep, 60 ], 61 include_directories: [incdir, configuration_inc], 62 install: true, 63 ) 64 65 66 67 taler_merchant_httpd_SOURCES = [ 68 'taler-merchant-httpd.c', 69 'taler-merchant-httpd_auth.c', 70 'taler-merchant-httpd_contract.c', 71 'taler-merchant-httpd_dispatcher.c', 72 'taler-merchant-httpd_exchanges.c', 73 'taler-merchant-httpd_get-orders-ORDER_ID.c', 74 'taler-merchant-httpd_get-sessions-SESSION_ID.c', 75 'taler-merchant-httpd_get-products-IMAGE_HASH-image.c', 76 'taler-merchant-httpd_get-config.c', 77 'taler-merchant-httpd_get-exchanges.c', 78 'taler-merchant-httpd_get-templates-TEMPLATE_ID.c', 79 'taler-merchant-httpd_helper.c', 80 'taler-merchant-httpd_mhd.c', 81 'taler-merchant-httpd_get-terms.c', 82 'taler-merchant-httpd_mfa.c', 83 'taler-merchant-httpd_delete-private-accounts-H_WIRE.c', 84 'taler-merchant-httpd_delete-private-categories-CATEGORY_ID.c', 85 'taler-merchant-httpd_delete-private-units-UNIT.c', 86 'taler-merchant-httpd_delete-management-instances-INSTANCE.c', 87 'taler-merchant-httpd_delete-private-token.c', 88 'taler-merchant-httpd_delete-private-tokens-SERIAL.c', 89 'taler-merchant-httpd_delete-private-products-PRODUCT_ID.c', 90 'taler-merchant-httpd_delete-private-orders-ORDER_ID.c', 91 'taler-merchant-httpd_delete-private-otp-devices-DEVICE_ID.c', 92 'taler-merchant-httpd_delete-private-templates-TEMPLATE_ID.c', 93 'taler-merchant-httpd_delete-private-tokenfamilies-TOKEN_FAMILY_SLUG.c', 94 'taler-merchant-httpd_delete-private-transfers-TID.c', 95 'taler-merchant-httpd_delete-private-webhooks-WEBHOOK_ID.c', 96 'taler-merchant-httpd_get-private-accounts.c', 97 'taler-merchant-httpd_get-private-accounts-H_WIRE.c', 98 'taler-merchant-httpd_get-private-categories.c', 99 'taler-merchant-httpd_get-private-units.c', 100 'taler-merchant-httpd_get-private-categories-CATEGORY_ID.c', 101 'taler-merchant-httpd_get-private-units-UNIT.c', 102 'taler-merchant-httpd_get-management-instances.c', 103 'taler-merchant-httpd_get-management-instances-INSTANCE.c', 104 'taler-merchant-httpd_get-private-kyc.c', 105 'taler-merchant-httpd_kyc-order.c', 106 'taler-merchant-httpd_get-private-tokens.c', 107 'taler-merchant-httpd_get-private-pos.c', 108 'taler-merchant-httpd_get-private-products.c', 109 'taler-merchant-httpd_get-private-products-PRODUCT_ID.c', 110 'taler-merchant-httpd_get-private-orders.c', 111 'taler-merchant-httpd_get-private-orders-ORDER_ID.c', 112 'taler-merchant-httpd_get-private-otp-devices.c', 113 'taler-merchant-httpd_get-private-otp-devices-DEVICE_ID.c', 114 'taler-merchant-httpd_get-private-incoming.c', 115 'taler-merchant-httpd_get-private-incoming-ID.c', 116 'taler-merchant-httpd_get-private-transfers.c', 117 'taler-merchant-httpd_get-private-templates.c', 118 'taler-merchant-httpd_get-private-templates-TEMPLATE_ID.c', 119 'taler-merchant-httpd_get-private-tokenfamilies.c', 120 'taler-merchant-httpd_get-private-tokenfamilies-TOKEN_FAMILY_SLUG.c', 121 'taler-merchant-httpd_get-private-webhooks.c', 122 'taler-merchant-httpd_get-private-webhooks-WEBHOOK_ID.c', 123 'taler-merchant-httpd_patch-private-accounts-H_WIRE.c', 124 'taler-merchant-httpd_patch-private-categories-CATEGORY_ID.c', 125 'taler-merchant-httpd_patch-private-units-UNIT.c', 126 'taler-merchant-httpd_patch-management-instances-INSTANCE.c', 127 'taler-merchant-httpd_patch-private-orders-ORDER_ID-forget.c', 128 'taler-merchant-httpd_patch-private-otp-devices-DEVICE_ID.c', 129 'taler-merchant-httpd_patch-private-products-PRODUCT_ID.c', 130 'taler-merchant-httpd_patch-private-templates-TEMPLATE_ID.c', 131 'taler-merchant-httpd_patch-private-tokenfamilies-TOKEN_FAMILY_SLUG.c', 132 'taler-merchant-httpd_patch-private-webhooks-WEBHOOK_ID.c', 133 'taler-merchant-httpd_post-private-accounts.c', 134 'taler-merchant-httpd_post-private-categories.c', 135 'taler-merchant-httpd_post-private-units.c', 136 'taler-merchant-httpd_post-management-instances.c', 137 'taler-merchant-httpd_post-management-instances-INSTANCE-auth.c', 138 'taler-merchant-httpd_post-private-token.c', 139 'taler-merchant-httpd_post-private-orders-ORDER_ID-collect.c', 140 'taler-merchant-httpd_post-private-orders-ORDER_ID-refund.c', 141 'taler-merchant-httpd_post-private-orders-ORDER_ID-refund-external.c', 142 'taler-merchant-httpd_post-private-orders.c', 143 'taler-merchant-httpd_post-private-products.c', 144 'taler-merchant-httpd_post-private-otp-devices.c', 145 'taler-merchant-httpd_post-private-products-PRODUCT_ID-lock.c', 146 'taler-merchant-httpd_post-private-templates.c', 147 'taler-merchant-httpd_post-private-tokenfamilies.c', 148 'taler-merchant-httpd_post-private-transfers.c', 149 'taler-merchant-httpd_post-private-webhooks.c', 150 'taler-merchant-httpd_post-private-accounts-H_WIRE-kycauth.c', 151 'taler-merchant-httpd_post-private-accept-tos-early.c', 152 'taler-merchant-httpd_post-challenge-ID.c', 153 'taler-merchant-httpd_post-challenge-ID-confirm.c', 154 'taler-merchant-httpd_post-orders-ORDER_ID-abort.c', 155 'taler-merchant-httpd_post-orders-ORDER_ID-claim.c', 156 'taler-merchant-httpd_post-orders-ORDER_ID-pay.c', 157 'taler-merchant-httpd_post-orders-ORDER_ID-paid.c', 158 'taler-merchant-httpd_post-orders-ORDER_ID-refund.c', 159 'taler-merchant-httpd_post-orders-ORDER_ID-unclaim.c', 160 'taler-merchant-httpd_post-templates-TEMPLATE_ID.c', 161 'taler-merchant-httpd_post-reports-REPORT_ID.c', 162 'taler-merchant-httpd_get-private-statistics-amount-SLUG.c', 163 'taler-merchant-httpd_get-private-statistics-counter-SLUG.c', 164 'taler-merchant-httpd_get-private-statistics-report-transactions.c', 165 'taler-merchant-httpd_qr.c', 166 'taler-merchant-httpd_get-webui.c', 167 'taler-merchant-httpd_delete-private-reports-REPORT_ID.c', 168 'taler-merchant-httpd_get-private-reports-REPORT_ID.c', 169 'taler-merchant-httpd_get-private-reports.c', 170 'taler-merchant-httpd_patch-private-reports-REPORT_ID.c', 171 'taler-merchant-httpd_post-private-reports.c', 172 'taler-merchant-httpd_delete-private-pots-POT_ID.c', 173 'taler-merchant-httpd_get-private-pots-POT_ID.c', 174 'taler-merchant-httpd_get-private-pots.c', 175 'taler-merchant-httpd_patch-private-pots-POT_ID.c', 176 'taler-merchant-httpd_post-private-pots.c', 177 'taler-merchant-httpd_delete-private-groups-GROUP_ID.c', 178 'taler-merchant-httpd_get-private-groups.c', 179 'taler-merchant-httpd_patch-private-groups-GROUP_ID.c', 180 'taler-merchant-httpd_post-private-groups.c', 181 'taler-merchant-httpd_statics.c', 182 'taler-merchant-httpd_get-private-donau.c', 183 'taler-merchant-httpd_post-private-donau.c', 184 'taler-merchant-httpd_delete-private-donau-DONAU_SERIAL.c', 185 ] 186 187 executable( 188 'taler-merchant-httpd', 189 taler_merchant_httpd_SOURCES, 190 dependencies: [ 191 donau_dep, 192 donaujson_dep, 193 libtalermerchantutil_dep, 194 libtalermerchantbank_dep, 195 talerutil_dep, 196 talerjson_dep, 197 libtalermerchantdb_dep, 198 talerpq_dep, 199 talerkyclogic_dep, 200 talerbank_dep, 201 talermhd_dep, 202 talerexchange_dep, 203 talertemplating_dep, 204 gnunetutil_dep, 205 gnunetjson_dep, 206 gnunetcurl_dep, 207 pq_dep, 208 mhd_dep, 209 json_dep, 210 qrencode_dep, 211 ], 212 include_directories: [incdir, configuration_inc], 213 install: true, 214 ) 215 216 217 218 executable( 219 'taler-merchant-kyccheck', 220 ['taler-merchant-kyccheck.c'], 221 dependencies: [ 222 libtalermerchantutil_dep, 223 talerutil_dep, 224 talerjson_dep, 225 libtalermerchantdb_dep, 226 talerpq_dep, 227 talerexchange_dep, 228 gnunetutil_dep, 229 gnunetjson_dep, 230 gnunetcurl_dep, 231 pq_dep, 232 curl_dep, 233 json_dep, 234 ], 235 include_directories: [incdir, configuration_inc], 236 install: true, 237 ) 238 239 240 241 executable( 242 'taler-merchant-reconciliation', 243 ['taler-merchant-reconciliation.c'], 244 dependencies: [ 245 libtalermerchantutil_dep, 246 talerutil_dep, 247 talerjson_dep, 248 libtalermerchantdb_dep, 249 talerpq_dep, 250 talerexchange_dep, 251 gnunetpq_dep, 252 gnunetutil_dep, 253 gnunetjson_dep, 254 gnunetcurl_dep, 255 pq_dep, 256 curl_dep, 257 ], 258 include_directories: [incdir, configuration_inc], 259 install: true, 260 ) 261 262 263 264 executable( 265 'taler-merchant-report-generator', 266 ['taler-merchant-report-generator.c'], 267 dependencies: [ 268 libtalermerchantutil_dep, 269 talerutil_dep, 270 talerjson_dep, 271 libtalermerchantdb_dep, 272 talerpq_dep, 273 talercurl_dep, 274 talerexchange_dep, 275 gnunetpq_dep, 276 gnunetutil_dep, 277 gnunetjson_dep, 278 gnunetcurl_dep, 279 pq_dep, 280 curl_dep, 281 json_dep, 282 ], 283 include_directories: [incdir, configuration_inc], 284 install: true, 285 ) 286 287 288 289 executable( 290 'taler-merchant-webhook', 291 ['taler-merchant-webhook.c'], 292 dependencies: [ 293 libtalermerchantutil_dep, 294 talerutil_dep, 295 talerjson_dep, 296 libtalermerchantdb_dep, 297 talermhd_dep, 298 talerpq_dep, 299 talerexchange_dep, 300 gnunetutil_dep, 301 gnunetjson_dep, 302 gnunetcurl_dep, 303 pq_dep, 304 curl_dep, 305 json_dep, 306 ], 307 include_directories: [incdir, configuration_inc], 308 install: true, 309 ) 310 311 312 executable( 313 'taler-merchant-wirewatch', 314 ['taler-merchant-wirewatch.c'], 315 dependencies: [ 316 libtalermerchantutil_dep, 317 libtalermerchantbank_dep, 318 talerutil_dep, 319 talerjson_dep, 320 libtalermerchantdb_dep, 321 talermhd_dep, 322 talerpq_dep, 323 talerexchange_dep, 324 gnunetutil_dep, 325 gnunetjson_dep, 326 gnunetcurl_dep, 327 pq_dep, 328 curl_dep, 329 json_dep, 330 ], 331 include_directories: [incdir, configuration_inc], 332 install: true, 333 ) 334 335 336 337 if donau_dep.found() 338 executable( 339 'taler-merchant-donaukeyupdate', 340 ['taler-merchant-donaukeyupdate.c'], 341 dependencies: [ 342 libtalermerchantutil_dep, 343 talerutil_dep, 344 talerjson_dep, 345 libtalermerchantdb_dep, 346 talermhd_dep, 347 talerpq_dep, 348 talerexchange_dep, 349 gnunetutil_dep, 350 gnunetjson_dep, 351 gnunetcurl_dep, 352 pq_dep, 353 curl_dep, 354 donau_dep, 355 ], 356 include_directories: [incdir, configuration_inc], 357 install: true, 358 ) 359 360 endif 361 362 363 test_merchant_kyc_order = executable( 364 'test_merchant_kyc_order', 365 [ 366 'test_merchant_kyc_order.c', 367 'taler-merchant-httpd_kyc-order.c', 368 ], 369 dependencies: [ 370 talerjson_dep, 371 gnunetutil_dep, 372 json_dep, 373 ], 374 include_directories: [incdir, configuration_inc], 375 install: false, 376 ) 377 test( 378 'test_merchant_kyc_order', 379 test_merchant_kyc_order, 380 suite: ['backend'], 381 )