Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
test
unittest
*.o
24 changes: 24 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
project(
'h2non-semver-c', 'c',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it needed or convenient to use h2non- as package prefix?

Copy link
Author

@concatime concatime Mar 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment below :)

version: '1.0.0',
license: 'MIT',
default_options: [
'c_std=c99',
],
)

h2nonsemverc_src = [
'semver.c',
]

h2nonsemverc_inc = include_directories('.')

h2nonsemverc_lib = library(
''.join(meson.project_name().split('-')), h2nonsemverc_src,
version: meson.project_version(),
)

h2nonsemverc_dep = declare_dependency(
include_directories: h2nonsemverc_inc,
link_with: h2nonsemverc_lib,
)