Skip to content

Commit 7bb9eb3

Browse files
committed
build: remove deps/uv BUILD.gn
nodejs/node#47637
1 parent 1a603e3 commit 7bb9eb3

File tree

1 file changed

+0
-200
lines changed

1 file changed

+0
-200
lines changed

patches/node/build_add_gn_build_files.patch

Lines changed: 0 additions & 200 deletions
Original file line numberDiff line numberDiff line change
@@ -413,206 +413,6 @@ index 0000000000000000000000000000000000000000..24c122008e0fc009833cf9189ebf4388
413413
+ cflags_cc += [ "-Wno-sign-compare" ]
414414
+ }
415415
+}
416-
diff --git a/deps/uv/BUILD.gn b/deps/uv/BUILD.gn
417-
new file mode 100644
418-
index 0000000000000000000000000000000000000000..7518168141db7958550c7f5dc1ed17ccdbbe4a60
419-
--- /dev/null
420-
+++ b/deps/uv/BUILD.gn
421-
@@ -0,0 +1,194 @@
422-
+config("libuv_config") {
423-
+ include_dirs = [ "include" ]
424-
+
425-
+ defines = []
426-
+
427-
+ if (is_linux) {
428-
+ defines += [ "_POSIX_C_SOURCE=200112" ]
429-
+ }
430-
+ if (!is_win) {
431-
+ defines += [
432-
+ "_LARGEFILE_SOURCE",
433-
+ "_FILE_OFFSET_BITS=64",
434-
+ ]
435-
+ }
436-
+ if (is_mac) {
437-
+ defines += [ "_DARWIN_USE_64_BIT_INODE=1" ]
438-
+ }
439-
+}
440-
+
441-
+static_library("uv") {
442-
+ include_dirs = [
443-
+ "include",
444-
+ "src",
445-
+ ]
446-
+
447-
+ public_configs = [ ":libuv_config" ]
448-
+
449-
+ ldflags = []
450-
+
451-
+ defines = []
452-
+
453-
+ # This only has an effect on Windows, where it will cause libuv's symbols to be exported in node.lib
454-
+ defines += [ "BUILDING_UV_SHARED=1" ]
455-
+
456-
+ cflags_c = [
457-
+ "-Wno-incompatible-pointer-types",
458-
+ "-Wno-bitwise-op-parentheses",
459-
+ "-Wno-implicit-fallthrough",
460-
+ "-Wno-implicit-function-declaration",
461-
+ "-Wno-missing-braces",
462-
+ "-Wno-sign-compare",
463-
+ "-Wno-sometimes-uninitialized",
464-
+ "-Wno-string-conversion",
465-
+ "-Wno-switch",
466-
+ "-Wno-unused-function",
467-
+ "-Wno-unused-result",
468-
+ "-Wno-unused-variable",
469-
+ "-Wno-unreachable-code",
470-
+ "-Wno-unreachable-code-return",
471-
+ "-Wno-unused-but-set-variable",
472-
+ "-Wno-shadow",
473-
+ ]
474-
+
475-
+ libs = []
476-
+
477-
+ sources = [
478-
+ "include/uv.h",
479-
+ "include/uv/tree.h",
480-
+ "include/uv/errno.h",
481-
+ "include/uv/threadpool.h",
482-
+ "include/uv/version.h",
483-
+ "src/fs-poll.c",
484-
+ "src/heap-inl.h",
485-
+ "src/idna.c",
486-
+ "src/idna.h",
487-
+ "src/inet.c",
488-
+ "src/queue.h",
489-
+ "src/random.c",
490-
+ "src/strscpy.c",
491-
+ "src/strscpy.h",
492-
+ "src/strtok.c",
493-
+ "src/strtok.h",
494-
+ "src/thread-common.c",
495-
+ "src/threadpool.c",
496-
+ "src/timer.c",
497-
+ "src/uv-data-getter-setters.c",
498-
+ "src/uv-common.c",
499-
+ "src/uv-common.h",
500-
+ "src/version.c",
501-
+ ]
502-
+
503-
+ if (is_win) {
504-
+ defines += [ "_GNU_SOURCE" ]
505-
+ sources += [
506-
+ "include/uv/win.h",
507-
+ "src/win/async.c",
508-
+ "src/win/atomicops-inl.h",
509-
+ "src/win/core.c",
510-
+ "src/win/detect-wakeup.c",
511-
+ "src/win/dl.c",
512-
+ "src/win/error.c",
513-
+ "src/win/fs.c",
514-
+ "src/win/fs-event.c",
515-
+ "src/win/getaddrinfo.c",
516-
+ "src/win/getnameinfo.c",
517-
+ "src/win/handle.c",
518-
+ "src/win/handle-inl.h",
519-
+ "src/win/internal.h",
520-
+ "src/win/loop-watcher.c",
521-
+ "src/win/pipe.c",
522-
+ "src/win/thread.c",
523-
+ "src/win/poll.c",
524-
+ "src/win/process.c",
525-
+ "src/win/process-stdio.c",
526-
+ "src/win/req-inl.h",
527-
+ "src/win/signal.c",
528-
+ "src/win/snprintf.c",
529-
+ "src/win/stream.c",
530-
+ "src/win/stream-inl.h",
531-
+ "src/win/tcp.c",
532-
+ "src/win/tty.c",
533-
+ "src/win/udp.c",
534-
+ "src/win/util.c",
535-
+ "src/win/winapi.c",
536-
+ "src/win/winapi.h",
537-
+ "src/win/winsock.c",
538-
+ "src/win/winsock.h",
539-
+ ]
540-
+
541-
+ libs += [
542-
+ "advapi32.lib",
543-
+ "iphlpapi.lib",
544-
+ "psapi.lib",
545-
+ "shell32.lib",
546-
+ "user32.lib",
547-
+ "userenv.lib",
548-
+ "ws2_32.lib",
549-
+ ]
550-
+ } else {
551-
+ sources += [
552-
+ "include/uv/unix.h",
553-
+ "include/uv/linux.h",
554-
+ "include/uv/sunos.h",
555-
+ "include/uv/darwin.h",
556-
+ "include/uv/bsd.h",
557-
+ "include/uv/aix.h",
558-
+ "src/unix/async.c",
559-
+ "src/unix/core.c",
560-
+ "src/unix/dl.c",
561-
+ "src/unix/fs.c",
562-
+ "src/unix/getaddrinfo.c",
563-
+ "src/unix/getnameinfo.c",
564-
+ "src/unix/internal.h",
565-
+ "src/unix/loop.c",
566-
+ "src/unix/loop-watcher.c",
567-
+ "src/unix/pipe.c",
568-
+ "src/unix/poll.c",
569-
+ "src/unix/process.c",
570-
+ "src/unix/random-devurandom.c",
571-
+ "src/unix/signal.c",
572-
+ "src/unix/stream.c",
573-
+ "src/unix/tcp.c",
574-
+ "src/unix/thread.c",
575-
+ "src/unix/tty.c",
576-
+ "src/unix/udp.c",
577-
+ ]
578-
+ libs += [ "m" ]
579-
+ ldflags += [ "-pthread" ]
580-
+ }
581-
+ if (is_mac || is_linux) {
582-
+ sources += [ "src/unix/proctitle.c" ]
583-
+ }
584-
+ if (is_mac) {
585-
+ sources += [
586-
+ "src/unix/darwin-proctitle.c",
587-
+ "src/unix/darwin.c",
588-
+ "src/unix/fsevents.c",
589-
+ "src/unix/random-getentropy.c",
590-
+ ]
591-
+ defines += [
592-
+ "_DARWIN_USE_64_BIT_INODE=1",
593-
+ "_DARWIN_UNLIMITED_SELECT=1",
594-
+ ]
595-
+ }
596-
+ if (is_linux) {
597-
+ defines += [ "_GNU_SOURCE" ]
598-
+ sources += [
599-
+ "src/unix/linux.c",
600-
+ "src/unix/procfs-exepath.c",
601-
+ "src/unix/random-getrandom.c",
602-
+ "src/unix/random-sysctl-linux.c",
603-
+ ]
604-
+ libs += [
605-
+ "dl",
606-
+ "rt",
607-
+ ]
608-
+ }
609-
+ if (is_mac) { # is_bsd
610-
+ sources += [
611-
+ "src/unix/bsd-ifaddrs.c",
612-
+ "src/unix/kqueue.c",
613-
+ ]
614-
+ }
615-
+}
616416
diff --git a/deps/uvwasi/BUILD.gn b/deps/uvwasi/BUILD.gn
617417
new file mode 100644
618418
index 0000000000000000000000000000000000000000..d9fcf8dc972b1caa2b7a130b1144c685316035cd

0 commit comments

Comments
 (0)