xref: /haiku/src/data/keyboard_layouts/Jamfile (revision 77fb9ca3e653f72d1d15c9f1a50c3d4287f680e0)
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 =
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" ;
43*77fb9ca3SMurai TakashiHAIKU_KEYBOARD_LAYOUT_FILES = $(HAIKU_KEYBOARD_LAYOUT_FILES) ;
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)" ;
572cad94c1SJohn ScipioneHAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES
58*77fb9ca3SMurai Takashi	= $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ;
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
76*77fb9ca3SMurai Takashi	= $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ;
775e96d7d5SJohn ScipioneSEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ;
785e96d7d5SJohn Scipione
795e96d7d5SJohn Scipione
805e96d7d5SJohn ScipioneGenerateKeyboardLayoutLocalizationHeader ;
81