[haiku-development] Re: [GSoC]: Requesting some Guidance for applying in project
- From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 01 Apr 2021 12:54:09 +0000
One thing I miss are where to find what or how you should look for what to
write when you would
build specific parts of the OS.
When I found out what to write I have tried to search for that in the
code/build folder but haven't
found where the information come from.
example Bluetooth, usb_webcam.media_addon
These are target names, just like it would be in makefiles.
These particular two are defined here:
https://git.haiku-os.org/haiku/tree/src/preferences/bluetooth/Jamfile#n8
https://git.haiku-os.org/haiku/tree/src/add-ons/media/media-add-ons/usb_webcam/Jamfile#n87
The main difference with makefiles is that there is an extra layer that allows
to repeat the same "template" in many places.
For example here we have one "Application" and one "Addon". These are custom
rules (defined in build/jam/ somewhere) that
allow us to very easily build things with the correct compiler and compiler
flags.
The second one has a particularity, it uses MultiArchDefaultGristFiles to be
able to also build it for the secondary architecture. This defines another
target named "<x86>usb_webcam.media_addon", for the version built with gcc8 for
32bit systems.
So if you know where is the Jamfile for what you're building, it's usually not
hard to find the target name in it.
--
Adrien.
Other related posts: