Port plugin building to AMBuild.
Former-commit-id: 9ac73de5b247da341b0b4cdf00ec3c7e0472be82
This commit is contained in:
@ -23,4 +23,4 @@ binary.sources = [
|
||||
'Binary.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
||||
AMXX.amxxpc = builder.Add(binary)
|
||||
|
@ -35,4 +35,4 @@ binary.sources = [
|
||||
'memfile.c',
|
||||
]
|
||||
|
||||
AMXX.libpc300 = [builder.Add(binary)]
|
||||
AMXX.libpc300 = builder.Add(binary)
|
||||
|
@ -763,6 +763,7 @@ SC_VDECL int sc_needsemicolon;/* semicolon required to terminate expressions? */
|
||||
SC_VDECL int sc_dataalign; /* data alignment value */
|
||||
SC_VDECL int sc_alignnext; /* must frame of the next function be aligned? */
|
||||
SC_VDECL int pc_docexpr; /* must expression be attached to documentation comment? */
|
||||
SC_VDECL int sc_showincludes; /* show include files? */
|
||||
SC_VDECL int curseg; /* 1 if currently parsing CODE, 2 if parsing DATA */
|
||||
SC_VDECL cell sc_stksize; /* stack size */
|
||||
SC_VDECL cell sc_amxlimit; /* abstract machine size limit */
|
||||
|
@ -1013,6 +1013,9 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
||||
hwndFinish=(HWND)0;
|
||||
break;
|
||||
#endif
|
||||
case 'h':
|
||||
sc_showincludes = 1;
|
||||
break;
|
||||
case 'i':
|
||||
strncpy(str,option_value(ptr),sizeof str); /* set name of include directory */
|
||||
str[sizeof(str)-1]='\0';
|
||||
|
@ -142,6 +142,9 @@ static char *extensions[] = { ".inc", ".p", ".pawn" };
|
||||
*ext='\0'; /* restore filename */
|
||||
return FALSE;
|
||||
} /* if */
|
||||
if (sc_showincludes && sc_status==statFIRST) {
|
||||
fprintf(stdout, "Note: including file: %s\n", name);
|
||||
}
|
||||
PUSHSTK_P(inpf);
|
||||
PUSHSTK_P(inpfname); /* pointer to current file name */
|
||||
PUSHSTK_P(curlibrary);
|
||||
|
@ -85,6 +85,7 @@ SC_VDEFINE int sc_rationaltag=0; /* tag for rational numbers */
|
||||
SC_VDEFINE int rational_digits=0; /* number of fractional digits */
|
||||
SC_VDEFINE int sc_allowproccall=0; /* allow/detect tagnames in lex() */
|
||||
SC_VDEFINE short sc_is_utf8=FALSE; /* is this source file in UTF-8 encoding */
|
||||
SC_VDEFINE int sc_showincludes=0; /* show include files */
|
||||
|
||||
SC_VDEFINE constvalue sc_automaton_tab = { NULL, "", 0, 0}; /* automaton table */
|
||||
SC_VDEFINE constvalue sc_state_tab = { NULL, "", 0, 0}; /* state table */
|
||||
|
Reference in New Issue
Block a user