Advertisement
wellthatsucks

Untitled

May 2nd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. libavcodec_x86_x86asm_optional_sources = {
  2. ...
  3. 'adpcm_g722_decoder' : files(['g722dsp.asm',]),
  4. 'adpcm_g722_encoder' : files(['g722dsp.asm',]),
  5. ...
  6. }
  7. later:
  8.  
  9. asm_gen = generator(x86asm,
  10. output : '@BASENAME@.o',
  11. arguments : [
  12. '-f', asm_format,
  13. '-i', asm_inc,
  14. '@INPUT@',
  15. '-o', '@OUTPUT@'] + asm_args)
  16.  
  17. later:
  18.  
  19. both components are enabled, x86asm_sources thus contains [..., 'g722dsp.asm', 'g722dsp.asm', ...]
  20.  
  21. sources += asm_gen.process(x86asm_sources)
  22.  
  23. Boom:
  24.  
  25. Multiple producers for Ninja target "avcodec@sha/g722dsp.o". Please rename your targets.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement