~ubuntu-support-team/meson/+git/meson:wip/xclaesse/pr-10714

Last commit made on 2023-03-03
Get this branch:
git clone -b wip/xclaesse/pr-10714 https://git.launchpad.net/~ubuntu-support-team/meson/+git/meson

Branch merges

Branch information

Name:
wip/xclaesse/pr-10714
Repository:
lp:~ubuntu-support-team/meson/+git/meson

Recent commits

48ef53e... by Dylan Baker <email address hidden>

docs: Fix many build_target based issues

This is still not fully correct, but it's much better. There are two
problems that are somewhat difficult to solve:

 1) although they are polymorphic from an attributes/methods standpoint,
    `static_library()`, `shared_library()`, and `shared_module()`
    actually return distinct types, and they are not always valid in the
    same places; ie, only StaticLibrary can be passed to `link_whole:`
 2) several arguments that are common to all take different types,
    namely `sources`
 3) `jar()` is really it's own thing, and should be treated as its own
    thing, not sharing the same base class. That means replicating for
    build_targets() the same sort of structure that exists in
    type_checking.py

af30cba... by Dylan Baker <email address hidden>

interpreter: delete unused methods

Neither of these are used anymore, so it's a good time to get rid of
them

4246656... by Dylan Baker <email address hidden>

interpreter: deprecate passing 'jar' to build_target

This never made any sense, as jar() takes different arguments, and even
when it takes the same arguments, it has a different set of allowed
types. This makes validating arguments between the two incredibly
tedious and painful.

3273ecf... by Dylan Baker <email address hidden>

interpreter|build: remove known_*_kwargs

Which are now unused!

c58bc78... by Dylan Baker <email address hidden>

ast/introspection: remove uses of BuildTarget.known_kwargs

c625fbd... by Dylan Baker <email address hidden>

modules/python3: use typed_kwargs for extension_module

I don't really want to be mucking with this, but I do want to remove the
`known_*_args` stuff, and this is required. Basically it's the same as
the python module.

b623039... by Dylan Baker <email address hidden>

modules/python: use typed_kwargs instead of known_shlib_args

We want to delete the latter, and the former is the way to do it.

34e05c0... by Dylan Baker <email address hidden>

interpreter: simplify include_directory extraction

This moves the FeatureNew check for strings out of the helper, and into
the typed_kwargs decorator. This also changes the warning for passing an
absolute path to d_import_dirs to a FeatureDeprecated check. Since we've
hit 1.0, we shouldn't remove deprecated functionality until 2.0, thus
let's treated this as a deprecated "feature", and provide a nicer
message.

21e6a3a... by Dylan Baker <email address hidden>

interpreter: clean up some now duplicated logic

f947774... by Dylan Baker <email address hidden>

interpreter: use typed_kwargs for build target functions

This doesn't remove any of the build side keyword argument processing,
just tweaks it enough that things continue to work.