瀏覽代碼

Merge pull request #33060 from bruvzg/ios_zlib

Fix missing `z_verbose` and `z_error` symbols in the debug iOS build.
Rémi Verschelde 6 年之前
父節點
當前提交
3c7cd84a84
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      core/SCsub
  2. 1 1
      modules/freetype/SCsub

+ 2 - 0
core/SCsub

@@ -80,6 +80,8 @@ if env['builtin_zlib']:
 	env_thirdparty.Prepend(CPPPATH=[thirdparty_zlib_dir])
 	# Needs to be available in main env too
 	env.Prepend(CPPPATH=[thirdparty_zlib_dir])
+	if (env['target'] == 'debug'):
+		env_thirdparty.Append(CPPDEFINES=['ZLIB_DEBUG'])
 
 	env_thirdparty.add_source_files(env.core_sources, thirdparty_zlib_sources)
 

+ 1 - 1
modules/freetype/SCsub

@@ -66,7 +66,7 @@ if env['builtin_freetype']:
     env.Prepend(CPPPATH=[thirdparty_dir + "/include"])
 
     env_freetype.Append(CPPDEFINES=['FT2_BUILD_LIBRARY', 'FT_CONFIG_OPTION_USE_PNG'])
-    if (env['target'] != 'release'):
+    if (env['target'] == 'debug'):
         env_freetype.Append(CPPDEFINES=['ZLIB_DEBUG'])
 
     # Also requires libpng headers