Giter Club home page Giter Club logo

Comments (5)

whot avatar whot commented on August 26, 2024

It would be nice, if i could simply turn these off by a meson switch.?

I reckon we'll eventually end up with enable-tests and run-tests meson options :) Because that happens with all other projects that have this requirement - on some systems building the tests isn't needed/wanted (usually on constrained systems) and on others building is wanted but running them isn't.

Do feel free to submit a PR though :)

from libxkbcommon.

awarnke avatar awarnke commented on August 26, 2024

Thank you for the invitation to state a PR. Right now I have the feeling of having already too many projects. Lets see if I find the time …

from libxkbcommon.

bluetech avatar bluetech commented on August 26, 2024

Hmm is the tests don't build when cross-compiling then that should be fixed I think? Compiling tests is no different from compiling the lib.

What are the errors compiling the tests?

they would not run on the build-host (linux) since the target-system is windows.

This is the reality in every cross-compiling scenario. The solution is to just not run the tests :) Or am I missing something?

from libxkbcommon.

awarnke avatar awarnke commented on August 26, 2024

;-) The point is that there is no switch to turn the test off. (Half a year ago)
Or I have not found it.

I had to change the meson.build script for that. Which is fine unless I intend to regularly pull updates and have to update the build scrip every time.

Andreas

from libxkbcommon.

awarnke avatar awarnke commented on August 26, 2024

Example from other libraries:

meson setup . builddir --cross-file ../../cross_file.txt -Dprefix=${PREFIX} \
-Dwin32-backend=true -Dx11-backend=false -Dwayland-backend=false

see
https://github.com/awarnke/crystal-facet-uml/blob/master/build/win/3rd_party/5_compile_graphics_libraries.sh#L142

from libxkbcommon.

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.