Add license and Readme

This commit is contained in:
2023-09-23 16:02:56 +02:00
parent 55896d74f9
commit b55681752d
3 changed files with 55 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
project('ptprnt', 'cpp',
version: 'v0.1.0-'+run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip(),
version: 'v0.1.0-'+run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip(),
license: 'GPLv3',
default_options : ['c_std=c11', 'cpp_std=c++17']
default_options : ['c_std=c11', 'cpp_std=c++17']
)
usb_dep = dependency('libusb-1.0')
@@ -44,12 +44,12 @@ ptprnt_lib = library('ptprnt',
ptprnt_dep = declare_dependency(include_directories: incdir,
link_with: ptprnt_lib)
ptprnt_debug_exe = executable(
ptprnt_exe = executable(
'ptprnt',
'src/main.cpp',
install: true,
dependencies : [usb_dep, log_dep, ptprnt_dep],
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"']
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],
)