| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'skia_warnings_as_errors': 0, | 7 'skia_warnings_as_errors': 0, |
| 8 }, | 8 }, |
| 9 'targets': [{ | 9 'targets': [{ |
| 10 # Draws pictures cross-process. | 10 # Draws pictures cross-process. |
| 11 'target_name': 'nanomsg_picture_demo', | 11 'target_name': 'nanomsg_picture_demo', |
| 12 'type': 'executable', | 12 'type': 'executable', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 'skia_lib.gyp:skia_lib', | 14 'skia_lib.gyp:skia_lib', |
| 15 'flags.gyp:flags', | 15 'flags.gyp:flags', |
| 16 'libnanomsg', | 16 'libnanomsg', |
| 17 ], | 17 ], |
| 18 'sources': [ '../experimental/nanomsg/picture_demo.cpp' ], | 18 'sources': [ '../experimental/nanomsg/picture_demo.cpp' ], |
| 19 },{ | 19 },{ |
| 20 'target_name': 'libnanomsg', | 20 'target_name': 'libnanomsg', |
| 21 'type': 'static_library', | 21 'type': 'static_library', |
| 22 | 22 |
| 23 # Clients can include nanomsg public header foo.h with #include "nanomsg/src
/foo.h" | 23 # Clients can include nanomsg public header foo.h with #include "nanomsg/src
/foo.h" |
| 24 'direct_dependent_settings': { | 24 'direct_dependent_settings': { |
| 25 'include_dirs': [ '../third_party/externals' ] | 25 'include_dirs': [ '../third_party/externals' ] |
| 26 }, | 26 }, |
| 27 | 27 |
| 28 # To refresh: cd gyp; find ../third_party/externals/nanomsg/src -name "*.c" | |
| 29 'sources': [ | 28 'sources': [ |
| 30 '../third_party/externals/nanomsg/src/aio/ctx.c', | 29 '<!@(python find.py ../third_party/externals/nanomsg/src "*.c")' |
| 31 '../third_party/externals/nanomsg/src/aio/fsm.c', | |
| 32 '../third_party/externals/nanomsg/src/aio/poller.c', | |
| 33 '../third_party/externals/nanomsg/src/aio/pool.c', | |
| 34 '../third_party/externals/nanomsg/src/aio/timer.c', | |
| 35 '../third_party/externals/nanomsg/src/aio/timerset.c', | |
| 36 '../third_party/externals/nanomsg/src/aio/usock.c', | |
| 37 '../third_party/externals/nanomsg/src/aio/worker.c', | |
| 38 '../third_party/externals/nanomsg/src/core/device.c', | |
| 39 '../third_party/externals/nanomsg/src/core/ep.c', | |
| 40 '../third_party/externals/nanomsg/src/core/epbase.c', | |
| 41 '../third_party/externals/nanomsg/src/core/global.c', | |
| 42 '../third_party/externals/nanomsg/src/core/pipe.c', | |
| 43 '../third_party/externals/nanomsg/src/core/poll.c', | |
| 44 '../third_party/externals/nanomsg/src/core/sock.c', | |
| 45 '../third_party/externals/nanomsg/src/core/sockbase.c', | |
| 46 '../third_party/externals/nanomsg/src/core/symbol.c', | |
| 47 '../third_party/externals/nanomsg/src/protocols/bus/bus.c', | |
| 48 '../third_party/externals/nanomsg/src/protocols/bus/xbus.c', | |
| 49 '../third_party/externals/nanomsg/src/protocols/pair/pair.c', | |
| 50 '../third_party/externals/nanomsg/src/protocols/pair/xpair.c', | |
| 51 '../third_party/externals/nanomsg/src/protocols/pipeline/pull.c', | |
| 52 '../third_party/externals/nanomsg/src/protocols/pipeline/push.c', | |
| 53 '../third_party/externals/nanomsg/src/protocols/pipeline/xpull.c', | |
| 54 '../third_party/externals/nanomsg/src/protocols/pipeline/xpush.c', | |
| 55 '../third_party/externals/nanomsg/src/protocols/pubsub/pub.c', | |
| 56 '../third_party/externals/nanomsg/src/protocols/pubsub/sub.c', | |
| 57 '../third_party/externals/nanomsg/src/protocols/pubsub/trie.c', | |
| 58 '../third_party/externals/nanomsg/src/protocols/pubsub/xpub.c', | |
| 59 '../third_party/externals/nanomsg/src/protocols/pubsub/xsub.c', | |
| 60 '../third_party/externals/nanomsg/src/protocols/reqrep/rep.c', | |
| 61 '../third_party/externals/nanomsg/src/protocols/reqrep/req.c', | |
| 62 '../third_party/externals/nanomsg/src/protocols/reqrep/xrep.c', | |
| 63 '../third_party/externals/nanomsg/src/protocols/reqrep/xreq.c', | |
| 64 '../third_party/externals/nanomsg/src/protocols/survey/respondent.c', | |
| 65 '../third_party/externals/nanomsg/src/protocols/survey/surveyor.c', | |
| 66 '../third_party/externals/nanomsg/src/protocols/survey/xrespondent.c', | |
| 67 '../third_party/externals/nanomsg/src/protocols/survey/xsurveyor.c', | |
| 68 '../third_party/externals/nanomsg/src/protocols/utils/dist.c', | |
| 69 '../third_party/externals/nanomsg/src/protocols/utils/excl.c', | |
| 70 '../third_party/externals/nanomsg/src/protocols/utils/fq.c', | |
| 71 '../third_party/externals/nanomsg/src/protocols/utils/lb.c', | |
| 72 '../third_party/externals/nanomsg/src/protocols/utils/priolist.c', | |
| 73 '../third_party/externals/nanomsg/src/transports/inproc/binproc.c', | |
| 74 '../third_party/externals/nanomsg/src/transports/inproc/cinproc.c', | |
| 75 '../third_party/externals/nanomsg/src/transports/inproc/inproc.c', | |
| 76 '../third_party/externals/nanomsg/src/transports/inproc/ins.c', | |
| 77 '../third_party/externals/nanomsg/src/transports/inproc/msgqueue.c', | |
| 78 '../third_party/externals/nanomsg/src/transports/inproc/sinproc.c', | |
| 79 '../third_party/externals/nanomsg/src/transports/ipc/aipc.c', | |
| 80 '../third_party/externals/nanomsg/src/transports/ipc/bipc.c', | |
| 81 '../third_party/externals/nanomsg/src/transports/ipc/cipc.c', | |
| 82 '../third_party/externals/nanomsg/src/transports/ipc/ipc.c', | |
| 83 '../third_party/externals/nanomsg/src/transports/ipc/sipc.c', | |
| 84 '../third_party/externals/nanomsg/src/transports/tcp/atcp.c', | |
| 85 '../third_party/externals/nanomsg/src/transports/tcp/btcp.c', | |
| 86 '../third_party/externals/nanomsg/src/transports/tcp/ctcp.c', | |
| 87 '../third_party/externals/nanomsg/src/transports/tcp/stcp.c', | |
| 88 '../third_party/externals/nanomsg/src/transports/tcp/tcp.c', | |
| 89 '../third_party/externals/nanomsg/src/transports/utils/backoff.c', | |
| 90 '../third_party/externals/nanomsg/src/transports/utils/dns.c', | |
| 91 '../third_party/externals/nanomsg/src/transports/utils/iface.c', | |
| 92 '../third_party/externals/nanomsg/src/transports/utils/literal.c', | |
| 93 '../third_party/externals/nanomsg/src/transports/utils/port.c', | |
| 94 '../third_party/externals/nanomsg/src/transports/utils/streamhdr.c', | |
| 95 '../third_party/externals/nanomsg/src/utils/alloc.c', | |
| 96 '../third_party/externals/nanomsg/src/utils/atomic.c', | |
| 97 '../third_party/externals/nanomsg/src/utils/chunk.c', | |
| 98 '../third_party/externals/nanomsg/src/utils/chunkref.c', | |
| 99 '../third_party/externals/nanomsg/src/utils/clock.c', | |
| 100 '../third_party/externals/nanomsg/src/utils/closefd.c', | |
| 101 '../third_party/externals/nanomsg/src/utils/efd.c', | |
| 102 '../third_party/externals/nanomsg/src/utils/err.c', | |
| 103 '../third_party/externals/nanomsg/src/utils/glock.c', | |
| 104 '../third_party/externals/nanomsg/src/utils/hash.c', | |
| 105 '../third_party/externals/nanomsg/src/utils/list.c', | |
| 106 '../third_party/externals/nanomsg/src/utils/msg.c', | |
| 107 '../third_party/externals/nanomsg/src/utils/mutex.c', | |
| 108 '../third_party/externals/nanomsg/src/utils/queue.c', | |
| 109 '../third_party/externals/nanomsg/src/utils/random.c', | |
| 110 '../third_party/externals/nanomsg/src/utils/sem.c', | |
| 111 '../third_party/externals/nanomsg/src/utils/sleep.c', | |
| 112 '../third_party/externals/nanomsg/src/utils/stopwatch.c', | |
| 113 '../third_party/externals/nanomsg/src/utils/thread.c', | |
| 114 '../third_party/externals/nanomsg/src/utils/wire.c', | |
| 115 ], | 30 ], |
| 116 | 31 |
| 117 # TODO(mtklein): Support Windows? | 32 # TODO(mtklein): Support Windows? |
| 118 # To refresh: cd third_party/externals/nanomsg; ./autogen.sh; ./configure; c
opy from Makefile. | 33 # To refresh: cd third_party/externals/nanomsg; ./autogen.sh; ./configure; c
opy from Makefile. |
| 119 'conditions': [ | 34 'conditions': [ |
| 120 ['skia_os == "linux"', { | 35 ['skia_os == "linux"', { |
| 121 'cflags': [ '-w' ], | 36 'cflags': [ '-w' ], |
| 122 'libraries': [ | 37 'libraries': [ |
| 123 '-lpthread', | 38 '-lpthread', |
| 124 '-lanl', # Provides getaddrinfo_a and co. | 39 '-lanl', # Provides getaddrinfo_a and co. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 'NN_USE_IFADDRS', | 120 'NN_USE_IFADDRS', |
| 206 'NN_USE_KQUEUE', | 121 'NN_USE_KQUEUE', |
| 207 'NN_USE_PIPE', | 122 'NN_USE_PIPE', |
| 208 'STDC_HEADERS', | 123 'STDC_HEADERS', |
| 209 '_THREAD_SAFE', | 124 '_THREAD_SAFE', |
| 210 ], | 125 ], |
| 211 }], | 126 }], |
| 212 ] | 127 ] |
| 213 }] | 128 }] |
| 214 } | 129 } |
| OLD | NEW |