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