[openbeos] Re: Jamfiles howto

"Salvatore Benedetto" <emitrax@xxxxxxxxx> wrote:
 ...
> Besides, once the Jamfile is done, how am I supposed
> to compile the code? I know that in order to load the 
> driver, I only need to place the binary in a certain directory.

This should work for your Jamfile:

"
SubDir HAIKU_TOP src add-ons kernel drivers video quickcam ;

SetSubDirSupportedPlatformsBeOSCompatible ;

UsePrivateHeaders quickcam ;

KernelAddon quickcam :
        quickcam.c
        sensor_pb0100.c
        sensor_hdcs1000.c
;
"

I'm not sure if the BeOSCompatible should be included.

(I think the Package rule is for making archives of a driver or other 
component for the build factory. Don't worry about that for now.)

If you have also edited the Jamfile of the parent folder you should be 
able to just run "jam" or "jam -q" (stops at the first error) in the 
quickcam folder. 

The compiled driver ends up in ../../../../../../generated/objects/
haiku/x86/release/add-ons/kernel/drivers/video/quickcam/quickcam. If 
you want it to be added to your Haiku image builds, I think you have to 
edit build/jam/HaikuImage

/Jonas.


Other related posts: