5

I'm using SWIG to generate a bunch of Java files -- I want the files to be part of a certain package ... right now after I generate them I have to go in and manually add the import declaration ... is there a way to template this into swig?

4

1 回答 1

9

只需要指定包如下

mkdir -p com/example/package
swig -java -package com.example.package -outdir com/example/package example.i
于 2012-08-16T21:50:31.013 回答