Comments (5)
Compiled DLL for the API? The bulk of the library is a single-header file, which is implemented with...
https://github.com/RobLoach/raylib-libretro/blob/master/include/raylib-libretro.h
#define RAYLIB_LIBRETRO_IMPLEMENTATION
#include "raylib-libretro.h"
While a DLL would be handy, I'm not sure it would really benefit much 😉
from raylib-libretro.
Although, there is the lib
directory, which could include the shared and static implementations:
https://github.com/RobLoach/raylib-libretro/tree/master/lib
Could be helpful for some, as you noted.
from raylib-libretro.
Tried a shared lib over at #46 .... The shared lib would be used as a DLL.
from raylib-libretro.
I would also like DLLs. This would be perfect to drop into nim-based project that uses raylib + emulators, and it would combine it all into one dynamic library, nicely I think.
I tried to add a few things to cmake, but couldn't get it working:
set(BUILD_SHARED_LIBS ON)
no error, just still only makes .a file, and no .dynlib/.so/.dll
add_library(raylib-libretro SHARED raylib-libretro)
CMake Error at CMakeLists.txt:31 (add_library):
add_library cannot create target "raylib-libretro" because another target
with the same name already exists. The existing target is an executable
created in source directory
"/Users/konsumer/Documents/otherdev/raylib-libretro/bin". See
documentation for policy CMP0002 for more details.
I'm sure it's something very dumb.
from raylib-libretro.
My preferred usecase for stuff like this is not directly in C, but wrapped with FFI or whatever. So for me, a ready-made DLL would mean no build/c tools/etc, and it would have everything it needs to do raylib + libretro.
Maybe I am thinking about it wrong, though. Like an example is usage in nim, there is a great set of raylib bindings so I can just link to raylib DLL (which can be installed easily on any OS, or just included with the app) so I could make a separate project that is just nim bindings for raylib-libretro and my own DLL wrapped around it. That seems fine. Not quite sure how to use this to make a DLL, but I think it is probly simple, I just couldn't figure it out (I have a barely passable knowledge of cmake.)
I will try to figure it out.
from raylib-libretro.
Related Issues (20)
- Fullscreen Toggle
- GUI Using raygui
- Automated Testing
- Binary Releases
- API Documentation
- Project Templates
- Single header implementation define HOT 2
- Logo
- Fix 1555 Pixel Format with SNES9X HOT 1
- Statically Linked Cores for Emscripten
- Frametime Performance Counter
- GUI Font HOT 1
- Use INCBIN for the shaders
- Warnings
- Update to raylib 3.5
- Adopt lrcpp
- Use raylib-cpp HOT 1
- GUI: File Dialog Borked
- FFI Wrapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib-libretro.