Граф коммитов

1376 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge a9188a3bf3 [runtime] Fix returning structs with size < 8. 2016-10-13 17:35:51 +02:00
Rolf Bjarne Kvinge f448f6d55c [runtime] Fix returning 'float,float' and 'double' structs on x86_64. 2016-10-13 17:35:50 +02:00
Rolf Bjarne Kvinge c660307b55 [runtime] Simplify stret check in the x86_64 trampolines. 2016-10-13 17:35:50 +02:00
Rolf Bjarne Kvinge 9a40b22857 [runtime] Simplify stret check in the x86 trampolines. 2016-10-13 17:35:50 +02:00
Rolf Bjarne Kvinge 3df6a433d7 [MetalPerformanceShaders] Fix MPSImageHistogramInfo layout.
The Vector4 fields are SIMD types, which means they're 16-bit aligned.

There's no way to inform mono about this, so layout the structure explicitly.
2016-10-13 17:35:49 +02:00
Rolf Bjarne Kvinge d395e8df59 [tests] Generate some trampoline and registrar tests.
Generate trampoline and registrar tests that tests if a return type requires objc_msgSend or objc_msgSend_stret.

Now it's much easier to test new return types (a single line of code), which
avoids a _lot_ of copy-pasting, and makes sure all the different variations
are tested properly.

These new tests found several bugs, which are fixed in subsequent commits.
2016-10-13 15:10:43 +02:00
Rolf Bjarne Kvinge 084e691be2 [src] Make sure to always set all variants of our conditional compilation symbols. (#986)
For Unified, set XAMCORE_2_0, UNIFIED and __UNIFIED__.

For Xamarin.iOS/tvOS/watchOS set both the normal and underscored versions
(IOS and __IOS__, TVOS and __TVOS__, and WATCHOS and __WATCHOS__).

The underscored versions are the public symbols we're setting in the
corresponding projects, so we should use those everywhere to simplify our
code, but due to historical reasons we're still using the other variants in
existing code.

Making sure all the possible variants are set for all projects, makes it
possible to only use the underscored versions in new code.

Also define `GENERATOR` for the generator, so that we can easily share
files between the generator and platform assemblies.
2016-10-13 15:10:24 +02:00
Rolf Bjarne Kvinge 6bad337c29 [msbuild] Improve 'install-system' to clean up existing files before installing new ones. (#984)
This makes it more future-proof, if we want to change directories to symlinks.
2016-10-13 14:11:48 +02:00
Rolf Bjarne Kvinge c4b5fa5f44 [msbuild] Remove support for XI/Classic. (#976)
* [msbuild] Remove unused FrameworkList.xmls

* [msbuild] Make files in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/msbuild/iOS the real deal, not a symlink.

* [msbuild] Make /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS a symlink, instead of each file inside.

* [msbuild] Don't put anything in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1 anymore.

* [msbuild] Remove support for XI/Classic binding projects.

* Improve 'install-system' to clean up old files.

* [msbuild] Simplify XI/Classic targets files a bit.

* [msbuild] Remove dead XI/Classic code.

* Bump maccore to get fix for xamarin-analysis.

commit xamarin/maccore@34c04c2bf1
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Mon Oct 10 16:46:18 2016 +0200

    [analysis] Update to put files in /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS.

    XI/Classic is being removed now, which means files should go into
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/msbuild/iOS/ instead of into
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1.
2016-10-13 10:47:46 +02:00
Rolf Bjarne Kvinge 70acf25bb4 [tests] Fix timeout in BuildTestProject. (#983)
In 9d4be4c we started building fat applications when building for device in
our test projects. That causes the BuildTestProject to take twice as long,
thus hitting a 5 min timeout value, causing the test to fail.

So change the test to the previous behavior: we were only building test
projects for ARM64 previously, so do that.
2016-10-13 10:40:39 +02:00
Jeffrey Stedfast fa114b2565 [msbuild] Fixed parsing of --gcc_flags=... for mtouch (#982)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=45240
2016-10-12 20:49:34 -04:00
Sebastien Pouliot 9d4be4cc15 Merge pull request #975 from rolfbjarne/tests-device-bitness
[tests] Add support for building and running device tests for 32-bit or 64-bit.
2016-10-11 16:34:33 -04:00
Rolf Bjarne Kvinge 516f764ec4 [tests] Add support for building device tests for 32-bit or 64-bit. 2016-10-11 19:52:36 +02:00
Rolf Bjarne Kvinge 1b84d7bbd9 [xharness] Add support for specifying 32-bit and 64-bit mode when running on device.
Also add support for running both 32-bit and 64-bit tests on device
with one target.
2016-10-11 19:52:35 +02:00
Rolf Bjarne Kvinge f7447a385c [tests] Default to fat apps for device configurations. 2016-10-11 19:52:35 +02:00
Rolf Bjarne Kvinge 5fd5b5ae8c [tests] Remove unused/deprecated variables from project files. 2016-10-11 19:52:35 +02:00
Rolf Bjarne Kvinge 432f7af3ed [tests] Set OutputPath according to Configuration instead of hardcoding it.
This makes c&p a little less error-prone.
2016-10-11 19:52:35 +02:00
Rolf Bjarne Kvinge 228f690469 [tests] Remove unused project configurations (AppStore, Ad-Hoc and DebugStaticRegistrar). (#974) 2016-10-11 19:51:58 +02:00
Rolf Bjarne Kvinge d940b592c8 [xharness] Fetch watch crash reports when running watch apps. (#973) 2016-10-11 19:30:11 +02:00
Manuel de la Pena 0d95c6846c [foundation] Fix 401s in the NSUrlSessionHandler. Fixes #42936 (#970)
The NSUrlSessionHandler is not dealing with 40s correctly, unfortunatly
we are modifying the Authorization header which is a reserved header as
per apple documentation. We need to hide this issue by dealing with the
challenge in the handler.

The fix checks if it is the very first failure of the challenge and we
do have the header, in that case, reject the request and continue with
the handler execution.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=42936
2016-10-11 13:06:06 -04:00
Vincent Dondain a4784b3866 Update reference to maccore
Bump for xamarin-analysis to fix bug #45272: Problem wth target name in code analysis target
(https://bugzilla.xamarin.com/show_bug.cgi?id=45272)
2016-10-11 16:32:02 +02:00
Chris Hamons b0606da28d [XM] Exclude NSPopover from apitest due to random crashes (#972) 2016-10-11 10:04:43 +02:00
Rolf Bjarne Kvinge 69654f653f Update solution file after project removal. (#968) 2016-10-10 16:22:59 +02:00
Rolf Bjarne Kvinge f2559f7e9e [ObjCRuntime] Remove the IDynamicRegistrar interface. (#969)
Remove the IDynamicRegistrar interface, since it's no longer needed (there's
no OldDynamicRegistrar anymore, which means having an interface for a single
type (DynamicRegistrar) is just code bloat at this point).
2016-10-10 16:22:45 +02:00
Sebastien Pouliot 5504f45bb4 [coregraphics] Add managed validation to CGPath.FromRoundedRect to avoid native assertion/crash. Fixes #40230 (#966)
https://bugzilla.xamarin.com/show_bug.cgi?id=40230
2016-10-10 10:27:07 +02:00
Jeffrey Stedfast 03e44859b3 [msbuild] Drop the fancy Mono.Unix logic and just call realpath() once (#967) 2016-10-10 10:24:41 +02:00
Rolf Bjarne Kvinge 0a0503a6e9 [tests] Disable the docs tests until the documentation process is fixed. (#965) 2016-10-07 14:09:53 -04:00
Rolf Bjarne Kvinge bb6b8221b8 [monotouch-test] Fix CIImageColorSpaceTest on older devices. (#964) 2016-10-07 19:15:08 +02:00
Rolf Bjarne Kvinge 56bbf5e078 [tests] Remove duplicated (and unused) project. (#963) 2016-10-07 16:09:47 +02:00
Rolf Bjarne Kvinge 7caf33dd4e [tests] Bump timeout for scripted tests to 10 minutes. (#960) 2016-10-07 13:50:48 +02:00
Rolf Bjarne Kvinge 84c32b0a99 [tests] Run the mtouch tests in debug mode to get better stack traces. (#962) 2016-10-07 13:50:17 +02:00
Rolf Bjarne Kvinge 39ec76e28a [tests] Add workaround for file descriptor leak in System.Diagnostics.Process. (#961) 2016-10-07 13:50:08 +02:00
Rolf Bjarne Kvinge a5fde9fbbe [monotouch-test] Remove duplicated entry in project file. (#958) 2016-10-06 19:37:27 +02:00
Sebastien Pouliot 742f85ff5a Ensure BoringTLS is not build (by default) in any configuration for XI and XM (no trace in logs) (#957) 2016-10-06 12:56:17 -04:00
Rolf Bjarne Kvinge 2f60dd2220 [mtouch] Fix NullReferenceException in PInvoke wrapper generation. Fixes #44763. (#956)
Fix NullReferenceException in PInvoke wrapper generation when incremental
builds are enabled and the linker didn't run because cached results were
found.

https://bugzilla.xamarin.com/show_bug.cgi?id=44763
2016-10-06 16:13:01 +02:00
Rolf Bjarne Kvinge b2634bce56 [mtouch] Set install_name for libpinvokes.dylib. Fixes #44775. (#955)
https://bugzilla.xamarin.com/show_bug.cgi?id=44775
2016-10-06 15:17:40 +02:00
Rolf Bjarne Kvinge 7e1d9820b3 [mtouch] Bundle libpinvokes.dylib in the app. (#954)
Building a dylib is somewhat useless unless it ends up in the app bundle.
2016-10-06 14:16:55 +02:00
Rolf Bjarne Kvinge d3ae54adb6 Fix xamarin_log to not treat % as format specifiers. Fixes #45046. (#952) 2016-10-06 14:01:14 +02:00
Rolf Bjarne Kvinge 6f60992290 [mtouch] Build with -debug so that we get debug information and thus source code location in stack traces. (#953) 2016-10-06 10:24:09 +02:00
Sebastien Pouliot 860b694002 Bump mono to the head of mono-4.8.0-branch at PeterC's request (#950) 2016-10-06 08:07:39 +02:00
Chris Hamons 4bb4e2629d [XM] Teach mmp to set xamarin_debug_mode so mono will read mdb files (#951) 2016-10-06 07:05:12 +02:00
Rolf Bjarne Kvinge 07600238fc Bump mono to get linker fix. (#948)
commit mono/mono@fb01e0742c
Merge: 960ae16 3090df7
Author: Alexander Köplinger <alex.koeplinger@outlook.com>
Date:   Wed Oct 5 13:50:49 2016 +0200

    Merge pull request #3708 from rolfbjarne/linker-mark-nested-types-4.8.0

    [linker] We need to mark nested types even if the declaring type isn't marked.
2016-10-05 15:24:18 -04:00
Chris Hamons e9f02a4195 [XM] Add missing NSResponder APIs (#929)
- https://bugzilla.xamarin.com/show_bug.cgi?id=38652
2016-10-05 14:15:39 -05:00
Rolf Bjarne Kvinge c0255c2d49 Try to make the watch build parallel safe. (#949)
We need to build the watch profile in tools64 now, since we don't have
a separate watch-mono repository anymore.
2016-10-05 20:20:53 +02:00
Timothy Risi 065b189c26 [Mac] CoreBluetooth low hanging fruit bindings (#947) 2016-10-05 11:10:32 -05:00
Rolf Bjarne Kvinge 1d54c461b0 Remove the watch-mono repository, and use a single mono repository. (#941)
Still keeping some of the logic so that it's easy to switch back if we wish
to.
2016-10-05 16:21:01 +02:00
Chris Hamons 642173828e [XM] Disable blts on XM since we don't ship it (#946) 2016-10-04 21:31:56 -04:00
Rolf Bjarne Kvinge d1361d963e Merge pull request #933 from rolfbjarne/watchos-network-api
Bump [watch-]mono to get more API removal for watchOS.
2016-10-04 19:47:10 +02:00
Rolf Bjarne Kvinge f694955e5b Add makefile target to clean everything. (#942) 2016-10-04 18:42:57 +02:00
Rolf Bjarne Kvinge 8abaa2a742 Bump [watch-]mono to get ServicePointManager adjustments. 2016-10-04 18:40:50 +02:00