anastasis

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

meson.build (2631B)


      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         json_dep,
     59     ],
     60     include_directories: [incdir, configuration_inc],
     61     install: false,
     62 )
     63 test(
     64     'test_anastasisrest_api',
     65     test_anastasisrest_api,
     66     workdir: meson.current_build_dir(),
     67     suite: ['testing'],
     68     is_parallel: false,
     69 )
     70 
     71 
     72 
     73 test_anastasis = executable(
     74     'test_anastasis',
     75     ['test_anastasis.c'],
     76     dependencies: [
     77         libanastasistesting_dep,
     78         talermerchanttesting_dep,
     79         talertesting_dep,
     80         talerexchange_dep,
     81         gnunetutil_dep,
     82         json_dep,
     83     ],
     84     include_directories: [incdir, configuration_inc],
     85     install: false,
     86 )
     87 test(
     88     'test_anastasis',
     89     test_anastasis,
     90     workdir: meson.current_build_dir(),
     91     suite: ['testing'],
     92     is_parallel: false,
     93 )
     94 
     95 
     96 
     97 EXTRA_DIST = ['test_anastasis_api.conf', 'sms_authentication.sh']
     98 foreach f : EXTRA_DIST
     99     configure_file(input: f, output: f, copy: true)
    100 endforeach
    101 
    102 subdir('test_anastasis_api_home' / 'taler' / 'exchange' / 'offline-keys')