summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
AgeCommit message (Collapse)Author
2021-10-04fix extra whitespaceEli Schwartz
discovered via flake8 --select E303
2021-10-04remove useless variables that are no longer or were never usedEli Schwartz
2021-09-14fix untested codepath? add:item() is surely a typo, not a real functionEli Schwartz
2021-08-31pyllint: enable consider-user-enumerateDylan Baker
This caught a couple of cases of us doing: ```python for i in range(len(x)): v = x[i] ``` which are places to use enumerate instead. It also caught a couple of cases of: ```python assert len(x) == len(y) for i in range(len(x)): xv = x[i] yv = y[i] ``` Which should instead be using zip() ```python for xv, yv in zip(x, y): ... ```
2021-08-31pylint: turn on superflous-parensDylan Baker
We have a lot of these. Some of them are harmless, if unidiomatic, such as `if (condition)`, others are potentially dangerous `assert(...)`, as `assert(condtion)` works as expected, but `assert(condition, message)` will result in an assertion that never triggers, as what you're actually asserting is `bool(tuple[2])`, which will always be true.
2021-08-31pylint: enable consider-iterating-dictionaryDylan Baker
This didn't actually catch what it's supposed to, which is cases of: ```python for x in dict.keys(): y = dict[x] ``` But it did catch one unnecessary use of keys(), and one case where we were doing something in an inefficient way. I've rewritten: ```python if name.value in [x.value for x in self.kwargs.keys() if isinstance(x, IdNode)]: ``` as ``python if any((isinstance(x, IdNode) and name.value == x.value) for x in self.kwargs): ``` Which avoids doing two iterations, one to build the list, and a second to do a search for name.value in said list, which does a single short circuiting walk, as any returns as soon as one check returns True.
2021-08-21Fix duplicated frameworks in the Xcode backend.Jussi Pakkanen
2021-08-21Fix multiple generators in target in Xcode.Jussi Pakkanen
2021-08-21Path special casing for the Xcode backend.Jussi Pakkanen
2021-08-21Handle .C extension in Xcode.Jussi Pakkanen
2021-08-20backends: remove unused name parameter from as_meson_exe_cmdlineDylan Baker
This parameter isn't used, at all, so just remove it
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-05more f-strings too complex to be caught by pyupgradeEli Schwartz
2021-06-07another pyupgrade passEli Schwartz
2021-05-23Add swift executable support in Xcode.Jussi Pakkanen
2021-05-23Remove unnecessary hierarchical layer.Jussi Pakkanen
2021-05-23Remove top level sources entry as unnecessary.Jussi Pakkanen
2021-05-23Add meson.build files to pbxgroup.Jussi Pakkanen
2021-05-23Write project info in a tree structure rather than the current flat one.Jussi Pakkanen
2021-04-29Xcode: fix project cleaning.Jussi Pakkanen
2021-04-25Xcode: make Swift projects work.Jussi Pakkanen
2021-04-25Xcode: add objective C++ flags to plain C++ because Xcode requires it.Jussi Pakkanen
2021-04-25Xcode: add objective C flags to plain C because Xcode requires it.Jussi Pakkanen
2021-04-24Xcode: fix linking to customtargetindex objects.Jussi Pakkanen
2021-04-23Xcode: even more command line argument expansion.Jussi Pakkanen
2021-04-23Xcode: Quote McQuoteface.Jussi Pakkanen
2021-04-23Xcode: handle CustomTargetIndexes.Jussi Pakkanen
2021-04-23Xcode: ever more quoting.Jussi Pakkanen
2021-04-23Xcode: only add source and build dirs if implicit_include_directories is set.Jussi Pakkanen
2021-04-22Xcode: do not link shared modules against executables.Jussi Pakkanen
2021-04-22Xcode: add missing quote character.Jussi Pakkanen
2021-04-22Xcode: fix shell quotings.Jussi Pakkanen
2021-04-22Xcode: skip link language override test.Jussi Pakkanen
2021-04-21Xcode: put all include dirs via a property rather than a cmd line arg.Jussi Pakkanen
2021-04-21Xcode: add target private dir to include path.Jussi Pakkanen
2021-04-21Xcode: quote some entries as needed.Jussi Pakkanen
2021-04-20Xcode: fix file objects in various places.Jussi Pakkanen
2021-04-20Xcode: fix compiling shared modules.Jussi Pakkanen
2021-04-19Xcode: regenerato project file when build conf changes.Jussi Pakkanen
2021-04-19Xcode: replace all backslashes with eight backslashes. Because obviously.Jussi Pakkanen
2021-04-18Xcode: fix generators that take custom targets as inputs.Jussi Pakkanen
2021-04-18Xcode: add proper target dependencies to custom targets.Jussi Pakkanen
2021-04-18Xcode: fix running commands that lie in the build root dir.Jussi Pakkanen
2021-04-18Xcode: fix custom target chaining.Jussi Pakkanen
2021-04-18Xcode: made custom targets into top level AggregateTargets.Jussi Pakkanen
2021-04-16Xcode: make the test target depend on build_all target.Jussi Pakkanen
2021-04-16Xcode: fix custom targets that produce objs and libs.Jussi Pakkanen
2021-04-16Xcode: handle capturing generators.Jussi Pakkanen
2021-04-15Xcode: this is what happens when you do not treat command lines as arrays.Jussi Pakkanen
2021-04-15Xcode: remove some unnecessary dict entries.Jussi Pakkanen