-outdir commandline option support => directory for proxy class and other language specific files

-help tidy up


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-08-07 17:22:12 +00:00
commit 06ed231b7d
17 changed files with 150 additions and 115 deletions

View file

@ -24,11 +24,11 @@ char cvsroot_perl5_cxx[] = "$Header$";
static const char *usage = (char*)"\
Perl5 Options (available with -perl5)\n\
-ldflags - Print runtime libraries to link with\n\
-static - Omit code related to dynamic loading.\n\
-nopm - Do not generate the .pm file.\n\
-proxy - Create proxy classes.\n\
-const - Wrap constants as constants and not variables (implies -shadow).\n\
-compat - Compatibility mode.\n\n";
-static - Omit code related to dynamic loading\n\
-nopm - Do not generate the .pm file\n\
-proxy - Create proxy classes\n\
-const - Wrap constants as constants and not variables (implies -proxy)\n\
-compat - Compatibility mode\n\n";
static int compat = 0;
@ -247,11 +247,12 @@ public:
}
pmfile = NewStringf("%s.pm", m);
}
String *filen = NewStringf("%s%s", Swig_file_dirname(outfile),pmfile);
String *filen = NewStringf("%s%s", SWIG_output_directory(),pmfile);
if ((f_pm = NewFile(filen,"w")) == 0) {
Printf(stderr,"Unable to open %s\n", filen);
SWIG_exit (EXIT_FAILURE);
}
Delete(filen); filen = NULL;
Swig_register_filebyname("pm",f_pm);
}
{