@@ -145,14 +145,20 @@ def gen_linux(arch, self_contained, args):
145145
146146 args .update ({
147147 "skia_use_vulkan" : True ,
148- "skia_use_x11" : False
148+ "skia_use_x11" : False ,
149+ "skia_use_system_freetype2" : not self_contained ,
150+ "cc" : "clang" ,
151+ "cxx" : "clang++" ,
152+ "target_os" : "linux" ,
153+ "target_cpu" : arch ,
154+ "skia_use_icu" : False ,
155+ "skia_use_piex" : True ,
156+ "skia_use_system_expat" : False , # consider system (ABI seems to be stable)
157+ "skia_use_system_libjpeg_turbo" : False ,
158+ "skia_use_system_libpng" : False ,
159+ "skia_use_system_libwebp" : False ,
160+ "skia_use_system_zlib" : False , # consider system (ABI seems to be stable)
149161 })
150-
151-
152- args ["cc" ] = "clang"
153- args ["cxx" ] = "clang++"
154- args ["target_os" ] = "linux"
155- args ["target_cpu" ] = arch
156162 args ["extra_cflags" ].extend ([
157163 "--target=" + llvm_target ,
158164 "--sysroot=/sysroots/" + llvm_target
@@ -219,16 +225,7 @@ def build_target(target_os, arch, self_contained, debug):
219225 "extra_cflags_cc" : [],
220226 "extra_ldflags" : [],
221227 "skia_enable_skottie" : True ,
222- "skia_use_harfbuzz" : False ,
223- "skia_use_icu" : False ,
224- "skia_use_piex" : True ,
225- "skia_use_system_expat" : False ,
226- "skia_use_system_freetype2" : False ,
227- "skia_use_system_libjpeg_turbo" : False ,
228- "skia_use_system_libpng" : False ,
229- "skia_use_system_libwebp" : False ,
230- "skia_use_system_zlib" : False ,
231-
228+ "skia_use_harfbuzz" : False ,
232229 }
233230
234231 if canonical_os == "linux" :
0 commit comments