Skip to content

Commit

Permalink
Dont include gl3w on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
topisani committed Jul 26, 2018
1 parent 09164bd commit cc936b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boards/parts/ui/glfw/config.cmake
@@ -1,6 +1,8 @@
# Generate gl3w files
include("${OTTO_EXTERNAL_DIR}/gl3w_gen.cmake")
gl3w_gen("${OTTO_EXTERNAL_DIR}/")
if(NOT APPLE)
include("${OTTO_EXTERNAL_DIR}/gl3w_gen.cmake")
gl3w_gen("${OTTO_EXTERNAL_DIR}/")
endif()

# GLFW
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "Build GLFW examples")
Expand Down
2 changes: 2 additions & 0 deletions boards/parts/ui/glfw/include/board/ui/keys.hpp
@@ -1,6 +1,8 @@
#pragma once

#ifndef __APPLE__
#include <GL/gl3w.h>
#endif
#include <GLFW/glfw3.h>

#include "util/algorithm.hpp"
Expand Down
2 changes: 2 additions & 0 deletions boards/parts/ui/glfw/src/glfw_ui.cpp
Expand Up @@ -15,7 +15,9 @@
#include "board/ui/keys.hpp"

// C APIs. Include last
#ifndef __APPLE__
#include <GL/gl3w.h>
#endif
#include <GLFW/glfw3.h>
#include <nanovg_gl.h>

Expand Down

0 comments on commit cc936b9

Please sign in to comment.