1*5e96d7d5SJohn ScipioneSubDir HAIKU_TOP src data keyboard_layouts ; 2*5e96d7d5SJohn Scipione 3*5e96d7d5SJohn ScipioneSetSubDirSupportedPlatformsBeOSCompatible ; 4*5e96d7d5SJohn Scipione 5*5e96d7d5SJohn Scipione 6*5e96d7d5SJohn Scipionerule GenerateKeyboardLayoutLocalizationHeader 7*5e96d7d5SJohn Scipione{ 8*5e96d7d5SJohn Scipione local header = <keyboard-layout-locale>KeyboardLayoutNames.h ; 9*5e96d7d5SJohn Scipione MakeLocateCommonPlatform $(header) ; 10*5e96d7d5SJohn Scipione local jamfile = [ FGristFiles Jamfile ] ; 11*5e96d7d5SJohn Scipione SEARCH on $(jamfile) = $(SUBDIR) ; 12*5e96d7d5SJohn Scipione Depends $(header) : $(jamfile) ; 13*5e96d7d5SJohn Scipione GenerateKeyboardLayoutLocalizationHeader1 $(header) ; 14*5e96d7d5SJohn Scipione LocalClean clean : $(header) ; 15*5e96d7d5SJohn Scipione} 16*5e96d7d5SJohn Scipione 17*5e96d7d5SJohn Scipioneactions GenerateKeyboardLayoutLocalizationHeader1 18*5e96d7d5SJohn Scipione{ 19*5e96d7d5SJohn Scipione $(RM) $(1) 20*5e96d7d5SJohn Scipione for name in "$(HAIKU_KEYBOARD_LAYOUT_FILES)" ; do 21*5e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 22*5e96d7d5SJohn Scipione done 23*5e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"Apple\ Aluminum\")" >> $(1) 24*5e96d7d5SJohn Scipione for name in "$(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES)" ; do 25*5e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 26*5e96d7d5SJohn Scipione done 27*5e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"ThinkPad\")" >> $(1) 28*5e96d7d5SJohn Scipione for name in "$(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES)" ; do 29*5e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 30*5e96d7d5SJohn Scipione done 31*5e96d7d5SJohn Scipione} 32*5e96d7d5SJohn Scipione 33*5e96d7d5SJohn Scipione 34*5e96d7d5SJohn Scipione# Add keyboard layout files to the image. 35*5e96d7d5SJohn Scipionelocal keyboardLayoutsDir 36*5e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ; 37*5e96d7d5SJohn ScipioneHAIKU_KEYBOARD_LAYOUT_FILES = 38*5e96d7d5SJohn Scipione "Generic 104-key" 39*5e96d7d5SJohn Scipione "Generic 105-key International" 40*5e96d7d5SJohn Scipione "Kinesis Advantage" 41*5e96d7d5SJohn Scipione "Kinesis Ergo Elan International" 42*5e96d7d5SJohn Scipione "TypeMatrix 2030" ; 43*5e96d7d5SJohn ScipioneHAIKU_KEYBOARD_LAYOUT_FILES = $(HAIKU_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ; 44*5e96d7d5SJohn ScipioneSEARCH on $(HAIKU_KEYBOARD_LAYOUT_FILES) = $(keyboardLayoutsDir) ; 45*5e96d7d5SJohn Scipione 46*5e96d7d5SJohn Scipione# Add Apple Aluminum keyboard layout files to the image in an Apple Aluminum 47*5e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu 48*5e96d7d5SJohn Scipione# of the Keymap preference app. 49*5e96d7d5SJohn Scipionelocal appleAluminumDir 50*5e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts 51*5e96d7d5SJohn Scipione Apple\ Aluminum ] ; 52*5e96d7d5SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES = 53*5e96d7d5SJohn Scipione "Apple Aluminium Extended International" 54*5e96d7d5SJohn Scipione "Apple Aluminium International" 55*5e96d7d5SJohn Scipione "Apple Aluminum (US)" 56*5e96d7d5SJohn Scipione "Apple Aluminum Extended (US)" ; 57*5e96d7d5SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES = $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ; 58*5e96d7d5SJohn ScipioneSEARCH on $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) = $(appleAluminumDir) ; 59*5e96d7d5SJohn Scipione 60*5e96d7d5SJohn Scipione# Add ThinkPad keyboard layout files to the image in a ThinkPad 61*5e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu 62*5e96d7d5SJohn Scipione# of the Keymap preference app. 63*5e96d7d5SJohn Scipionelocal thinkpadDir 64*5e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ; 65*5e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES = 66*5e96d7d5SJohn Scipione "ThinkPad (US)" 67*5e96d7d5SJohn Scipione "ThinkPad International" 68*5e96d7d5SJohn Scipione "ThinkPad T400s (US)" 69*5e96d7d5SJohn Scipione "ThinkPad T400s International" 70*5e96d7d5SJohn Scipione "ThinkPad X1 (US)" 71*5e96d7d5SJohn Scipione "ThinkPad X1 International" 72*5e96d7d5SJohn Scipione "ThinkPad X100e (US)" 73*5e96d7d5SJohn Scipione "ThinkPad X100e International" ; 74*5e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES 75*5e96d7d5SJohn Scipione = $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ; 76*5e96d7d5SJohn ScipioneSEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ; 77*5e96d7d5SJohn Scipione 78*5e96d7d5SJohn Scipione 79*5e96d7d5SJohn ScipioneGenerateKeyboardLayoutLocalizationHeader ; 80