1 RT_JAR ?
= /usr
/lib
/jvm
/default-java
/jre
/lib
/rt.jar
7 ..
/..
/bin
/jwrapper
-vv
-u comment
-o java_api.nit
$(RT_JAR
) \
8 -r
"^java.(lang|util|io)" -i ..
/..
/..
/..
/lib
/java
/collections.nit
9 echo
"+ Disabled functions: `grep '#\s*fun' $@ | wc -l` / `grep '^\s*fun' $@ | wc -l`"
11 api_user
: java_api.nit
12 # Using --semi-global makes it much faster
13 time
-f
"%E k:%S u:%U" ..
/..
/..
/..
/bin
/nitc
-v api_user.nit
--semi-global
16 .
/api_user
> api_user.res
17 diff api_user.sav api_user.res
21 ..
/..
/bin
/jwrapper
-vv
-u comment
-o full_java_api.nit
$(RT_JAR
) \
22 -r
"^(java|org)" -i ..
/..
/..
/..
/lib
/java
/collections.nit
23 echo
"+ Disabled functions: `grep '#\s*fun' $@ | wc -l` / `grep '^\s*fun' $@ | wc -l`"
25 # Force compilation of the Java code
26 echo
'fun foo in "Java" `{ `}; foo' >> full_java_api.nit
28 # This may take a while...
29 time
-f
"%E k:%S u:%U" ..
/..
/..
/..
/bin
/nitc
-v full_java_api.nit
--no-cc
31 # Don't compile the C, only the Java
32 make
-C nit_compile Nit_full_java_api.class
34 .PHONY
: api_user java_api.nit