Commit 196bce31 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX: Make sure VLC.framework is renamed to VLCKit.framework.

parent dc7425e3
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
*****************************************************************************/ *****************************************************************************/
#import "VLCLibrary.h" #import "VLCLibrary.h"
#import "VLCMediaListAspect.h"
/** /**
* Bridges functionality between libvlc and VLCMediaList implementation. * Bridges functionality between libvlc and VLCMediaList implementation.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
*****************************************************************************/ *****************************************************************************/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import <VLC/VLCMediaList.h> #import <VLCKit/VLCMediaList.h>
@class VLCMediaList; @class VLCMediaList;
......
...@@ -2,49 +2,12 @@ ...@@ -2,49 +2,12 @@
// Prefix header for all source files of the 'VLC' target in the 'VLC' project. // Prefix header for all source files of the 'VLC' target in the 'VLC' project.
// //
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
#include <vlc/vlc.h>
#ifndef VLC_PUBLIC_API
// For some reason Xcode refuses to read vlc/vlc.h contents -- so we have to do
// this so we can supress the errors
#define VLC_PUBLIC_API extern
typedef int vlc_bool_t;
typedef struct vlc_list_t vlc_list_t;
typedef struct vlc_object_t vlc_object_t;
typedef signed long long vlc_int64_t;
#endif
#include <vlc/libvlc_structures.h>
#include <vlc/libvlc.h>
//
// Prefix header for all source files of the 'VLC' target in the 'VLC' project.
//
#ifdef __OBJC__ #ifdef __OBJC__
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#endif #endif
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifndef VLC_PUBLIC_API
// For some reason Xcode refuses to read vlc/vlc.h contents -- so we have to do
// this so we can supress the errors
#define VLC_PUBLIC_API extern
typedef int vlc_bool_t;
typedef struct vlc_list_t vlc_list_t;
typedef struct vlc_object_t vlc_object_t;
typedef signed long long vlc_int64_t;
#endif
#include <vlc/libvlc_structures.h> #include <vlc/libvlc_structures.h>
#include <vlc/libvlc.h> #include <vlc/libvlc.h>
...@@ -59,8 +59,7 @@ ...@@ -59,8 +59,7 @@
NSArray * mediaDiscoverers = [NSArray arrayWithObjects: NSArray * mediaDiscoverers = [NSArray arrayWithObjects:
[[[VLCMediaDiscoverer alloc] initWithName:@"shoutcasttv"] autorelease], [[[VLCMediaDiscoverer alloc] initWithName:@"shoutcasttv"] autorelease],
[[[VLCMediaDiscoverer alloc] initWithName:@"shoutcast"] autorelease], [[[VLCMediaDiscoverer alloc] initWithName:@"shoutcast"] autorelease],
[[[VLCMediaDiscoverer alloc] initWithName:@"sap"] autorelease], [[[VLCMediaDiscoverer alloc] initWithName:@"sap"] autorelease], nil];
[[[VLCMediaDiscoverer alloc] initWithName:@"freebox"] autorelease], nil];
NSArray * playlists = [NSMutableArray arrayWithObjects:[VLCMedia mediaAsNodeWithName:@"Default Playlist"], nil]; NSArray * playlists = [NSMutableArray arrayWithObjects:[VLCMedia mediaAsNodeWithName:@"Default Playlist"], nil];
......
...@@ -413,10 +413,10 @@ ...@@ -413,10 +413,10 @@
files = ( files = (
); );
inputPaths = ( inputPaths = (
$SRCROOT/../Framework/build/$BUILD_VARIANTS/VLC.framework, $SRCROOT/../Framework/build/$BUILD_VARIANTS/VLCKit.framework,
); );
outputPaths = ( outputPaths = (
$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/VLC.framework, $BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/VLCKit.framework,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; shellPath = /bin/sh;
......
...@@ -76,13 +76,13 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -76,13 +76,13 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
for (i = 0; i < _dyld_image_count(); i++) for (i = 0; i < _dyld_image_count(); i++)
{ {
char * psz_img_name = _dyld_get_image_name(i); char * psz_img_name = _dyld_get_image_name(i);
/* Check for "VLC.framework/Versions/Current/VLC", /* Check for "VLCKit.framework/Versions/Current/VLC",
* as well as "VLC.framework/Versions/A/VLC" and * as well as "VLCKit.framework/Versions/A/VLC" and
* "VLC.framework/Versions/B/VLC" */ * "VLC.framework/Versions/B/VLC" */
if( p_char = strstr( psz_img_name, "VLC.framework/Versions/" )) if( p_char = strstr( psz_img_name, "VLCKit.framework/Versions/" ))
{ {
/* Look for the next forward slash */ /* Look for the next forward slash */
p_char += 23; /* p_char += strlen(" VLC.framework/Versions/" ) */ p_char += 26; /* p_char += strlen(" VLCKit.framework/Versions/" ) */
while( *p_char != '\0' && *p_char != '/') while( *p_char != '\0' && *p_char != '/')
p_char++; p_char++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment