1 SubDir HAIKU_TOP src data keyboard_layouts ;
3 SetSubDirSupportedPlatformsBeOSCompatible ;
6 rule GenerateKeyboardLayoutLocalizationHeader
8 local header = <keyboard-layout-locale>KeyboardLayoutNames.h ;
9 MakeLocateCommonPlatform $(header) ;
10 local jamfile = [ FGristFiles Jamfile ] ;
11 SEARCH on $(jamfile) = $(SUBDIR) ;
12 Depends $(header) : $(jamfile) ;
13 GenerateKeyboardLayoutLocalizationHeader1 $(header) ;
14 LocalClean clean : $(header) ;
17 actions GenerateKeyboardLayoutLocalizationHeader1
20 for name in "$(HAIKU_KEYBOARD_LAYOUT_FILES)" ; do
21 echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1)
23 echo "B_TRANSLATE_MARK_VOID(\"Apple\ Aluminum\")" >> $(1)
24 for name in "$(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES)" ; do
25 echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1)
27 echo "B_TRANSLATE_MARK_VOID(\"ThinkPad\")" >> $(1)
28 for name in "$(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES)" ; do
29 echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1)
34 # Add keyboard layout files to the image.
35 local keyboardLayoutsDir
36 = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ;
37 HAIKU_KEYBOARD_LAYOUT_FILES =
39 "Generic 105-key International"
41 "Kinesis Ergo Elan International"
43 HAIKU_KEYBOARD_LAYOUT_FILES = $(HAIKU_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
44 SEARCH on $(HAIKU_KEYBOARD_LAYOUT_FILES) = $(keyboardLayoutsDir) ;
46 # Add Apple Aluminum keyboard layout files to the image in an Apple Aluminum
47 # subdirectory. The subdirectory is turned into a submenu in the Layout menu
48 # of the Keymap preference app.
49 local appleAluminumDir
50 = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts
52 HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES =
53 "Apple Aluminium Extended International"
54 "Apple Aluminium International"
56 "Apple Aluminum Extended (US)" ;
57 HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES = $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
58 SEARCH on $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) = $(appleAluminumDir) ;
60 # Add ThinkPad keyboard layout files to the image in a ThinkPad
61 # subdirectory. The subdirectory is turned into a submenu in the Layout menu
62 # of the Keymap preference app.
64 = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ;
65 HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES =
67 "ThinkPad International"
69 "ThinkPad T400s International"
71 "ThinkPad X1 International"
73 "ThinkPad X100e International" ;
74 HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES
75 = $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
76 SEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ;
79 GenerateKeyboardLayoutLocalizationHeader ;