Skip to content

Commit

Permalink
Services: Renamed from Servers
Browse files Browse the repository at this point in the history
It didn't feel right to have a "DHCPClient" in a "Servers" directory.
Rename this to Services to better reflect the type of programs we'll
be putting in there.
  • Loading branch information
awesomekling committed May 8, 2020
1 parent 042b1f6 commit cf3b58f
Show file tree
Hide file tree
Showing 119 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions Applications/Browser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ main.cpp: ../../Libraries/LibWeb/CSS/PropertyID.h
../../Libraries/LibWeb/CSS/PropertyID.h:
@flock ../../Libraries/LibWeb $(MAKE) -C ../../Libraries/LibWeb

main.cpp: ../../Servers/ProtocolServer/ProtocolClientEndpoint.h
../../Servers/ProtocolServer/ProtocolClientEndpoint.h:
@flock ../../Servers/ProtocolServer $(MAKE) -C $(dir $(@))
main.cpp: ../../Services/ProtocolServer/ProtocolClientEndpoint.h
../../Services/ProtocolServer/ProtocolClientEndpoint.h:
@flock ../../Services/ProtocolServer $(MAKE) -C $(dir $(@))

include ../../Makefile.common
2 changes: 1 addition & 1 deletion Documentation/BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Bare curious users may even consider sourcing suitable hardware to [install Sere

Later on, when you `git pull` to get the latest changes, there's no need to rebuild the toolchain. You can simply rerun **./makeall.sh** in the `Kernel/` directory and you'll be good to **./run** again.

You can even re-compile only parts of the system. Imagine you changed something in the **WindowServer**. Then run `make -C ../Servers/WindowServer` (from the `Kernel/` directory) followed by **./sync.sh** to update the disk image. Then you can start the system with **./run** again.
You can even re-compile only parts of the system. Imagine you changed something in the **WindowServer**. Then run `make -C ../Services/WindowServer` (from the `Kernel/` directory) followed by **./sync.sh** to update the disk image. Then you can start the system with **./run** again.

#### Ports
To add a package from the ports collection to Serenity, for example curl, go into `Ports/curl/` and run **./package.sh**. The sourcecode for the package will be downloaded and the package will be built. After that, run **./sync.sh** from the `Kernel/` directory to update the disk image. The next time you start Serenity with **./run**, `curl` will be available.
20 changes: 10 additions & 10 deletions Kernel/build-root-filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,16 @@ cp ../DevTools/Inspector/Inspector mnt/bin/Inspector
cp ../DevTools/ProfileViewer/ProfileViewer mnt/bin/ProfileViewer
cp ../Games/Minesweeper/Minesweeper mnt/bin/Minesweeper
cp ../Games/Snake/Snake mnt/bin/Snake
cp ../Servers/DHCPClient/DHCPClient mnt/bin/DHCPClient
cp ../Servers/LookupServer/LookupServer mnt/bin/LookupServer
cp ../Servers/SystemServer/SystemServer mnt/bin/SystemServer
cp ../Servers/WindowServer/WindowServer mnt/bin/WindowServer
cp ../Servers/AudioServer/AudioServer mnt/bin/AudioServer
cp ../Servers/TTYServer/TTYServer mnt/bin/TTYServer
cp ../Servers/TelnetServer/TelnetServer mnt/bin/TelnetServer
cp ../Servers/ProtocolServer/ProtocolServer mnt/bin/ProtocolServer
cp ../Servers/NotificationServer/NotificationServer mnt/bin/NotificationServer
cp ../Servers/WebServer/WebServer mnt/bin/WebServer
cp ../Services/DHCPClient/DHCPClient mnt/bin/DHCPClient
cp ../Services/LookupServer/LookupServer mnt/bin/LookupServer
cp ../Services/SystemServer/SystemServer mnt/bin/SystemServer
cp ../Services/WindowServer/WindowServer mnt/bin/WindowServer
cp ../Services/AudioServer/AudioServer mnt/bin/AudioServer
cp ../Services/TTYServer/TTYServer mnt/bin/TTYServer
cp ../Services/TelnetServer/TelnetServer mnt/bin/TelnetServer
cp ../Services/ProtocolServer/ProtocolServer mnt/bin/ProtocolServer
cp ../Services/NotificationServer/NotificationServer mnt/bin/NotificationServer
cp ../Services/WebServer/WebServer mnt/bin/WebServer
cp ../Shell/Shell mnt/bin/Shell
cp ../MenuApplets/Audio/Audio.MenuApplet mnt/bin/
cp ../MenuApplets/ResourceGraph/ResourceGraph.MenuApplet mnt/bin/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/LibAudio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ OBJS = \

LIBRARY = libaudio.a

ClientConnection.cpp: ../../Servers/AudioServer/AudioClientEndpoint.h
../../Servers/AudioServer/AudioClientEndpoint.h:
ClientConnection.cpp: ../../Services/AudioServer/AudioClientEndpoint.h
../../Services/AudioServer/AudioClientEndpoint.h:
@flock $(dir $(@)) $(MAKE) -C $(dir $(@))

install:
Expand Down
10 changes: 5 additions & 5 deletions Libraries/LibGUI/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@ OBJS = \

LIBRARY = libgui.a

Application.cpp: ../../Servers/WindowServer/WindowServerEndpoint.h
Application.cpp: ../../Services/WindowServer/WindowServerEndpoint.h

../../Servers/WindowServer/WindowServerEndpoint.h:
../../Services/WindowServer/WindowServerEndpoint.h:
@flock $(dir $(@)) $(MAKE) -C $(dir $(@))

# HACK: NotificationServer depends on LibGUI so we don't flock for these..
Notification.cpp: ../../Servers/NotificationServer/NotificationServerEndpoint.h ../../Servers/NotificationServer/NotificationClientEndpoint.h
Notification.cpp: ../../Services/NotificationServer/NotificationServerEndpoint.h ../../Services/NotificationServer/NotificationClientEndpoint.h

../../Servers/NotificationServer/NotificationServerEndpoint.h:
../../Services/NotificationServer/NotificationServerEndpoint.h:
$(MAKE) -C $(dir $(@)) NotificationServerEndpoint.h

../../Servers/NotificationServer/NotificationClientEndpoint.h:
../../Services/NotificationServer/NotificationClientEndpoint.h:
$(MAKE) -C $(dir $(@)) NotificationClientEndpoint.h

install:
Expand Down
4 changes: 2 additions & 2 deletions Libraries/LibProtocol/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ OBJS = \

LIBRARY = libprotocol.a

Download.cpp Client.cpp: ../../Servers/ProtocolServer/ProtocolClientEndpoint.h ../../Servers/ProtocolServer/ProtocolServerEndpoint.h
../../Servers/ProtocolServer/ProtocolClientEndpoint.h ../../Servers/ProtocolServer/ProtocolServerEndpoint.h:
Download.cpp Client.cpp: ../../Services/ProtocolServer/ProtocolClientEndpoint.h ../../Services/ProtocolServer/ProtocolServerEndpoint.h
../../Services/ProtocolServer/ProtocolClientEndpoint.h ../../Services/ProtocolServer/ProtocolServerEndpoint.h:
@flock $(dir $(@)) $(MAKE) -C $(dir $(@))

include ../../Makefile.common
4 changes: 2 additions & 2 deletions Libraries/LibWeb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ CSS/PropertyID.cpp: CSS/Properties.json $(GENERATE_CSS_PROPERTYID_CPP)
@echo "GENERATE $@"
$(QUIET) flock CSS $(GENERATE_CSS_PROPERTYID_CPP) $< > $@

ResourceLoader.cpp: ../../Servers/ProtocolServer/ProtocolClientEndpoint.h ../../Servers/ProtocolServer/ProtocolServerEndpoint.h
../../Servers/ProtocolServer/ProtocolClientEndpoint.h ../../Servers/ProtocolServer/ProtocolServerEndpoint.h:
ResourceLoader.cpp: ../../Services/ProtocolServer/ProtocolClientEndpoint.h ../../Services/ProtocolServer/ProtocolServerEndpoint.h
../../Services/ProtocolServer/ProtocolClientEndpoint.h ../../Services/ProtocolServer/ProtocolServerEndpoint.h:
@flock $(dir $(@)) $(MAKE) -C $(dir $(@))

EXTRA_CLEAN = CSS/DefaultStyleSheetSource.cpp CSS/PropertyID.h CSS/PropertyID.cpp
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SUBDIRS += \
Libraries \
AK \
DevTools \
Servers
Services

SUBDIRS += \
Applications \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ INCLUDE_FLAGS += \
-I$(SERENITY_BASE_DIR)/DevTools \
-I$(SERENITY_BASE_DIR) \
-I$(SERENITY_BASE_DIR)/Libraries \
-I$(SERENITY_BASE_DIR)/Servers
-I$(SERENITY_BASE_DIR)/Services

VERBOSE = 0

Expand Down
4 changes: 2 additions & 2 deletions Meta/CLion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ file(GLOB_RECURSE KERNEL_SOURCES "serenity/Kernel/*.cpp")
file(GLOB_RECURSE LIBRARIES_SOURCES "serenity/Libraries/*.cpp")
file(GLOB_RECURSE MENU_APPLETS_SOURCES "serenity/MenuApplets/*.cpp")
file(GLOB_RECURSE PORTS_SOURCES "serenity/Ports/*.cpp")
file(GLOB_RECURSE SERVERS_SOURCES "serenity/Servers/*.cpp")
file(GLOB_RECURSE SERVERS_SOURCES "serenity/Services/*.cpp")
file(GLOB_RECURSE SHELL_SOURCES "serenity/Shell/*.cpp")
file(GLOB_RECURSE TESTS_SOURCES "serenity/Tests/*.cpp")
file(GLOB_RECURSE TOOLCHAIN_SOURCES "serenity/Toolchain/*.cpp")
Expand All @@ -24,7 +24,7 @@ set(INCLUDE_DIRS
"serenity/Libraries"
"serenity/Libraries/LibC"
"serenity/Libraries/LibPthread"
"serenity/Servers"
"serenity/Services"
"serenity/Toolchain/Local/i686-pc-serenity/include/c++/9.3.0")

add_library(serenity
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Toolchain/ComputeDependenciesHash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trap finish EXIT
# on *all* of their implementation and recursive dependencies.
# Scan all files for potential dependencies.
# Thinking in graphs, this computes the edge list:
cat <(find AK/ Libraries/ Servers/ Kernel/ -name '*.h') \
cat <(find AK/ Libraries/ Services/ Kernel/ -name '*.h') \
<(find Libraries/LibC/ Libraries/LibM/ -name '*.cpp' ! -name 'Test*.cpp' ) | \
xargs grep -F '#include ' | \
sed -r \
Expand All @@ -38,7 +38,7 @@ cat <(find AK/ Libraries/ Servers/ Kernel/ -name '*.h') \
-e 's^#include <((bits|netinet|sys|arpa|net)/.*)>^Libraries/LibC/\1^' \
-e 's^#include <fd_set.h>^Libraries/LibC/fd_set.h^' \
-e 's^#include <([a-z]{3,10}(_numbers)?\.h)>^Libraries/LibC/\1^' \
-e 's^#include <([A-Z][a-z]+Server/.*)>^Servers/\1^' \
-e 's^#include <([A-Z][a-z]+Server/.*)>^Services/\1^' \
-e 's^#include <(.*)>^UNRESOLVED_I/\1^' \
-e 's^#include "(.*)"^UNRESOLVED_L/\1^' > "${DEPLIST_FILE}"
# Some #include's cannot be resolved, like <chrono>. However, these are only
Expand Down

0 comments on commit cf3b58f

Please sign in to comment.