blob: 2f2464e05b38bdd34471ad87fac2a4c3ae1a099b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
serenity_component(
BuggieBox
REQUIRED
TARGETS BuggieBox
)
function (buggiebox_utility src)
get_filename_component(utility ${src} NAME_WE)
target_sources(BuggieBox PRIVATE ${src})
set_source_files_properties(${src} PROPERTIES COMPILE_DEFINITIONS "serenity_main=${utility}_main")
endfunction()
set(utility_srcs
../Utilities/cat.cpp
../Utilities/checksum.cpp
../Utilities/chmod.cpp
../Utilities/chown.cpp
../Utilities/cp.cpp
../Utilities/df.cpp
../Utilities/env.cpp
../Utilities/file.cpp
../Utilities/find.cpp
../Utilities/id.cpp
../Utilities/less.cpp
../Utilities/ln.cpp
../Utilities/ls.cpp
../Utilities/lsblk.cpp
../Utilities/mkdir.cpp
../Utilities/mknod.cpp
../Utilities/mount.cpp
../Utilities/mv.cpp
../Utilities/ps.cpp
../Utilities/rm.cpp
../Utilities/rmdir.cpp
../Utilities/tail.cpp
../Utilities/tree.cpp
../Utilities/umount.cpp
../Utilities/uname.cpp
../Utilities/uniq.cpp
)
serenity_bin(BuggieBox)
target_sources(BuggieBox PRIVATE main.cpp)
target_link_libraries(BuggieBox PRIVATE LibMain LibShell LibCompress LibCore LibCrypto LibFileSystem LibGfx LibLine LibRegex LibAudio)
foreach(file IN LISTS utility_srcs)
buggiebox_utility(${file})
endforeach()
target_sources(BuggieBox PRIVATE ../Shell/main.cpp)
set_source_files_properties( ../Shell/main.cpp PROPERTIES COMPILE_DEFINITIONS "serenity_main=sh_main")
|