SHARE
TWEET

Untitled

a guest Jan 9th, 2019 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import("//build/config/bundle.gni")
  2.  
  3. config("libuv_config") {
  4.     defines = ["USING_UV_SHARED"]
  5.     include_dirs = ["include"]
  6. }
  7.  
  8. source_set("libuv_sources")
  9. {
  10.     if (is_win) {
  11.         set_sources_assignment_filter([
  12.             "*darwin*",
  13.             "*unix*",
  14.             "*linux*",
  15.             "*sunos*",
  16.             "*msvc*",
  17.             "*android*",            
  18.         ])
  19.     } else {
  20.         set_sources_assignment_filter([
  21.             "*win/*", #  *win* would match darwin as well
  22.             "*-win*",
  23.             "*aix*",
  24.             "*openbsd*",
  25.             "*freebsd*",
  26.             "*netbsd*",
  27.             "*linux*",  
  28.             "*bsd-proctitle*",          
  29.             "*sunos*",
  30.             "*msvc*",
  31.             "*android*",
  32.             "*os390*",
  33.             "*cygwin*",
  34.             "*posix*",
  35.             "*sysinfo*",            
  36.             "*no-*",
  37.             "*procfs*",
  38.             "*ibm*",
  39.         ])
  40.     }
  41.     sources=[
  42.         "include/uv/aix.h",
  43.         "include/uv/android-ifaddrs.h",
  44.         "include/uv/bsd.h",
  45.         "include/uv/darwin.h",
  46.         "include/uv/errno.h",
  47.         "include/uv/linux.h",
  48.         "include/uv/os390.h",
  49.         "include/uv/posix.h",
  50.         "include/uv/stdint-msvc2008.h",
  51.         "include/uv/sunos.h",
  52.         "include/uv/threadpool.h",
  53.         "include/uv/tree.h",
  54.         "include/uv/unix.h",
  55.         "include/uv/version.h",
  56.         "include/uv/win.h",
  57.         "include/uv.h",
  58.  
  59.         "src/version.c",        
  60.         "src/unix/aix-common.c",
  61.         "src/unix/aix.c",
  62.         "src/unix/android-ifaddrs.c",
  63.         "src/unix/async.c",
  64.         "src/unix/atomic-ops.h",
  65.         "src/unix/bsd-ifaddrs.c",
  66.         "src/unix/bsd-proctitle.c",
  67.         "src/unix/core.c",
  68.         "src/unix/cygwin.c",
  69.         "src/unix/darwin-proctitle.c",
  70.         "src/unix/darwin.c",
  71.         "src/unix/dl.c",
  72.         "src/unix/freebsd.c",
  73.         "src/unix/fs.c",
  74.         "src/unix/fsevents.c",
  75.         "src/unix/getaddrinfo.c",
  76.         "src/unix/getnameinfo.c",
  77.         "src/unix/ibmi.c",
  78.         "src/unix/internal.h",
  79.         "src/unix/kqueue.c",
  80.         "src/unix/linux-core.c",
  81.         "src/unix/linux-inotify.c",
  82.         "src/unix/linux-syscalls.c",
  83.         "src/unix/linux-syscalls.h",
  84.         "src/unix/loop-watcher.c",
  85.         "src/unix/loop.c",
  86.         "src/unix/netbsd.c",
  87.         "src/unix/no-fsevents.c",
  88.         "src/unix/no-proctitle.c",
  89.         "src/unix/openbsd.c",
  90.         "src/unix/os390-syscalls.c",
  91.         "src/unix/os390-syscalls.h",
  92.         "src/unix/os390.c",
  93.         "src/unix/pipe.c",
  94.         "src/unix/poll.c",
  95.         "src/unix/posix-hrtime.c",
  96.         "src/unix/posix-poll.c",
  97.         "src/unix/process.c",
  98.         "src/unix/procfs-exepath.c",
  99.         "src/unix/proctitle.c",
  100.         "src/unix/pthread-fixes.c",
  101.         "src/unix/signal.c",
  102.         "src/unix/spinlock.h",
  103.         "src/unix/stream.c",
  104.         "src/unix/sunos.c",
  105.         "src/unix/sysinfo-loadavg.c",
  106.         "src/unix/sysinfo-memory.c",
  107.         "src/unix/tcp.c",
  108.         "src/unix/thread.c",
  109.         "src/unix/tty.c",
  110.         "src/unix/udp.c",
  111.        
  112.         "src/win/async.c",
  113.         "src/win/atomicops-inl.h",
  114.         "src/win/core.c",
  115.         "src/win/detect-wakeup.c",
  116.         "src/win/dl.c",
  117.         "src/win/error.c",
  118.         "src/win/fs-event.c",
  119.         "src/win/fs.c",
  120.         "src/win/getaddrinfo.c",
  121.         "src/win/getnameinfo.c",
  122.         "src/win/handle-inl.h",
  123.         "src/win/handle.c",
  124.         "src/win/internal.h",
  125.         "src/win/loop-watcher.c",
  126.         "src/win/pipe.c",
  127.         "src/win/poll.c",
  128.         "src/win/process-stdio.c",
  129.         "src/win/process.c",
  130.         "src/win/req-inl.h",
  131.         "src/win/signal.c",
  132.         "src/win/snprintf.c",
  133.         "src/win/stream-inl.h",
  134.         "src/win/stream.c",
  135.         "src/win/tcp.c",
  136.         "src/win/thread.c",
  137.         "src/win/tty.c",
  138.         "src/win/udp.c",
  139.         "src/win/util.c",
  140.         "src/win/winapi.c",
  141.         "src/win/winapi.h",
  142.         "src/win/winsock.c",
  143.         "src/win/winsock.h",
  144.  
  145.         "src/fs-poll.c",
  146.         "src/heap-inl.h",
  147.         "src/idna.c",
  148.         "src/idna.h",
  149.         "src/inet.c",
  150.         "src/queue.h",
  151.         "src/strscpy.c",
  152.         "src/strscpy.h",
  153.         "src/threadpool.c",
  154.         "src/timer.c",
  155.         "src/uv-common.c",
  156.         "src/uv-common.h",
  157.         "src/uv-data-getter-setters.c",
  158.     ]            
  159.     configs -= ["//build/config:default-warnings"]
  160.     configs += ["//build/config:contrib-warnings"]
  161.     defines = ["BUILDING_UV_SHARED"]
  162.     include_dirs = ["include", "src"]    
  163. }
  164.  
  165. bundle_shared_library("libuv") {
  166.     deps = [":libuv_sources"]        
  167.     public_configs = [":libuv_config"]    
  168.     if (is_posix) {        
  169.         # otherwise bundle_shared_library outputs liblibuv
  170.         output_prefix_override = true    
  171.     }    
  172. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top