80fb0a776a3c44b84ce31eb8f62c5bc2420c950b
[WebKit-https.git] / WebKit2 / DerivedSources.pro
1 TEMPLATE = lib
2 TARGET = dummy
3
4 CONFIG -= debug_and_release
5
6 WEBCORE_HEADERS_FOR_WEBKIT2 += \
7     bindings/js/DOMWrapperWorld.h \
8     bindings/js/GCController.h \
9     bindings/js/JSPluginElementFunctions.h \
10     bridge/IdentifierRep.h \
11     bridge/npapi.h \
12     bridge/npruntime.h \
13     config.h \
14     css/CSSComputedStyleDeclaration.h \
15     dom/Event.h \
16     dom/KeyboardEvent.h \
17     dom/Node.h \
18     dom/Range.h \
19     editing/EditCommand.h \
20     editing/EditorInsertAction.h \
21     editing/TextAffinity.h \
22     history/BackForwardControllerClient.h \
23     history/BackForwardList.h \
24     history/HistoryItem.h \
25     html/HTMLFormElement.h \
26     html/HTMLFrameOwnerElement.h \
27     html/HTMLPlugInElement.h \
28     inspector/InspectorClient.h \
29     loader/appcache/ApplicationCacheStorage.h \
30     loader/Cache.h \
31     loader/DocumentLoader.h \
32     loader/FormState.h \
33     loader/FrameLoaderClient.h \
34     loader/FrameLoader.h \
35     loader/FrameLoaderTypes.h \
36     loader/NetscapePlugInStreamLoader.h \
37     loader/PolicyChecker.h \
38     loader/ProgressTracker.h \
39     page/animation/AnimationController.h \
40     page/ChromeClient.h \
41     page/Chrome.h \
42     page/ContextMenuClient.h \
43     page/DragClient.h \
44     page/EditorClient.h \
45     page/EventHandler.h \
46     page/FocusController.h \
47     page/Frame.h \
48     page/FrameLoadRequest.h \
49     page/FrameView.h \
50     page/MediaCanStartListener.h \
51     page/PageGroup.h \
52     page/Page.h \
53     page/SecurityOrigin.h \
54     page/Settings.h \
55     page/WindowFeatures.h \
56     platform/Cursor.h \
57     platform/FileChooser.h \
58     platform/FileSystem.h \
59     platform/graphics/FloatRect.h \
60     platform/graphics/FontRenderingMode.h \
61     platform/graphics/GraphicsContext.h \
62     platform/graphics/GraphicsLayerClient.h \
63     platform/graphics/GraphicsLayer.h \
64     platform/graphics/IntPoint.h \
65     platform/graphics/IntRect.h \
66     platform/graphics/IntSize.h \
67     platform/HostWindow.h \
68     platform/KURL.h \
69     platform/LocalizationStrategy.h \
70     platform/MIMETypeRegistry.h \
71     platform/network/android/ResourceError.h \
72     platform/network/android/ResourceRequest.h \
73     platform/network/android/ResourceResponse.h \
74     platform/network/HTTPHeaderMap.h \
75     platform/PlatformKeyboardEvent.h \
76     platform/PlatformMouseEvent.h \
77     platform/PlatformStrategies.h \
78     platform/PlatformWheelEvent.h \
79     platform/PopupMenu.h \
80     platform/PopupMenuClient.h \
81     platform/SchemeRegistry.h \
82     platform/ScrollView.h \
83     platform/SearchPopupMenu.h \
84     platform/SharedBuffer.h \
85     platform/text/PlatformString.h \
86     platform/text/StringHash.h \
87     platform/Widget.h \
88     platform/win/BitmapInfo.h \
89     platform/WindowsKeyboardCodes.h \
90     platform/win/WebCoreInstanceHandle.h \
91     platform/win/WindowMessageBroadcaster.h \
92     platform/win/WindowMessageListener.h \
93     plugins/npfunctions.h \
94     plugins/PluginData.h \
95     plugins/PluginStrategy.h \
96     plugins/PluginViewBase.h \
97     rendering/RenderLayer.h \
98     rendering/RenderTreeAsText.h \
99
100 WEBCORE_GENERATED_HEADERS_FOR_WEBKIT2 += \
101     $$OUTPUT_DIR/WebCore/generated/JSElement.h \
102     $$OUTPUT_DIR/WebCore/generated/JSCSSStyleDeclaration.h
103
104 JSC_HEADERS_FOR_WEBKIT2 += \
105     API/APICast.h \
106     API/JavaScript.h \
107     API/JSBase.h \
108     runtime/Error.h \
109     runtime/FunctionPrototype.h \
110     runtime/InternalFunction.h \
111     runtime/JSGlobalObject.h \
112     runtime/JSLock.h \
113     runtime/JSObject.h \
114     runtime/JSObjectWithGlobalObject.h \
115     runtime/ObjectPrototype.h \
116     runtime/Protect.h \
117     wtf/Platform.h \
118     wtf/text/StringHash.h \
119
120 WEBKIT2_API_HEADERS += \
121     UIProcess/API/C/WKAPICast.h \
122     UIProcess/API/C/WKBase.h \
123     UIProcess/API/C/WKContext.h \
124     UIProcess/API/C/WKContextPrivate.h \
125     UIProcess/API/C/WKFrame.h \
126     UIProcess/API/C/WKFramePolicyListener.h \
127     UIProcess/API/C/WKNavigationData.h \
128     UIProcess/API/C/WKPage.h \
129     UIProcess/API/C/WKPageNamespace.h \
130     UIProcess/API/C/WKPagePrivate.h \
131     UIProcess/API/C/WKPreferences.h \
132     UIProcess/API/C/WKString.h \
133     UIProcess/API/C/WKURL.h \
134     UIProcess/API/C/WebKit2.h \
135     UIProcess/API/cpp/WKRetainPtr.h \
136     UIProcess/API/qt/qgraphicswkview.h \
137     UIProcess/API/qt/qwkpage.h \
138     WebProcess/InjectedBundle/API/c/WKBundleBase.h \
139     WebProcess/InjectedBundle/API/c/WKBundlePage.h \
140
141
142 QUOTE = ""
143 DOUBLE_ESCAPED_QUOTE = ""
144 ESCAPE = ""
145 win32-msvc*|symbian {
146     ESCAPE = "^"
147 } else:win32-g++*:isEmpty(QMAKE_SH) {
148     # MinGW's make will run makefile commands using sh, even if make
149     #  was run from the Windows shell, if it finds sh in the path.
150     ESCAPE = "^"
151 } else {
152     QUOTE = "\'"
153     DOUBLE_ESCAPED_QUOTE = "\\\'"
154 }
155
156 DIRS = \
157     $$OUTPUT_DIR/include/JavaScriptCore \
158     $$OUTPUT_DIR/include/WebCore \
159     $$OUTPUT_DIR/include/WebKit2
160
161 for(DIR, DIRS) {
162     !exists($$DIR): system($$QMAKE_MKDIR $$DIR)
163 }
164
165 QMAKE_EXTRA_TARGETS += createdirs
166
167 SRC_ROOT_DIR = $$replace(PWD, /WebKit2, /)
168
169 for(HEADER, WEBCORE_HEADERS_FOR_WEBKIT2) {
170     DESTDIR_BASE = "WebCore"
171
172     HEADER_NAME = $$basename(HEADER)
173     HEADER_PATH = $$SRC_ROOT_DIR/$$DESTDIR_BASE/$$HEADER
174     HEADER_TARGET = $$replace(HEADER_PATH, [^a-zA-Z0-9_], -)
175     HEADER_TARGET = "qtheader-$${HEADER_TARGET}"
176     DESTDIR = $$OUTPUT_DIR/include/$$DESTDIR_BASE
177
178     #FIXME: This should be organized out into a function
179     eval($${HEADER_TARGET}.target = $$DESTDIR/$$HEADER_NAME)
180     eval($${HEADER_TARGET}.depends = $$HEADER_PATH)
181     eval($${HEADER_TARGET}.commands = echo $${DOUBLE_ESCAPED_QUOTE}\$${LITERAL_HASH}include \\\"$$HEADER_PATH\\\"$${DOUBLE_ESCAPED_QUOTE} > $$eval($${HEADER_TARGET}.target))
182
183     QMAKE_EXTRA_TARGETS += $$HEADER_TARGET
184     generated_files.depends += $$eval($${HEADER_TARGET}.target)
185 }
186
187 for(HEADER, WEBCORE_GENERATED_HEADERS_FOR_WEBKIT2) {
188     HEADER_NAME = $$basename(HEADER)
189     HEADER_PATH = $$HEADER
190     HEADER_TARGET = $$replace(HEADER_PATH, [^a-zA-Z0-9_], -)
191     HEADER_TARGET = "qtheader-$${HEADER_TARGET}"
192     DESTDIR = $$OUTPUT_DIR/include/"WebCore"
193
194     eval($${HEADER_TARGET}.target = $$DESTDIR/$$HEADER_NAME)
195     eval($${HEADER_TARGET}.depends = $$HEADER_PATH)
196     eval($${HEADER_TARGET}.commands = echo $${DOUBLE_ESCAPED_QUOTE}\$${LITERAL_HASH}include \\\"$$HEADER_PATH\\\"$${DOUBLE_ESCAPED_QUOTE} > $$eval($${HEADER_TARGET}.target))
197
198     QMAKE_EXTRA_TARGETS += $$HEADER_TARGET
199     generated_files.depends += $$eval($${HEADER_TARGET}.target)
200 }
201
202 for(HEADER, JSC_HEADERS_FOR_WEBKIT2) {
203     DESTDIR_BASE = "JavaScriptCore"
204
205     HEADER_NAME = $$basename(HEADER)
206     HEADER_PATH = $$SRC_ROOT_DIR/$$DESTDIR_BASE/$$HEADER
207     HEADER_TARGET = $$replace(HEADER_PATH, [^a-zA-Z0-9_], -)
208     HEADER_TARGET = "qtheader-$${HEADER_TARGET}"
209     DESTDIR = $$OUTPUT_DIR/include/$$DESTDIR_BASE
210
211     eval($${HEADER_TARGET}.target = $$DESTDIR/$$HEADER_NAME)
212     eval($${HEADER_TARGET}.depends = $$HEADER_PATH)
213     eval($${HEADER_TARGET}.commands = echo $${DOUBLE_ESCAPED_QUOTE}\$${LITERAL_HASH}include \\\"$$HEADER_PATH\\\"$${DOUBLE_ESCAPED_QUOTE} > $$eval($${HEADER_TARGET}.target))
214
215     QMAKE_EXTRA_TARGETS += $$HEADER_TARGET
216     generated_files.depends += $$eval($${HEADER_TARGET}.target)
217 }
218
219 for(HEADER, WEBKIT2_API_HEADERS) {
220     DESTDIR_BASE = "WebKit2"
221
222     HEADER_NAME = $$basename(HEADER)
223     HEADER_PATH = $$PWD/$$HEADER
224     HEADER_TARGET = $$replace(HEADER_PATH, [^a-zA-Z0-9_], -)
225     HEADER_TARGET = "qtheader-$${HEADER_TARGET}"
226     DESTDIR = $$OUTPUT_DIR/include/$$DESTDIR_BASE
227
228     eval($${HEADER_TARGET}.target = $$DESTDIR/$$HEADER_NAME)
229     eval($${HEADER_TARGET}.depends = $$HEADER_PATH)
230     eval($${HEADER_TARGET}.commands = echo $${DOUBLE_ESCAPED_QUOTE}\$${LITERAL_HASH}include \\\"$$HEADER_PATH\\\"$${DOUBLE_ESCAPED_QUOTE} > $$eval($${HEADER_TARGET}.target))
231
232     QMAKE_EXTRA_TARGETS += $$HEADER_TARGET
233     generated_files.depends += $$eval($${HEADER_TARGET}.target)
234 }
235
236 QMAKE_EXTRA_TARGETS += generated_files