xref: /haiku/src/apps/devices/Jamfile (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
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	DeviceSCSI.cpp
73	Device.cpp
74	PropertyList.cpp
75	PropertyListPlain.cpp
76	: be libcolumnlistview.a tracker $(TARGET_LIBSUPC++)
77		$(TARGET_LIBSTDC++)	$(HAIKU_LOCALE_LIBS)
78	: Devices.rdef
79;
80
81DoCatalogs Devices :
82	x-vnd.Haiku-Devices
83	:
84	DevicesApplication.cpp
85	DevicesView.cpp
86	DevicePCI.cpp
87	PropertyList.cpp
88	PropertyListPlain.cpp
89	DeviceACPI.cpp
90	DeviceSCSI.cpp
91	Device.cpp
92;
93
94Includes [ FGristFiles DevicesInfo.cpp ] : [ FGristFiles isapnpids.h usbdevs.h
95	usbdevs_data.h ] ;
96Includes [ FGristFiles ConfigurationWindow.cpp ] : [ FGristFiles pcihdr.h ] ;
97
98