SCsub 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #!/usr/bin/env python
  2. Import('env')
  3. Import('env_modules')
  4. env_webp = env_modules.Clone()
  5. # Thirdparty source files
  6. if (env['builtin_libwebp'] != 'no'):
  7. thirdparty_dir = "#thirdparty/libwebp/"
  8. thirdparty_sources = [
  9. "dec/alpha_dec.c",
  10. "dec/buffer_dec.c",
  11. "dec/frame_dec.c",
  12. "dec/idec_dec.c",
  13. "dec/io_dec.c",
  14. "dec/quant_dec.c",
  15. "dec/tree_dec.c",
  16. "dec/vp8_dec.c",
  17. "dec/vp8l_dec.c",
  18. "dec/webp_dec.c",
  19. "demux/anim_decode.c",
  20. "demux/demux.c",
  21. "dsp/alpha_processing.c",
  22. "dsp/alpha_processing_mips_dsp_r2.c",
  23. "dsp/alpha_processing_neon.c",
  24. "dsp/alpha_processing_sse2.c",
  25. "dsp/alpha_processing_sse41.c",
  26. "dsp/cost.c",
  27. "dsp/cost_mips32.c",
  28. "dsp/cost_mips_dsp_r2.c",
  29. "dsp/cost_neon.c",
  30. "dsp/cost_sse2.c",
  31. "dsp/cpu.c",
  32. "dsp/dec.c",
  33. "dsp/dec_clip_tables.c",
  34. "dsp/dec_mips32.c",
  35. "dsp/dec_mips_dsp_r2.c",
  36. "dsp/dec_msa.c",
  37. "dsp/dec_neon.c",
  38. "dsp/dec_sse2.c",
  39. "dsp/dec_sse41.c",
  40. "dsp/enc.c",
  41. "dsp/enc_mips32.c",
  42. "dsp/enc_mips_dsp_r2.c",
  43. "dsp/enc_msa.c",
  44. "dsp/enc_neon.c",
  45. "dsp/enc_sse2.c",
  46. "dsp/enc_sse41.c",
  47. "dsp/filters.c",
  48. "dsp/filters_mips_dsp_r2.c",
  49. "dsp/filters_msa.c",
  50. "dsp/filters_neon.c",
  51. "dsp/filters_sse2.c",
  52. "dsp/lossless.c",
  53. "dsp/lossless_enc.c",
  54. "dsp/lossless_enc_mips32.c",
  55. "dsp/lossless_enc_mips_dsp_r2.c",
  56. "dsp/lossless_enc_msa.c",
  57. "dsp/lossless_enc_neon.c",
  58. "dsp/lossless_enc_sse2.c",
  59. "dsp/lossless_enc_sse41.c",
  60. "dsp/lossless_mips_dsp_r2.c",
  61. "dsp/lossless_msa.c",
  62. "dsp/lossless_neon.c",
  63. "dsp/lossless_sse2.c",
  64. "dsp/rescaler.c",
  65. "dsp/rescaler_mips32.c",
  66. "dsp/rescaler_mips_dsp_r2.c",
  67. "dsp/rescaler_msa.c",
  68. "dsp/rescaler_neon.c",
  69. "dsp/rescaler_sse2.c",
  70. "dsp/ssim.c",
  71. "dsp/ssim_sse2.c",
  72. "dsp/upsampling.c",
  73. "dsp/upsampling_mips_dsp_r2.c",
  74. "dsp/upsampling_msa.c",
  75. "dsp/upsampling_neon.c",
  76. "dsp/upsampling_sse2.c",
  77. "dsp/upsampling_sse41.c",
  78. "dsp/yuv.c",
  79. "dsp/yuv_mips32.c",
  80. "dsp/yuv_mips_dsp_r2.c",
  81. "dsp/yuv_neon.c",
  82. "dsp/yuv_sse2.c",
  83. "dsp/yuv_sse41.c",
  84. "enc/alpha_enc.c",
  85. "enc/analysis_enc.c",
  86. "enc/backward_references_cost_enc.c",
  87. "enc/backward_references_enc.c",
  88. "enc/config_enc.c",
  89. "enc/cost_enc.c",
  90. "enc/filter_enc.c",
  91. "enc/frame_enc.c",
  92. "enc/histogram_enc.c",
  93. "enc/iterator_enc.c",
  94. "enc/near_lossless_enc.c",
  95. "enc/picture_csp_enc.c",
  96. "enc/picture_enc.c",
  97. "enc/picture_psnr_enc.c",
  98. "enc/picture_rescale_enc.c",
  99. "enc/picture_tools_enc.c",
  100. "enc/predictor_enc.c",
  101. "enc/quant_enc.c",
  102. "enc/syntax_enc.c",
  103. "enc/token_enc.c",
  104. "enc/tree_enc.c",
  105. "enc/vp8l_enc.c",
  106. "enc/webp_enc.c",
  107. "mux/anim_encode.c",
  108. "mux/muxedit.c",
  109. "mux/muxinternal.c",
  110. "mux/muxread.c",
  111. "utils/bit_reader_utils.c",
  112. "utils/bit_writer_utils.c",
  113. "utils/color_cache_utils.c",
  114. "utils/filters_utils.c",
  115. "utils/huffman_encode_utils.c",
  116. "utils/huffman_utils.c",
  117. "utils/quant_levels_dec_utils.c",
  118. "utils/quant_levels_utils.c",
  119. "utils/random_utils.c",
  120. "utils/rescaler_utils.c",
  121. "utils/thread_utils.c",
  122. "utils/utils.c",
  123. ]
  124. thirdparty_sources = [thirdparty_dir + "src/" + file for file in thirdparty_sources]
  125. env_webp.add_source_files(env.modules_sources, thirdparty_sources)
  126. env_webp.Append(CPPPATH=[thirdparty_dir, thirdparty_dir + "src/"])
  127. # Godot source files
  128. env_webp.add_source_files(env.modules_sources, "*.cpp")