15e96d7d5SJohn ScipioneSubDir HAIKU_TOP src data keyboard_layouts ; 25e96d7d5SJohn Scipione 35e96d7d5SJohn Scipione 45e96d7d5SJohn Scipionerule GenerateKeyboardLayoutLocalizationHeader 55e96d7d5SJohn Scipione{ 65e96d7d5SJohn Scipione local header = <keyboard-layout-locale>KeyboardLayoutNames.h ; 75e96d7d5SJohn Scipione MakeLocateCommonPlatform $(header) ; 85e96d7d5SJohn Scipione local jamfile = [ FGristFiles Jamfile ] ; 95e96d7d5SJohn Scipione SEARCH on $(jamfile) = $(SUBDIR) ; 105e96d7d5SJohn Scipione Depends $(header) : $(jamfile) ; 115e96d7d5SJohn Scipione GenerateKeyboardLayoutLocalizationHeader1 $(header) ; 125e96d7d5SJohn Scipione LocalClean clean : $(header) ; 135e96d7d5SJohn Scipione} 145e96d7d5SJohn Scipione 155e96d7d5SJohn Scipioneactions GenerateKeyboardLayoutLocalizationHeader1 165e96d7d5SJohn Scipione{ 175e96d7d5SJohn Scipione $(RM) $(1) 18d284f7ccSAugustin Cavalier echo "#undef B_TRANSLATION_CONTEXT" >> $(1) 19d284f7ccSAugustin Cavalier echo "#define B_TRANSLATION_CONTEXT \"KeyboardLayoutNames\"" >> $(1) 205e96d7d5SJohn Scipione for name in "$(HAIKU_KEYBOARD_LAYOUT_FILES)" ; do 215e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 225e96d7d5SJohn Scipione done 235e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"Apple\ Aluminum\")" >> $(1) 245e96d7d5SJohn Scipione for name in "$(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES)" ; do 255e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 265e96d7d5SJohn Scipione done 275e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"ThinkPad\")" >> $(1) 285e96d7d5SJohn Scipione for name in "$(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES)" ; do 295e96d7d5SJohn Scipione echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1) 305e96d7d5SJohn Scipione done 315e96d7d5SJohn Scipione} 325e96d7d5SJohn Scipione 335e96d7d5SJohn Scipione 345e96d7d5SJohn Scipione# Add keyboard layout files to the image. 355e96d7d5SJohn Scipionelocal keyboardLayoutsDir 365e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ; 375e96d7d5SJohn ScipioneHAIKU_KEYBOARD_LAYOUT_FILES = 3856ce1249SSylvain78 "Fizzbook NL2" 395e96d7d5SJohn Scipione "Generic 104-key" 405e96d7d5SJohn Scipione "Generic 105-key International" 415e96d7d5SJohn Scipione "Kinesis Advantage" 425e96d7d5SJohn Scipione "Kinesis Ergo Elan International" 43*c25b83c2Sroired "TypeMatrix 2030" 44*c25b83c2Sroired "X-Bows Nature" ; 4577fb9ca3SMurai TakashiHAIKU_KEYBOARD_LAYOUT_FILES = $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 465e96d7d5SJohn ScipioneSEARCH on $(HAIKU_KEYBOARD_LAYOUT_FILES) = $(keyboardLayoutsDir) ; 475e96d7d5SJohn Scipione 485e96d7d5SJohn Scipione# Add Apple Aluminum keyboard layout files to the image in an Apple Aluminum 495e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu 505e96d7d5SJohn Scipione# of the Keymap preference app. 515e96d7d5SJohn Scipionelocal appleAluminumDir 525e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts 535e96d7d5SJohn Scipione Apple\ Aluminum ] ; 545e96d7d5SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES = 555e96d7d5SJohn Scipione "Apple Aluminium Extended International" 565e96d7d5SJohn Scipione "Apple Aluminium International" 575e96d7d5SJohn Scipione "Apple Aluminum (US)" 585e96d7d5SJohn Scipione "Apple Aluminum Extended (US)" ; 592cad94c1SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES 6077fb9ca3SMurai Takashi = $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 615e96d7d5SJohn ScipioneSEARCH on $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) = $(appleAluminumDir) ; 625e96d7d5SJohn Scipione 635e96d7d5SJohn Scipione# Add ThinkPad keyboard layout files to the image in a ThinkPad 645e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu 655e96d7d5SJohn Scipione# of the Keymap preference app. 665e96d7d5SJohn Scipionelocal thinkpadDir 675e96d7d5SJohn Scipione = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ; 685e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES = 695e96d7d5SJohn Scipione "ThinkPad (US)" 705e96d7d5SJohn Scipione "ThinkPad International" 715e96d7d5SJohn Scipione "ThinkPad T400s (US)" 725e96d7d5SJohn Scipione "ThinkPad T400s International" 735e96d7d5SJohn Scipione "ThinkPad X1 (US)" 745e96d7d5SJohn Scipione "ThinkPad X1 International" 755e96d7d5SJohn Scipione "ThinkPad X100e (US)" 765e96d7d5SJohn Scipione "ThinkPad X100e International" ; 775e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES 7877fb9ca3SMurai Takashi = $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 795e96d7d5SJohn ScipioneSEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ; 805e96d7d5SJohn Scipione 815e96d7d5SJohn Scipione 825e96d7d5SJohn ScipioneGenerateKeyboardLayoutLocalizationHeader ; 83