Git Product home page Git Product logo

Comments (5)

raysan5 avatar raysan5 commented on August 16, 2024

@Peter0x44 Please, could you take a look to this issue? Do you think those libraries should be exposed?

from raylib.

Ezbob avatar Ezbob commented on August 16, 2024

Hello, I can see that you have changed the title to include the rlgl.h and raymath.h headers. These headers are installed after building the install target. The headers that is missing are rcamera.h and also the rgestures.h header.

I have a PR (not posted yet) that adds these headers to the list of public headers (and thus installed) by default, and then you can use USE_* variables to disable the installation of them.
Would this be a good solution?

from raylib.

Peter0x44 avatar Peter0x44 commented on August 16, 2024

@raysan5 I don't have any opinion on that decision.

raylib/src/Makefile

Lines 807 to 811 in ec95ee8

# Copying raylib development files to $(RAYLIB_H_INSTALL_PATH).
cp --update raylib.h $(RAYLIB_H_INSTALL_PATH)/raylib.h
cp --update raymath.h $(RAYLIB_H_INSTALL_PATH)/raymath.h
cp --update rlgl.h $(RAYLIB_H_INSTALL_PATH)/rlgl.h
@echo "raylib development files installed/updated!"

The install target of the makefile currently only copies raylib.h, rlgl.h and raymath.h. CMake is not different in this regard.

from raylib.

Peter0x44 avatar Peter0x44 commented on August 16, 2024

I do see an argument for not exposing rcamera.h, as users can easily make their own camera controllers (and probably should).

from raylib.

raysan5 avatar raysan5 commented on August 16, 2024

@Peter0x44 thanks for letting me know, I prefer to keep the build system aligned with Makefile, in any case, users requiring the additional headers can just copy them, they don't need to be included in the build system, adding complexity and maintenance cost.

from raylib.

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.