xref: /haiku/src/data/keyboard_layouts/Jamfile (revision 2cad94c1c30b6223ad8c08710b26e071d32e9979)
15e96d7d5SJohn ScipioneSubDir HAIKU_TOP src data keyboard_layouts ;
25e96d7d5SJohn Scipione
35e96d7d5SJohn ScipioneSetSubDirSupportedPlatformsBeOSCompatible ;
45e96d7d5SJohn Scipione
55e96d7d5SJohn Scipione
65e96d7d5SJohn Scipionerule GenerateKeyboardLayoutLocalizationHeader
75e96d7d5SJohn Scipione{
85e96d7d5SJohn Scipione	local header = <keyboard-layout-locale>KeyboardLayoutNames.h ;
95e96d7d5SJohn Scipione	MakeLocateCommonPlatform $(header) ;
105e96d7d5SJohn Scipione	local jamfile = [ FGristFiles Jamfile ] ;
115e96d7d5SJohn Scipione	SEARCH on $(jamfile) = $(SUBDIR) ;
125e96d7d5SJohn Scipione	Depends $(header) : $(jamfile) ;
135e96d7d5SJohn Scipione	GenerateKeyboardLayoutLocalizationHeader1 $(header) ;
145e96d7d5SJohn Scipione	LocalClean clean : $(header) ;
155e96d7d5SJohn Scipione}
165e96d7d5SJohn Scipione
175e96d7d5SJohn Scipioneactions GenerateKeyboardLayoutLocalizationHeader1
185e96d7d5SJohn Scipione{
195e96d7d5SJohn Scipione	$(RM) $(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 =
385e96d7d5SJohn Scipione	"Generic 104-key"
395e96d7d5SJohn Scipione	"Generic 105-key International"
405e96d7d5SJohn Scipione	"Kinesis Advantage"
415e96d7d5SJohn Scipione	"Kinesis Ergo Elan International"
425e96d7d5SJohn Scipione	"TypeMatrix 2030" ;
435e96d7d5SJohn ScipioneHAIKU_KEYBOARD_LAYOUT_FILES = $(HAIKU_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
445e96d7d5SJohn ScipioneSEARCH on $(HAIKU_KEYBOARD_LAYOUT_FILES) = $(keyboardLayoutsDir) ;
455e96d7d5SJohn Scipione
465e96d7d5SJohn Scipione# Add Apple Aluminum keyboard layout files to the image in an Apple Aluminum
475e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu
485e96d7d5SJohn Scipione# of the Keymap preference app.
495e96d7d5SJohn Scipionelocal appleAluminumDir
505e96d7d5SJohn Scipione	= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts
515e96d7d5SJohn Scipione		Apple\ Aluminum ] ;
525e96d7d5SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES =
535e96d7d5SJohn Scipione	"Apple Aluminium Extended International"
545e96d7d5SJohn Scipione	"Apple Aluminium International"
555e96d7d5SJohn Scipione	"Apple Aluminum (US)"
565e96d7d5SJohn Scipione	"Apple Aluminum Extended (US)" ;
57*2cad94c1SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES
58*2cad94c1SJohn Scipione	= $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
595e96d7d5SJohn ScipioneSEARCH on $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) = $(appleAluminumDir) ;
605e96d7d5SJohn Scipione
615e96d7d5SJohn Scipione# Add ThinkPad keyboard layout files to the image in a ThinkPad
625e96d7d5SJohn Scipione# subdirectory. The subdirectory is turned into a submenu in the Layout menu
635e96d7d5SJohn Scipione# of the Keymap preference app.
645e96d7d5SJohn Scipionelocal thinkpadDir
655e96d7d5SJohn Scipione	= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ;
665e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES =
675e96d7d5SJohn Scipione	"ThinkPad (US)"
685e96d7d5SJohn Scipione	"ThinkPad International"
695e96d7d5SJohn Scipione	"ThinkPad T400s (US)"
705e96d7d5SJohn Scipione	"ThinkPad T400s International"
715e96d7d5SJohn Scipione	"ThinkPad X1 (US)"
725e96d7d5SJohn Scipione	"ThinkPad X1 International"
735e96d7d5SJohn Scipione	"ThinkPad X100e (US)"
745e96d7d5SJohn Scipione	"ThinkPad X100e International" ;
755e96d7d5SJohn ScipioneHAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES
765e96d7d5SJohn Scipione	= $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
775e96d7d5SJohn ScipioneSEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ;
785e96d7d5SJohn Scipione
795e96d7d5SJohn Scipione
805e96d7d5SJohn ScipioneGenerateKeyboardLayoutLocalizationHeader ;
81