Advertisement
peterphonic

Sconcript

Jan 29th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. Import('envService')
  2. import os
  3.  
  4. envService.validate_supported_platform('win32')
  5.  
  6. env = envService.get_envJava().Clone()
  7.  
  8. env.USE_DDS()
  9.  
  10. idl_output_dir = env['VARIANT_DIR_ROOT'] + os.sep + env.current_path() + os.sep + 'src-variant'
  11. idl_command = env['ENV']['DDS_ROOT'] + '/bin/idlpp.exe -I ' + env['ENV']['DDS_ROOT'] + '/etc/idl -S -l java -d ' + idl_output_dir + ' $SOURCE'
  12.  
  13. env.Append(JAVACFLAGS=['-g:source,lines,vars', '-target', '1.7', '-source', '1.7', '-Xlint'])
  14.  
  15. generated_java_target = env.Command(target=['src-variant\\adacel\\speech\\TimeValue.java'],
  16.                                     source='#sr\\speech\\common_dds\\TimeValue.idl',
  17.                                     action=[idl_command])
  18.  
  19. classes_tgt = env.Java(target='classes',
  20.                        source=generated_java_target)
  21.  
  22. for i in classes_tgt:
  23.     print(str(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement