2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 03:39:53 +01:00
waf/waflib/Tools
Federico Pellegrin a02b71a163 protoc: add java support for protobuffers (#2049)
* protoc: added java support

Modified protoc to support also .proto -> .java generation. the .java file
name generated is not obvious as in C++/Python but follows a couple of rules
that were implemented.

As cxx/python and javaw Tools are quite different the implementation is not
as clean as for cxx/python but is hopefully fine (ie. protoc still uses
sources for input files while javac uses src_dir).

In javaw a small detail was added: a new attribute was added (gencode) that
instructs javac to look for source files also in the build directory. This
are realistically generated code (and .proto -> .java is an example) and
are therefore in the build. Default is false keeping all the previous
behaviour.

* protoc for java enhanchments (protoc version, regex, docs)

In configure stage get protoc version as java naming changes depending on the
version. Implement the version differences between version < 2 and > 2

Improve regex for option catching and implement a mix of them in playground
to verify it.

Add some documentation on how java filenames and paths are generated.

* protoc: build dir with generated code is automatically added, so no need to explicitly use gencode in javac
2017-09-26 19:17:40 +02:00
..
__init__.py
ar.py
asm.py Update the year in headers to 2017 2017-02-11 16:13:37 +01:00
bison.py
c_aliases.py Api docs 2016-06-25 20:10:04 +02:00
c_config.py
c_osx.py
c_preproc.py
c_tests.py
c.py
ccroot.py
clang.py Api docs 2016-06-25 21:30:32 +02:00
clangxx.py
compiler_c.py Api docs 2016-06-25 21:30:32 +02:00
compiler_cxx.py Typo 2016-06-26 00:16:51 +02:00
compiler_d.py Update the year in headers to 2017 2017-02-11 16:13:37 +01:00
compiler_fc.py Api docs 2016-06-25 21:30:32 +02:00
cs.py
cxx.py
d_config.py
d_scan.py Cleanup: Break multiple statements on multiple lines 2017-04-17 13:16:57 +02:00
d.py
dbus.py
dmd.py
errcheck.py Override ConfigSet.__getattr__ properly in errcheck 2017-04-22 22:29:17 +02:00
fc_config.py
fc_scan.py Update the year in headers to 2017 2017-02-11 16:13:37 +01:00
fc.py
flex.py Cleanup: Break multiple statements on multiple lines 2017-04-17 13:16:57 +02:00
g95.py
gas.py
gcc.py
gdc.py
gfortran.py
glib2.py
gnu_dirs.py
gxx.py
icc.py
icpc.py
ifort.py
intltool.py
irixcc.py
javaw.py
ldc2.py
lua.py
md5_tstamp.py Cleanup unused global statements 2017-09-02 23:34:15 +02:00
msvc.py Override the msvc linker through LINK_CXX 2017-08-25 20:23:16 +02:00
nasm.py
nobuild.py Added the tool called 'nobuild' to help troubleshoot build scripts 2015-12-23 17:55:44 +01:00
perl.py
python.py
qt5.py
ruby.py
suncc.py
suncxx.py
tex.py
vala.py
waf_unit_test.py Make unit testing interpreted scripts work. 2017-09-04 21:07:20 +02:00
winres.py
xlc.py Update the year in headers to 2017 2017-02-11 16:13:37 +01:00
xlcxx.py