File: pas2jni.1

package info (click to toggle)
fpc 3.2.0%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 338,552 kB
  • sloc: pascal: 3,794,737; xml: 191,997; ansic: 9,637; asm: 8,482; java: 5,346; sh: 4,664; yacc: 3,751; makefile: 2,688; lex: 2,538; javascript: 2,375; sql: 929; php: 473; cpp: 145; perl: 134; sed: 132; csh: 34; tcl: 7
file content (67 lines) | stat: -rw-r--r-- 1,930 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.TH pas2jni 1 "12 Dec 1999" "Free Pascal" "Free Pascal Java Native Interface generation tool"
.SH NAME
pas2jni - Free Pascal Java Native Interface generation tool

.SH SYNOPSIS
.B pas2jni
[\fIoptions\fR] \fI<unit> \fR[\fI<unit2> <unit3> \fR...]

Generate a Java native interface description and library from compiled Free Pascal units.
pas2jni generates per unit 2 files: a library that provides access to the functions and 
procedures in the pascal unit in a manner that Java understands, and a .java file that 
describes the library, and can be used to access the library from Java.

.SH OPTIONS
.TP
.B \-U<path> 
Unit search path, semicolon delimited. Wildcards are allowed.
.TP
.B \-L<name> 
Set output library name. By default, this is the name of the unit followed by 'jni'.
.TP
.B \-P<name> 
Set Java package name. This is by default 'pas'. 
.TP
.B \-O<path> 
Set output path for Pascal files. This is the current directory, by default.
.TP
.B \-J<path> 
Set output path for Java files. By default, this is 'pas'.
.TP
.B \-D<prog> 
Set full path to the "ppudump" program. The ppudump program is needed to analyse the contents of the unit files.
.TP
.B \-I<list> 
Include the list of specified objects in the output. 
The list is semicolon delimited. 
To read this list from a file use \fB\-I\fR@<file>
.TP
.B \-E <list> 
Exclude the list of specified objects from the output. The list is
semicolon delimited. To read this list from a file use \fB\-E\fR@<file>
.TP
.B -?
Show a help message.
.SH EXAMPLES
The following will create a file
.I pas/getopts.java 
and a library file
.I getoptsjni.pas
unit from the standard getopts unit:

pas2jni units/x86_64-linux/getopts.ppu

The following will create a file
.I getopts.java 
and a library file
.I pasgetopts.pas
unit from the standard getopts unit:

pas2jni -J. -O. -Lpasgetopts -units/x86_64-linux/getopts.ppu


.SH "SEE ALSO"
.IP
.BR  java (1)
.BR  fpc (1)
.BR  javapp (1)