4
void checkLinkArgs(int* k, int* s, int* i, int* j, char** args, char** argv) {
5
if (strncmp(argv[*j], "-DLL", 4) == 0 ||
6
strncmp(argv[*j], "/DLL", 4) == 0) {
9
if (strncmp(argv[*j], "-entry", 6) == 0 ||
10
strncmp(argv[*j], "/entry", 6) == 0 ||
11
strncmp(argv[*j], "-ENTRY", 6) == 0 ||
12
strncmp(argv[*j], "/ENTRY",6 ) == 0) {
15
if (strncmp(argv[*j], "-subsystem:", 11) == 0 ||
16
strncmp(argv[*j], "/subsystem:", 11) == 0 ||
17
strncmp(argv[*j], "-SUBSYSTEM:", 11) == 0 ||
18
strncmp(argv[*j], "/SUBSYSTEM:", 11) == 0) {
23
void addLinkArgs(int k, int s, int *i, int *j, char** args, char** argv) {
24
args[(*i)++] = "/LIBPATH:\"" WCE_LIB "\"";
25
args[(*i)++] = "/LIBPATH:\"" WCE_CRT "\"";
26
args[(*i)++] = "/LIBPATH:\"" ATL_LIB "\"";
27
args[(*i)++] = "/LIBPATH:\"" OGLES_SDK_LIB "\"";
28
args[(*i)++] = "/NODEFAULTLIB";
30
args[(*i)++] = "/MAP";
31
args[(*i)++] = "/MAPINFO:EXPORTS";
33
if (getenv("LOCK_DLLS") != NULL) {
34
// lock our dlls in memory
35
args[(*i)++] = "/SECTION:.text,\!P";
36
args[(*i)++] = "/SECTION:.rdata,\!P";
39
#ifdef HAVE_SHUNT // simple test to see if we're in configure or not
40
if(getenv("NO_SHUNT") == NULL) {
41
args[(*i)++] = "/LIBPATH:\"" SHUNT_LIB "\"";
42
args[(*i)++] = "mozce_shunt.lib";
46
args[(*i)++] = "corelibc.lib";
47
args[(*i)++] = "coredll.lib";
48
args[(*i)++] = "ceshell.lib";
49
args[(*i)++] = "mmtimer.lib";
52
args[(*i)++] = "/ENTRY:main";
55
args[(*i)++] = "/subsystem:\"WINDOWSCE,5.02\"";