meson.build (5867B)
1 # This build file is in the public domain 2 3 install_data( 4 'kyclogic.conf', 5 'kyclogic-kycaid.conf', 6 'kyclogic-oauth2.conf', 7 'kyclogic-persona.conf', 8 install_dir: pkgcfgdir, 9 ) 10 11 kyc_bin_SCRIPTS = [ 12 'taler-exchange-helper-measure-challenger-email-context-check', 13 'taler-exchange-helper-measure-challenger-postal-context-check', 14 'taler-exchange-helper-measure-challenger-sms-context-check', 15 'taler-exchange-helper-measure-clear-continue', 16 'taler-exchange-helper-measure-defaults-but-investigate', 17 'taler-exchange-helper-measure-freeze', 18 'taler-exchange-helper-measure-inform-investigate', 19 'taler-exchange-helper-measure-none', 20 'taler-exchange-helper-measure-preserve-but-investigate', 21 'taler-exchange-helper-measure-preserve-set-expiration', 22 'taler-exchange-helper-measure-tops-address-check', 23 'taler-exchange-helper-measure-tops-3rdparty-check', 24 'taler-exchange-helper-measure-tops-kyx-check', 25 'taler-exchange-helper-measure-tops-postal-check', 26 'taler-exchange-helper-measure-tops-sms-check', 27 'taler-exchange-helper-measure-test-form', 28 'taler-exchange-helper-measure-test-oauth', 29 'taler-exchange-helper-measure-update-from-context', 30 'taler-exchange-helper-measure-validate-accepted-tos', 31 'taler-exchange-kyc-kycaid-converter.sh', 32 'taler-exchange-kyc-persona-converter.sh', 33 'taler-exchange-kyc-oauth2-test-converter.sh', 34 'taler-exchange-kyc-challenger-email-converter', 35 'taler-exchange-kyc-challenger-postal-converter', 36 'taler-exchange-kyc-challenger-sms-converter', 37 'taler-exchange-kyc-oauth2-challenger.sh', 38 'taler-exchange-kyc-oauth2-nda.sh', 39 ] 40 41 foreach b : kyc_bin_SCRIPTS 42 configure_file( 43 input: b, 44 output: b, 45 install: true, 46 install_dir: get_option('bindir'), 47 copy: true, 48 ) 49 endforeach 50 51 libtalerkyclogic = library( 52 'talerkyclogic', 53 ['kyclogic_api.c', 'kyclogic_sanctions.c'], 54 soversion: solibversions['libtalerkyclogic']['soversion'], 55 version: solibversions['libtalerkyclogic']['soversion'], 56 install_rpath: rpath_option, 57 dependencies: [ 58 libtalerjson_dep, 59 libtalerutil_dep, 60 gnunetutil_dep, 61 gnunetjson_dep, 62 json_dep, 63 ], 64 include_directories: [incdir, configuration_inc], 65 install: true, 66 install_dir: get_option('libdir'), 67 ) 68 69 libtalerkyclogic_dep = declare_dependency(link_with: libtalerkyclogic) 70 pkg.generate( 71 libtalerkyclogic, 72 url: 'https://taler.net', 73 description: 'GNU Taler KYC library', 74 ) 75 76 77 test_kyclogic = executable( 78 'test_kyclogic', 79 ['test_kyclogic.c'], 80 dependencies: [ 81 libtalerkyclogic_dep, 82 libtalerutil_dep, 83 gnunetutil_dep, 84 ], 85 include_directories: [incdir, configuration_inc], 86 build_by_default: false, 87 install: false, 88 ) 89 test( 90 'test_kyclogic', 91 test_kyclogic, 92 suite: ['kyclogic'], 93 ) 94 95 96 97 executable( 98 'taler-exchange-helper-sanctions-dummy', 99 ['taler-exchange-helper-sanctions-dummy.c'], 100 install_rpath: rpath_option, 101 dependencies: [ 102 libtalerutil_dep, 103 libtalerjson_dep, 104 libtalermhd_dep, 105 libtalerkyclogic_dep, 106 gnunetutil_dep, 107 gnunetjson_dep, 108 json_dep, 109 gcrypt_dep, 110 ], 111 include_directories: [incdir, configuration_inc], 112 install: true, 113 install_dir: get_option('bindir'), 114 ) 115 116 executable( 117 'taler-exchange-kyc-tester', 118 ['taler-exchange-kyc-tester.c'], 119 install_rpath: rpath_option, 120 dependencies: [ 121 libtalerutil_dep, 122 libtalerjson_dep, 123 libtalermhd_dep, 124 libtalertemplating_dep, 125 libtalerkyclogic_dep, 126 gnunetutil_dep, 127 gnunetcurl_dep, 128 gnunetjson_dep, 129 json_dep, 130 curl_dep, 131 zlib_dep, 132 mhd_dep, 133 gcrypt_dep, 134 ], 135 include_directories: [incdir, configuration_inc], 136 install: true, 137 install_dir: get_option('bindir'), 138 ) 139 140 141 exch_plugindir = get_option('libdir') / 'taler-exchange' 142 143 shared_module( 144 'taler_plugin_kyclogic_kycaid', 145 ['plugin_kyclogic_kycaid.c'], 146 install_rpath: rpath_option, 147 dependencies: [ 148 libtalerutil_dep, 149 libtalercurl_dep, 150 libtalerjson_dep, 151 libtalertemplating_dep, 152 libtalermhd_dep, 153 gnunetcurl_dep, 154 gnunetjson_dep, 155 gnunetutil_dep, 156 mhd_dep, 157 json_dep, 158 curl_dep, 159 ], 160 include_directories: [incdir, configuration_inc], 161 install: true, 162 install_dir: exch_plugindir, 163 ) 164 165 shared_module( 166 'taler_plugin_kyclogic_template', 167 ['plugin_kyclogic_template.c'], 168 install_rpath: rpath_option, 169 dependencies: [gnunetcurl_dep, gnunetutil_dep], 170 include_directories: [incdir, configuration_inc], 171 install: true, 172 install_dir: exch_plugindir, 173 ) 174 175 shared_module( 176 'taler_plugin_kyclogic_oauth2', 177 ['plugin_kyclogic_oauth2.c'], 178 install_rpath: rpath_option, 179 dependencies: [ 180 libtalerutil_dep, 181 libtalercurl_dep, 182 libtalerjson_dep, 183 libtalertemplating_dep, 184 libtalermhd_dep, 185 gnunetcurl_dep, 186 gnunetjson_dep, 187 gnunetutil_dep, 188 mhd_dep, 189 json_dep, 190 curl_dep, 191 ], 192 include_directories: [incdir, configuration_inc], 193 install: true, 194 install_dir: exch_plugindir, 195 ) 196 197 shared_module( 198 'taler_plugin_kyclogic_persona', 199 ['plugin_kyclogic_persona.c'], 200 install_rpath: rpath_option, 201 dependencies: [ 202 libtalerkyclogic_dep, 203 libtalerutil_dep, 204 libtalercurl_dep, 205 libtalerjson_dep, 206 libtalertemplating_dep, 207 libtalermhd_dep, 208 gnunetcurl_dep, 209 gnunetjson_dep, 210 gnunetutil_dep, 211 mhd_dep, 212 json_dep, 213 curl_dep, 214 ], 215 include_directories: [incdir, configuration_inc], 216 install: true, 217 install_dir: exch_plugindir, 218 )