mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 15:23:44 +02:00
Add stb_image and PortableGL to libretro builds
This commit is contained in:
parent
2029539ece
commit
8ed8dd14ee
7 changed files with 22 additions and 0 deletions
|
@ -474,6 +474,8 @@ if is_libretro
|
|||
cmake.subproject('libsndfile', options: libsndfile_options).dependency('sndfile'),
|
||||
cmake.subproject('pixman-region', options: pixman_region_options).dependency('pixman-region'),
|
||||
cmake.subproject('libpng', options: libpng_options).dependency('png_static'),
|
||||
subproject('stb').get_variable('stb'),
|
||||
subproject('portablegl').get_variable('portablegl'),
|
||||
]
|
||||
if host_system == 'darwin'
|
||||
libretro_deps += compilers['cpp'].find_library('iconv')
|
||||
|
@ -544,7 +546,9 @@ if is_libretro
|
|||
sources: global_sources + [
|
||||
'src/core.cpp',
|
||||
'src/mkxp-threads.cpp',
|
||||
'src/portablegl.cpp',
|
||||
'src/sharedstate.cpp',
|
||||
'src/stb_image.cpp',
|
||||
'src/audio/alstream.cpp',
|
||||
'src/audio/audio.cpp',
|
||||
'src/audio/audiostream.cpp',
|
||||
|
|
2
src/portablegl.cpp
Normal file
2
src/portablegl.cpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#define PORTABLEGL_IMPLEMENTATION
|
||||
#include <portablegl.h>
|
2
src/stb_image.cpp
Normal file
2
src/stb_image.cpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
2
subprojects/packagefiles/portablegl/meson.build
Normal file
2
subprojects/packagefiles/portablegl/meson.build
Normal file
|
@ -0,0 +1,2 @@
|
|||
project('portablegl', 'c', meson_version: '>=1.3.0')
|
||||
portablegl = declare_dependency(include_directories: '.')
|
2
subprojects/packagefiles/stb/meson.build
Normal file
2
subprojects/packagefiles/stb/meson.build
Normal file
|
@ -0,0 +1,2 @@
|
|||
project('stb', 'c', meson_version: '>=1.3.0')
|
||||
stb = declare_dependency(include_directories: '.')
|
5
subprojects/portablegl.wrap
Normal file
5
subprojects/portablegl.wrap
Normal file
|
@ -0,0 +1,5 @@
|
|||
[wrap-git]
|
||||
url = https://github.com/rswinkle/PortableGL
|
||||
revision = 0.98.0
|
||||
depth = 1
|
||||
patch_directory = portablegl
|
5
subprojects/stb.wrap
Normal file
5
subprojects/stb.wrap
Normal file
|
@ -0,0 +1,5 @@
|
|||
[wrap-git]
|
||||
url = https://github.com/nothings/stb
|
||||
revision = 5c205738c191bcb0abc65c4febfa9bd25ff35234
|
||||
depth = 1
|
||||
patch_directory = stb
|
Loading…
Add table
Reference in a new issue