| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 | 6 |
| 7 if (is_linux) { | 7 if (is_linux) { |
| 8 # This is a dependency on NSS with no libssl. On Linux we use a built-in SSL | 8 # This is a dependency on NSS with no libssl. On Linux we use a built-in SSL |
| 9 # library but the system NSS libraries. Non-Linux platforms using NSS use the | 9 # library but the system NSS libraries. Non-Linux platforms using NSS use the |
| 10 # hermetic one in //third_party/nss. | 10 # hermetic one in //third_party/nss. |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 "nspr/pr/src/threads/prmon.c", | 206 "nspr/pr/src/threads/prmon.c", |
| 207 "nspr/pr/src/threads/prrwlock.c", | 207 "nspr/pr/src/threads/prrwlock.c", |
| 208 "nspr/pr/src/threads/prsem.c", | 208 "nspr/pr/src/threads/prsem.c", |
| 209 "nspr/pr/src/threads/prtpd.c", | 209 "nspr/pr/src/threads/prtpd.c", |
| 210 ] | 210 ] |
| 211 | 211 |
| 212 direct_dependent_configs = [ ":nspr_config" ] | 212 direct_dependent_configs = [ ":nspr_config" ] |
| 213 | 213 |
| 214 configs -= [ | 214 configs -= [ |
| 215 "//build/config/compiler:chromium_code", | 215 "//build/config/compiler:chromium_code", |
| 216 "//build/config/win:unicode", # Requires 8-bit mode. | |
| 217 "//build/config/win:lean_and_mean", # Won"t compile with lean and mean. | |
| 218 ] | 216 ] |
| 217 if (is_win) { |
| 218 configs -= [ |
| 219 "//build/config/win:unicode", # Requires 8-bit mode. |
| 220 "//build/config/win:lean_and_mean", # Won"t compile with lean and mean. |
| 221 ] |
| 222 } |
| 219 configs += [ "//build/config/compiler:no_chromium_code" ] | 223 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 220 | 224 |
| 225 cflags = [] |
| 221 defines = [ | 226 defines = [ |
| 222 "_NSPR_BUILD", | 227 "_NSPR_BUILD", |
| 223 "FORCE_PR_LOG", | 228 "FORCE_PR_LOG", |
| 224 ] | 229 ] |
| 225 | 230 |
| 226 include_dirs = [ | 231 include_dirs = [ |
| 227 "nspr/pr/include/private", | 232 "nspr/pr/include/private", |
| 228 ] | 233 ] |
| 229 | 234 |
| 230 if (is_win) { | 235 if (is_win) { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 "nss/lib/ckfw/object.c", | 428 "nss/lib/ckfw/object.c", |
| 424 "nss/lib/ckfw/session.c", | 429 "nss/lib/ckfw/session.c", |
| 425 "nss/lib/ckfw/sessobj.c", | 430 "nss/lib/ckfw/sessobj.c", |
| 426 "nss/lib/ckfw/slot.c", | 431 "nss/lib/ckfw/slot.c", |
| 427 "nss/lib/ckfw/token.c", | 432 "nss/lib/ckfw/token.c", |
| 428 "nss/lib/ckfw/wrap.c", | 433 "nss/lib/ckfw/wrap.c", |
| 429 ] | 434 ] |
| 430 | 435 |
| 431 configs -= [ | 436 configs -= [ |
| 432 "//build/config/compiler:chromium_code" | 437 "//build/config/compiler:chromium_code" |
| 433 "//build/config/win:unicode", # Requires 8-bit mode. | |
| 434 ] | 438 ] |
| 439 |
| 440 if (is_win) { |
| 441 configs -= [ |
| 442 "//build/config/win:unicode", # Requires 8-bit mode. |
| 443 ] |
| 444 } |
| 435 configs += [ "//build/config/compiler:no_chromium_code" ] | 445 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 436 | 446 |
| 437 include_dirs = [ "nss/lib/ckfw" ] | 447 include_dirs = [ "nss/lib/ckfw" ] |
| 438 direct_dependent_configs = [ ":nssckbi_config" ] | 448 direct_dependent_configs = [ ":nssckbi_config" ] |
| 439 | 449 |
| 440 deps = [ | 450 deps = [ |
| 441 ":nss_static", | 451 ":nss_static", |
| 442 ] | 452 ] |
| 443 forward_dependent_configs_from = deps | 453 forward_dependent_configs_from = deps |
| 444 } | 454 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 "nss/lib/freebl/mpi/primes.c", | 831 "nss/lib/freebl/mpi/primes.c", |
| 822 # unix_rand.c and win_rand.c are included by sysrand.c. | 832 # unix_rand.c and win_rand.c are included by sysrand.c. |
| 823 "nss/lib/freebl/unix_rand.c", | 833 "nss/lib/freebl/unix_rand.c", |
| 824 "nss/lib/freebl/win_rand.c", | 834 "nss/lib/freebl/win_rand.c", |
| 825 # debug_module.c is included by pk11load.c. | 835 # debug_module.c is included by pk11load.c. |
| 826 "nss/lib/pk11wrap/debug_module.c", | 836 "nss/lib/pk11wrap/debug_module.c", |
| 827 ] | 837 ] |
| 828 | 838 |
| 829 configs -= [ | 839 configs -= [ |
| 830 "//build/config/compiler:chromium_code" | 840 "//build/config/compiler:chromium_code" |
| 831 "//build/config/win:unicode", # Requires 8-bit mode. | |
| 832 ] | 841 ] |
| 842 if (is_win) { |
| 843 configs -= [ |
| 844 "//build/config/win:unicode", # Requires 8-bit mode. |
| 845 ] |
| 846 } |
| 833 configs += [ "//build/config/compiler:no_chromium_code" ] | 847 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 834 direct_dependent_configs = [ ":nss_static_config" ] | 848 direct_dependent_configs = [ ":nss_static_config" ] |
| 835 | 849 |
| 836 cflags = [] | 850 cflags = [] |
| 837 | 851 |
| 838 # Only need the defines and includes not in nss_static_config. | 852 # Only need the defines and includes not in nss_static_config. |
| 839 defines = [ | 853 defines = [ |
| 840 "MP_API_COMPATIBLE", | 854 "MP_API_COMPATIBLE", |
| 841 "NSS_DISABLE_DBM", | 855 "NSS_DISABLE_DBM", |
| 842 "RIJNDAEL_INCLUDE_TABLES", | 856 "RIJNDAEL_INCLUDE_TABLES", |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1154 |
| 1141 deps = [ | 1155 deps = [ |
| 1142 ":nspr", | 1156 ":nspr", |
| 1143 "//third_party/sqlite", | 1157 "//third_party/sqlite", |
| 1144 ] | 1158 ] |
| 1145 | 1159 |
| 1146 forward_dependent_configs_from = [ ":nspr" ] | 1160 forward_dependent_configs_from = [ ":nspr" ] |
| 1147 } | 1161 } |
| 1148 } # Windows/Mac/iOS. | 1162 } # Windows/Mac/iOS. |
| 1149 | 1163 |
| OLD | NEW |