Review Request: Build-infra M1

Fredrik Öhrström fredrik.ohrstrom at oracle.com
Tue Mar 27 15:46:05 UTC 2012


2012-03-27 17:21, Michael McMahon skrev:
>
> Right. Configure doesn't need to be re-run, but presumably there is 
> some build
> meta-information linking sources to target libraries etc. Say a new 
> native library
> libfoo were to be added with associated C (and Java) sources. Where 
> would this get added to
> the build system?

New Java sources in the jdk need no special treatment (though if they 
are platform dependent you might
have to be careful how they are added to the source tree, since it is a 
mess) and they
are all compiled in a single javac invocation defined in 
CompileJavaClasses.gmk

For native libraries, a new library is added as a macro call to 
SetupNativeCompilation
in CompileNativeLibraries.gmk. All libraries are added to the variable 
BUILD_LIBRARIES
and the target all depends on $(BUILD_LIBRARIES)

The macro SetupNativeCompilation  configures all dependencies between 
source files
(and header files) to object files to the library. Enabling incremental 
builds.

//Fredrik



More information about the build-dev mailing list