|
@@ -68,10 +68,12 @@ args = compiler.get_supported_arguments(['-Wall', '-Wextra', '-pedantic', '-Werr
|
|
|
|
|
|
cmake = import('cmake')
|
|
cmake = import('cmake')
|
|
glfw_proj = cmake.subproject('glfw')
|
|
glfw_proj = cmake.subproject('glfw')
|
|
|
|
+glfw_includes = glfw_proj.include_directories('glfw')
|
|
glfw_dep = glfw_proj.dependency('glfw')
|
|
glfw_dep = glfw_proj.dependency('glfw')
|
|
|
|
|
|
glew_proj = subproject('glew', default_options: 'default_library=static')
|
|
glew_proj = subproject('glew', default_options: 'default_library=static')
|
|
-glew_dep = glew_proj.get_variable('glew_dep')
|
|
|
|
|
|
+glew_includes = glew_proj.get_variable('glew_include')
|
|
|
|
+glew_dep = dependency('glew')
|
|
|
|
|
|
thread_dep = dependency('threads', static: true)
|
|
thread_dep = dependency('threads', static: true)
|
|
gl_dep = dependency('GL')
|
|
gl_dep = dependency('GL')
|
|
@@ -81,7 +83,7 @@ winmm_dep = compiler.find_library('winmm', required: false)
|
|
glu_dep = compiler.find_library('glu32', required: false)
|
|
glu_dep = compiler.find_library('glu32', required: false)
|
|
dl_dep = compiler.find_library('dl', required: false)
|
|
dl_dep = compiler.find_library('dl', required: false)
|
|
|
|
|
|
-libgamingcore_include = include_directories('.', 'subprojects/glfw/include')
|
|
|
|
|
|
+libgamingcore_include = ['.', glfw_includes, glew_includes]
|
|
|
|
|
|
libgamingcore = static_library('gamingcore',
|
|
libgamingcore = static_library('gamingcore',
|
|
sources: src,
|
|
sources: src,
|