1 SubDir HAIKU_TOP src data keymaps ;
3 SetSubDirSupportedPlatformsBeOSCompatible ;
6 Depends files : keymap_files ;
13 SEARCH on $(source) = $(SEARCH_SOURCE) ;
14 MakeLocateArch $(binary) ;
16 LocalDepends keymap_files : $(binary) ;
17 Depends $(binary) : $(source) <build>keymap ;
18 MkKeymapComp1 $(binary) : <build>keymap $(source) ;
19 LocalClean clean : $(binary) ;
24 $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
25 $(2[1]) -o "$(1)" -c "$(2[2-])" ;
29 rule AddKeymapAlias alias : keymap
31 alias = $(alias:G=keymap) ;
32 HAIKU_KEYMAP_FILE on $(alias) = $(keymap:G=keymap) ;
33 HAIKU_KEYMAP_ALIASES += $(alias) ;
37 rule GenerateKeymapLocalizationHeader keymaps
39 local keymapNames = $(HAIKU_KEYMAP_FILES:BSM) $(HAIKU_KEYMAP_ALIASES:BSM) ;
40 local header = <keymap-locale>KeymapNames.h ;
41 MakeLocateCommonPlatform $(header) ;
43 HAIKU_KEYMAP_NAMES on $(header) = $(keymapNames) ;
44 GenerateKeymapLocalizationHeader1 $(header) ;
45 LocalClean clean : $(header) ;
49 actions GenerateKeymapLocalizationHeader1
52 for name in "$(HAIKU_KEYMAP_NAMES)" ; do
53 echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1)
58 local keymapFiles = [ GLOB $(SUBDIR) : *.keymap ] ;
60 # generate the binary file for the keymap files
62 for keymapFile in [ FGristFiles $(keymapFiles:D=) ] {
63 local binary = $(keymapFile:BG=keymap) ;
64 MkKeymapComp $(binary) : $(keymapFile) ;
65 HAIKU_KEYMAP_FILES += $(binary) ;
68 AddKeymapAlias Finnish : Swedish ;
69 AddKeymapAlias Croatian : Slovene ;
70 AddKeymapAlias Brazilian : US-International ;
72 GenerateKeymapLocalizationHeader ;