Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ add_global_arguments(
#############################
## Dependencies definition ##
#############################

# options

build_tests = get_option('build_tests')
build_tests = get_option('build-tests')

# directories
projectinc = include_directories('.',
'include')
projectinc = include_directories('.', 'include')

# Install pre-commit hooks
developer_mode = get_option('developer-mode')
if developer_mode
pre_commit = find_program('pre-commit', required: true, native: true)
run_command(pre_commit, 'install', check: false)
run_command(pre_commit, 'install', '--hook-type', 'commit-msg', check: false)
endif

subdir('examples')

Expand Down
10 changes: 0 additions & 10 deletions meson.options

This file was deleted.

11 changes: 11 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# See LICENSE for more information about licensing
# Copyright 2023
#
# Author: Diego Arturo Avila Torres <dandida95@gmail.com>
# Luis G. Leon Vega <luis.leon@ieee.org>
#
#

option('build-tests', type: 'boolean', value: false, description: 'Enable test compilation')
option('developer-mode', type : 'boolean', value : true, yield : true, description: 'Enable developer mode')