skunkworks-c/subprojects/glew-2.1.0/meson.build

12 lines
449 B
Meson
Raw Normal View History

2022-12-21 12:09:42 +01:00
project('glew', 'c')
gl = dependency('gl')
inc = include_directories('include')
c_args = ['-DGLEW_STATIC']
2022-12-21 15:01:04 +01:00
if host_machine.system() == 'emscripten'
lib = static_library('glew', 'src/glew.c', include_directories: inc, c_args: c_args)
else
lib = static_library('glew', 'src/glew.c', include_directories: inc, c_args: c_args, dependencies: gl)
endif
2022-12-21 12:09:42 +01:00
libglew_dep = declare_dependency(include_directories: inc, link_with: lib, compile_args: c_args)