test: iosvlc: fix -fobjc-arc

The -fobjc-arc was defined on CFLAGS whereas the only file compiled is
an objective-C file, thus it was unused. With the flag moved to
OBJCFLAGS, ARC is breaking the compilation because of a missing
__bridge cast.
This commit is contained in:
Alexandre Janniaux 2021-02-06 19:22:42 +01:00
parent c82c995224
commit 0bfe880301
2 changed files with 3 additions and 2 deletions

View File

@ -295,7 +295,7 @@ endif
vlc_ios_SOURCES = iosvlc.m
vlc_ios_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,Foundation,-framework,UIKit
vlc_ios_LDFLAGS += -Xlinker -rpath -Xlinker "$(libdir)"
vlc_ios_CFLAGS = -fobjc-arc
vlc_ios_OBJCFLAGS = -fobjc-arc
vlc_ios_LDADD = ../lib/libvlc.la ../src/libvlccore.la
if HAVE_IOS
noinst_PROGRAMS += vlc-ios

View File

@ -92,7 +92,8 @@ static int Open(vlc_object_t *obj)
{
AppDelegate *d = (AppDelegate *)[[UIApplication sharedApplication] delegate];
assert(d != nil && d->window != nil);
var_SetAddress(vlc_object_instance(obj), "drawable-nsobject", d->window);
var_SetAddress(vlc_object_instance(obj), "drawable-nsobject",
(__bridge void *)d->window);
return VLC_SUCCESS;
}