40b89b403eec0adc071f05296d07708ef0767acb
[openssl.git] / Configurations / 50-cppbuilder.conf
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         defines          => add("WIN32_LEAN_AND_MEAN", "OPENSSL_SYS_WIN32",
9                                 "L_ENDIAN", "DSO_WIN32", "_stricmp=stricmp",
10                                 "_strnicmp=strnicmp", "_malloca=malloc",
11                                 "_freea=free", "_setmode=setmode"),
12         cflags           => picker(default => add("-q -c",
13                                                   threads("-tM"),
14                                                   shared("-tR")),
15                                    debug   => "-Od -v -vi- -D_DEBUG",
16                                    release => "-O2"),
17         bin_cflags       => "-tWC",
18         lib_cflags       => shared("-tWD -D_WINDLL -D_DLL"),
19         coutflag         => "-o",
20         LD               => "ilink32",
21         LDFLAGS          => picker(default => "-ap -x -Gn -q",
22                                    debug   => '-j"$(BDS)\lib\win32c\debug" ' .
23                                               '-L"$(BDS)\lib\win32c\debug" -v',
24                                    release => '-j"$(BDS)\lib\win32c\release" ' .
25                                               '-L"$(BDS)\lib\win32c\release"'),
26         bin_lflags       => "-Tpe c0x32.obj wildargs.obj",
27         ldoutflag        => ",",
28         ldpostoutflag    => ",,",
29         ld_resp_delim    => " +\n",
30         ex_libs          => add(sub {
31             my @ex_libs = ("import32.lib",
32                            ($disabled{shared}
33                             ? ($disabled{threads} ? "cw32.lib" : "cw32mt.lib")
34                             : ($disabled{threads} ? "cw32i.lib" : "cw32mti.lib")));
35             push @ex_libs, ("crypt32.lib", "ws2_32.lib") unless $disabled{sock};
36             return join(" ", @ex_libs);
37         }),
38         AR               => "tlib",
39         ARFLAGS          => "/P256 /N /u",
40         ar_resp_delim    => " &\n",
41         RC               => "brcc32",
42         RCFLAGS          => '-i"$(BDS)\include\windows\sdk"',
43         rcoutflag        => "-fo",
44         shared_target    => "win-shared",
45         shared_ldflag    => "-Tpd c0d32.obj",
46         dso_lflags       => "-Tpd c0d32.obj",
47         lddefflag        => ",",
48         ldresflag        => ",",
49         ld_implib_rule   => 'implib $< $**',
50         dso_scheme       => "win32",
51     }
52 );