Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Install headers into repo-equivalent directories. #2599

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 8, 2024

  1. refactor: Install headers into repo-equivalent directories.

    This allows code to be built from an un-installed toxcore repo the same
    way it's built from an installed toxcore. I.e. all `#include` directives
    will work the same inside the toxcore repo and on a system which has
    toxcore installed.
    
    Previously, "toxcore/tox.h" was installed as "tox/tox.h", making `make
    install` a requirement for building any client code. Now, clients can be
    built directly from the repo source, which is especially nice for simple
    clients like echobots.
    
    Output:
    ```
    -- Installing: /usr/local/include/tox/tox.h
    -- Installing: /usr/local/include/toxcore/tox.h
    -- Installing: /usr/local/include/toxcore/tox_events.h
    -- Installing: /usr/local/include/toxcore/tox_dispatch.h
    -- Installing: /usr/local/include/toxcore/tox_private.h
    -- Installing: /usr/local/include/tox/toxav.h
    -- Installing: /usr/local/include/toxav/toxav.h
    -- Installing: /usr/local/include/tox/toxencryptsave.h
    -- Installing: /usr/local/include/toxencryptsave/toxencryptsave.h
    ```
    iphydf committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    8e59161 View commit details
    Browse the repository at this point in the history