meson.build (5506B)
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 78 executable( 79 'taler-exchange-helper-sanctions-dummy', 80 ['taler-exchange-helper-sanctions-dummy.c'], 81 install_rpath: rpath_option, 82 dependencies: [ 83 libtalerutil_dep, 84 libtalerjson_dep, 85 libtalermhd_dep, 86 libtalerkyclogic_dep, 87 gnunetutil_dep, 88 gnunetjson_dep, 89 json_dep, 90 gcrypt_dep, 91 ], 92 include_directories: [incdir, configuration_inc], 93 install: true, 94 install_dir: get_option('bindir'), 95 ) 96 97 executable( 98 'taler-exchange-kyc-tester', 99 ['taler-exchange-kyc-tester.c'], 100 install_rpath: rpath_option, 101 dependencies: [ 102 libtalerutil_dep, 103 libtalerjson_dep, 104 libtalermhd_dep, 105 libtalertemplating_dep, 106 libtalerkyclogic_dep, 107 gnunetutil_dep, 108 gnunetcurl_dep, 109 gnunetjson_dep, 110 json_dep, 111 curl_dep, 112 zlib_dep, 113 mhd_dep, 114 gcrypt_dep, 115 ], 116 include_directories: [incdir, configuration_inc], 117 install: true, 118 install_dir: get_option('bindir'), 119 ) 120 121 122 exch_plugindir = get_option('libdir') / 'taler-exchange' 123 124 shared_module( 125 'taler_plugin_kyclogic_kycaid', 126 ['plugin_kyclogic_kycaid.c'], 127 install_rpath: rpath_option, 128 dependencies: [ 129 libtalerutil_dep, 130 libtalercurl_dep, 131 libtalerjson_dep, 132 libtalertemplating_dep, 133 libtalermhd_dep, 134 gnunetcurl_dep, 135 gnunetjson_dep, 136 gnunetutil_dep, 137 mhd_dep, 138 json_dep, 139 curl_dep, 140 ], 141 include_directories: [incdir, configuration_inc], 142 install: true, 143 install_dir: exch_plugindir, 144 ) 145 146 shared_module( 147 'taler_plugin_kyclogic_template', 148 ['plugin_kyclogic_template.c'], 149 install_rpath: rpath_option, 150 dependencies: [gnunetcurl_dep, gnunetutil_dep], 151 include_directories: [incdir, configuration_inc], 152 install: true, 153 install_dir: exch_plugindir, 154 ) 155 156 shared_module( 157 'taler_plugin_kyclogic_oauth2', 158 ['plugin_kyclogic_oauth2.c'], 159 install_rpath: rpath_option, 160 dependencies: [ 161 libtalerutil_dep, 162 libtalercurl_dep, 163 libtalerjson_dep, 164 libtalertemplating_dep, 165 libtalermhd_dep, 166 gnunetcurl_dep, 167 gnunetjson_dep, 168 gnunetutil_dep, 169 mhd_dep, 170 json_dep, 171 curl_dep, 172 ], 173 include_directories: [incdir, configuration_inc], 174 install: true, 175 install_dir: exch_plugindir, 176 ) 177 178 shared_module( 179 'taler_plugin_kyclogic_persona', 180 ['plugin_kyclogic_persona.c'], 181 install_rpath: rpath_option, 182 dependencies: [ 183 libtalerkyclogic_dep, 184 libtalerutil_dep, 185 libtalercurl_dep, 186 libtalerjson_dep, 187 libtalertemplating_dep, 188 libtalermhd_dep, 189 gnunetcurl_dep, 190 gnunetjson_dep, 191 gnunetutil_dep, 192 mhd_dep, 193 json_dep, 194 curl_dep, 195 ], 196 include_directories: [incdir, configuration_inc], 197 install: true, 198 install_dir: exch_plugindir, 199 )