mirror of https://github.com/mgba-emu/mgba.git
Python: Fix build
This commit is contained in:
parent
120e1006d0
commit
abc5fbeb38
|
@ -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})
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue