meson.build (1647B)
1 # This build file is in the public domain 2 install_data('donau.conf', install_dir: pkgcfgdir) 3 4 # Programs 5 6 donau_httpd_SOURCES = [ 7 'donau-httpd.c', 8 'donau-httpd_db.c', 9 'donau-httpd_get-keys.c', 10 'donau-httpd_get-config.c', 11 'donau-httpd_get-charities.c', 12 'donau-httpd_delete-charities-CHARITY_ID.c', 13 'donau-httpd_get-charity-CHARITY_ID.c', 14 'donau-httpd_post-charities.c', 15 'donau-httpd_patch-charities-CHARITY_ID.c', 16 'donau-httpd_get-history.c', 17 'donau-httpd_get-donation-statement-YEAR-HASH_DONOR_ID.c', 18 'donau-httpd_post-batch-submit.c', 19 'donau-httpd_terms.c', 20 'donau-httpd_post-csr-issue.c', 21 'donau-httpd_post-batch-issue-CHARITY_ID.c', 22 ] 23 24 executable( 25 'donau-httpd', 26 donau_httpd_SOURCES, 27 dependencies: [ 28 libdonaudb_dep, 29 libdonauutil_dep, 30 libdonaujson_dep, 31 talermhd_dep, 32 talerutil_dep, 33 talerjson_dep, 34 talerpq_dep, 35 gnunetutil_dep, 36 gnunetcurl_dep, 37 gnunetjson_dep, 38 pq_dep, 39 gcrypt_dep, 40 json_dep, 41 mhd_dep, 42 zlib_dep, 43 curl_dep, 44 ], 45 include_directories: [incdir, configuration_inc], 46 install: true, 47 ) 48 49 50 # Testcases 51 52 foreach f : [ 53 'test_donau_httpd.conf', 54 'test_donau_unix.conf', 55 'test_donau_httpd.get', 56 'setup.sh', 57 ] 58 configure_file(input: f, output: f, copy: true) 59 endforeach 60 test_donau_httpd = configure_file( 61 input: 'test_donau_httpd.sh', 62 output: 'test_donau_httpd', 63 copy: true, 64 ) 65 test( 66 'test_donau_httpd', 67 test_donau_httpd, 68 workdir: meson.current_build_dir(), 69 suite: ['donau', 'installcheck'], 70 )