|
@@ -1,25 +1,48 @@
|
|
-source_set("sources") {
|
|
|
|
|
|
+# These are the minimal set of sources needed to build the code generators. We separate them to allow
|
|
|
|
+# LibCore to depend on generated sources.
|
|
|
|
+source_set("minimal") {
|
|
include_dirs = [ "//Userland/Libraries" ]
|
|
include_dirs = [ "//Userland/Libraries" ]
|
|
- deps = [ "//AK" ]
|
|
|
|
|
|
+
|
|
sources = [
|
|
sources = [
|
|
- "AnonymousBuffer.cpp",
|
|
|
|
- "AnonymousBuffer.h",
|
|
|
|
"ArgsParser.cpp",
|
|
"ArgsParser.cpp",
|
|
"ArgsParser.h",
|
|
"ArgsParser.h",
|
|
- "Command.cpp",
|
|
|
|
- "Command.h",
|
|
|
|
"ConfigFile.cpp",
|
|
"ConfigFile.cpp",
|
|
"ConfigFile.h",
|
|
"ConfigFile.h",
|
|
- "DateTime.cpp",
|
|
|
|
- "DateTime.h",
|
|
|
|
- "Debounce.h",
|
|
|
|
- "DeferredInvocationContext.h",
|
|
|
|
"DirIterator.cpp",
|
|
"DirIterator.cpp",
|
|
"DirIterator.h",
|
|
"DirIterator.h",
|
|
"Directory.cpp",
|
|
"Directory.cpp",
|
|
"Directory.h",
|
|
"Directory.h",
|
|
"DirectoryEntry.cpp",
|
|
"DirectoryEntry.cpp",
|
|
"DirectoryEntry.h",
|
|
"DirectoryEntry.h",
|
|
|
|
+ "File.cpp",
|
|
|
|
+ "File.h",
|
|
|
|
+ "Forward.h",
|
|
|
|
+ "StandardPaths.cpp",
|
|
|
|
+ "StandardPaths.h",
|
|
|
|
+ "System.cpp",
|
|
|
|
+ "System.h",
|
|
|
|
+ "Version.cpp",
|
|
|
|
+ "Version.h",
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ deps = [
|
|
|
|
+ "//AK",
|
|
|
|
+ "//Userland/Libraries/LibSystem",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+source_set("sources") {
|
|
|
|
+ include_dirs = [ "//Userland/Libraries" ]
|
|
|
|
+ deps = [ "//AK" ]
|
|
|
|
+ sources = [
|
|
|
|
+ "AnonymousBuffer.cpp",
|
|
|
|
+ "AnonymousBuffer.h",
|
|
|
|
+ "Command.cpp",
|
|
|
|
+ "Command.h",
|
|
|
|
+ "DateTime.cpp",
|
|
|
|
+ "DateTime.h",
|
|
|
|
+ "Debounce.h",
|
|
|
|
+ "DeferredInvocationContext.h",
|
|
"ElapsedTimer.cpp",
|
|
"ElapsedTimer.cpp",
|
|
"ElapsedTimer.h",
|
|
"ElapsedTimer.h",
|
|
"Environment.cpp",
|
|
"Environment.cpp",
|
|
@@ -34,9 +57,6 @@ source_set("sources") {
|
|
"EventLoopImplementationUnix.h",
|
|
"EventLoopImplementationUnix.h",
|
|
"EventReceiver.cpp",
|
|
"EventReceiver.cpp",
|
|
"EventReceiver.h",
|
|
"EventReceiver.h",
|
|
- "File.cpp",
|
|
|
|
- "File.h",
|
|
|
|
- "Forward.h",
|
|
|
|
"LockFile.cpp",
|
|
"LockFile.cpp",
|
|
"LockFile.h",
|
|
"LockFile.h",
|
|
"MappedFile.cpp",
|
|
"MappedFile.cpp",
|
|
@@ -67,10 +87,6 @@ source_set("sources") {
|
|
"Socket.cpp",
|
|
"Socket.cpp",
|
|
"Socket.h",
|
|
"Socket.h",
|
|
"SocketAddress.h",
|
|
"SocketAddress.h",
|
|
- "StandardPaths.cpp",
|
|
|
|
- "StandardPaths.h",
|
|
|
|
- "System.cpp",
|
|
|
|
- "System.h",
|
|
|
|
"SystemServerTakeover.cpp",
|
|
"SystemServerTakeover.cpp",
|
|
"SystemServerTakeover.h",
|
|
"SystemServerTakeover.h",
|
|
"TCPServer.cpp",
|
|
"TCPServer.cpp",
|
|
@@ -83,8 +99,6 @@ source_set("sources") {
|
|
"UDPServer.cpp",
|
|
"UDPServer.cpp",
|
|
"UDPServer.h",
|
|
"UDPServer.h",
|
|
"UmaskScope.h",
|
|
"UmaskScope.h",
|
|
- "Version.cpp",
|
|
|
|
- "Version.h",
|
|
|
|
]
|
|
]
|
|
if (current_os != "android") {
|
|
if (current_os != "android") {
|
|
sources += [
|
|
sources += [
|
|
@@ -137,6 +151,7 @@ shared_library("LibCore") {
|
|
|
|
|
|
deps = [
|
|
deps = [
|
|
":filewatcher",
|
|
":filewatcher",
|
|
|
|
+ ":minimal",
|
|
":sources",
|
|
":sources",
|
|
"//Meta/gn/build/libs/crypt",
|
|
"//Meta/gn/build/libs/crypt",
|
|
"//Meta/gn/build/libs/pthread",
|
|
"//Meta/gn/build/libs/pthread",
|