mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
This commit is contained in:
parent
49727ffee4
commit
450a2a0f9c
236 changed files with 1774 additions and 2337 deletions
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include "ASClientConnection.h"
|
||||
#include "ASMixer.h"
|
||||
#include "AudioClientEndpoint.h"
|
||||
#include <AK/SharedBuffer.h>
|
||||
#include <AudioServer/AudioClientEndpoint.h>
|
||||
#include <LibAudio/Buffer.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <errno.h>
|
||||
|
|
13
Services/AudioServer/CMakeLists.txt
Normal file
13
Services/AudioServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
compile_ipc(AudioServer.ipc AudioServerEndpoint.h)
|
||||
compile_ipc(AudioClient.ipc AudioClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
ASClientConnection.cpp
|
||||
ASMixer.cpp
|
||||
main.cpp
|
||||
AudioServerEndpoint.h
|
||||
AudioClientEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(AudioServer)
|
||||
target_link_libraries(AudioServer LibCore LibThread LibIPC)
|
|
@ -1,24 +0,0 @@
|
|||
OBJS = \
|
||||
main.o \
|
||||
ASMixer.o \
|
||||
ASClientConnection.o
|
||||
|
||||
PROGRAM = AudioServer
|
||||
|
||||
LIB_DEPS = Core IPC Thread Pthread
|
||||
|
||||
EXTRA_CLEAN = AudioServerEndpoint.h AudioClientEndpoint.h
|
||||
|
||||
*.cpp: AudioServerEndpoint.h AudioClientEndpoint.h
|
||||
|
||||
AudioServerEndpoint.h: AudioServer.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
AudioClientEndpoint.h: AudioClient.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
install:
|
||||
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/AudioServer/
|
||||
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/AudioServer/
|
||||
|
||||
include ../../Makefile.common
|
13
Services/CMakeLists.txt
Normal file
13
Services/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
add_subdirectory(AudioServer)
|
||||
add_subdirectory(DHCPClient)
|
||||
add_subdirectory(LaunchServer)
|
||||
add_subdirectory(LookupServer)
|
||||
add_subdirectory(NotificationServer)
|
||||
add_subdirectory(ProtocolServer)
|
||||
add_subdirectory(SystemMenu)
|
||||
add_subdirectory(SystemServer)
|
||||
add_subdirectory(Taskbar)
|
||||
add_subdirectory(TelnetServer)
|
||||
add_subdirectory(TTYServer)
|
||||
add_subdirectory(WebServer)
|
||||
add_subdirectory(WindowServer)
|
8
Services/DHCPClient/CMakeLists.txt
Normal file
8
Services/DHCPClient/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
set(SOURCES
|
||||
DHCPv4Client.cpp
|
||||
DHCPv4.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(DHCPClient)
|
||||
target_link_libraries(DHCPClient LibCore)
|
|
@ -1,10 +0,0 @@
|
|||
OBJS = \
|
||||
DHCPv4.o \
|
||||
DHCPv4Client.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = DHCPClient
|
||||
|
||||
LIB_DEPS = Core
|
||||
|
||||
include ../../Makefile.common
|
13
Services/LaunchServer/CMakeLists.txt
Normal file
13
Services/LaunchServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
compile_ipc(LaunchServer.ipc LaunchServerEndpoint.h)
|
||||
compile_ipc(LaunchClient.ipc LaunchClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
ClientConnection.cpp
|
||||
Launcher.cpp
|
||||
main.cpp
|
||||
LaunchClientEndpoint.h
|
||||
LaunchServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(LaunchServer)
|
||||
target_link_libraries(LaunchServer LibCore LibIPC)
|
|
@ -25,10 +25,10 @@
|
|||
*/
|
||||
|
||||
#include "ClientConnection.h"
|
||||
#include "LaunchClientEndpoint.h"
|
||||
#include "Launcher.h"
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/URL.h>
|
||||
#include <LaunchServer/LaunchClientEndpoint.h>
|
||||
|
||||
namespace LaunchServer {
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
OBJS = \
|
||||
main.o \
|
||||
ClientConnection.o \
|
||||
Launcher.o
|
||||
|
||||
PROGRAM = LaunchServer
|
||||
|
||||
LIB_DEPS = Core IPC
|
||||
|
||||
EXTRA_CLEAN = LaunchServerEndpoint.h LaunchClientEndpoint.h
|
||||
|
||||
*.cpp: LaunchServerEndpoint.h LaunchClientEndpoint.h
|
||||
|
||||
LaunchServerEndpoint.h: LaunchServer.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
LaunchClientEndpoint.h: LaunchClient.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
install:
|
||||
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LaunchServer/
|
||||
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/LaunchServer/
|
||||
|
||||
include ../../Makefile.common
|
|
@ -29,7 +29,6 @@
|
|||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/LocalServer.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
10
Services/LookupServer/CMakeLists.txt
Normal file
10
Services/LookupServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
set(SOURCES
|
||||
DNSAnswer.cpp
|
||||
DNSRequest.cpp
|
||||
DNSResponse.cpp
|
||||
LookupServer.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(LookupServer)
|
||||
target_link_libraries(LookupServer LibCore)
|
|
@ -1,12 +0,0 @@
|
|||
OBJS = \
|
||||
LookupServer.o \
|
||||
DNSRequest.o \
|
||||
DNSResponse.o \
|
||||
DNSAnswer.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = LookupServer
|
||||
|
||||
LIB_DEPS = Core
|
||||
|
||||
include ../../Makefile.common
|
|
@ -1,3 +0,0 @@
|
|||
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
|
||||
|
||||
include ../Makefile.subdir
|
13
Services/NotificationServer/CMakeLists.txt
Normal file
13
Services/NotificationServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
compile_ipc(NotificationServer.ipc NotificationServerEndpoint.h)
|
||||
compile_ipc(NotificationClient.ipc NotificationClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
ClientConnection.cpp
|
||||
main.cpp
|
||||
NotificationWindow.cpp
|
||||
NotificationServerEndpoint.h
|
||||
NotificationClientEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(NotificationServer)
|
||||
target_link_libraries(NotificationServer LibGUI LibIPC)
|
|
@ -25,9 +25,9 @@
|
|||
*/
|
||||
|
||||
#include "ClientConnection.h"
|
||||
#include "NotificationClientEndpoint.h"
|
||||
#include "NotificationWindow.h"
|
||||
#include <AK/HashMap.h>
|
||||
#include <NotificationServer/NotificationClientEndpoint.h>
|
||||
|
||||
namespace NotificationServer {
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
OBJS = \
|
||||
main.o \
|
||||
ClientConnection.o \
|
||||
NotificationWindow.o
|
||||
|
||||
PROGRAM = NotificationServer
|
||||
|
||||
LIB_DEPS = GUI Gfx Core IPC
|
||||
|
||||
EXTRA_CLEAN = NotificationServerEndpoint.h NotificationClientEndpoint.h
|
||||
|
||||
*.cpp: NotificationServerEndpoint.h NotificationClientEndpoint.h
|
||||
|
||||
NotificationServerEndpoint.h: NotificationServer.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
NotificationClientEndpoint.h: NotificationClient.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
install:
|
||||
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/NotificationServer/
|
||||
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/NotificationServer/
|
||||
|
||||
include ../../Makefile.common
|
18
Services/ProtocolServer/CMakeLists.txt
Normal file
18
Services/ProtocolServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
compile_ipc(ProtocolServer.ipc ProtocolServerEndpoint.h)
|
||||
compile_ipc(ProtocolClient.ipc ProtocolClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
Download.cpp
|
||||
HttpDownload.cpp
|
||||
HttpProtocol.cpp
|
||||
HttpsDownload.cpp
|
||||
HttpsProtocol.cpp
|
||||
main.cpp
|
||||
Protocol.cpp
|
||||
PSClientConnection.cpp
|
||||
ProtocolServerEndpoint.h
|
||||
ProtocolClientEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(ProtocolServer)
|
||||
target_link_libraries(ProtocolServer LibCore LibIPC LibHTTP)
|
|
@ -1,25 +0,0 @@
|
|||
OBJS = \
|
||||
PSClientConnection.o \
|
||||
Protocol.o \
|
||||
Download.o \
|
||||
HttpProtocol.o \
|
||||
HttpDownload.o \
|
||||
HttpsProtocol.o \
|
||||
HttpsDownload.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = ProtocolServer
|
||||
|
||||
LIB_DEPS = HTTP TLS Crypto Core IPC
|
||||
|
||||
EXTRA_CLEAN = ProtocolServerEndpoint.h ProtocolClientEndpoint.h
|
||||
|
||||
*.cpp: ProtocolServerEndpoint.h ProtocolClientEndpoint.h
|
||||
|
||||
ProtocolServerEndpoint.h: ProtocolServer.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
ProtocolClientEndpoint.h: ProtocolClient.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
include ../../Makefile.common
|
7
Services/SystemMenu/CMakeLists.txt
Normal file
7
Services/SystemMenu/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
PowerDialog.cpp
|
||||
)
|
||||
|
||||
serenity_bin(SystemMenu)
|
||||
target_link_libraries(SystemMenu LibGUI)
|
|
@ -1,9 +0,0 @@
|
|||
OBJS = \
|
||||
main.o \
|
||||
PowerDialog.o
|
||||
|
||||
PROGRAM = SystemMenu
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
include ../../Makefile.common
|
7
Services/SystemServer/CMakeLists.txt
Normal file
7
Services/SystemServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
Service.cpp
|
||||
)
|
||||
|
||||
serenity_bin(SystemServer)
|
||||
target_link_libraries(SystemServer LibCore)
|
|
@ -1,13 +0,0 @@
|
|||
OBJS = \
|
||||
Service.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = SystemServer
|
||||
|
||||
LIB_DEPS = Core
|
||||
|
||||
install:
|
||||
mkdir -p ../../Root/usr/include/SystemServer/
|
||||
cp *.h ../../Root/usr/include/SystemServer/
|
||||
|
||||
include ../../Makefile.common
|
6
Services/TTYServer/CMakeLists.txt
Normal file
6
Services/TTYServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(TTYServer)
|
||||
target_link_libraries(TTYServer LibC)
|
|
@ -1,6 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = TTYServer
|
||||
|
||||
include ../../Makefile.common
|
9
Services/Taskbar/CMakeLists.txt
Normal file
9
Services/Taskbar/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
TaskbarButton.cpp
|
||||
TaskbarWindow.cpp
|
||||
WindowList.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Taskbar)
|
||||
target_link_libraries(Taskbar LibGUI)
|
|
@ -1,11 +0,0 @@
|
|||
OBJS = \
|
||||
TaskbarWindow.o \
|
||||
TaskbarButton.o \
|
||||
WindowList.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = Taskbar
|
||||
|
||||
LIB_DEPS = GUI Gfx IPC Core
|
||||
|
||||
include ../../Makefile.common
|
8
Services/TelnetServer/CMakeLists.txt
Normal file
8
Services/TelnetServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
set(SOURCES
|
||||
Client.cpp
|
||||
main.cpp
|
||||
Parser.cpp
|
||||
)
|
||||
|
||||
serenity_bin(TelnetServer)
|
||||
target_link_libraries(TelnetServer LibCore)
|
|
@ -1,10 +0,0 @@
|
|||
OBJS = \
|
||||
Client.o \
|
||||
Parser.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = TelnetServer
|
||||
|
||||
LIB_DEPS = Core
|
||||
|
||||
include ../../Makefile.common
|
7
Services/WebServer/CMakeLists.txt
Normal file
7
Services/WebServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
Client.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(WebServer)
|
||||
target_link_libraries(WebServer LibCore LibHTTP)
|
|
@ -1,9 +0,0 @@
|
|||
OBJS = \
|
||||
Client.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = WebServer
|
||||
|
||||
LIB_DEPS = HTTP Core
|
||||
|
||||
include ../../Makefile.common
|
27
Services/WindowServer/CMakeLists.txt
Normal file
27
Services/WindowServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
compile_ipc(WindowServer.ipc WindowServerEndpoint.h)
|
||||
compile_ipc(WindowClient.ipc WindowClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
AppletManager.cpp
|
||||
Button.cpp
|
||||
ClientConnection.cpp
|
||||
Clipboard.cpp
|
||||
Compositor.cpp
|
||||
Cursor.cpp
|
||||
EventLoop.cpp
|
||||
main.cpp
|
||||
MenuBar.cpp
|
||||
Menu.cpp
|
||||
MenuItem.cpp
|
||||
MenuManager.cpp
|
||||
Screen.cpp
|
||||
Window.cpp
|
||||
WindowFrame.cpp
|
||||
WindowManager.cpp
|
||||
WindowSwitcher.cpp
|
||||
WindowServerEndpoint.h
|
||||
WindowClientEndpoint.h
|
||||
)
|
||||
|
||||
serenity_bin(WindowServer)
|
||||
target_link_libraries(WindowServer LibCore LibGfx LibThread LibPthread LibIPC)
|
|
@ -1,38 +0,0 @@
|
|||
OBJS = \
|
||||
AppletManager.o \
|
||||
Button.o \
|
||||
ClientConnection.o \
|
||||
Clipboard.o \
|
||||
Compositor.o \
|
||||
Cursor.o \
|
||||
EventLoop.o \
|
||||
Menu.o \
|
||||
MenuBar.o \
|
||||
MenuItem.o \
|
||||
MenuManager.o \
|
||||
Screen.o \
|
||||
Window.o \
|
||||
WindowFrame.o \
|
||||
WindowManager.o \
|
||||
WindowSwitcher.o \
|
||||
main.o
|
||||
|
||||
PROGRAM = WindowServer
|
||||
|
||||
LIB_DEPS = Gfx Core Thread Pthread IPC
|
||||
|
||||
*.cpp: WindowServerEndpoint.h WindowClientEndpoint.h
|
||||
|
||||
WindowServerEndpoint.h: WindowServer.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
WindowClientEndpoint.h: WindowClient.ipc | IPCCOMPILER
|
||||
@echo "IPC $<"; $(IPCCOMPILER) $< > $@
|
||||
|
||||
EXTRA_CLEAN = WindowServerEndpoint.h WindowClientEndpoint.h
|
||||
|
||||
install:
|
||||
mkdir -p ../../Root/usr/include/WindowServer/
|
||||
cp *.h ../../Root/usr/include/WindowServer/
|
||||
|
||||
include ../../Makefile.common
|
|
@ -29,9 +29,9 @@
|
|||
#include "Event.h"
|
||||
#include "EventLoop.h"
|
||||
#include "Screen.h"
|
||||
#include "WindowClientEndpoint.h"
|
||||
#include "WindowManager.h"
|
||||
#include <AK/Badge.h>
|
||||
#include <WindowServer/WindowClientEndpoint.h>
|
||||
|
||||
namespace WindowServer {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue