Skip to content
Open
Changes from 1 commit
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
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(
link_with: h2nonsemverc_lib,
include_directories: h2nonsemverc_inc,
)