Browse Source

meson: Restore hack profile

It's the same as 'development' only with a different app ID.
Allows to use the nightly Flatpak and develop using a custom flatpak
manifest at the same time.
fractal-6
Kévin Commaille 2 years ago
parent
commit
1a0ecad177
No known key found for this signature in database
GPG Key ID: 29A48C1F03620416
  1. 9
      data/icons/meson.build
  2. 25
      meson.build
  3. 3
      meson_options.txt

9
data/icons/meson.build

@ -1,6 +1,13 @@
if profile == 'Devel'
icon_id = base_id + '.Devel'
else
icon_id = base_id
endif
install_data(
'@0@.svg'.format(application_id),
'@0@.svg'.format(icon_id),
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps',
rename: '@0@.svg'.format(application_id)
)
install_data(

25
meson.build

@ -67,7 +67,17 @@ gettext_package = meson.project_name()
if get_option('profile') == 'development'
profile = 'Devel'
application_id += '.Devel'
elif get_option('profile') == 'hack'
profile = 'Devel'
application_id += '.Hack'
elif get_option('profile') == 'beta'
profile = 'Beta'
else
profile = 'Stable'
endif
if profile == 'Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
if vcs_tag == ''
devel_version = profile.to_lower()
@ -77,11 +87,10 @@ if get_option('profile') == 'development'
full_version += '-' + devel_version
release_date = run_command('git', 'show', '-s', '--format=%cI').stdout().strip()
application_id += '.' + profile
elif get_option('profile') == 'beta'
profile = 'Beta'
else
profile = 'Stable'
# Setup pre-commit hook for ensuring coding style is always consistent
message('Setting up git pre-commit hook..')
run_command('cp', '-f', 'hooks/pre-commit.hook', '.git/hooks/pre-commit')
endif
meson.add_dist_script(
@ -90,12 +99,6 @@ meson.add_dist_script(
meson.project_source_root()
)
if profile == 'Devel'
# Setup pre-commit hook for ensuring coding style is always consistent
message('Setting up git pre-commit hook..')
run_command('cp', '-f', 'hooks/pre-commit.hook', '.git/hooks/pre-commit')
endif
subdir('data')
subdir('po')
subdir('src')

3
meson_options.txt

@ -5,7 +5,8 @@ option(
'default',
'beta',
'development',
'hack',
],
value: 'default',
description: 'The build profile for Fractal. One of "default", "beta" or "development".'
description: 'The build profile for Fractal. One of "default", "beta", "development" or "hack".'
)

Loading…
Cancel
Save