|
@@ -61,25 +61,34 @@ src_tests = [
|
|
|
'tests/VectorTests.cpp',
|
|
|
]
|
|
|
|
|
|
+compiler = meson.get_compiler('cpp')
|
|
|
+args = compiler.get_supported_arguments(['-Wall', '-Wextra', '-pedantic', '-Werror'])
|
|
|
+
|
|
|
thread_dep = dependency('threads')
|
|
|
glew_dep = dependency('glew')
|
|
|
-
|
|
|
-png_proj = subproject('libpng')
|
|
|
-png_dep = png_proj.get_variable('libpng_dep')
|
|
|
-
|
|
|
+zlib_dep = dependency('zlib')
|
|
|
+png_dep = dependency('libpng')
|
|
|
glfw_dep = dependency('glfw3')
|
|
|
+gl_dep = dependency('GL')
|
|
|
+
|
|
|
+ws2_32_dep = compiler.find_library('ws2_32', required: false)
|
|
|
+winmm_dep = compiler.find_library('winmm', required: false)
|
|
|
|
|
|
-args = ['-Wall', '-Wextra', '-pedantic', '-Werror']
|
|
|
+inc = include_directories('.',
|
|
|
+ glew_dep.get_pkgconfig_variable('includedir'),
|
|
|
+ glfw_dep.get_pkgconfig_variable('includedir'),
|
|
|
+ png_dep.get_pkgconfig_variable('includedir'))
|
|
|
|
|
|
-inc = include_directories('.')
|
|
|
libgamingcore = static_library('gamingcore',
|
|
|
sources: src,
|
|
|
include_directories : inc,
|
|
|
- dependencies : [thread_dep, glew_dep, glfw_dep, png_dep],
|
|
|
+ dependencies : [thread_dep, glew_dep, glfw_dep, png_dep, zlib_dep, gl_dep, ws2_32_dep, winmm_dep],
|
|
|
cpp_args: args)
|
|
|
-libgamingcore_dep = declare_dependency(include_directories : inc, link_with : libgamingcore)
|
|
|
+libgamingcore_dep = declare_dependency(
|
|
|
+ include_directories: inc,
|
|
|
+ link_with: libgamingcore)
|
|
|
|
|
|
executable('tests',
|
|
|
sources: src_tests,
|
|
|
dependencies : libgamingcore_dep,
|
|
|
- cpp_args: args + ['-DLOG_LEVEL=4'])
|
|
|
+ cpp_args: args + ['-DLOG_LEVEL=4'])
|