Fix windows
This commit is contained in:
parent
3564fa6674
commit
af993c017a
2 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ requires "nim >= 1.0.6",
|
|||
"https://github.com/jyapayne/nimterop#93c8372",
|
||||
"opengl >= 1.2.6",
|
||||
"sdl2#head",
|
||||
"https://github.com/jyapayne/nim-glew#head",
|
||||
"https://github.com/jyapayne/nim-glew#head",
|
||||
"https://github.com/jyapayne/nim-glfw#head"
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ src/*.c
|
|||
#define NANOVG_GL_H
|
||||
#define NANOVG_GL_USE_UNIFORMBUFFER
|
||||
#define NANOVG_GL3
|
||||
#define NANOVG_GL3_IMPLEMENTATION
|
||||
#define GLFW_INCLUDE_GLEXT
|
||||
#ifdef __APPLE__
|
||||
# define GLFW_INCLUDE_GLCOREARB
|
||||
|
|
@ -57,6 +58,7 @@ src/*.c
|
|||
let newContents = contents.replace("#define NANOVG_GL_H", """
|
||||
#define NANOVG_GL_H
|
||||
#define NANOVG_GL_USE_UNIFORMBUFFER
|
||||
#define NANOVG_GL3_IMPLEMENTATION
|
||||
#define NANOVG_GL3
|
||||
#include <GL/glew.h>
|
||||
#include "nanovg.h"
|
||||
|
|
@ -117,7 +119,7 @@ elif defined(windows):
|
|||
|
||||
|
||||
# Compile in any common source code
|
||||
cCompile(srcDir/"src/*.c")
|
||||
cCompile(srcDir/"src"/"*.c")
|
||||
|
||||
# Use cPlugin() to make any symbol changes
|
||||
cPluginPath(symbolPluginPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue