Git Product home page Git Product logo

Comments (3)

zeux avatar zeux commented on July 17, 2024

Having to support another build system doesn't fill me with joy, but Meson seems to be somewhat popular. How complex is the minimal setup that makes Luau usable? Does Meson allow to use file globs? (this would simplify maintenance of a build system we don't use for future changes)

from luau.

vit1251 avatar vit1251 commented on July 17, 2024

Having to support another build system doesn't fill me with joy

CI/CD may check and start unittest in meson for ensure stable of Meson builds.

How complex is the minimal setup that makes Luau usable?

You may meet with example with classic Lua meson build system at
https://github.com/franko/lua/blob/master/src/meson.build

But this example is overloaded by using pkgconfig and separated an few parts and etc.
The main purpose of use Meson build (is providing library as a subproject) is not achieved in example.

I can make and check MVP with meson for Debian system (maybe in December).

Does Meson allow to use file globs?

This is violation of reliability and describe at https://mesonbuild.com/FAQ.html#but-i-really-want-to-use-wildcards
But Meson provide workaround for stubborn developers.

P.S. I think that the main goal using Meson is to provide the ability to embed Luau as easily as it is done with Lua, so that user would not even notice the changes from one to the other, but get significant advantages. For example with use:

//lua_dep = dependency('lua', method : 'pkg-config')
luau_dep = dependency('luau', method : 'pkg-config')

or as subproject with source code recompile:

luau_proj = subproject('libsimple')
luau_dep = luau_proj.get_variable('luau_dep')

For this last code in meson should be:

inc = include_directories('include')
libluau = static_library('luau', sources
  include_directories : inc,
  ....
)

luau_dep = declare_dependency(
   include_directories : inc,
  link_with : libluau)

from luau.

zeux avatar zeux commented on July 17, 2024

I'm going to close this for now since this seems like something that can be achieved with wrapdb similarly to Lua, and we currently use CMake as the main build system. After Luau is added to wrapdb and actually sees use in dependent projects we could re-evaluate this.

from luau.

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.