diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-04 23:39:38 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-04 23:39:38 +0100 |
commit | 8bba62fc8c519cc782ac2e917743f0efd36f2a4e (patch) | |
tree | dbfd0491af8a6f69801df2c6fda6180331651534 /meson.build | |
parent | 0dd9658970889e691c040608d9f4e2473b17b0e2 (diff) |
Make native arch, symlink optional
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build index c3f8d7a..a2446a1 100644 --- a/meson.build +++ b/meson.build @@ -85,7 +85,9 @@ prefix = get_option('prefix') datadir = get_option('datadir') qm_resources_path = join_paths(prefix, datadir, 'quickmedia') -add_project_arguments('-march=native', language: ['c', 'cpp']) +if get_option('native_arch') == true + add_project_arguments('-march=native', language: ['c', 'cpp']) +endif executable( meson.project_name(), @@ -123,7 +125,9 @@ install_data(files('boards.json'), install_dir : qm_resources_path) install_data(files('example-config.json'), install_dir : qm_resources_path) install_data(files('README.md'), install_dir : qm_resources_path) -install_symlink('qm', install_dir : join_paths(prefix, 'bin'), pointing_to: join_paths(prefix, 'bin', meson.project_name())) +if get_option('install_symlink') == true + install_symlink('qm', install_dir : join_paths(prefix, 'bin'), pointing_to: join_paths(prefix, 'bin', meson.project_name())) +endif if get_option('install_emoji') == true meson.add_install_script('meson_post_install.sh') |