mirror of
https://github.com/RGBCube/serenity
synced 2025-08-02 13:07:47 +00:00
Userland: Properly populate GENERATED_SOURCES
We previously put the generated headers in SOURCES, which did not mark them as GENERATED (and did not produce a proper dependency). This commit moves all generated headers into GENERATED_SOURCES, and removes useless header SOURCES.
This commit is contained in:
parent
c88058cea2
commit
166a905951
54 changed files with 236 additions and 97 deletions
|
@ -11,6 +11,9 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
Mixer.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
AudioServerEndpoint.h
|
||||
AudioClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -9,11 +9,14 @@ compile_ipc(ClipboardClient.ipc ClipboardClientEndpoint.h)
|
|||
|
||||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
ClipboardClientEndpoint.h
|
||||
ClipboardServerEndpoint.h
|
||||
Storage.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
ClipboardClientEndpoint.h
|
||||
ClipboardServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(Clipboard)
|
||||
target_link_libraries(Clipboard LibCore LibIPC LibMain)
|
||||
|
|
|
@ -10,6 +10,9 @@ compile_ipc(ConfigClient.ipc ConfigClientEndpoint.h)
|
|||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
ConfigServerEndpoint.h
|
||||
ConfigClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -10,6 +10,9 @@ compile_ipc(FileSystemAccessClient.ipc FileSystemAccessClientEndpoint.h)
|
|||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
FileSystemAccessServerEndpoint.h
|
||||
FileSystemAccessClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -9,6 +9,9 @@ compile_ipc(ImageDecoderClient.ipc ImageDecoderClientEndpoint.h)
|
|||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
ImageDecoderServerEndpoint.h
|
||||
ImageDecoderClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -11,6 +11,9 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
InspectableProcess.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
InspectorServerEndpoint.h
|
||||
InspectorClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -11,6 +11,9 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
Launcher.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
LaunchClientEndpoint.h
|
||||
LaunchServerEndpoint.h
|
||||
)
|
||||
|
|
|
@ -7,10 +7,13 @@ serenity_component(
|
|||
compile_gml(LoginWindow.gml LoginWindowGML.h login_window_gml)
|
||||
|
||||
set(SOURCES
|
||||
LoginWindowGML.h
|
||||
LoginWindow.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
LoginWindowGML.h
|
||||
)
|
||||
|
||||
serenity_bin(LoginServer)
|
||||
target_link_libraries(LoginServer LibGUI LibMain)
|
||||
|
|
|
@ -10,12 +10,15 @@ compile_ipc(LookupClient.ipc LookupClientEndpoint.h)
|
|||
set(SOURCES
|
||||
DNSServer.cpp
|
||||
LookupServer.cpp
|
||||
LookupServerEndpoint.h
|
||||
LookupClientEndpoint.h
|
||||
ConnectionFromClient.cpp
|
||||
MulticastDNS.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
LookupServerEndpoint.h
|
||||
LookupClientEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(LookupServer)
|
||||
target_link_libraries(LookupServer LibCore LibDNS LibIPC LibMain)
|
||||
|
|
|
@ -11,6 +11,9 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
NotificationWindow.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
NotificationServerEndpoint.h
|
||||
NotificationClientEndpoint.h
|
||||
)
|
||||
|
|
|
@ -10,8 +10,6 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
ConnectionCache.cpp
|
||||
Request.cpp
|
||||
RequestClientEndpoint.h
|
||||
RequestServerEndpoint.h
|
||||
GeminiRequest.cpp
|
||||
GeminiProtocol.cpp
|
||||
HttpRequest.cpp
|
||||
|
@ -22,5 +20,10 @@ set(SOURCES
|
|||
Protocol.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
RequestClientEndpoint.h
|
||||
RequestServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(RequestServer)
|
||||
target_link_libraries(RequestServer LibCore LibIPC LibGemini LibHTTP LibMain)
|
||||
|
|
|
@ -11,10 +11,13 @@ set(SOURCES
|
|||
ConnectionFromClient.cpp
|
||||
DatabaseConnection.cpp
|
||||
main.cpp
|
||||
SQLStatement.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
SQLClientEndpoint.h
|
||||
SQLServerEndpoint.h
|
||||
SQLStatement.cpp
|
||||
)
|
||||
)
|
||||
|
||||
serenity_bin(SQLServer)
|
||||
target_link_libraries(SQLServer LibCore LibIPC LibSQL LibMain)
|
||||
|
|
|
@ -12,12 +12,15 @@ set(SOURCES
|
|||
ConsoleGlobalObject.cpp
|
||||
ImageCodecPluginSerenity.cpp
|
||||
PageHost.cpp
|
||||
WebContentClientEndpoint.h
|
||||
WebContentConsoleClient.cpp
|
||||
WebContentServerEndpoint.h
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
WebContentClientEndpoint.h
|
||||
WebContentServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(WebContent)
|
||||
target_link_libraries(WebContent LibCore LibIPC LibGfx LibImageDecoderClient LibWebView LibWeb LibMain)
|
||||
link_with_locale_data(WebContent)
|
||||
|
|
|
@ -9,6 +9,9 @@ compile_ipc(WebSocketClient.ipc WebSocketClientEndpoint.h)
|
|||
set(SOURCES
|
||||
ConnectionFromClient.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
WebSocketClientEndpoint.h
|
||||
WebSocketServerEndpoint.h
|
||||
)
|
||||
|
|
|
@ -33,12 +33,15 @@ set(SOURCES
|
|||
WindowManager.cpp
|
||||
WindowStack.cpp
|
||||
WindowSwitcher.cpp
|
||||
WMConnectionFromClient.cpp
|
||||
KeymapSwitcher.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
WindowServerEndpoint.h
|
||||
WindowClientEndpoint.h
|
||||
WindowManagerServerEndpoint.h
|
||||
WindowManagerClientEndpoint.h
|
||||
WMConnectionFromClient.cpp
|
||||
KeymapSwitcher.cpp
|
||||
)
|
||||
|
||||
serenity_bin(WindowServer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue