| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 { | 4 { |
| 5 'variables': { |
| 6 'libsctp_target_type%': 'static_library', |
| 7 }, |
| 8 'target_defaults': { |
| 9 'defines': [ |
| 10 'INET', |
| 11 'SCTP_PROCESS_LEVEL_LOCKS', |
| 12 'SCTP_SIMPLE_ALLOCATOR', |
| 13 'USE_SCTP_SHA1', |
| 14 '__Userspace__', |
| 15 # 'SCTP_DEBUG', # Uncomment for SCTP debugging. |
| 16 ], |
| 17 'include_dirs': [ |
| 18 'overrides/usrsctplib', |
| 19 'usrsctplib/', |
| 20 'usrsctplib/netinet', |
| 21 'usrsctplib/netinet6', |
| 22 ], |
| 23 'direct_dependent_settings': { |
| 24 'include_dirs': [ |
| 25 'overrides/usrsctplib', |
| 26 'usrsctplib/', |
| 27 'usrsctplib/netinet', |
| 28 'usrsctplib/netinet6', |
| 29 ], |
| 30 } |
| 31 }, |
| 5 'targets': [ | 32 'targets': [ |
| 6 { | 33 { |
| 7 'target_name': 'usrsctplib', | 34 'target_name': 'usrsctplib', |
| 8 'type': 'static_library', | 35 'type': 'static_library', |
| 9 'direct_dependent_settings': { | |
| 10 'include_dirs': [ | |
| 11 '.', | |
| 12 ], | |
| 13 'defines': [ | |
| 14 'INET', | |
| 15 'SCTP_PROCESS_LEVEL_LOCKS', | |
| 16 'SCTP_SIMPLE_ALLOCATOR', | |
| 17 'STDC_HEADERS', | |
| 18 'USE_SCTP_SHA1', | |
| 19 '__Userspace__', | |
| 20 # 'SCTP_DEBUG', # Uncomment for SCTP debugging. | |
| 21 ], | |
| 22 }, | |
| 23 'include_dirs': [ | |
| 24 'usrsctplib/', | |
| 25 'usrsctplib/netinet', | |
| 26 'usrsctplib/netinet6', | |
| 27 ], | |
| 28 'sources': [ | 36 'sources': [ |
| 37 'overrides/usrsctplib/netinet/sctp_sha1.c', |
| 38 'overrides/usrsctplib/netinet/sctp_sha1.h', |
| 39 |
| 40 'usrsctplib/usrsctp.h', |
| 41 'usrsctplib/user_atomic.h', |
| 29 'usrsctplib/user_environment.c', | 42 'usrsctplib/user_environment.c', |
| 43 'usrsctplib/user_environment.h', |
| 44 'usrsctplib/user_inpcb.h', |
| 45 'usrsctplib/user_ip6_var.h', |
| 46 'usrsctplib/user_ip_icmp.h', |
| 30 'usrsctplib/user_mbuf.c', | 47 'usrsctplib/user_mbuf.c', |
| 48 'usrsctplib/user_mbuf.h', |
| 49 'usrsctplib/user_queue.h', |
| 31 'usrsctplib/user_recv_thread.c', | 50 'usrsctplib/user_recv_thread.c', |
| 51 'usrsctplib/user_recv_thread.h', |
| 52 'usrsctplib/user_route.h', |
| 32 'usrsctplib/user_sctp_timer_iterate.c', | 53 'usrsctplib/user_sctp_timer_iterate.c', |
| 33 'usrsctplib/user_socket.c', | 54 'usrsctplib/user_socket.c', |
| 55 'usrsctplib/user_socketvar.h', |
| 56 'usrsctplib/user_uma.h', |
| 34 'usrsctplib/netinet/sctp_asconf.c', | 57 'usrsctplib/netinet/sctp_asconf.c', |
| 58 'usrsctplib/netinet/sctp_asconf.h', |
| 35 'usrsctplib/netinet/sctp_auth.c', | 59 'usrsctplib/netinet/sctp_auth.c', |
| 60 'usrsctplib/netinet/sctp_auth.h', |
| 36 'usrsctplib/netinet/sctp_bsd_addr.c', | 61 'usrsctplib/netinet/sctp_bsd_addr.c', |
| 62 'usrsctplib/netinet/sctp_bsd_addr.h', |
| 37 'usrsctplib/netinet/sctp_callout.c', | 63 'usrsctplib/netinet/sctp_callout.c', |
| 64 'usrsctplib/netinet/sctp_callout.h', |
| 38 'usrsctplib/netinet/sctp_cc_functions.c', | 65 'usrsctplib/netinet/sctp_cc_functions.c', |
| 66 'usrsctplib/netinet/sctp_constants.h', |
| 39 'usrsctplib/netinet/sctp_crc32.c', | 67 'usrsctplib/netinet/sctp_crc32.c', |
| 68 'usrsctplib/netinet/sctp_crc32.h', |
| 69 'usrsctplib/netinet/sctp_hashdriver.h', |
| 40 'usrsctplib/netinet/sctp_hashdriver.c', | 70 'usrsctplib/netinet/sctp_hashdriver.c', |
| 71 'usrsctplib/netinet/sctp_header.h', |
| 41 'usrsctplib/netinet/sctp_indata.c', | 72 'usrsctplib/netinet/sctp_indata.c', |
| 73 'usrsctplib/netinet/sctp_indata.h', |
| 42 'usrsctplib/netinet/sctp_input.c', | 74 'usrsctplib/netinet/sctp_input.c', |
| 75 'usrsctplib/netinet/sctp_input.h', |
| 76 'usrsctplib/netinet/sctp_lock_userspace.h', |
| 77 'usrsctplib/netinet/sctp_os.h', |
| 78 'usrsctplib/netinet/sctp_os_userspace.h', |
| 43 'usrsctplib/netinet/sctp_output.c', | 79 'usrsctplib/netinet/sctp_output.c', |
| 80 'usrsctplib/netinet/sctp_output.h', |
| 44 'usrsctplib/netinet/sctp_pcb.c', | 81 'usrsctplib/netinet/sctp_pcb.c', |
| 82 'usrsctplib/netinet/sctp_pcb.h', |
| 45 'usrsctplib/netinet/sctp_peeloff.c', | 83 'usrsctplib/netinet/sctp_peeloff.c', |
| 46 'usrsctplib/netinet/sctp_sha1.c', | 84 'usrsctplib/netinet/sctp_peeloff.h', |
| 47 'usrsctplib/netinet/sctp_ss_functions.c', | 85 'usrsctplib/netinet/sctp_ss_functions.c', |
| 86 'usrsctplib/netinet/sctp_structs.h', |
| 48 'usrsctplib/netinet/sctp_sysctl.c', | 87 'usrsctplib/netinet/sctp_sysctl.c', |
| 88 'usrsctplib/netinet/sctp_sysctl.h', |
| 89 'usrsctplib/netinet/sctp_timer.c', |
| 90 'usrsctplib/netinet/sctp_timer.h', |
| 91 'usrsctplib/netinet/sctp_uio.h', |
| 49 'usrsctplib/netinet/sctp_userspace.c', | 92 'usrsctplib/netinet/sctp_userspace.c', |
| 50 'usrsctplib/netinet/sctp_timer.c', | |
| 51 'usrsctplib/netinet/sctp_usrreq.c', | 93 'usrsctplib/netinet/sctp_usrreq.c', |
| 52 'usrsctplib/netinet/sctputil.c', | 94 'usrsctplib/netinet/sctputil.c', |
| 95 'usrsctplib/netinet/sctputil.h', |
| 96 'usrsctplib/netinet/sctp_var.h', |
| 53 'usrsctplib/netinet6/sctp6_usrreq.c', | 97 'usrsctplib/netinet6/sctp6_usrreq.c', |
| 98 'usrsctplib/netinet6/sctp6_var.h', |
| 54 ], # sources | 99 ], # sources |
| 55 'conditions': [ | 100 'conditions': [ |
| 56 ['OS=="linux"', { | 101 ['OS=="linux"', { |
| 57 'defines': [ | 102 'defines': [ |
| 58 'HAVE_INET_ADDR', | 103 'HAVE_INET_ADDR', |
| 59 'HAVE_SOCKET', | 104 'HAVE_SOCKET', |
| 60 '__Userspace_os_Linux', | 105 '__Userspace_os_Linux', |
| 61 ], | 106 ], |
| 62 'ccflags!': [ '-Werror', '-Wall' ], | 107 'cflags!': [ '-Werror', '-Wall' ], |
| 63 'ccflags': [ '-w' ], | 108 'cflags': [ '-w' ], |
| 64 }], | 109 }], |
| 65 ['OS=="mac"', { | 110 ['OS=="mac"', { |
| 66 'defines': [ | 111 'defines': [ |
| 67 'HAVE_INET_ADDR', | 112 'HAVE_INET_ADDR', |
| 68 'HAVE_SA_LEN', | 113 'HAVE_SA_LEN', |
| 69 'HAVE_SCONN_LEN', | 114 'HAVE_SCONN_LEN', |
| 70 'HAVE_SIN6_LEN', | 115 'HAVE_SIN6_LEN', |
| 71 'HAVE_SIN_LEN', | 116 'HAVE_SIN_LEN', |
| 72 'HAVE_SOCKET', | 117 'HAVE_SOCKET', |
| 73 'INET6', | 118 'INET6', |
| 74 '__APPLE_USE_RFC_2292', | 119 '__APPLE_USE_RFC_2292', |
| 75 '__Userspace_os_Darwin', | 120 '__Userspace_os_Darwin', |
| 76 ], | 121 ], |
| 77 # TODO(ldixon): explore why gyp cflags here does not get picked up. | 122 # TODO(ldixon): explore why gyp cflags here does not get picked up. |
| 78 'xcode_settings': { | 123 'xcode_settings': { |
| 79 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], | 124 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], |
| 80 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], | 125 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], |
| 81 }, | 126 }, |
| 82 }], | 127 }], |
| 83 ['OS=="win"', { | 128 ['OS=="win"', { |
| 84 'defines': [ | 129 'defines': [ |
| 85 'INET6', | 130 'INET6', |
| 86 '__Userspace_os_Windows', | 131 '__Userspace_os_Windows', |
| 87 ], | 132 ], |
| 88 'ccflags!': [ '/W3', '/WX' ], | 133 'cflags!': [ '/W3', '/WX' ], |
| 89 'ccflags': [ '/w' ], | 134 'cflags': [ '/w' ], |
| 135 # TODO(ldixon) : Remove this disable. |
| 136 'msvs_disabled_warnings': [ 4700, 4013, 4018 ], |
| 90 }, { # OS != "win", | 137 }, { # OS != "win", |
| 91 'defines': [ | 138 'defines': [ |
| 92 'NON_WINDOWS_DEFINE', | 139 'NON_WINDOWS_DEFINE', |
| 93 ], | 140 ], |
| 94 }], | 141 }], |
| 95 ], # conditions | 142 ], # conditions |
| 96 }, # target usrsctp | 143 }, # target usrsctp |
| 97 ], # targets | 144 ], # targets |
| 98 } | 145 } |
| OLD | NEW |