11# Currently, we're not building this with meson and just letting cargo path dependencies for the other projects build this lib.
22# Not efficient, since the UI and daemon projects will build it separately, but leaving it this way for now.
33
4- # common_lib_name = 'xyzii-credman-portal-gtk'
5- # base_id = 'xyz.iinuwa.CredentialManagerUi'
6- #
7- # cargo = find_program('cargo', required: true)
8- #
9- # version = meson.project_version()
10- #
11- # if get_option('profile') == 'development'
12- # profile = 'Devel'
13- # vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
14- # if vcs_tag == ''
15- # version_suffix = '-devel'
16- # else
17- # version_suffix = '-@0@'.format(vcs_tag)
18- # endif
19- # application_id = '@0@.@1@'.format(base_id, profile)
20- # else
21- # profile = ''
22- # version_suffix = ''
23- # application_id = base_id
24- # endif
25- #
26- # meson.add_dist_script(
27- # meson.project_source_root() / 'build-aux/dist-vendor.sh',
28- # meson.project_build_root() / 'meson-dist' / common_lib_name + '-' + version,
29- # meson.project_source_root(),
30- # )
31- #
32- # cargo_options = [
33- # '--manifest-path', meson.project_source_root() / meson.current_source_dir() / 'Cargo.toml',
34- # ]
35- # cargo_options += [
36- # '--target-dir', meson.project_build_root() / meson.current_build_dir() / 'target',
37- # ]
38- # if get_option('cargo_offline') == true
39- # cargo_options += ['--offline']
40- # endif
41- #
42- # subdir('src')
4+ common_lib_name = ' credentialsd-common'
5+ cargo = find_program (' cargo' , required : true )
6+
7+ cargo_options = [
8+ ' --manifest-path' , meson .project_source_root() / meson .current_source_dir() / ' Cargo.toml' ,
9+ ]
10+ cargo_options += [
11+ ' --target-dir' , meson .project_build_root() / meson .current_build_dir() / ' target' ,
12+ ]
13+ if get_option (' cargo_offline' ) == true
14+ cargo_options += [' --offline' ]
15+ endif
16+
17+ subdir (' src' )
0 commit comments