Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 80958 invoked from network); 20 Jun 2006 09:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 09:34:31 -0000 Received: (qmail 52224 invoked by uid 500); 20 Jun 2006 09:34:29 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 51835 invoked by uid 500); 20 Jun 2006 09:34:27 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 51824 invoked by uid 99); 20 Jun 2006 09:34:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 02:34:27 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.152 is neither permitted nor denied by domain of paulex.yang@gmail.com) Received: from [202.81.18.152] (HELO ausmtp04.au.ibm.com) (202.81.18.152) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 02:34:25 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k5K9bpsN247970 for ; Tue, 20 Jun 2006 19:37:54 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k5K9bDpT191622 for ; Tue, 20 Jun 2006 19:37:14 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5K9X4jQ020310 for ; Tue, 20 Jun 2006 19:33:04 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5K9X38L020272 for ; Tue, 20 Jun 2006 19:33:04 +1000 Received: from [127.0.0.1] ([9.181.106.114]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006062017334716-12554 ; Tue, 20 Jun 2006 17:33:47 +0800 Message-ID: <4497C0F8.1060506@gmail.com> Date: Tue, 20 Jun 2006 17:33:44 +0800 From: Paulex Yang User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib]native codes layout question(was Re: [classlib][NIO|VMI]JNI 1.4 enhancement on ByteBuffer) References: <448EA04B.3060000@gmail.com> <448EBADE.3000001@dellroad.org> <448F7CAD.9090009@gmail.com> <44900C72.90007@dellroad.org> <4490F3F7.9000904@gmail.com> <44979333.2000500@gmail.com> <4497BB0D.3090800@googlemail.com> In-Reply-To: <4497BB0D.3090800@googlemail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 20/06/2006 17:33:47, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 20/06/2006 17:33:48, Serialize complete at 20/06/2006 17:33:48 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=gb18030; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oliver Deakin wrote: > Paulex Yang wrote: >> Seems no one objects this proposal:), so I'm going to implement the >> JNI1.4 enhancement in nio module, i.e, provide patch to Harmony-578, >> Because this implementation requires some native codes, so I probably >> need to reintroduce hynio.dll(.so), but I have some questions.(Excuse >> me about my ignorance on the native layout evolution). >> >> At first, seems native codes will be separated into modules(I guess >> Oli is working on?), so should I assume my native codes will be >> directly put into nio modules, or still in native-src/win.IA32/nio >> directory? because I'm used to provide a shell to move/svn add new >> files in the patch, so it will be easier for me to know how others >> think about it. > > It depends on whether you want to wait for what I'm doing or not :) > If you want to get the code out now, then you can temporarily put it > under native-src/win.IA32/nio and I will move it later as part of the > natives modularisation. > However, if you don't mind waiting a day or so I should be able to > submit my first patch to move the prefs natives. This ought to be > enough of an example for you to put your native code directly into > modules/nio/src/main/native. > I see, I can wait for your reference move:), it doesn't make sense to let you move them again later. >> >> And second, the native codes probably need portlib, so the portlib's >> header file must be accessible, say, portsock.h, but now it has been >> moved into luni/src/main/native/blabla, should I include one in my >> patch so that nio module can have a copy? or the header file itself >> should be put some other well known directory(deploy/build/include I >> guess)? > > At build time, the "copy.native.includes" target in > luni/make/build.xml is called - it copies a selection of the header > files in luni/src/main/native/include that need to be shared between > modules into the deploy/include directory. This is done with an > explicit fileset in luni/make/build.xml - if you need to have > portsock.h added to the list of shared header files, then this is the > place to make that change. Just add its filename to the list, and next > time you build it will appear in the deploy/include directory. Your > nio code should include the headers from the deploy/include dir, and > *not* directly from the luni/src/main/native/include dir. > Got it, I will try. Thank you very much, Oli! > I hope this makes more sense now - if it doesn't, please let me know. > I am in the process of writing up some documentation for the website > on the natives layout and where headers should go (and also how > modules should build against the HDK) - once that is complete it > should all be a lot clearer. > > Regards, > Oliver > -- Paulex Yang China Software Development Lab IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org