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

CMake scripts cleanups #680

Merged
merged 8 commits into from
May 11, 2021
Merged

CMake scripts cleanups #680

merged 8 commits into from
May 11, 2021

Commits on May 5, 2021

  1. iiod: Use WITH_AIO instead of ENABLE_AIO

    The code already checked for the WITH_AIO macro, and almost all
    configurable options in libiio and IIOD use the "WITH" prefix.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 5, 2021
    Configuration menu
    Copy the full SHA
    826e451 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2021

  1. network: Fix IN6_IS_ADDR_LINKLOCAL() macro on old OSes

    Old OSes (CentOS 7, Ubuntu 16.04) require s6_addr32 to be defined for
    the IN6_IS_ADDR_LINKLOCAL() macro to work.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    70c4e0e View commit details
    Browse the repository at this point in the history
  2. CMake: Move check for pthread_setname_np to IIOD

    This function is not used in libiio, but is used by IIOD.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    adf33f2 View commit details
    Browse the repository at this point in the history
  3. CMake: Don't compile with -D_GNU_SOURCE

    We do not want to compile with GNU-specific extensions, as we want the
    code to be as portable as possible.
    
    Thanksfully we don't actually need _GNU_SOURCE to be defined, removing
    it only triggers an error in network-unix.c about an undefined
    structure, which we can fix by including the right header.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    57db981 View commit details
    Browse the repository at this point in the history
  4. CMake: Make options independant from environment

    Instead of making build options available according to whether or not a
    library is found, only search for the library if the option has been
    enabled.
    
    This change may temporarily break the auto-builders (which will need to
    be updated), but it makes the build *reproductible*, and that's very
    important.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    e8b3574 View commit details
    Browse the repository at this point in the history
  5. CI: Update build script for Mac OSX

    Disable serial backend, enable ZSTD support.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    9c87375 View commit details
    Browse the repository at this point in the history
  6. CI: Update build script for Windows

    Disable serial and USB backends.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    ff96fc8 View commit details
    Browse the repository at this point in the history
  7. CI: Update build script for Linux

    Enable ZSTD support, except on Ubuntu 16.04 where it doesn't build, and
    explicitely set the build options as it is required now.
    
    Note that the serial backend is disabled on Ubuntu 16.04 as its version
    of libserialport is too old, and USB support in IIOD is disabled in
    CentOS 7 as its kernel headers are too old.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei committed May 7, 2021
    Configuration menu
    Copy the full SHA
    c31cc2f View commit details
    Browse the repository at this point in the history