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

8441 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge db68e69a1d [runtime] Support binding NSObjects as IntPtr. Fixes #41132. (#103)
Support binding NSObjects as IntPtr. This is usually not
a problem, because when we fetch the ObjC signature for a
method, we usually get the signature as exported by us,
(in which case a parameter bound as 'IntPtr' would be treated
as 'void *' in the dynamic registrar) *except* when the
selector corresponds with a protocol the type implements,
in which case we get the signature as defined in the protocol.

https://bugzilla.xamarin.com/show_bug.cgi?id=41132
2016-05-31 11:58:27 +02:00
Rolf Bjarne Kvinge 9454ac7015 [mk] Don't use a stamp file to detect if maccore has been cloned. (#102)
Instead check if the maccore directory exists.

This prevents an issue where if the stamp file did not exist and
the maccore directory did, we'd reset the maccore directory even
for make targets that shouldn't change anything (such as 'check-versions').
2016-05-31 11:09:52 +02:00
Rolf Bjarne Kvinge 55dfad1351 [msbuild] Define __TVOS__, not __IOS__ for tvOS projects. (#101) 2016-05-31 10:33:59 +02:00
Zoltan Varga ca3f7c4334 Bump mono to 48e3e32add94dc83ed9a3dbf668217a079e7d3e0. 2016-05-30 23:16:25 -04:00
Zoltan Varga e3b219bc71 [builds] Disable the building of libmono-profiler-log.dylib on tvos as well. 2016-05-30 19:50:41 -04:00
Zoltan Varga 423da3e2f3 Bump mono to mono-4.5.1-branch. 2016-05-30 18:29:24 -04:00
Rolf Bjarne Kvinge c9bcf1f56d [runtime] Mark all the new Mono API we're using for coop as optional. (#100)
This fixes Xamarin.Mac apps using older system monos.
2016-05-30 15:27:02 +02:00
Chris Hamons f3602b4e93 Fix tests broke by 47dc0f26c9 (#99) 2016-05-28 12:06:32 -04:00
Zoltan Varga 7fad8dfb40 [tests] Build the bitcode configuration on arm64 only, armv7 doesn't seem to link:
Undefined symbols for architecture armv7:
	      		  "___gxx_personality_v0", referenced from:
2016-05-27 21:54:49 -04:00
Zoltan Varga ff8525e37e Emit configure arguments into configure.inc to make it easier to re-run it. 2016-05-27 15:37:21 -04:00
Timothy Risi 9a59f9804b [Mac] fix dontlink and apitests (#98) 2016-05-27 19:41:29 +02:00
Rolf Bjarne Kvinge 3ab8d24268 Merge pull request #92 from rolfbjarne/test-import
Import tests.
2016-05-27 19:39:25 +02:00
Rolf Bjarne Kvinge 4918be4c56 Bump maccore to get fix for #40933. (#97)
https://bugzilla.xamarin.com/show_bug.cgi?id=40933
2016-05-27 19:17:04 +02:00
Rolf Bjarne Kvinge d86d0597e1 Bump mono to get fix for cloning repositories anonymously. (#96) 2016-05-27 18:29:37 +02:00
Rolf Bjarne Kvinge 27402f8142 [builds] Avoid looking for libmono-profiler-log.dylib when bitcode is enabled, its not built anymore on mono master. (#95) 2016-05-27 17:46:06 +02:00
Rolf Bjarne Kvinge 9c88937811 Merge pull request #94 from rolfbjarne/coop
Add support for the GC in cooperative mode.
2016-05-27 16:41:49 +02:00
Rolf Bjarne Kvinge 73d0e722d5 [tests] Add more files which are ignored by default. 2016-05-27 14:43:21 +02:00
Rolf Bjarne Kvinge 0b24bc0b8d [runtime] Fix boolean logic for thread attach/detach implementation. 2016-05-27 10:35:05 +02:00
Rolf Bjarne Kvinge 0629b461c6 [tests] Remove duplicated file. 2016-05-27 10:19:27 +02:00
Rolf Bjarne Kvinge 4ad86833ab [tests] Update a few paths after test move. 2016-05-27 10:17:26 +02:00
Rolf Bjarne Kvinge ba3c967619 [tests] Fix paths for mtouch tests. 2016-05-27 10:14:43 +02:00
Rolf Bjarne Kvinge 80e0ef0b50 [tests] Only generate qa-test-dependencies when the Xamarin build is enabled. 2016-05-27 10:14:28 +02:00
Rolf Bjarne Kvinge 5034fa5b68 [link sdk] Add missing file. 2016-05-27 10:01:12 +02:00
Rolf Bjarne Kvinge 82bbac0ae1 [docs] Fix wrench-docs. 2016-05-27 09:56:48 +02:00
Rolf Bjarne Kvinge 489017576a Merge pull request #93 from joj/master
Add Windows support for building Xamarin.Mac
2016-05-26 18:54:36 +02:00
joj dea10d50b3 Renamed TaskBase class files to *TaskBase; Fixed Mac reference 2016-05-26 13:06:39 -03:00
Rolf Bjarne Kvinge e1464027f2 [runtime] Make new functions optional so that they don't hang XM apps using system mono at launch. 2016-05-26 17:47:44 +02:00
Rolf Bjarne Kvinge 5054c1ee45 [runtime] Update thread attach/detach according to mono changes.
* Restore the mono_jit_thread_attach signature to how it's in
  the latest stable.

* Don't use the new attach/detach methods when using the dynamic
  mono runtime, since the methods aren't available in any released
  version of mono. Also XM doesn't support coop yet, so it's not
  needed.

* And finally don't use the new attach/detach methods for anything
  that isn't building using mono/master (iow only watchOS). This
  should be changed once the rest of the products starts using
  mono/master again.
2016-05-26 17:47:44 +02:00
Rolf Bjarne Kvinge 00f39e4390 [mtouch] Force min deployment target to 9.0 when enabling bitcode. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 7759aa579c [src] Add a Release-bitcode configuration to project files. 2016-05-26 17:47:10 +02:00
Zoltan Varga 5270b63cee [runtime] Use the same coop gc macro names as mono master does. 2016-05-26 17:47:10 +02:00
Zoltan Varga 88dd823e40 Add a --enable-bitcode-on-ios configure option to enable bitcode support in the ios/tvos runtimes. 2016-05-26 17:47:10 +02:00
Zoltan Varga bcf86f4ff2 [mtouch] Link non-bitcode ios apps with -lc++ if ENABLE_BITCODE_ON_IOS is set, since the mono libs require it. 2016-05-26 17:47:10 +02:00
Zoltan Varga 8b59d42144 Make the sdb send/receive functions run in gc safe mode. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 13b7c6dd11 [runtime] Make sure to switch to GC SAFE before calling xamarin_switch_gchandle. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge ac8d493581 [runtime] Attach the current thread in xamarin_invoke_trampoline.
It's entirely possible to call xamarin_invoke_trampoline on a
thread we've never heard about before.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 4a5ce42b48 [runtime] Add a MONO_ASSERT_GC_SAFE_OR_DETACHED.
Since MONO_ASSERT_GC_SAFE asserts when executed on a detached thread,
and yet it's clearly safe for the GC to run when a thread is detached.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge d7bdc5d126 [runtime] mono_set_pending_exception expects to be in GC Unsafe mode. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge af0d01c93a Initial review pass for COOP for watchOS. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 16824dd40f [builds] Enable checked builds for watchOS for now, to make it easier to track down failures. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge ac5ff5e321 [runtime] Replace xamarin_try_get_nsobject with xamarin_has_nsobject.
Removes one usage of ObjectWrapper, since we don't actually need
the return value, we just need to know if an object exists.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge fc0f656a53 [runtime] Make xamarin_[create|release]_managed_ref icalls.
This way we can pass pointers to managed objects to the native objects
without the coop GC interfering (since icalls won't automatically
switch to "gc safe" mode).
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 297b6a24f3 [runtime] Ignore SIGPIPE for watchOS.
Usually mono does this for other apps, but not for watchOS (where mono doesn't
use signals at all).

watchOS can still raise signals though, so we need to ignore at least SIGPIPE.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 314ec50e23 [tests] Add missing file. 2016-05-26 17:42:40 +02:00
Rolf Bjarne Kvinge b1f3f6b1b7 Bump mono to get watchbcl fix. (#90)
commit mono/mono@e4d33f70d4
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Wed May 18 14:21:23 2016 +0200

    [System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange is used on watchOS. (#3010)

    NetworkInformation.NetworkChange requires the SystemConfiguration framework,
    which isn't available on watchOS.
2016-05-26 17:22:11 +02:00
Rolf Bjarne Kvinge 0537fa6622 [registrar] Cope with nameless parameters. (#91) 2016-05-26 16:12:16 +02:00
Rolf Bjarne Kvinge 54976d90ce [registrar] Remove debug spew. (#89) 2016-05-26 16:03:32 +02:00
Rolf Bjarne Kvinge 04b92a91aa [src] Bump Touch.Unit dependency to get HttpTextWriter addition. (#88)
And add the new file to the build.

commit spouliot/Touch.Unit@ffe2a6dcff
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Wed May 25 18:11:59 2016 +0200

    Add a HttpTextWriter that can send logs over http.

    There is no public API to create raw sockets with watchOS, so
    we can't use Tcp directly, thus the need for using Http.
2016-05-26 15:34:47 +02:00
joj b1e7cd4b23 Made tasks in Mac.Tasks.Core bases; added SessionId 2016-05-26 10:24:13 -03:00
Rolf Bjarne Kvinge 7d34d657c2 [tests] Update gitignore. 2016-05-26 15:15:21 +02:00