What is the Build Process for Codes inside jdk/src/macosx/native/jobjc

David Holmes david.holmes at oracle.com
Wed Apr 17 19:18:14 PDT 2013


On 18/04/2013 10:50 AM, Dan Xu wrote:
> Hi David,
>
> Under src/macosx/native/jobjc folder, it contains not only native *.m
> source files, but also *.java files. If you check the build results in
> build/macosx-x86_64-normal-server-release/jdk folder, it contains some
> build results specific for jobjc, say gensrc_jobjc/,
> gensrc_headers_jobjc/, jobjc_classes/, jobjc_classes_headers/.
>
> So it must have some extra build steps to generate those jobjc results.
> And I wonder what they are and why they are special and not merged into
> the regular native compilation and java compilation processes. Thanks!

In jdk/makefiles:

- The java files are handled in CompileJavaClasses.gmk.
- There is special handling via GensrcJObjC.gmk

David

> -Dan
>
>
> On 04/17/2013 05:30 PM, David Holmes wrote:
>> Hi Dan,
>>
>> I don't quite understand the question but all native code building is
>> handled via jdk/makefiles/CompileNativeLibraries.gmk which in turn
>> utilizes the set up from <top>/common/makefiles/NativeCompilation.gmk
>>
>> HTH
>>
>> David
>>
>> On 18/04/2013 9:51 AM, Dan Xu wrote:
>>> Adding core-libs-dev
>>>
>>> On 04/17/2013 04:47 PM, Dan Xu wrote:
>>>> Hi,
>>>>
>>>> As for the sourcecodes for mac platform, it has a special place
>>>> holding native and java codes for jdk, jdk/src/macosx/native/jobjc. I
>>>> wonder how those codes are builtand whether its compilation process
>>>> has any special handling. Thanks!
>>>>
>>>> -Dan
>>>
>


More information about the macosx-port-dev mailing list