xref: /haiku/src/data/keymaps/Jamfile (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
1SubDir HAIKU_TOP src data keymaps ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5NotFile keymap_files ;
6Depends files : keymap_files ;
7
8rule MkKeymapComp
9{
10	local binary = $(1) ;
11	local source = $(2) ;
12
13	SEARCH on $(source) = $(SEARCH_SOURCE) ;
14	MakeLocateArch $(binary) ;
15
16	LocalDepends keymap_files : $(binary) ;
17	Depends $(binary) : $(source) <build>keymap ;
18	MkKeymapComp1 $(binary) : <build>keymap $(source) ;
19	LocalClean clean : $(binary) ;
20}
21
22actions MkKeymapComp1
23{
24	$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
25	$(2[1]) -o "$(1)" -c "$(2[2-])" ;
26}
27
28local keymapFiles = [ GLOB $(SUBDIR) : *.keymap ] ;
29
30# generate the binary file for the keymap files
31local keymapFile ;
32for keymapFile in [ FGristFiles $(keymapFiles:D=) ] {
33	local binary = $(keymapFile:BG=keymap) ;
34	MkKeymapComp $(binary) : $(keymapFile) ;
35	Package haiku-inputkit-cvs : $(binary) : boot home config settings Keymap ;
36}
37
38