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

3259 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge b213ddd6c3 [registrar] Fix the old static registrar according to internal signature changes. 2016-06-09 13:18:45 +02:00
Rolf Bjarne Kvinge 2d28e24837 [runtime] Handle any exceptions whenever we return from managed code. 2016-06-08 20:05:54 +02:00
Chris Hamons 06c18bd887 [XM] Add release value option to msbuild/mmp to resolve XM 4.5 assemb… (#150)
[XM] Add release value option to msbuild/mmp to resolve XM 4.5 assemblies from system GAC

- This option "reverts" a C7 fix that prevented resovling assemblies from the GAC, which is unsafe
- If you use this option, you need to know what you are doing. The mono BCL and the XM BCL need to be compatible
- Use strictly puts you in the no support "you get to keep the pieces if it breaks" category.
2016-06-08 12:47:09 -04:00
Sebastien Pouliot fcd270cc37 [apidiff] Update references definition to C7 stable (XI 9.8 / XM 2.8) (#142)
Newer apidiff from master will compare to C7 (instead of C6)
2016-06-07 17:04:37 -04:00
Rolf Bjarne Kvinge 6c0374a29a [jenkins] Run the api diff. (#73) 2016-06-02 14:30:17 +02:00
Rolf Bjarne Kvinge 6a58755389 [linker] Add Mono.Security.Provider.NewTls as known SDK library. (#118) 2016-06-02 11:11:37 +02:00
Rolf Bjarne Kvinge ca5bcb5c55 [mtouch] Fix the old static registrar output after the latest coop changes. (#115) 2016-06-02 09:17:17 +02:00
Rolf Bjarne Kvinge ad88558d82 [mtouch] Tweak error message for MT0073 and MT0074. Fixes #40606. (#111)
https://bugzilla.xamarin.com/show_bug.cgi?id=40606
2016-06-01 19:18:35 +02:00
Rolf Bjarne Kvinge a35c2df3ff [mtouch] Don't bundle libmono-profiler-log.dylib unless profiling is enabled. (#113) 2016-06-01 16:58:46 +02:00
Rolf Bjarne Kvinge a8c2c3f617 [mtouch] Unassigned unused error message. (#110) 2016-06-01 16:33:03 +02:00
Rolf Bjarne Kvinge e578af0931 [mtouch] Disable fastdev if profiling+fastdev is enabled on a bitcode-capable platform. (#114)
This is because Mono doesn't build a libmono-profiler-log.dylib when
bitcode is enabled, so we can't support profiling + fastdev at the same
time.

Hopefully mono will fix this (see bug#41428) soon, in which case
this code can be removed.

https://bugzilla.xamarin.com/show_bug.cgi?id=41428
2016-06-01 16:29:04 +02:00
Chris Hamons f3602b4e93 Fix tests broke by 47dc0f26c9 (#99) 2016-05-28 12:06:32 -04:00
Rolf Bjarne Kvinge 00f39e4390 [mtouch] Force min deployment target to 9.0 when enabling bitcode. 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
Rolf Bjarne Kvinge af0d01c93a Initial review pass for COOP for watchOS. 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 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
Chris Hamons ca028ea150 [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Chris Hamons 47dc0f26c9 Mmp readonly fix (#82)
* [XM] Teach XM's mmp tool to handle read only assemblies/native libs

- https://bugzilla.xamarin.com/show_bug.cgi?id=41037
- mmp should also promote any install_name_tool errors to "real" errors

* Bump maccore
2016-05-25 16:29:33 -04:00
Sebastien Pouliot 2dd895e3fe [mtouch] Set default for dlsym to false for iOS (like tvOS and watchOS) (#60)
In cycle 7 we turned off, by default, the `dlsym` option (i.e. looking
up symbols for p/invoke) for tvOS and watchOS.

However we decided to wait for iOS to see if this caused issues for
existing code base. There has not been such reports (for tvOS) so,
for cycle 8, we'll turn it off (and use direct calls) for iOS.

If problems arise during the alpha/beta of C8 then we still can
revert this change easily.
2016-05-17 18:35:31 +02:00
Rolf Bjarne Kvinge cffc2e9181 Rewrite user-visible messages to use 'cooperative mode' instead of 'coop'.
This seems to be how we describe it publicly: http://tirania.org/blog/archive/2015/Dec-22.html
2016-05-17 11:30:38 +02:00
Rolf Bjarne Kvinge 2f2ac89da7 [mtouch] Remove misleading comment.
mtouch calculates the exact set of native functions to reference now,
so there's no need to sync anything.
2016-05-17 11:24:04 +02:00
Rolf Bjarne Kvinge 62cbe7e1f6 [mtouch] Fix logic to detect if simlauncher can be used. 2016-05-17 11:24:04 +02:00
Rolf Bjarne Kvinge f631069bbd [mmp] Only 64-bit apps have the dynamic objc_msgSend wrappers. 2016-05-17 11:24:04 +02:00
Rolf Bjarne Kvinge 1f1f6991a3 Implement support for exception marshalling. 2016-05-17 11:23:48 +02:00
Rolf Bjarne Kvinge 86c73f8fc0 Refactor static registrar to produce both a header and a source file.
This way we can re-use the header in other files.
2016-05-17 11:23:47 +02:00
Rolf Bjarne Kvinge 3903e01076 [mmp/mtouch] Add a Driver.WriteIfDifferent overload that takes a byte array. 2016-05-17 11:20:26 +02:00
Rolf Bjarne Kvinge 9b4f7532ab Add runtime variable to specify the exception marshalling modes, and mmp/mtouch options to select it. 2016-05-17 11:20:26 +02:00
Rolf Bjarne Kvinge b8abf3db01 Add runtime variable to specify if the Coop GC should be used, and a mmp/mtouch option to select it.
The mmp/mtouch option is hidden for now, since it's not actually possible
to select the Coop GC yet.
2016-05-17 11:20:26 +02:00
Sebastien Pouliot 61b3006b84 [mtouch] Fix --sdkroot not to report a default to /Developer/. Fixes part of #41083
Also bump maccore so `mlaunch` behave like `mtouch` wrt --sdkroot

https://bugzilla.xamarin.com/show_bug.cgi?id=41083
2016-05-14 11:11:40 -04:00
Sebastien Pouliot 448a3cf1d6 [mtouch] Look where XS 6.1+ has installed mlaunch. Fixes part of #41083
The initial location was incorrectly guessed (before XS added it).

$ mtouch --launchsim tests//monotouch-test/bin/iPhoneSimulator/Debug/monotouchtest.app --sdkroot /Applications/Xcode73.app/Contents/Developer/
error MT0092: Could not find 'mlaunch'.

https://bugzilla.xamarin.com/show_bug.cgi?id=41083
2016-05-13 16:29:41 -04:00
Rolf Bjarne Kvinge 0d376c521a [mtouch] Properly link with CoreAudioKit when not using simlauncher. (#49)
Also bump maccore to get new test.

commit xamarin/maccore@eb9c34d875
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Fri May 13 12:46:04 2016 +0200

    [monotouch-test] Add test to ensure mtouch properly links with CoreAudioKit when not using simlauncher.
2016-05-13 08:23:49 -04:00
Rolf Bjarne Kvinge 0e7952053c [mmp] References are optional when not linking the app, so don't show errors in that case. Fixes #40786. (#40)
It is apparently common to have references to assemblies that can't
be resolved when building apps with the linker disabled, so we need
to support that.

So add a custom reference loading step that only shows a warning
for unresolvable assemblies.

Also bump maccore to add a test.

commit xamarin/maccore@190c67d855
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Tue May 10 18:14:04 2016 +0200

    [tests] Add test case for bug #40786.

    https://bugzilla.xamarin.com/show_bug.cgi?id=40786

https://bugzilla.xamarin.com/show_bug.cgi?id=40786
2016-05-11 10:16:30 -04:00
Rolf Bjarne Kvinge cf4fcbf3c5 [mmp] Implement support for finding the local XamMac prefix when running from Xamarin Studio. (#37)
Traverse directories to find the locally build XamMac directory
when DEBUG is defined (which is only defined in the csproj, which
is only built when running from Xamarin Studio, since the mmp we
ship is built manually in the Makefile).
2016-05-10 14:38:16 -04:00
Zoltan Varga 89154c1b66 [mtouch] Add armv7k+llvm configuration for bitcode on watchos. 2016-05-09 21:03:32 -04:00
Manuel de la Pena 5095ae5d97 [Fix] Ensure we do remove the bin directory when we do a make clean. 2016-05-05 12:16:38 +02:00
Chris Hamons ada548abcb Fix mmp script to use MAC_TARGETDIR so it works when installed from packages (#23)
- Now matches mtouch
- https://bugzilla.xamarin.com/show_bug.cgi?id=40837
2016-05-03 18:04:04 -04:00
Rolf Bjarne Kvinge 5c9c058dde Add Xamarin.iOS solution file. (#11) 2016-04-27 15:36:08 -04:00
Rolf Bjarne Kvinge 57c9885ff6 [mtouch] Fix issue where we'd incorrectly compute the target executable name. (#10)
When reading a plist using NSDictionary, getting a value for a key
that doesn't exist returns null.

This changed when we switched to using our own managed plist reader,
which returns an empty string if a key doesn't exist.

Unfortunately we have code that checks if CFBundleExecutable is null,
in which case we compute the executable name using the executable
assembly, but since we started getting an empty string for
CFBundleExecutable if the key wasn't available, we now ended up wanting
to create an executable named as an empty string.

This broke our bug-13945 test case.

The fix is to continue returning null if the plist key isn't present.
2016-04-27 15:35:21 -04:00
Sebastien Pouliot 2edb2ae4f5 [linker] Fix debugging of watchOS apps when link all is used. Fixes #40641 (#3)
Watch apps are inside .dll (not .exe) and needs to be processed
differently (e.g. to register their content). The issue was that the
debugging symbols were not loaded by that code so it was not part of
the .appex for debugging.

https://bugzilla.xamarin.com/show_bug.cgi?id=40641
2016-04-26 19:01:49 -04:00
Vincent Dondain 2145c468a0 [msbuild] Add tvOS AppExtension targets 2016-04-26 10:19:54 -04:00
Rolf Bjarne Kvinge fec5655dfe [mtouch/mmp] Use full path to mono. 2016-04-26 08:11:12 -04:00
Rolf Bjarne Kvinge 804dfc6343 [mtouch/runtime] Implement support for tvOS extensions. 2016-04-25 18:15:02 -04:00
Rolf Bjarne Kvinge 00a855f2b1 [mtouch] Fix building the static registrar files. 2016-04-25 18:15:02 -04:00
Rolf Bjarne Kvinge d4548852b2 [mmp] Fix looking up the XamMac prefix based on the mmp path. 2016-04-25 18:15:00 -04:00
Rolf Bjarne Kvinge 4dc4580129 [mtouch] Cleanup project file a bit. 2016-04-25 18:14:59 -04:00
Rolf Bjarne Kvinge 822adc3966 [mmp] Cleanup project file a bit. 2016-04-25 18:14:58 -04:00
Rolf Bjarne Kvinge 30f0530c6a Remove unused files. 2016-04-25 18:14:58 -04:00
Rolf Bjarne Kvinge 54a503eb00 [mtouch] Fix dependencies before building the partial registrar code. 2016-04-25 18:14:57 -04:00
Rolf Bjarne Kvinge 56308e7eb6 [mmp/mtouch] Don't mkbundle anymore.
mtouch only uses Xamarin.Mac to read plists, so change to use
our purely managed plist reader in Xamarin.MacDev instead.

That makes us able to change mtouch to be a normal command-line
executable (and project).

Which makes it logical to not mkbundle mtouch anymore,
it executes just fine with the system mono (and there's
no code to protect anymore either).

And since mmp and mtouch share some files, do the same
for mmp.
2016-04-25 18:14:56 -04:00
Rolf Bjarne Kvinge c09ea1213d [mmp] Use the system monolinker.
Makes the mmp build a little bit simpler (and faster).
2016-04-25 18:14:56 -04:00
Rolf Bjarne Kvinge 8f108ef746 [tools/apidiff] Fix typo in README. 2016-04-24 15:59:43 -04:00
Rolf Bjarne Kvinge cb54598c11 Add apidiff tool. 2016-04-24 14:47:29 -04:00
Rolf Bjarne Kvinge 4b38b09468 Install source code. 2016-04-24 14:47:27 -04:00
Rolf Bjarne Kvinge 50a8af84db Add mtouch to the build. 2016-04-24 14:47:27 -04:00
Rolf Bjarne Kvinge 82ab3fc106 Build mmp. 2016-04-24 14:47:26 -04:00
Rolf Bjarne Kvinge 5830166c63 Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Rolf Bjarne Kvinge ac418df815 Build our runtime. 2016-04-24 14:47:24 -04:00