mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
Use a single compilation symbol
We use a compilation symbol in our build to allow the inclusion of specific headers while building GTK, to avoid the need to include only the global header. Each namespace has its own compilation symbol because we used to have different libraries, and strict symbol visibility between libraries; now that we have a single library, and we can use private symbols across namespaces while building GTK, we should have a single compilation symbol, and simplify the build rules.
This commit is contained in:
parent
9f69c7f3e8
commit
def700739d
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_BROADWAY_CURSOR_H__
|
||||
#define __GDK_BROADWAY_CURSOR_H__
|
||||
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/broadway/gdkbroadway.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -40,7 +40,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_BROADWAY_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_CURSOR))
|
||||
#define GDK_BROADWAY_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_CURSOR, GdkBroadwayCursorClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkBroadwayCursor GdkBroadwayCursor;
|
||||
#else
|
||||
typedef GdkCursor GdkBroadwayCursor;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_BROADWAY_DISPLAY_H__
|
||||
#define __GDK_BROADWAY_DISPLAY_H__
|
||||
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/broadway/gdkbroadway.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkBroadwayDisplay GdkBroadwayDisplay;
|
||||
#else
|
||||
typedef GdkDisplay GdkBroadwayDisplay;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_BROADWAY_DISPLAY_MANAGER_H__
|
||||
#define __GDK_BROADWAY_DISPLAY_MANAGER_H__
|
||||
|
||||
#if !defined(__GDKBROADWAY_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKBROADWAY_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/broadway/gdkbroadway.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -31,7 +31,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_TYPE_BROADWAY_DISPLAY_MANAGER (gdk_broadway_display_manager_get_type ())
|
||||
#define GDK_BROADWAY_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_BROADWAY_DISPLAY_MANAGER, GdkBroadwayDisplayManager))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkBroadwayDisplayManager GdkBroadwayDisplayManager;
|
||||
#else
|
||||
typedef GdkDisplayManager _GdkBroadwayDisplayManager;
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_BROADWAY_MONITOR_H__
|
||||
#define __GDK_BROADWAY_MONITOR_H__
|
||||
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKBROADWAY_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/broadway/gdkbroadway.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +36,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_BROADWAY_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_SURFACE))
|
||||
#define GDK_BROADWAY_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_SURFACE, GdkBroadwaySurfaceClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkBroadwaySurface GdkBroadwaySurface;
|
||||
#else
|
||||
typedef GdkSurface GdkBroadwaySurface;
|
||||
|
@ -41,7 +41,7 @@
|
||||
#define GDK_IS_BROADWAY_DRAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_DRAG))
|
||||
#define GDK_BROADWAY_DRAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_DRAG, GdkBroadwayDragClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkBroadwayDrag GdkBroadwayDrag;
|
||||
#else
|
||||
typedef GdkDrag GdkBroadwayDrag;
|
||||
|
@ -57,7 +57,7 @@ libgdk_broadway = static_library('gdk-broadway',
|
||||
gdk_broadway_sources, gdkconfig, gdkenum_h,
|
||||
include_directories: [confinc, gdkinc],
|
||||
c_args: [
|
||||
'-DGDK_COMPILATION',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
@ -71,6 +71,6 @@ executable('gtk4-broadwayd',
|
||||
clienthtml_h, broadwayjs_h,
|
||||
'broadwayd.c', 'broadway-server.c', 'broadway-output.c',
|
||||
include_directories: [confinc, gdkinc, include_directories('.')],
|
||||
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', ],
|
||||
c_args: ['-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', ],
|
||||
dependencies : [broadwayd_syslib, gdk_deps],
|
||||
install : true)
|
||||
|
@ -15,7 +15,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_APP_LAUNCH_CONTEXT_H__
|
||||
#define __GDK_APP_LAUNCH_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_CAIRO_H__
|
||||
#define __GDK_CAIRO_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_CAIRO_CONTEXT__
|
||||
#define __GDK_CAIRO_CONTEXT__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_CLIPBOARD_H__
|
||||
#define __GDK_CLIPBOARD_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef __GDKCONFIG_H__
|
||||
#define __GDKCONFIG_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#ifndef __GDKCONFIG_H__
|
||||
#define __GDKCONFIG_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#ifndef __GDKCONFIG_H__
|
||||
#define __GDKCONFIG_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GTK_CONTENT_DESERIALIZER_H__
|
||||
#define __GTK_CONTENT_DESERIALIZER_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GTK_CONTENT_FORMATS_H__
|
||||
#define __GTK_CONTENT_FORMATS_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_CONTENT_PROVIDER_H__
|
||||
#define __GDK_CONTENT_PROVIDER_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_CONTENT_PROVIDER_IMPL_H__
|
||||
#define __GDK_CONTENT_PROVIDER_IMPL_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GTK_CONTENT_SERIALIZER_H__
|
||||
#define __GTK_CONTENT_SERIALIZER_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_CURSOR_H__
|
||||
#define __GDK_CURSOR_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_DEVICE_H__
|
||||
#define __GDK_DEVICE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_DEVICE_PAD_H__
|
||||
#define __GDK_DEVICE_PAD_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_DEVICE_TOOL_H__
|
||||
#define __GDK_DEVICE_TOOL_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_DISPLAY_H__
|
||||
#define __GDK_DISPLAY_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_DISPLAY_MANAGER_H__
|
||||
#define __GDK_DISPLAY_MANAGER_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_DND_H__
|
||||
#define __GDK_DND_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_DRAW_CONTEXT__
|
||||
#define __GDK_DRAW_CONTEXT__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_DROP_H__
|
||||
#define __GDK_DROP_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#ifndef __GDK_ENUM_TYPES_H__
|
||||
#define __GDK_ENUM_TYPES_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_EVENTS_H__
|
||||
#define __GDK_EVENTS_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_FRAME_CLOCK_H__
|
||||
#define __GDK_FRAME_CLOCK_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_FRAME_TIMINGS_H__
|
||||
#define __GDK_FRAME_TIMINGS_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_GL_CONTEXT_H__
|
||||
#define __GDK_GL_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_GL_TEXTURE_H__
|
||||
#define __GDK_GL_TEXTURE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_KEYS_H__
|
||||
#define __GDK_KEYS_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_MEMORY_TEXTURE__H__
|
||||
#define __GDK_MEMORY_TEXTURE__H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_MONITOR_H__
|
||||
#define __GDK_MONITOR_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_PAINTABLE_H__
|
||||
#define __GDK_PAINTABLE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_PANGO_H__
|
||||
#define __GDK_PANGO_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_PIXBUF_H__
|
||||
#define __GDK_PIXBUF_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_PROPERTY_H__
|
||||
#define __GDK_PROPERTY_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_RECTANGLE_H__
|
||||
#define __GDK_RECTANGLE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_RGBA_H__
|
||||
#define __GDK_RGBA_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_SEAT_H__
|
||||
#define __GDK_SEAT_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_SNAPSHOT_H__
|
||||
#define __GDK_SNAPSHOT_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_SURFACE_H__
|
||||
#define __GDK_SURFACE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_TEXTURE_H__
|
||||
#define __GDK_TEXTURE_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_TYPES_H__
|
||||
#define __GDK_TYPES_H__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (__GTK_CSS_H_INSIDE__) && !defined (GDK_COMPILATION) && !defined (GTK_CSS_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION) && !defined (GTK_CSS_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_VULKAN_CONTEXT__
|
||||
#define __GDK_VULKAN_CONTEXT__
|
||||
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -234,7 +234,7 @@ libgdk = static_library('gdk',
|
||||
link_with: [libgtk_css, ],
|
||||
include_directories: [confinc, gdkx11_inc, wlinc],
|
||||
c_args: [
|
||||
'-DGDK_COMPILATION',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_whole: gdk_backends,
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_CURSOR_H__
|
||||
#define __GDK_QUARTZ_CURSOR_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_QUARTZ_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_CURSOR))
|
||||
#define GDK_QUARTZ_CURSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_CURSOR, GdkQuartzCursorClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzCursor GdkQuartzCursor;
|
||||
#else
|
||||
typedef GdkCursor GdkQuartzCursor;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_QUARTZ_DEVICE_CORE_H__
|
||||
#define __GDK_QUARTZ_DEVICE_CORE_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_QUARTZ_DEVICE_MANAGER_CORE_H__
|
||||
#define __GDK_QUARTZ_DEVICE_MANAGER_CORE_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_DISPLAY_H__
|
||||
#define __GDK_QUARTZ_DISPLAY_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_QUARTZ_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_DISPLAY))
|
||||
#define GDK_QUARTZ_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_DISPLAY, GdkQuartzDisplayClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzDisplay GdkQuartzDisplay;
|
||||
#else
|
||||
typedef GdkDisplay GdkQuartzDisplay;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_DISPLAY_MANAGER_H__
|
||||
#define __GDK_QUARTZ_DISPLAY_MANAGER_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -31,7 +31,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_TYPE_QUARTZ_DISPLAY_MANAGER (gdk_quartz_display_manager_get_type ())
|
||||
#define GDK_QUARTZ_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_QUARTZ_DISPLAY_MANAGER, GdkQuartzDisplayManager))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzDisplayManager GdkQuartzDisplayManager;
|
||||
#else
|
||||
typedef GdkDisplayManager _GdkQuartzDisplayManager;
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_QUARTZ_DND_H__
|
||||
#define __GDK_QUARTZ_DND_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -34,7 +34,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_QUARTZ_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_DRAG_CONTEXT))
|
||||
#define GDK_QUARTZ_DRAG_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_DRAG_CONTEXT, GdkQuartzDragContextClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzDragContext GdkQuartzDragContext;
|
||||
#else
|
||||
typedef GdkDragContext GdkQuartzDragContext;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_KEYS_H__
|
||||
#define __GDK_QUARTZ_KEYS_H__
|
||||
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_QUARTZ_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_KEYMAP))
|
||||
#define GDK_QUARTZ_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_KEYMAP, GdkQuartzKeymapClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzKeymap GdkQuartzKeymap;
|
||||
#else
|
||||
typedef GdkKeymap GdkQuartzKeymap;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_MONITOR_H__
|
||||
#define __GDK_QUARTZ_MONITOR_H__
|
||||
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GDK_QUARTZ_SCREEN_H__
|
||||
#define __GDK_QUARTZ_SCREEN_H__
|
||||
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined(__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_SURFACE_H__
|
||||
#define __GDK_QUARTZ_SURFACE_H__
|
||||
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_QUARTZ_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_SURFACE))
|
||||
#define GDK_QUARTZ_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_SURFACE, GdkQuartzSurfaceClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkQuartzSurface GdkQuartzSurface;
|
||||
#else
|
||||
typedef GdkSurface GdkQuartzSurface;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __GDK_QUARTZ_UTILS_H__
|
||||
#define __GDK_QUARTZ_UTILS_H__
|
||||
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKQUARTZ_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/quartz/gdkquartz.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -41,5 +41,5 @@ gdk_quartz_deps = [ # FIXME
|
||||
libgdk_quartz = static_library('gdk-quartz',
|
||||
gdk_quartz_sources, gdkconfig, gdkenum_h,
|
||||
include_directories: [confinc, gdkinc],
|
||||
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-xobjective-c'],
|
||||
c_args: ['-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-xobjective-c'],
|
||||
dependencies: [gdk_deps, gdk_quartz_deps])
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WAYLAND_DEVICE_H__
|
||||
#define __GDK_WAYLAND_DEVICE_H__
|
||||
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWaylandDevice GdkWaylandDevice;
|
||||
#else
|
||||
typedef GdkDevice GdkWaylandDevice;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WAYLAND_DISPLAY_H__
|
||||
#define __GDK_WAYLAND_DISPLAY_H__
|
||||
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWaylandDisplay GdkWaylandDisplay;
|
||||
#else
|
||||
typedef GdkDisplay GdkWaylandDisplay;
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_WAYLAND_GL_CONTEXT_H__
|
||||
#define __GDK_WAYLAND_GL_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_WAYLAND_MONITOR_H__
|
||||
#define __GDK_WAYLAND_MONITOR_H__
|
||||
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WAYLAND_SURFACE_H__
|
||||
#define __GDK_WAYLAND_SURFACE_H__
|
||||
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWaylandSurface GdkWaylandSurface;
|
||||
#else
|
||||
typedef GdkSurface GdkWaylandSurface;
|
||||
|
@ -101,7 +101,7 @@ libgdk_wayland = static_library('gdk-wayland',
|
||||
gdk_wayland_sources, gdk_wayland_gen_headers, gdkconfig, gdkenum_h,
|
||||
include_directories: [ confinc, gdkinc, ],
|
||||
c_args: [
|
||||
'-DGDK_COMPILATION',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_WIN32_CURSOR_H__
|
||||
#define __GDK_WIN32_CURSOR_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -56,7 +56,7 @@ struct _GdkWin32HCursorFake
|
||||
|
||||
#define gdk_win32_hcursor_get_handle_fast(x) (((struct _GdkWin32HCursorFake *) x)->readonly_handle)
|
||||
|
||||
#if defined (GDK_COMPILATION)
|
||||
#if defined (GTK_COMPILATION)
|
||||
#define gdk_win32_hcursor_get_handle gdk_win32_hcursor_get_handle_fast
|
||||
#else
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_WIN32_DISPLAY_H__
|
||||
#define __GDK_WIN32_DISPLAY_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32Display GdkWin32Display;
|
||||
#else
|
||||
typedef GdkDisplay GdkWin32Display;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WIN32_DISPLAY_MANAGER_H__
|
||||
#define __GDK_WIN32_DISPLAY_MANAGER_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32DisplayManager GdkWin32DisplayManager;
|
||||
#else
|
||||
typedef GdkDisplayManager GdkWin32DisplayManager;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WIN32_DND_PRIVATE_H__
|
||||
#define __GDK_WIN32_DND_PRIVATE_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WIN32_DND_H__
|
||||
#define __GDK_WIN32_DND_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_WIN32_DRAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WIN32_DRAG))
|
||||
#define GDK_WIN32_DRAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WIN32_DRAG, GdkWin32DragClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32Drag GdkWin32Drag;
|
||||
#else
|
||||
typedef GdkDrag GdkWin32Drag;
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_WIN32_GL_CONTEXT_H__
|
||||
#define __GDK_WIN32_GL_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_WIN32_KEYS_H__
|
||||
#define __GDK_WIN32_KEYS_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -44,7 +44,7 @@ typedef enum
|
||||
GDK_WIN32_KEYMAP_MATCH_EXACT
|
||||
} GdkWin32KeymapMatch;
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32Keymap GdkWin32Keymap;
|
||||
#else
|
||||
typedef GdkKeymap GdkWin32Keymap;
|
||||
|
@ -26,7 +26,7 @@
|
||||
#ifndef __GDK_WIN32_MISC_H__
|
||||
#define __GDK_WIN32_MISC_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -85,7 +85,7 @@ GDK_AVAILABLE_IN_ALL
|
||||
GdkSurface * gdk_win32_surface_lookup_for_display (GdkDisplay *display,
|
||||
HWND anid);
|
||||
|
||||
#if defined (INSIDE_GDK_WIN32) || defined (GDK_COMPILATION) || defined (GTK_COMPILATION)
|
||||
#if defined (INSIDE_GDK_WIN32) || defined (GTK_COMPILATION) || defined (GTK_COMPILATION)
|
||||
|
||||
/* For internal GTK use only */
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
@ -23,7 +23,7 @@
|
||||
#ifndef __GDK_WIN32_MONITOR_H__
|
||||
#define __GDK_WIN32_MONITOR_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_WIN32_MONITOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WIN32_MONITOR, GdkWin32Monitor))
|
||||
#define GDK_IS_WIN32_MONITOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WIN32_MONITOR))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32Monitor GdkWin32Monitor;
|
||||
#else
|
||||
typedef GdkMonitor GdkWin32Monitor;
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_WIN32_SCREEN_H__
|
||||
#define __GDK_WIN32_SCREEN_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_WIN32_SURFACE_H__
|
||||
#define __GDK_WIN32_SURFACE_H__
|
||||
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKWIN32_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/gdkwin32.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -40,7 +40,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_WIN32_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WIN32_SURFACE))
|
||||
#define GDK_WIN32_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WIN32_SURFACE, GdkWin32SurfaceClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkWin32Surface GdkWin32Surface;
|
||||
#else
|
||||
typedef GdkSurface GdkWin32Surface;
|
||||
|
@ -50,5 +50,5 @@ gdk_win32_deps = [ # FIXME
|
||||
libgdk_win32 = static_library('gdk-win32',
|
||||
gdk_win32_sources, gdkconfig, gdkenum_h,
|
||||
include_directories: [confinc, gdkinc],
|
||||
c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32'],
|
||||
c_args: ['-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32'],
|
||||
dependencies: [gdk_deps, gdk_win32_deps])
|
||||
|
@ -15,7 +15,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_X11_APP_LAUNCH_CONTEXT_H__
|
||||
#define __GDK_X11_APP_LAUNCH_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_X11_APP_LAUNCH_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_APP_LAUNCH_CONTEXT))
|
||||
#define GDK_X11_APP_LAUNCH_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_X11_APP_LAUNCH_CONTEXT, GdkX11AppLaunchContextClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkX11AppLaunchContext GdkX11AppLaunchContext;
|
||||
#else
|
||||
typedef GdkAppLaunchContext GdkX11AppLaunchContext;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_X11_DEVICE_H__
|
||||
#define __GDK_X11_DEVICE_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_X11_DEVICE_MANAGER_H__
|
||||
#define __GDK_X11_DEVICE_MANAGER_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_DISPLAY_H__
|
||||
#define __GDK_X11_DISPLAY_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkX11Display GdkX11Display;
|
||||
#else
|
||||
typedef GdkDisplay GdkX11Display;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_X11_DND_H__
|
||||
#define __GDK_X11_DND_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_X11_DRAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_DRAG))
|
||||
#define GDK_X11_DRAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_X11_DRAG, GdkX11DragClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkX11Drag GdkX11Drag;
|
||||
#else
|
||||
typedef GdkDrag GdkX11Drag;
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef __GDK_X11_GL_CONTEXT_H__
|
||||
#define __GDK_X11_GL_CONTEXT_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GDK_X11_KEYS_H__
|
||||
#define __GDK_X11_KEYS_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkX11Keymap GdkX11Keymap;
|
||||
#else
|
||||
typedef GdkKeymap GdkX11Keymap;
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __GDK_X11_MONITOR_H__
|
||||
#define __GDK_X11_MONITOR_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_PROPERTY_H__
|
||||
#define __GDK_X11_PROPERTY_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_SCREEN_H__
|
||||
#define __GDK_X11_SCREEN_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_SELECTION_H__
|
||||
#define __GDK_X11_SELECTION_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_SURFACE_H__
|
||||
#define __GDK_X11_SURFACE_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
@ -43,7 +43,7 @@ G_BEGIN_DECLS
|
||||
#define GDK_IS_X11_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_SURFACE))
|
||||
#define GDK_X11_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_X11_SURFACE, GdkX11SurfaceClass))
|
||||
|
||||
#ifdef GDK_COMPILATION
|
||||
#ifdef GTK_COMPILATION
|
||||
typedef struct _GdkX11Surface GdkX11Surface;
|
||||
#else
|
||||
typedef GdkSurface GdkX11Surface;
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef __GDK_X11_UTILS_H__
|
||||
#define __GDK_X11_UTILS_H__
|
||||
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION)
|
||||
#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gdk/x11/gdkx.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -69,7 +69,7 @@ libgdk_x11 = static_library('gdk-x11', gdkmarshal_h,
|
||||
gdk_x11_sources, gdkconfig, gdkenum_h,
|
||||
include_directories: [ confinc, gdkinc, ],
|
||||
c_args: [
|
||||
'-DGDK_COMPILATION',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GSK_COMPILATION)
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gsk/gsk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef __GSK_ENUMS_H__
|
||||
#define __GSK_ENUMS_H__
|
||||
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GSK_COMPILATION)
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gsk/gsk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __GSK_RENDERER_H__
|
||||
#define __GSK_RENDERER_H__
|
||||
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GSK_COMPILATION)
|
||||
#if !defined (__GSK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
||||
#error "Only <gsk/gsk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user