Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: third_party/usrsctp/BUILD.gn

Issue 779473002: gn format //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/stp/BUILD.gn ('k') | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 6
7 config("usrsctp_config") { 7 config("usrsctp_config") {
8 include_dirs = [ 8 include_dirs = [
9 "usrsctplib", 9 "usrsctplib",
10 "usrsctplib/netinet", 10 "usrsctplib/netinet",
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "usrsctplib/user_malloc.h", 66 "usrsctplib/user_malloc.h",
67 "usrsctplib/user_mbuf.c", 67 "usrsctplib/user_mbuf.c",
68 "usrsctplib/user_mbuf.h", 68 "usrsctplib/user_mbuf.h",
69 "usrsctplib/user_queue.h", 69 "usrsctplib/user_queue.h",
70 "usrsctplib/user_recv_thread.c", 70 "usrsctplib/user_recv_thread.c",
71 "usrsctplib/user_recv_thread.h", 71 "usrsctplib/user_recv_thread.h",
72 "usrsctplib/user_route.h", 72 "usrsctplib/user_route.h",
73 "usrsctplib/user_socket.c", 73 "usrsctplib/user_socket.c",
74 "usrsctplib/user_socketvar.h", 74 "usrsctplib/user_socketvar.h",
75 "usrsctplib/user_uma.h", 75 "usrsctplib/user_uma.h",
76 "usrsctplib/usrsctp.h" 76 "usrsctplib/usrsctp.h",
77 ] 77 ]
78 78
79 defines = [ 79 defines = [
80 "SCTP_PROCESS_LEVEL_LOCKS", 80 "SCTP_PROCESS_LEVEL_LOCKS",
81 "SCTP_SIMPLE_ALLOCATOR", 81 "SCTP_SIMPLE_ALLOCATOR",
82 "__Userspace__", 82 "__Userspace__",
83
83 # "SCTP_DEBUG", # Uncomment for SCTP debugging. 84 # "SCTP_DEBUG", # Uncomment for SCTP debugging.
84 ] 85 ]
85 86
86 configs -= [ "//build/config/compiler:chromium_code" ] 87 configs -= [ "//build/config/compiler:chromium_code" ]
87 configs += [ "//build/config/compiler:no_chromium_code" ] 88 configs += [ "//build/config/compiler:no_chromium_code" ]
88 89
89 public_configs = [ ":usrsctp_config" ] 90 public_configs = [ ":usrsctp_config" ]
90 91
91 if (use_openssl) { 92 if (use_openssl) {
92 defines += [ "SCTP_USE_OPENSSL_SHA1" ] 93 defines += [ "SCTP_USE_OPENSSL_SHA1" ]
93 } else { 94 } else {
94 defines += [ "SCTP_USE_NSS_SHA1" ] 95 defines += [ "SCTP_USE_NSS_SHA1" ]
95 } 96 }
96 97
97 if (is_linux || is_android) { 98 if (is_linux || is_android) {
98 defines += [ "__Userspace_os_Linux" ] 99 defines += [ "__Userspace_os_Linux" ]
99 } else if (is_mac || is_ios) { 100 } else if (is_mac || is_ios) {
100 defines += [ 101 defines += [
101 "HAVE_SA_LEN", 102 "HAVE_SA_LEN",
102 "HAVE_SCONN_LEN", 103 "HAVE_SCONN_LEN",
103 "__APPLE_USE_RFC_2292", 104 "__APPLE_USE_RFC_2292",
104 "__Userspace_os_Darwin", 105 "__Userspace_os_Darwin",
105 ] 106 ]
106 } 107 }
107 108
108 if (is_win) { 109 if (is_win) {
109 defines += [ 110 defines += [
110 "__Userspace_os_Windows", 111 "__Userspace_os_Windows",
112
111 # Manually setting WINVER and _WIN32_WINNT is needed because Chrome 113 # Manually setting WINVER and _WIN32_WINNT is needed because Chrome
112 # sets WINVER to a newer version of windows. But compiling usrsctp 114 # sets WINVER to a newer version of windows. But compiling usrsctp
113 # this way would is incompatible with windows XP. 115 # this way would is incompatible with windows XP.
114 "WINVER=0x0502", 116 "WINVER=0x0502",
115 "_WIN32_WINNT=0x0502", 117 "_WIN32_WINNT=0x0502",
116 ] 118 ]
117 } else { 119 } else {
118 defines += [ "NON_WINDOWS_DEFINE" ] 120 defines += [ "NON_WINDOWS_DEFINE" ]
119 } 121 }
120 122
121 if (is_clang) { 123 if (is_clang) {
122 cflags = [ "-Wno-incompatible-pointer-types" ] 124 cflags = [ "-Wno-incompatible-pointer-types" ]
123 } 125 }
124 126
125 deps = [ 127 deps = [
126 "//crypto:platform", 128 "//crypto:platform",
127 ] 129 ]
128 } 130 }
OLDNEW
« no previous file with comments | « third_party/stp/BUILD.gn ('k') | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698