summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
AgeCommit message (Collapse)Author
2020-10-04Fixed using files object in subdir with xcode backendOskar Sigvardsson
Fixes bug #589. When generating string from file object, it didn't take subdir into account.
2020-01-28backend: refactor: set self.interpreter in the constructorDaniel Mensinger
2019-10-18xcode 64 bit for catalina [skip ci]Michael Hirsch, Ph.D
2019-06-30xcodebackend: Fix iterating compilers after host/build changesDylan Baker
Fixes #5570
2019-06-09Purge `is_cross` and friends without changing user interfacesJohn Ericson
In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
2019-04-29Fixed unnecessary .items()Daniel Mensinger
2019-04-29Fix unused variables warningsDaniel Mensinger
2019-04-25Don't use len() to test for container emptinessDylan Baker
I ran the numbers once before (it's in the meson history) but it's *much* faster to *not* use len for testing if a container is empty or not.
2019-02-24xcode backend: Add target dependency link argsDavid Vanderson
2018-10-08Pass arguments from in xcode projectsGuillermo Ignacio Enriquez Gutierrez
2018-10-08Xcode project now supports assembly filesGuillermo Ignacio Enriquez Gutierrez
2018-10-01Fix Xcode backend: Add build dir to SYSTEM_HEADER_SEARCH_PATHS so generated ↵Guillermo Ignacio Enriquez Gutierrez
headers can be included/imported in sources
2018-09-25Fix Xcode backend: support for precompiled headers. Only one header per ↵Guillermo Ignacio Enriquez Gutierrez
target is supported
2018-09-24Partially fix targets that use precompiled header with --backend=xcode. ↵Guillermo Ignacio Enriquez Gutierrez
Various compiled headers are not working yet [skip ci]
2018-09-24Sort some objects before writing as Xcode expects [skip ci]Guillermo Ignacio Enriquez Gutierrez
2018-09-19Fix `build --backend=xcode` (#4220)Guillermo Ignacio Enriquez Gutierrez
* Fix exception when running * Fix xcode project typos, indentation and other minor aesthetics diffs * Use tab code \t instead of real tab
2018-03-12Fix shared library building on xcode.Jukka Laurila
2018-03-09Fix xcode backend to run "meson test" instead of the nonexistent meson_test.py.Jukka Laurila
2018-03-03Fix flake8 'imported but unused' reportsJon Turney
$ flake8 | grep F401 ./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused ./meson.py:18:1: F401 'locale' imported but unused ./run_unittests.py:24:1: F401 'sys' imported but unused ./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused ./mesonbuild/minit.py:18:1: F401 'os' imported but unused ./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused ./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused ./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused ./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused ./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
2018-01-30Use os.path: basename() and dirname() instead of split()Aleksey Filippov
According to Python documentation[1] dirname and basename are defined as follows: os.path.dirname() = os.path.split()[0] os.path.basename() = os.path.split()[1] For the purpose of better readability split() is replaced by appropriate function if only one part of returned tuple is used. [1]: https://docs.python.org/3/library/os.path.html#os.path.split
2017-11-21Review fixes.Jussi Pakkanen
2017-11-20Replaced sys.executable use with the mesonlib equivalent.Jussi Pakkanen
2017-07-16Removed consecutive identical variable assignments.Jussi Pakkanen
2017-05-29Whitespace tweaks to reduce Flake8 warningsAlistair Thomas
2017-05-23xcode-backend framework fixesblackbox
- frameworks-per-target ( each needs its own uid )
2017-05-23codestyleblackbox
2017-05-23remove debug-markerblackbox
2017-05-23XCode frameworks supportblackbox
- supported as "Link with Libraries". - Frameworks added as a group to the project - no need to specify custom linker flags anymore, xcodeproj works just like ninja example mason.build file : dep_main += [dependency('appleframeworks', modules : ['Foundation', 'AppKit', 'IOKIT', 'QuartzCore', 'OpenGL', 'GLUT', 'OpenAL'], required : true)]
2017-05-04Use American English - 'ise' -> 'ize' where applicablePeter Hutterer
2017-01-11style: [E502] the backslash is redundant between bracketsMike Sinkovsky
2017-01-01style: fix E124 violationsIgor Gnatenko
E124: closing bracket does not match visual indentation Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01style: fix E226 violationsIgor Gnatenko
E226: missing whitespace around arithmetic operator Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01style: fix E225 violationsIgor Gnatenko
E225: missing whitespace around operator Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-31Fix space before :.Jussi Pakkanen
2016-12-07Skip shared module test on VS because it fails for some reason nobody ↵Jussi Pakkanen
understands.
2016-08-27Use context manager for file I/O.Elliott Sales de Andrade
There are a few cases where a context manager cannot be used, such as the logger.
2016-07-01Overhaul versioning and naming of librariesNirbheek Chauhan
This commit contains several changes to the naming and versioning of shared and static libraries. The details are documented at: https://github.com/mesonbuild/meson/pull/417 Here's a brief summary: * The results of binary and compiler detection via environment functions are now cached so that they can be called repeatedly without performance penalty. This is necessary because every build.SharedLibrary object has to know whether the compiler is MSVC or not (output filenames depend on that), and so the compiler detection has to be called for each object instantiation. * Linux shared libraries don't always have a library version. Sometimes only soversions are specified (and vice-versa), so support both. * Don't use versioned filenames when generating DLLs, DLLs are never versioned using the suffix in the way that .so libraries are. Hence, they don't use "aliases". Only Linux shared libraries use those. * OS X dylibs do not use filename aliases at all. They only use the soversion in the dylib name (libfoo.X.dylib), and that's it. If there's no soversion specified, the dylib is called libfoo.dylib. Further versioning in dylibs is supposed to be done with the -current_version argument to clang, but this is TBD. https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW23 * Install DLLs into bindir and import libraries into libdir * Static libraries are now always called libfoo.a, even with MSVC * .lib import libraries are always generated when building with MSVC * .dll.a import libraries are always generated when building with MinGW/GCC or MinGW/clang * TODO: Use dlltool if available to generate .dll.a when .lib is generated and vice-versa. * Library and executable suffix/prefixes are now always correctly overriden by the values of the 'name_prefix' and 'name_suffix' keyword arguments.
2016-04-15backends: Don't duplicate test setup data file nameNirbheek Chauhan
Instead, return the values of the test and benchmark setup data files so that the ninja/osx/vs backends can use those filenames instead of hard-coding them.
2016-04-01Move MesonException from coredata to mesonlib.Hemmo Nieminen
2016-02-25Fix Xcode backendRogiel Sulzbach
This makes the following changes: * Explicitly closes the file for force flushing (this fixes an issue on which the last 2 or 3 lines weren't being written to disk) * Adds another check on the PBXBuildFile stage to get the file name if the returned source type is a File instead of a string Fixes issue #337
2016-01-23Moved backends to their own module.Jussi Pakkanen