Python: Fix build

This commit is contained in:
Vicki Pfau 2019-06-20 14:02:45 -07:00
parent 120e1006d0
commit abc5fbeb38
4 changed files with 6 additions and 4 deletions

View File

@ -785,6 +785,10 @@ elseif(BUILD_GLES2)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libgles2")
endif()
if (WIN32 AND NOT USE_EPOXY)
message(FATAL_ERROR "Windows requires epoxy module!")
endif()
if(USE_SQLITE3)
list(APPEND FEATURES SQLITE3)
include_directories(AFTER ${SQLITE3_INCLUDE_DIRS})

View File

@ -8,7 +8,3 @@ endif()
if(EPOXY_LIBRARIES AND EPOXY_INCLUDE_DIRS)
set(epoxy_FOUND TRUE)
endif()
if (WIN32 AND NOT epoxy_FOUND)
message(FATAL_ERROR "Windows requires epoxy module!")
endif()

View File

@ -5,6 +5,7 @@
#define _SYS_TIME_H_
#define _TIME_H
#define _TIME_H_
#define MGBA_EXPORT
#define ATTRIBUTE_FORMAT(X, Y, Z)
#define DECL_BITFIELD(newtype, oldtype) typedef oldtype newtype

View File

@ -18,6 +18,7 @@ cppflags.extend(["-I" + incdir, "-I" + srcdir, "-I" + bindir])
ffi.set_source("mgba._pylib", """
#define static
#define inline
#define MGBA_EXPORT
#include <mgba/flags.h>
#define OPAQUE_THREADING
#include <mgba/core/blip_buf.h>