[Bug 788234] gst: fix portability of executable path lookup.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 27 11:14:07 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=788234

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #360524|none                        |needs-work
             status|                            |

--- Comment #3 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Review of attachment 360524:
 --> (https://bugzilla.gnome.org/review?bug=788234&attachment=360524)

::: gst/gst.c
@@ +346,3 @@
   _gst_executable_path = g_strdup (buffer);
 }
+#elif defined(__APPLE__) && defined (__MACH__)  /* OSX only */

There is another way to distinguish iOS. Technically, iOS is MACH too

AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_IOS="yes",
HAVE_IOS="no", [-])                              

is what we use in gst-plugins-bad. Or you do

#if defined(__APPLE__)
#include "TargetConditionals.h"


And then you have TARGET_IPHONE_SIMULATOR, TARGET_OS_IPHONE & TARGET_OS_MAC

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list