OLD | NEW |
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/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 13 matching lines...) Expand all Loading... |
24 include_nss_libpkix = is_ios | 24 include_nss_libpkix = is_ios |
25 | 25 |
26 config("nspr_config") { | 26 config("nspr_config") { |
27 defines = [ "NO_NSPR_10_SUPPORT" ] | 27 defines = [ "NO_NSPR_10_SUPPORT" ] |
28 include_dirs = [ | 28 include_dirs = [ |
29 "nspr/pr/include", | 29 "nspr/pr/include", |
30 "nspr/lib/ds", | 30 "nspr/lib/ds", |
31 "nspr/lib/libc/include", | 31 "nspr/lib/libc/include", |
32 ] | 32 ] |
33 | 33 |
34 if (component_mode != "shared_library") { | 34 if (!is_component_build) { |
35 defines += [ "NSPR_STATIC" ] | 35 defines += [ "NSPR_STATIC" ] |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 component("nspr") { | 39 component("nspr") { |
40 output_name = "crnspr" | 40 output_name = "crnspr" |
41 sources = [ | 41 sources = [ |
42 "nspr/lib/ds/plarena.c", | 42 "nspr/lib/ds/plarena.c", |
43 "nspr/lib/ds/plarena.h", | 43 "nspr/lib/ds/plarena.h", |
44 "nspr/lib/ds/plarenas.h", | 44 "nspr/lib/ds/plarenas.h", |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 ] | 348 ] |
349 | 349 |
350 public_deps = [ | 350 public_deps = [ |
351 ":nss_static", | 351 ":nss_static", |
352 ] | 352 ] |
353 | 353 |
354 if (include_nss_root_certs) { | 354 if (include_nss_root_certs) { |
355 public_deps += [ ":nssckbi" ] | 355 public_deps += [ ":nssckbi" ] |
356 } | 356 } |
357 | 357 |
358 if (component_mode == "shared_library") { | 358 if (is_component_build) { |
359 if (is_mac) { | 359 if (is_mac) { |
360 ldflags = [ "-all_load" ] | 360 ldflags = [ "-all_load" ] |
361 } else if (is_win) { | 361 } else if (is_win) { |
362 # Pass the def file to the linker. | 362 # Pass the def file to the linker. |
363 ldflags = | 363 ldflags = |
364 [ "/DEF:" + rebase_path("nss/exports_win.def", root_build_dir) ] | 364 [ "/DEF:" + rebase_path("nss/exports_win.def", root_build_dir) ] |
365 } | 365 } |
366 } | 366 } |
367 } | 367 } |
368 | 368 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 deps = [ | 1202 deps = [ |
1203 ":nspr", | 1203 ":nspr", |
1204 "//third_party/sqlite", | 1204 "//third_party/sqlite", |
1205 ] | 1205 ] |
1206 | 1206 |
1207 if (is_win && current_cpu == "x86") { | 1207 if (is_win && current_cpu == "x86") { |
1208 deps += [ ":nss_static_avx" ] | 1208 deps += [ ":nss_static_avx" ] |
1209 } | 1209 } |
1210 } | 1210 } |
1211 } # Windows/Mac/iOS. | 1211 } # Windows/Mac/iOS. |
OLD | NEW |