xref: /haiku/src/apps/devices/Jamfile (revision 4cc4f7bb1845789f95d5ebc68cbb0b859e72f6ff)
1SubDir HAIKU_TOP src apps devices ;
2
3UsePrivateHeaders shared ;
4UsePrivateHeaders interface ;
5UsePrivateKernelHeaders ;
6UsePrivateSystemHeaders ;
7
8
9rule ISAPnPHeaderGen
10{
11	SEARCH on $(2) = $(SEARCH_SOURCE) ;
12	SEARCH on $(3) = $(SEARCH_SOURCE) ;
13
14	Depends $(1) : $(2) $(3) ;
15	MakeLocateArch $(<) ;
16	ISAPnPHeaderGen1 $(1) : $(2) $(3) ;
17	LocalClean clean : $(<) ;
18}
19
20actions ISAPnPHeaderGen1
21{
22	grep '^PNP[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]] '  $(2[1]) | gawk -f $(2[2]) > $(1) ;
23}
24
25ISAPnPHeaderGen [ FGristFiles isapnpids.h ] : isapnp_devids.txt : devlist2h.awk ;
26
27rule USBHeaderGen
28{
29	SEARCH on $(2) = $(SEARCH_SOURCE) ;
30	SEARCH on $(3) = $(SEARCH_SOURCE) ;
31
32	Depends $(1) : $(2) $(3) ;
33	MakeLocateArch $(<) ;
34	USBHeaderGen1 $(1) : $(2) $(3) ;
35	LocalClean clean : $(<) ;
36}
37
38actions USBHeaderGen1
39{
40	gawk -v HEADERFILE=$(1[1]) -v DATAFILE=$(1[2]) -f $(2[2]) $(2[1])
41}
42
43USBHeaderGen [ FGristFiles usbdevs.h usbdevs_data.h ] : usbdevs : usb_devlist2h.awk ;
44
45rule PCIHeaderGen
46{
47	SEARCH on $(2) = $(SEARCH_SOURCE) ;
48	SEARCH on $(3) = $(SEARCH_SOURCE) ;
49
50	Depends $(1) : $(2) $(3) ;
51	MakeLocateArch $(<) ;
52	PCIHeaderGen1 $(1) : $(2) $(3) ;
53	LocalClean clean : $(<) ;
54}
55
56actions PCIHeaderGen1
57{
58	gawk -v HEADERFILE=$(1) -f $(2[2]) $(2[1])
59}
60
61local pciidsFile = [ DownloadFile pci.ids
62			: http://www.haiku-files.org/files/pci.ids ] ;
63
64PCIHeaderGen [ FGristFiles pcihdr.h ] : $(pciidsFile) : pci-header.awk ;
65
66Application Devices :
67	DevicesApplication.cpp
68	DevicesView.cpp
69	dm_wrapper.c
70	DevicePCI.cpp
71	DeviceACPI.cpp
72	Device.cpp
73	PropertyList.cpp
74	PropertyListPlain.cpp
75	: be libcolumnlistview.a tracker $(TARGET_LIBSUPC++)
76		$(TARGET_LIBSTDC++)	$(HAIKU_LOCALE_LIBS)
77	: Devices.rdef
78;
79
80DoCatalogs Devices :
81	x-vnd.Haiku-Devices
82	:
83	DevicesApplication.cpp
84	DevicesView.cpp
85	DevicePCI.cpp
86	PropertyList.cpp
87	PropertyListPlain.cpp
88	DeviceACPI.cpp
89	Device.cpp
90;
91
92Includes [ FGristFiles DevicesInfo.cpp ] : [ FGristFiles isapnpids.h usbdevs.h
93	usbdevs_data.h ] ;
94Includes [ FGristFiles ConfigurationWindow.cpp ] : [ FGristFiles pcihdr.h ] ;
95
96