Git Product home page Git Product logo

Comments (5)

RobLoach avatar RobLoach commented on May 26, 2024 1

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.

RobLoach avatar RobLoach commented on May 26, 2024 1

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.

RobLoach avatar RobLoach commented on May 26, 2024 1

Tried a shared lib over at #46 .... The shared lib would be used as a DLL.

from raylib-libretro.

konsumer avatar konsumer commented on May 26, 2024

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.

konsumer avatar konsumer commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.