45 Commits

Author SHA1 Message Date
tempura-sukiyaki
38458a3624 Sort buildinputs and buildoutputs on xcode4 (#1631)
* Sort `buildinputs` and `buildoutputs` on xcode4

* Fix `buildinputs` and `buildoutputs` for Xcode4
2021-06-07 18:03:59 -04:00
starkos
efd2ab50ba Merge pull request #1619 from nickgravelyn/xcode-embed-libraries
Xcode embed libraries
2021-04-19 11:01:51 -04:00
Renaud Guillard
24b2b4abdd Runpathdirs improvements (#1538)
* Add mode argument ot toolset.getrunpathdirs()

* Add config.getsiblingtargetdirs()

* Delegate automatic addition of sibling target dirs as run path search paths to actions

* Simplify gcc.getrunpathdirs()
* Restore previous behavior in gmake & gmake2 actions

* Add xcode.getToolSet()

Use clang as default, gcc on MacOS X 10.6 and lower

* runpathdirs support in xcode4 action

Translate runpathdirs to LD_RUNPATH_SEARCH_PATHS Xcode setting

Co-authored-by: Renaud Guillard <renaud@depinxi.be>
2021-04-19 10:58:36 -04:00
Nick Gravelyn
626eedbc46 Split xcodeembedlibraries into embed and embedAndSign 2021-04-16 07:51:01 -07:00
Nick Gravelyn
4ed74246b5 Add xcodeembedlibraries command 2021-04-16 07:51:01 -07:00
Nick Gravelyn
0e93130442 Allow .dylib extension in links for Xcode
When entries in links are specified with an extension we treat them
like frameworks for the most part. They are placed into the
Frameworks group and added to the Frameworks build phase. We do have
separate logic for the file reference, only because we never want to
resolve a .dylib link to the /System/Frameworks directory. Instead
we assume a .dylib link that is just a file name, e.g. 'libA.dylib',
is relative to the project the same way as if it were prefixed with
'./'.
2021-04-16 07:51:01 -07:00
Renaud Guillard
dfb93e1640 xcode4 sysincludedirs support update
* Use the new Xcode 9+ setting SYSTEM_HEADER_SEARCH_PATHS settings instead of HEADER_SEARCH_PATHS
* Update test
2020-10-23 09:59:04 +02:00
Renaud Guillard
5d06e68d45 xcode4 syslibdirs support
* Merge libdirs and syslibdirs to LIBRARY_SEARCH_PATHS setting
* Add test
2020-10-23 09:58:34 +02:00
nickclark2016
9379f284ee Added C++1z and C++2a dialect options for XCode 2020-09-26 11:35:19 -04:00
Nick Gravelyn
78941e415b Add Metal shader files as source code
Xcode generally puts these in the Resources category so that's what I've
done, but I don't know if that's strictly necessary.
2020-09-13 11:11:40 -07:00
Rafael Lecina
8a37c05075 Add swift tests 2020-08-06 01:07:08 +02:00
Ethan Wallace
acda348b4b Added new 'warning' levels
Added new warning level "Everything" which turns on all available
compiler warnings. Updated "High" and "Extra" to reflect actual
differences in emitted compiler flags.
2020-06-19 14:09:14 -04:00
nickclark2016
4a627cc764 Add C++20 cppdialect for C++ projects 2020-06-01 19:49:55 -04:00
Sam Surtees
a4bba42013 Added support for Objective-C and Objective-C++ in xcode and gmake2
- Added unit tests for Objective-C and Objective-C++
2020-03-31 18:14:26 +10:00
starkos
ed92aba9c2 Remove commands optimization which breaks tokens
When a build command contains a token which references a configuration, ex. `{cfg.platform}`, the platform optimizations removed by this commit would cause a crash: "Attempt to index a nil value (global 'cfg')".

Fixes #1013
2020-02-13 20:04:24 -05:00
starkos
1692363fd9 Allow wildcards in xcodebuildresources 2019-10-21 07:20:06 -04:00
Paul
73805ea2db On OSX, convert systemversion to MACOSX_DEPLOYMENT_TARGET
Per the discussion in issue #1336, if systemversion is set
output MACOSX_DEPLOYMENT_TARGET into the resulting xcode project.
This borrows a diff from the (unmerged) PR #1003, applies it
in isolation, and adds a pair of unit tests to confirm that both
setting and not setting the systemversion results in correct
output.

Closes #1336
2019-09-22 08:06:19 -04:00
Ben Ratzlaff
b17b17a71d Increase determinism by using relative paths as input to xcode.newid
Update unit tests with hashcode instead of overridden xcode.newid implementation
2019-03-13 19:57:41 -07:00
Sam Surtees
ab02e3c4f8 Fixed issue with per-configuration build commands not returning errors correctly 2019-01-21 20:04:31 +10:00
Samuel Surtees
1d469fc518 Merge pull request #1067 from ratzlaff/xcode_debugformat
Add 'Default', 'Dwarf' and 'SplitDwarf' arguments to 'debugformat'
2019-01-11 12:59:39 +10:00
Ross Brackstone
c0ceb0f26d Added support & tests for XCTest sharedlibtype 2019-01-09 14:12:44 +10:00
Ben Ratzlaff
da90c1ffd0 Add 'Default', 'Dwarf' and 'SplitDwarf' inputs to 'debugformat' 2018-11-17 18:45:08 -07:00
tempura-sukiyaki
5cffdc4f6b Add os.ios option in xcode4 2018-10-18 18:52:35 +09:00
tempura-sukiyaki
9122554c08 fix xcodebuildsettings using false 2018-10-17 21:18:03 +09:00
tempura-sukiyaki
30fd3e990e Add support for per-file custom build commands in xcode4 2018-09-10 20:28:37 +09:00
tempura-sukiyaki
5a9880ef26 Add xcodesystemcapabilities in xcode4 2018-09-06 18:57:47 +09:00
tempura-sukiyaki
fd49222a82 Add support kind:Utility in xcode4 2018-08-01 17:31:10 +09:00
tempura-sukiyaki
3f1f44eca8 Add sharedlibtype in xcode4 2018-07-31 20:52:59 +09:00
tempura-sukiyaki
d9b03e790a Add targetextension test in xcode4 2018-07-31 18:32:25 +09:00
Erin Catto
4c8a14f71f Fixed Xcode test 2018-05-31 21:54:29 -07:00
Ben Ratzlaff
be3742dd2a Get 'compileas' working when using a 'filter "files: ..."' scope. 2018-05-28 15:17:04 -07:00
Thomas Desveaux
da3915d30d Merge remote-tracking branch 'origin/master' into omit-frame-pointer 2018-04-16 19:30:28 +02:00
thomas desveaux
b21b43aa92 Update XCode module to new omitframepointer API 2018-04-15 18:09:08 +02:00
Sam Surtees
15426309b3 Fixed issue with floatingpoint "Strict" causing errors in XCode 2018-04-15 22:25:27 +10:00
Thomas Desveaux
6ad87a76c1 Implement unsignedchar for xcode 2018-04-10 21:54:51 +02:00
tempura-sukiyaki
1c65a141b0 Add support for targetextension in xcode4 2017-11-29 00:44:00 +09:00
huulong
c9ea228366 Fix c(pp)dialect generating uppercase C(++)xx in Xcode build configuration, replace gnu99 with explicit compiler default 2017-09-20 22:29:41 +02:00
Sam Surtees
98a14ff624 Added basic iOS support to XCode4 2017-08-31 02:56:41 +10:00
Tom van Dijck
6ce1562867 fix xcode tests as well. 2017-08-01 10:18:33 -07:00
Tom van Dijck
5663d25857 fix rare xcode test failure. 2017-06-19 12:11:49 -07:00
Sam Surtees
fa3328440e Increased consistency of p. usage 2017-04-25 16:41:30 +10:00
Tom van Dijck
5f589ad5a6 replaced:
os.get() -> os.target()
os.is() -> os.istarget()
_OS -> _TARGET_OS

added:
os.current()
os.iscurrent()
2017-04-24 13:01:31 -07:00
Jason Perkins
d1f5c333b0 Clean up the deprecated APIs
- Add "Use … instead." messages to any deprecations that did not have one
- Change deprecation date on APIs without a message to current date
- Remove APIs that have been deprecated for more than a year

h/t to @samsinsane for original PR on which this is based (#741)
2017-04-13 15:37:49 -04:00
Jason Perkins
e2e2841fc7 Fix out-of-date sources in the Xcode module
I must not have been on the latest revision when I merged the Xcode module into core. This catches things back up to the state of the submodule repository.
2016-12-06 13:52:20 -05:00
Jason Perkins
af7b674265 Move core modules into main repository; drop submodules
As discussed numerous times, get rid of the submodule approach for core modules and just included the sources directly in the main repository.

I have no idea how this will play with existing working copies. It might be necessary to [manually clear out the existing submodules](http://stackoverflow.com/questions/1260748) first.
2016-11-09 14:29:33 -05:00