Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6706784c
Commit
6706784c
authored
Dec 01, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Dec 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Remove Metal.framework check (present in all supported macOS SDKs).
parent
9645beb5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
41 deletions
+8
-41
configure
configure
+0
-0
configure.ac
configure.ac
+8
-18
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+0
-16
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+0
-4
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
6706784c
This diff is collapsed.
Click to expand it.
configure.ac
View file @
6706784c
...
...
@@ -669,9 +669,6 @@ case $host_os in
;;
darwin*|macosx*)
AC_LANG_PUSH([Objective C])
AC_CHECK_HEADERS(Metal/Metal.h)
AC_LANG_POP([Objective C])
LIBEXT="dylib"
DLLFLAGS="$DLLFLAGS -fPIC"
LDDLLFLAGS="-fPIC"
...
...
@@ -681,6 +678,7 @@ case $host_os in
AC_SUBST(COREFOUNDATION_LIBS,"-framework CoreFoundation")
AC_SUBST(DISKARBITRATION_LIBS,"-framework DiskArbitration -framework CoreFoundation")
AC_SUBST(IOKIT_LIBS,"-framework IOKit -framework CoreFoundation")
AC_SUBST(METAL_LIBS,"-framework Metal")
AC_SUBST(APPLICATIONSERVICES_LIBS,"-framework ApplicationServices")
AC_SUBST(CORESERVICES_LIBS,"-framework CoreServices")
AC_SUBST(APPKIT_LIBS,"-framework AppKit")
...
...
@@ -723,22 +721,14 @@ case $host_os in
ac_cv_lib_OpenCL_clGetPlatformInfo=yes
fi
if test "$ac_cv_header_Metal_Metal_h" = "yes"
then
AC_SUBST(METAL_LIBS,"-framework Metal")
fi
dnl Check for MTLDevice registryID property
if test "$ac_cv_header_Metal_Metal_h" = "yes"
then
AC_MSG_CHECKING([whether MTLDevice protocol supports registryID property])
AC_LANG_PUSH([Objective C])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Metal/Metal.h>]], [[id<MTLDevice> device; device.registryID;]])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_MTLDEVICE_REGISTRYID, 1, [Define if MTLDevice protocol has registryID property.])],
[AC_MSG_RESULT(no)])
AC_LANG_POP([Objective C])
fi
AC_MSG_CHECKING([whether MTLDevice protocol supports registryID property])
AC_LANG_PUSH([Objective C])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Metal/Metal.h>]], [[id<MTLDevice> device; device.registryID;]])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_MTLDEVICE_REGISTRYID, 1, [Define if MTLDevice protocol has registryID property.])],
[AC_MSG_RESULT(no)])
AC_LANG_POP([Objective C])
UNIXLDFLAGS="-dynamiclib -install_name @rpath/\$(UNIXLIB) -Wl,-rpath,@loader_path\/"
AC_SUBST(LIBWINE_SHAREDLIB,"libwine.$libwine_version.dylib")
...
...
dlls/winemac.drv/cocoa_window.m
View file @
6706784c
...
...
@@ -23,9 +23,7 @@
#define GL_SILENCE_DEPRECATION
#import <Carbon/Carbon.h>
#import <CoreVideo/CoreVideo.h>
#ifdef HAVE_METAL_METAL_H
#import <Metal/Metal.h>
#endif
#import <QuartzCore/QuartzCore.h>
#import "cocoa_window.h"
...
...
@@ -339,7 +337,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@end
#ifdef HAVE_METAL_METAL_H
@interface
WineMetalView
:
WineBaseView
{
id
<
MTLDevice
>
_device
;
...
...
@@ -348,7 +345,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
-
(
id
)
initWithFrame
:
(
NSRect
)
frame
device
:
(
id
<
MTLDevice
>
)
device
;
@end
#endif
@interface
WineContentView
:
WineBaseView
<
NSTextInputClient
,
NSViewLayerContentScaleDelegate
>
...
...
@@ -366,9 +362,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
BOOL
_retinaMode
;
int
backingSize
[
2
];
#ifdef HAVE_METAL_METAL_H
WineMetalView
*
_metalView
;
#endif
}
@property
(
readonly
,
nonatomic
)
BOOL
everHadGLContext
;
...
...
@@ -380,9 +374,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
-
(
void
)
wine_getBackingSize
:(
int
*
)
outBackingSize
;
-
(
void
)
wine_setBackingSize
:(
const
int
*
)
newBackingSize
;
#ifdef HAVE_METAL_METAL_H
-
(
WineMetalView
*
)
newMetalViewWithDevice
:(
id
<
MTLDevice
>
)
device
;
#endif
@end
...
...
@@ -657,7 +649,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
}
}
#ifdef HAVE_METAL_METAL_H
-
(
WineMetalView
*
)
newMetalViewWithDevice
:
(
id
<
MTLDevice
>
)
device
{
if
(
_metalView
)
return
_metalView
;
...
...
@@ -672,7 +663,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
return
_metalView
;
}
#endif
-
(
void
)
setRetinaMode
:
(
int
)
mode
{
...
...
@@ -754,10 +744,8 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
if
(
!
view
->
_cachedHasGLDescendantValid
||
view
->
_cachedHasGLDescendant
)
[
self
invalidateHasGLDescendant
];
}
#ifdef HAVE_METAL_METAL_H
if
(
subview
==
_metalView
)
_metalView
=
nil
;
#endif
[
super
willRemoveSubview
:
subview
];
}
...
...
@@ -904,7 +892,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@end
#ifdef HAVE_METAL_METAL_H
@implementation
WineMetalView
-
(
id
)
initWithFrame
:(
NSRect
)
frame
device
:(
id
<
MTLDevice
>
)
device
...
...
@@ -948,7 +935,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
}
@end
#endif
@implementation
WineWindow
...
...
@@ -3797,7 +3783,6 @@ void macdrv_remove_view_opengl_context(macdrv_view v, macdrv_opengl_context c)
[
pool
release
];
}
#ifdef HAVE_METAL_METAL_H
macdrv_metal_device
macdrv_create_metal_device
(
void
)
{
macdrv_metal_device
ret
;
...
...
@@ -3853,7 +3838,6 @@ void macdrv_view_release_metal_view(macdrv_metal_view v)
[
view
release
];
});
}
#endif
int
macdrv_get_view_backing_size
(
macdrv_view
v
,
int
backing_size
[
2
])
{
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
6706784c
...
...
@@ -137,11 +137,9 @@ typedef struct macdrv_opaque_window* macdrv_window;
typedef
struct
macdrv_opaque_event_queue
*
macdrv_event_queue
;
typedef
struct
macdrv_opaque_view
*
macdrv_view
;
typedef
struct
macdrv_opaque_opengl_context
*
macdrv_opengl_context
;
#ifdef HAVE_METAL_METAL_H
typedef
struct
macdrv_opaque_metal_device
*
macdrv_metal_device
;
typedef
struct
macdrv_opaque_metal_view
*
macdrv_metal_view
;
typedef
struct
macdrv_opaque_metal_layer
*
macdrv_metal_layer
;
#endif
typedef
struct
macdrv_opaque_status_item
*
macdrv_status_item
;
struct
macdrv_event
;
struct
macdrv_query
;
...
...
@@ -589,13 +587,11 @@ extern void macdrv_set_view_superview(macdrv_view v, macdrv_view s, macdrv_windo
extern
void
macdrv_set_view_hidden
(
macdrv_view
v
,
int
hidden
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_add_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_remove_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
#ifdef HAVE_METAL_METAL_H
extern
macdrv_metal_device
macdrv_create_metal_device
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_release_metal_device
(
macdrv_metal_device
d
)
DECLSPEC_HIDDEN
;
extern
macdrv_metal_view
macdrv_view_create_metal_view
(
macdrv_view
v
,
macdrv_metal_device
d
)
DECLSPEC_HIDDEN
;
extern
macdrv_metal_layer
macdrv_view_get_metal_layer
(
macdrv_metal_view
v
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_view_release_metal_view
(
macdrv_metal_view
v
)
DECLSPEC_HIDDEN
;
#endif
extern
int
macdrv_get_view_backing_size
(
macdrv_view
v
,
int
backing_size
[
2
])
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_view_backing_size
(
macdrv_view
v
,
const
int
backing_size
[
2
])
DECLSPEC_HIDDEN
;
extern
uint32_t
macdrv_window_background_color
(
void
)
DECLSPEC_HIDDEN
;
...
...
include/config.h.in
View file @
6706784c
...
...
@@ -213,9 +213,6 @@
/* Define to 1 if you have the <mach-o/loader.h> header file. */
#undef HAVE_MACH_O_LOADER_H
/* Define to 1 if you have the <Metal/Metal.h> header file. */
#undef HAVE_METAL_METAL_H
/* Define to 1 if you have the <mntent.h> header file. */
#undef HAVE_MNTENT_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment