howdy

Форк
0
/
meson.build 
81 строка · 1.9 Кб
1
if meson.is_subproject()
2
project('howdy-gtk', license: 'MIT', version: 'beta', meson_version: '>= 0.64.0')
3
endif
4

5
datadir = get_option('prefix') / get_option('datadir') / 'howdy-gtk'
6
py_conf = configuration_data(paths_dict)
7
py_conf.set('data_dir', datadir)
8

9

10
py_paths = configure_file(
11
    input: 'src/paths.py.in',
12
    output: 'paths.py',
13
    configuration: py_conf,
14
)
15

16
sources = files(
17
    'src/authsticky.py',
18
    'src/i18n.py',
19
    'src/init.py',
20
    'src/onboarding.py',
21
    'src/paths_factory.py',
22
    'src/tab_models.py',
23
    'src/tab_video.py',
24
    'src/window.py',
25
)
26

27
py = import('python').find_installation(
28
    # modules: ['gi', 'elevate']
29
)
30
py.dependency()
31

32
if get_option('install_in_site_packages')
33
    pysourcesinstalldir = join_paths(py.get_install_dir(), 'howdy-gtk')
34
else
35
    pysourcesinstalldir = get_option('py_sources_dir') != '' ? get_option('py_sources_dir') / 'howdy-gtk' : join_paths(get_option('prefix'), get_option('libdir'), 'howdy-gtk')
36
endif
37

38
if get_option('install_in_site_packages')
39
    py.install_sources(
40
        sources,
41
        py_paths,
42
        subdir: 'howdy-gtk',
43
        install_tag: 'py_sources',
44
    )
45
else
46
    install_data(
47
        sources,
48
        py_paths,
49
        install_dir: pysourcesinstalldir,
50
        install_mode: 'r--r--r--',
51
        install_tag: 'py_sources',
52
    )
53
endif
54

55
logos = files(
56
    'src/logo.png',
57
    'src/logo_about.png',
58
)
59
install_data(logos, install_dir: datadir)
60

61
interface_files = files(
62
    'src/main.glade',
63
    'src/onboarding.glade',
64
)
65
install_data(interface_files, install_dir: datadir)
66

67
cli_path = join_paths(pysourcesinstalldir, 'init.py')
68
conf_data = configuration_data({ 'script_path': cli_path })
69

70
bin_name = 'howdy-gtk'
71
bin = configure_file(
72
    input: 'bin/howdy-gtk.in',
73
    output: bin_name,
74
    configuration: conf_data
75
)
76
install_data(
77
  bin,
78
  install_mode: 'rwxr-xr-x',
79
  install_dir: get_option('prefix') / get_option('bindir'),
80
  install_tag: 'bin',
81
)
82

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.