Remove Sparc specific code.
[WebKit-https.git] / Source / Platform / GNUmakefile.am
1 # The platform layer code is built into two separate static libraries - libPlatformGtk.la
2 # is built from files that require GTK+ and libPlatform.la is built from all the other files.
3 # This makes it possible to build two separate libPlatformGtk.la libraries, one using GTK3
4 # and the other (named libPlatformGtk2.la) using GTK2. The latter is required by the
5 # WebKitPluginProcess in WebKit2 as some plugins (such as Flash) still use GTK2.
6 # For now we only build the libPlatformGtk library as there are no source files in place yet
7 # that could be built into libPlatform.
8
9 platform_cppflags += \
10         -I$(srcdir)/Source/ThirdParty/ANGLE/src \
11         -I$(srcdir)/Source/ThirdParty/ANGLE/include \
12         -I$(srcdir)/Source/ThirdParty/ANGLE/include/GLSLANG \
13         -I$(srcdir)/Source/ThirdParty/ANGLE/include/KHR \
14         -I$(top_builddir)/DerivedSources/Platform
15
16 platformgtk_cppflags += \
17         -DWEBKITGTK_API_VERSION_STRING=\"@WEBKITGTK_API_VERSION@\" \
18         -DDATA_DIR=\"${datadir}\"
19
20 # This is the minimal set of Source/WebCore/platform subdirectories that contain headers required by the GTK-specific
21 # platform source files. These inclusions are required due to platform layer source files not yet completely migrated
22 # into Source/Platform. Only Source/WebCore/platform subdirectories must be listed here as this, coupled with the
23 # header inclusion in source files that's done via specifying the header basename, prevents any platform violations
24 # occurring.
25 platform_webcore_cppflags += \
26         -I$(srcdir)/Source/WebCore/platform \
27         -I$(srcdir)/Source/WebCore/platform/animation \
28         -I$(srcdir)/Source/WebCore/platform/audio \
29         -I$(srcdir)/Source/WebCore/platform/cairo \
30         -I$(srcdir)/Source/WebCore/platform/geoclue \
31         -I$(srcdir)/Source/WebCore/platform/graphics \
32         -I$(srcdir)/Source/WebCore/platform/graphics/cairo \
33         -I$(srcdir)/Source/WebCore/platform/graphics/cpu/arm \
34         -I$(srcdir)/Source/WebCore/platform/graphics/cpu/arm/filters \
35         -I$(srcdir)/Source/WebCore/platform/graphics/egl \
36         -I$(srcdir)/Source/WebCore/platform/graphics/filters \
37         -I$(srcdir)/Source/WebCore/platform/graphics/glx \
38         -I$(srcdir)/Source/WebCore/platform/graphics/gpu \
39         -I$(srcdir)/Source/WebCore/platform/graphics/gstreamer \
40         -I$(srcdir)/Source/WebCore/platform/graphics/gtk \
41         -I$(srcdir)/Source/WebCore/platform/graphics/harfbuzz \
42         -I$(srcdir)/Source/WebCore/platform/graphics/opengl \
43         -I$(srcdir)/Source/WebCore/platform/graphics/opentype \
44         -I$(srcdir)/Source/WebCore/platform/graphics/texmap \
45         -I$(srcdir)/Source/WebCore/platform/graphics/transforms \
46         -I$(srcdir)/Source/WebCore/platform/gtk \
47         -I$(srcdir)/Source/WebCore/platform/image-decoders \
48         -I$(srcdir)/Source/WebCore/platform/image-decoders/bmp \
49         -I$(srcdir)/Source/WebCore/platform/image-decoders/cairo \
50         -I$(srcdir)/Source/WebCore/platform/image-decoders/gif \
51         -I$(srcdir)/Source/WebCore/platform/image-decoders/ico \
52         -I$(srcdir)/Source/WebCore/platform/image-decoders/jpeg \
53         -I$(srcdir)/Source/WebCore/platform/image-decoders/png \
54         -I$(srcdir)/Source/WebCore/platform/image-decoders/webp \
55         -I$(srcdir)/Source/WebCore/platform/network \
56         -I$(srcdir)/Source/WebCore/platform/network/gtk \
57         -I$(srcdir)/Source/WebCore/platform/network/soup \
58         -I$(srcdir)/Source/WebCore/platform/text \
59         -I$(srcdir)/Source/WebCore/platform/text/transcoder
60
61 noinst_LTLIBRARIES += \
62         libPlatform.la \
63         libPlatformGtk.la
64
65 # Artificial dependencies to try to force a relink of the Platform libraries when their makefile changes.
66 platform_lib_for_dep = libPlatform.la
67 $(platform_lib_for_dep): $(srcdir)/Source/Platform/GNUmakefile.am $(srcdir)/Source/WebCore/GNUmakefile.list.am
68
69 platformgtk_lib_for_dep = libPlatformGtk.la
70 $(platformgtk_lib_for_dep): $(srcdir)/Source/Platform/GNUmakefile.am $(srcdir)/Source/WebCore/GNUmakefile.list.am
71
72 libPlatform_la_SOURCES = \
73         $(platform_sources)
74
75 nodist_libPlatform_la_SOURCES = \
76         $(platform_built_sources)
77
78 libPlatform_la_CXXFLAGS = \
79         -fvisibility-inlines-hidden \
80         $(global_cxxflags)
81
82 libPlatform_la_CFLAGS = \
83         -fvisibility=hidden \
84         $(global_cflags)
85
86 libPlatform_la_CPPFLAGS = \
87         -DBUILDING_WEBKIT \
88         $(global_cppflags) \
89         $(platform_cppflags) \
90         $(platform_webcore_cppflags) \
91         $(javascriptcore_cppflags) \
92         -fno-strict-aliasing \
93         $(CAIRO_CFLAGS) \
94         $(ENCHANT_CFLAGS) \
95         $(FREETYPE_CFLAGS) \
96         $(GEOCLUE_CFLAGS) \
97         $(GSTREAMER_CFLAGS) \
98         $(LIBSOUP_CFLAGS)
99
100 libPlatformGtk_la_SOURCES = \
101         $(platformgtk_sources)
102
103 libPlatformGtk_la_CXXFLAGS = \
104         -fvisibility-inlines-hidden \
105         $(global_cxxflags)
106
107 libPlatformGtk_la_CFLAGS = \
108         -fvisibility=hidden \
109         $(global_cflags)
110
111 libPlatformGtk_la_CPPFLAGS = \
112         -DBUILDING_WEBKIT \
113         $(global_cppflags) \
114         $(platform_cppflags) \
115         $(platformgtk_cppflags) \
116         $(platform_webcore_cppflags) \
117         $(javascriptcore_cppflags) \
118         -fno-strict-aliasing \
119         $(FREETYPE_CFLAGS) \
120         $(GSTREAMER_CFLAGS) \
121         $(GTK_CFLAGS) \
122         $(LIBSECRET_CFLAGS) \
123         $(LIBSOUP_CFLAGS)
124
125 DerivedSources/Platform/ColorData.cpp: $(WebCore)/platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
126         $(AM_V_GEN)$(PERL) $(WebCore)/make-hash-tools.pl $(GENSOURCES_PLATFORM) $(WebCore)/platform/ColorData.gperf
127
128 DerivedSources/Platform/WebKitFontFamilyNames.cpp: DerivedSources/Platform/WebKitFontFamilyNames.h
129 DerivedSources/Platform/WebKitFontFamilyNames.h: $(WebCore)/dom/make_names.pl $(WebCore)/bindings/scripts/Hasher.pm $(WebCore)/bindings/scripts/StaticString.pm $(WebCore)/css/WebKitFontFamilyNames.in
130         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in --outputDir "$(GENSOURCES_PLATFORM)"