-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
56 lines (48 loc) · 1.08 KB
/
Copy pathmeson.build
File metadata and controls
56 lines (48 loc) · 1.08 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project(
'ecm',
'c',
version: '1.3.1',
license: 'GPL-2.0-or-later',
default_options: [
'c_std=c23',
'warning_level=2',
'werror=true',
'buildtype=release',
],
)
# Generate version header
version_h = configure_file(
input: 'include/version.h.in',
output: 'version.h',
configuration: {'VERSION': meson.project_version()},
)
if host_machine.system() == 'windows'
add_project_arguments('-D_CRT_SECURE_NO_WARNINGS', language: 'c')
endif
inc = include_directories('include')
inc_build = include_directories('.')
# Thread library dependency (pthread on POSIX systems without C11 threads)
thread_dep = dependency('threads', required: false)
# Shared ECC/EDC library
eccedc_lib = static_library(
'eccedc',
'src/eccedc.c',
include_directories: inc,
dependencies: thread_dep,
)
ecm_exe = executable(
'ecm',
'src/ecm.c',
include_directories: [inc, inc_build],
link_with: eccedc_lib,
install: true,
)
unecm_exe = executable(
'unecm',
'src/unecm.c',
include_directories: [inc, inc_build],
link_with: eccedc_lib,
install: true,
)
# Tests
subdir('tests')