~brenns10/sc-template

ref: bfed01dfd7e8d00fc8db65f31cbb5b01cb1eeffd sc-template/meson.build -rw-r--r-- 614 bytes
bfed01dfStephen Brennan Initial commit of sc-template 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
project(
  'sc-NAME', 'c',
  version : '0.0.0',
)

sources = [
  # SOURCES HERE
]

inc = include_directories('include')

libsc_NAME = library(
  'sc-NAME',
  sources,
  include_directories : inc,
  install : true,
)

libsc_NAME_dep = declare_dependency(
  include_directories : inc,
  link_with : libsc_NAME,
)

pkg = import('pkgconfig')
pkg.generate(
  libraries: libsc_NAME,
  subdirs: 'include',
  version: meson.project_version(),
  name: 'libsc-NAME',
  filebase: 'sc-NAME',
  description: 'DESCRIPTION',
)

# For each public header in "include/":
#install_headers('include/YOURHEADER.h', subdir : 'sc-NAME')