anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

meson.build (2595B)


      1 # This file is in the public domain
      2 libanastasistesting_SOURCES = [
      3     'testing_api_cmd_policy_store.c',
      4     'testing_api_cmd_truth_challenge.c',
      5     'testing_api_cmd_truth_solve.c',
      6     'testing_api_cmd_truth_store.c',
      7     'testing_api_cmd_policy_lookup.c',
      8     'testing_api_cmd_config.c',
      9     'testing_api_helpers.c',
     10     'testing_api_traits.c',
     11     'testing_cmd_truth_upload.c',
     12     'testing_cmd_policy_create.c',
     13     'testing_cmd_secret_share.c',
     14     'testing_cmd_recover_secret.c',
     15     'testing_cmd_challenge_answer.c',
     16 ]
     17 libanastasistesting = library(
     18     'anastasistesting',
     19     libanastasistesting_SOURCES,
     20     soversion: solibversions['libanastasistesting']['soversion'],
     21     version: solibversions['libanastasistesting']['soversion'],
     22     install_rpath: rpath_option,
     23     dependencies: [
     24         libanastasis_dep,
     25         libanastasisrest_dep,
     26         talerexchange_dep,
     27         talermerchant_dep,
     28         talerjson_dep,
     29         talerutil_dep,
     30         gnunetutil_dep,
     31         gnunetcurl_dep,
     32         gnunetjson_dep,
     33         json_dep,
     34         talertesting_dep,
     35         libanastasisutil_dep,
     36     ],
     37     include_directories: [incdir, configuration_inc],
     38     install: true,
     39     install_dir: get_option('libdir'),
     40 )
     41 
     42 libanastasistesting_dep = declare_dependency(link_with: libanastasistesting)
     43 pkg.generate(
     44     libanastasistesting,
     45     url: 'https://taler.net',
     46     description: 'GNU Taler anastasis testing library',
     47 )
     48 
     49 
     50 test_anastasisrest_api = executable(
     51     'test_anastasisrest_api',
     52     ['test_anastasis_api.c'],
     53     dependencies: [
     54         libanastasistesting_dep,
     55         talermerchanttesting_dep,
     56         talertesting_dep,
     57         gnunetutil_dep,
     58     ],
     59     include_directories: [incdir, configuration_inc],
     60     install: false,
     61 )
     62 test(
     63     'test_anastasisrest_api',
     64     test_anastasisrest_api,
     65     workdir: meson.current_build_dir(),
     66     suite: ['testing'],
     67     is_parallel: false,
     68 )
     69 
     70 
     71 
     72 test_anastasis = executable(
     73     'test_anastasis',
     74     ['test_anastasis.c'],
     75     dependencies: [
     76         libanastasistesting_dep,
     77         talermerchanttesting_dep,
     78         talertesting_dep,
     79         talerexchange_dep,
     80         gnunetutil_dep,
     81     ],
     82     include_directories: [incdir, configuration_inc],
     83     install: false,
     84 )
     85 test(
     86     'test_anastasis',
     87     test_anastasis,
     88     workdir: meson.current_build_dir(),
     89     suite: ['testing'],
     90     is_parallel: false,
     91 )
     92 
     93 
     94 
     95 EXTRA_DIST = ['test_anastasis_api.conf', 'sms_authentication.sh']
     96 foreach f : EXTRA_DIST
     97     configure_file(input: f, output: f, copy: true)
     98 endforeach
     99 
    100 subdir('test_anastasis_api_home' / 'taler' / 'exchange' / 'offline-keys')