btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / data / keyboard_layouts / Jamfile
blob826c8bc9a79bdbebf1511cc20fbad7ffe84cc4d1
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
19         $(RM) $(1)
20         for name in "$(HAIKU_KEYBOARD_LAYOUT_FILES)" ; do
21                 echo "B_TRANSLATE_MARK_VOID(\"$name\")" >> $(1)
22         done
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)
26         done
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)
30         done
34 # Add keyboard layout files to the image.
35 local keyboardLayoutsDir
36         = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ;
37 HAIKU_KEYBOARD_LAYOUT_FILES =
38         "Generic 104-key"
39         "Generic 105-key International"
40         "Kinesis Advantage"
41         "Kinesis Ergo Elan International"
42         "TypeMatrix 2030" ;
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
51                 Apple\ Aluminum ] ;
52 HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES =
53         "Apple Aluminium Extended International"
54         "Apple Aluminium International"
55         "Apple Aluminum (US)"
56         "Apple Aluminum Extended (US)" ;
57 HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES
58         = $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
59 SEARCH on $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) = $(appleAluminumDir) ;
61 # Add ThinkPad keyboard layout files to the image in a ThinkPad
62 # subdirectory. The subdirectory is turned into a submenu in the Layout menu
63 # of the Keymap preference app.
64 local thinkpadDir
65         = [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ;
66 HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES =
67         "ThinkPad (US)"
68         "ThinkPad International"
69         "ThinkPad T400s (US)"
70         "ThinkPad T400s International"
71         "ThinkPad X1 (US)"
72         "ThinkPad X1 International"
73         "ThinkPad X100e (US)"
74         "ThinkPad X100e International" ;
75 HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES
76         = $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES:G=keyboard-layout) ;
77 SEARCH on $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) = $(thinkpadDir) ;
80 GenerateKeyboardLayoutLocalizationHeader ;