meson.build 373 Bytes
Newer Older
schneider's avatar
schneider committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
includes = include_directories(
  './lodepng',
)

sources = files(
  './lodepng.c',
)

lib = static_library(
  'lodepng',
  sources,
  include_directories: includes,
  c_args: ['-O3', '-w', '-DLODEPNG_NO_COMPILE_ENCODER', '-DLODEPNG_NO_COMPILE_DISK', '-DLODEPNG_NO_COMPILE_ALLOCATORS'],
)

lodepng = declare_dependency(
  include_directories: includes,
  link_with: lib,
)