diff options
| author | William Deegan <bill@baddogconsulting.com> | 2021-11-16 18:55:47 (GMT) |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2021-11-16 18:55:47 (GMT) |
| commit | 6ef89cb024b01eee7debce6efb856437dd4e4372 (patch) | |
| tree | ff43883280da87f36fd6a37e87524dc0349c49be /doc/generated/builders.gen | |
| parent | 02f4075bf491267bbc872587d9845086560fc6b1 (diff) | |
| download | SCons-6ef89cb024b01eee7debce6efb856437dd4e4372.zip SCons-6ef89cb024b01eee7debce6efb856437dd4e4372.tar.gz SCons-6ef89cb024b01eee7debce6efb856437dd4e4372.tar.bz2 | |
Updated docs for 4.2.0 release
Diffstat (limited to 'doc/generated/builders.gen')
| -rw-r--r-- | doc/generated/builders.gen | 50 |
1 files changed, 37 insertions, 13 deletions
diff --git a/doc/generated/builders.gen b/doc/generated/builders.gen index 450f25b..e21c782 100644 --- a/doc/generated/builders.gen +++ b/doc/generated/builders.gen @@ -698,6 +698,27 @@ env.JavaH( JAVACLASSDIR="classes", ) </example_commands> + +<note> +<para> +Java versions starting with 10.0 no longer use the +<command>javah</command> command for generating JNI +headers/sources, and indeed have removed the command entirely +(see Java Enhancement Proposal +<ulink url="https:openjdk.java.net/jeps/313">JEP 313</ulink>), +making this tool harder to use for that purpose. +&SCons; may autodiscover a <command>javah</command> +belonging to an older release if there are multiple Java +versions on the system, which will lead to incorrect results. +To use with a newer Java, override the default values of &cv-link-JAVAH; +(to contain the path to the <command>javac</command>) +and &cv-link-JAVAHFLAGS; (to contain at least a <option>-h</option> +flag) and note that generating headers with +<command>javac</command> requires supplying source +<filename>.java</filename> files only, +not <filename>.class</filename> files. +</para> +</note> </listitem> </varlistentry> <varlistentry id="b-Library"> @@ -744,15 +765,16 @@ env.M4(target = 'foo.c', source = 'foo.c.m4') <term><function>Moc</function>()</term> <term><replaceable>env</replaceable>.<methodname>Moc</methodname>()</term> <listitem><para> -Builds an output file from a moc input file. Moc input files are either -header files or cxx files. This builder is only available after using the -tool 'qt'. See the &cv-link-QTDIR; variable for more information. +Builds an output file from a <command>moc</command> input file. +<command>moc</command> input files are either header files or C++ files. +This builder is only available after using the +tool &t-link-qt;. See the &cv-link-QTDIR; variable for more information. Example: </para> <example_commands> -env.Moc('foo.h') # generates moc_foo.cc -env.Moc('foo.cpp') # generates foo.moc +env.Moc('foo.h') # generates moc_foo.cc +env.Moc('foo.cpp') # generates foo.moc </example_commands> </listitem> </varlistentry> @@ -2678,11 +2700,11 @@ files. <term><replaceable>env</replaceable>.<methodname>Uic</methodname>()</term> <listitem><para> Builds a header file, an implementation file and a moc file from an ui file. -and returns the corresponding nodes in the above order. -This builder is only available after using the tool 'qt'. Note: you can -specify <filename>.ui</filename> files directly as source -files to the &b-Program;, -&b-Library; and &b-SharedLibrary; builders +and returns the corresponding nodes in the that order. +This builder is only available after using the tool &t-link-qt;. +Note: you can specify <filename>.ui</filename> files directly as source +files to the &b-link-Program;, +&b-link-Library; and &b-link-SharedLibrary; builders without using this builder. Using this builder lets you override the standard naming conventions (be careful: prefixes are always prepended to names of built files; if you don't want prefixes, you may set them to ``). @@ -2691,9 +2713,11 @@ Example: </para> <example_commands> -env.Uic('foo.ui') # -> ['foo.h', 'uic_foo.cc', 'moc_foo.cc'] -env.Uic(target = Split('include/foo.h gen/uicfoo.cc gen/mocfoo.cc'), - source = 'foo.ui') # -> ['include/foo.h', 'gen/uicfoo.cc', 'gen/mocfoo.cc'] +env.Uic('foo.ui') # -> ['foo.h', 'uic_foo.cc', 'moc_foo.cc'] +env.Uic( + target=Split('include/foo.h gen/uicfoo.cc gen/mocfoo.cc'), + source='foo.ui' +) # -> ['include/foo.h', 'gen/uicfoo.cc', 'gen/mocfoo.cc'] </example_commands> </listitem> </varlistentry> |
