[openbeos] Re: static libs for drivers

> I don't know, if KernelStaticLibrary is the right rule. AFAIK it is
> intended for static libs for our kernel, while for the networking stuff
> you will probably want to use BeOS for the time being.
>
> What you want to your Jamfile is:
>
>   SubDirCcFlags -D_KERNEL_MODE=1 -no-fpic ;
>   SubDirC++Flags -D_KERNEL_MODE=1 -no-fpic -fno-exceptions -fno-rtti ;
>
> The C++ flags disable exceptions and RTTI, if you don't want those.
> Unless I missed it, Axel hasn't put his cpp.{cpp,h} to public
> locations, so you will have to add also:
>
>   LOCATE_SOURCE += [ FDirName $(OBOS_TOP) src add-ons kernel
> file_systems bfs ] ;
>   SubDirHdrs [ FDirName $(OBOS_TOP) src add-ons kernel file_systems bfs
> ] ;
>
> And add `cpp.cpp' to your list of sources.

Wow! :)
Would anyone like to add this to the Jamrules? :)

Which class should I use for lists and maps? Templates? This would make my
code very big...
Can I use BObjectList, at least? I do not like STL templates. The whole code
looks ugly...

Waldemar


Other related posts: