rescmn.pas 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. Copyright (c) 2008 by Giulio Bernardi
  3. Common resource target infos
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit rescmn;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. Systems;
  22. const
  23. res_elf_info : tresinfo =
  24. (
  25. id : res_elf;
  26. resbin : 'fpcres';
  27. rescmd : '-o $OBJ -a $ARCH -of elf $DBG';
  28. { cross compiled windres can be used to compile .rc files on linux }
  29. rcbin : 'windres';
  30. rccmd : '--include $INC -O res -o $RES $RC';
  31. resourcefileclass : nil;
  32. resflags : [];
  33. );
  34. res_ext_info : tresinfo =
  35. (
  36. id : res_ext;
  37. resbin : 'fpcres';
  38. rescmd : '-o $OBJ -a $ENDIAN -of external $DBG';
  39. rcbin : 'windres';
  40. rccmd : '--include $INC -O res -o $RES $RC';
  41. resourcefileclass : nil;
  42. resflags : [res_external_file];
  43. );
  44. implementation
  45. end.