2
0

50-cppbuilder.conf 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. my %targets = (
  2. "BC-32" => {
  3. inherit_from => [ "BASE_Windows" ],
  4. sys_id => "WIN32",
  5. bn_ops => "BN_LLONG",
  6. thread_scheme => "winthreads",
  7. cc => "bcc32c",
  8. CPP => "cpp32 -oCON -Sc -Sr",
  9. defines => add("WIN32_LEAN_AND_MEAN", "OPENSSL_SYS_WIN32",
  10. "L_ENDIAN", "DSO_WIN32", "_stricmp=stricmp",
  11. "_strnicmp=strnicmp", "_malloca=malloc",
  12. "_freea=free", "_setmode=setmode"),
  13. cflags => picker(default => add("-q -c",
  14. threads("-tM"),
  15. shared("-tR")),
  16. debug => "-Od -v -vi- -D_DEBUG",
  17. release => "-O2"),
  18. bin_cflags => "-tWC",
  19. lib_cflags => shared("-tWD -D_WINDLL -D_DLL"),
  20. coutflag => "-o",
  21. # -Sx isn't documented, but 'cpp32 -H -S' explains it:
  22. #
  23. # -Sx Omit preprocessed text in output
  24. makedepcmd => "cpp32 -oCON -Sx -Hp",
  25. makedep_scheme => "embarcadero",
  26. LD => "ilink32",
  27. LDFLAGS => picker(default => "-x -Gn -q -w-dup",
  28. debug => '-j"$(BDS)\lib\win32c\debug" ' .
  29. '-L"$(BDS)\lib\win32c\debug" -v',
  30. release => '-j"$(BDS)\lib\win32c\release" ' .
  31. '-L"$(BDS)\lib\win32c\release"'),
  32. bin_lflags => "-ap -Tpe c0x32.obj wildargs.obj",
  33. ldoutflag => ",",
  34. ldpostoutflag => ",,",
  35. ld_resp_delim => " +\n",
  36. ex_libs => add(sub {
  37. my @ex_libs = ("import32.lib",
  38. ($disabled{shared}
  39. ? ($disabled{threads} ? "cw32.lib" : "cw32mt.lib")
  40. : ($disabled{threads} ? "cw32i.lib" : "cw32mti.lib")));
  41. push @ex_libs, "ws2_32.lib" unless $disabled{sock};
  42. return join(" ", @ex_libs);
  43. }),
  44. AR => "tlib",
  45. ARFLAGS => "/P256 /N /u",
  46. ar_resp_delim => " &\n",
  47. RC => "brcc32",
  48. RCFLAGS => '-i"$(BDS)\include\windows\sdk"',
  49. rcoutflag => "-fo",
  50. shared_target => "win-shared",
  51. shared_ldflag => "-aa -Tpd c0d32.obj",
  52. lddefflag => ",",
  53. ldresflag => ",",
  54. ld_implib_rule => 'implib -a $< $**',
  55. dso_scheme => "win32",
  56. shared_defflag => '',
  57. perl_platform => 'Windows::cppbuilder',
  58. uplink_arch => 'common',
  59. }
  60. );