Convert GN visibility to be a list.
[pdfium.git] / BUILD.gn
index ff72a1d..c4c802e 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -116,7 +116,7 @@ static_library("pdfium") {
 }
 
 # Targets below this are only visible within this file.
-visibility = ":*"
+visibility = [ ":*" ]
 
 component("safemath") {
   sources = [
@@ -127,7 +127,7 @@ component("safemath") {
     "third_party/numerics/safe_conversions_impl.h",
     "third_party/numerics/safe_math.h",
     "third_party/numerics/safe_math_impl.h",
-  ],
+  ]
 }
 
 static_library("fdrm") {
@@ -525,7 +525,6 @@ static_library("fxcrt") {
     "core/src/fxcrt/fx_basic_list.cpp",
     "core/src/fxcrt/fx_basic_maps.cpp",
     "core/src/fxcrt/fx_basic_memmgr.cpp",
-    "core/src/fxcrt/fx_basic_memmgr_mini.cpp",
     "core/src/fxcrt/fx_basic_plex.cpp",
     "core/src/fxcrt/fx_basic_utf.cpp",
     "core/src/fxcrt/fx_basic_util.cpp",
@@ -535,7 +534,6 @@ static_library("fxcrt") {
     "core/src/fxcrt/fx_unicode.cpp",
     "core/src/fxcrt/fx_xml_composer.cpp",
     "core/src/fxcrt/fx_xml_parser.cpp",
-    "core/src/fxcrt/mem_int.h",
     "core/src/fxcrt/plex.h",
     "core/src/fxcrt/xml_int.h",
   ]
@@ -805,10 +803,12 @@ static_library("javascript") {
   }
   configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
   include_dirs = [
+    "//v8",
     "//v8/include",
   ]
   deps = [
     "//v8",
+    "//v8:v8_libplatform",
   ]
   forward_dependent_configs_from = [ "//v8" ]
 }
@@ -825,6 +825,7 @@ static_library("jsapi") {
   }
   configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
   include_dirs = [
+    "//v8",
     "//v8/include",
   ]
   deps = [