From 1e5ebaaa9c7722d24b2254b32b24de9456702fd5 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 11 Oct 2018 16:59:02 +0000 Subject: Replace most static_library entries with source_set. Per GN documentation, "static_library: A .lib or .a file (normally you'll want a source_set instead)." Change-Id: If2ce44157f4d6c8998a0417f398f3bd19c052795 Reviewed-on: https://pdfium-review.googlesource.com/c/43893 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- third_party/BUILD.gn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'third_party') diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index ed360a614d..04308329d7 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -23,7 +23,7 @@ config("pdfium_third_party_config") { configs = [ "..:pdfium_common_config" ] } -static_library("bigint") { +source_set("bigint") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -77,7 +77,7 @@ if (pdf_bundle_freetype) { # Tests may link against this even if the production library doesn't, # so it needs to be separate from it. - jumbo_static_library("fx_freetype") { + jumbo_source_set("fx_freetype") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -200,7 +200,7 @@ if (!pdf_use_skia && !pdf_use_skia_paths) { } } - jumbo_static_library("fx_agg") { + jumbo_source_set("fx_agg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -246,7 +246,7 @@ config("fx_lcms2_warnings") { } } -static_library("fx_lcms2") { +source_set("fx_lcms2") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -367,7 +367,7 @@ config("fx_libopenjpeg_warnings") { } } -static_library("fx_libopenjpeg") { +source_set("fx_libopenjpeg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -417,7 +417,7 @@ group("png") { } } -jumbo_static_library("fx_lpng") { +jumbo_source_set("fx_lpng") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -480,7 +480,7 @@ jumbo_static_library("fx_lpng") { } if (pdf_enable_xfa) { - static_library("fx_tiff") { + source_set("fx_tiff") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", -- cgit v1.2.3