Moved keymaps to the common place for data files like timezones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11904 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
SubDir OBOS_TOP src apps bin keymap ;
|
SubDir OBOS_TOP src apps bin keymap ;
|
||||||
|
|
||||||
NotFile keymap_files ;
|
|
||||||
Depends files : keymap_files ;
|
|
||||||
|
|
||||||
BinCommand keymap :
|
BinCommand keymap :
|
||||||
key_map.cpp
|
key_map.cpp
|
||||||
Keymap.cpp
|
Keymap.cpp
|
||||||
@@ -12,32 +9,3 @@ Package haiku-inputkit-cvs :
|
|||||||
keymap :
|
keymap :
|
||||||
boot home config bin ;
|
boot home config bin ;
|
||||||
|
|
||||||
rule MkKeymapComp
|
|
||||||
{
|
|
||||||
local binary = $(1) ;
|
|
||||||
local source = $(2) ;
|
|
||||||
|
|
||||||
SEARCH on $(source) = $(SEARCH_SOURCE) ;
|
|
||||||
MakeLocate $(binary) : [ FDirName $(OBOS_ETC_DIR) Keymap ] ;
|
|
||||||
|
|
||||||
LocalDepends keymap_files : $(binary) ;
|
|
||||||
Depends $(binary) : $(source) keymap ;
|
|
||||||
MkKeymapComp1 $(binary) : keymap $(source) ;
|
|
||||||
LocalClean clean : $(binary) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
actions MkKeymapComp1
|
|
||||||
{
|
|
||||||
$(2[1]) -o "$(1)" -c "$(2[2-])" ;
|
|
||||||
}
|
|
||||||
|
|
||||||
local keymapFiles = [ GLOB $(SUBDIR) : *.keymap ] ;
|
|
||||||
|
|
||||||
# generate the binary file for the keymap files
|
|
||||||
local keymapFile ;
|
|
||||||
for keymapFile in [ FGristFiles $(keymapFiles:D=) ] {
|
|
||||||
local binary = $(keymapFile:BG=keymap) ;
|
|
||||||
MkKeymapComp $(binary) : $(keymapFile) ;
|
|
||||||
Package haiku-inputkit-cvs : $(binary) : boot home config settings Keymap ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
SubDir OBOS_TOP src data etc ;
|
SubDir OBOS_TOP src data etc ;
|
||||||
|
|
||||||
|
SubInclude OBOS_TOP src data etc keymaps ;
|
||||||
SubInclude OBOS_TOP src data etc timezones ;
|
SubInclude OBOS_TOP src data etc timezones ;
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
SubDir OBOS_TOP src data etc keymaps ;
|
||||||
|
|
||||||
|
NotFile keymap_files ;
|
||||||
|
Depends files : keymap_files ;
|
||||||
|
|
||||||
|
rule MkKeymapComp
|
||||||
|
{
|
||||||
|
local binary = $(1) ;
|
||||||
|
local source = $(2) ;
|
||||||
|
|
||||||
|
SEARCH on $(source) = $(SEARCH_SOURCE) ;
|
||||||
|
MakeLocate $(binary) : [ FDirName $(OBOS_ETC_DIR) Keymap ] ;
|
||||||
|
|
||||||
|
LocalDepends keymap_files : $(binary) ;
|
||||||
|
Depends $(binary) : $(source) keymap ;
|
||||||
|
MkKeymapComp1 $(binary) : keymap $(source) ;
|
||||||
|
LocalClean clean : $(binary) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
actions MkKeymapComp1
|
||||||
|
{
|
||||||
|
$(2[1]) -o "$(1)" -c "$(2[2-])" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
local keymapFiles = [ GLOB $(SUBDIR) : *.keymap ] ;
|
||||||
|
|
||||||
|
# generate the binary file for the keymap files
|
||||||
|
local keymapFile ;
|
||||||
|
for keymapFile in [ FGristFiles $(keymapFiles:D=) ] {
|
||||||
|
local binary = $(keymapFile:BG=keymap) ;
|
||||||
|
MkKeymapComp $(binary) : $(keymapFile) ;
|
||||||
|
Package haiku-inputkit-cvs : $(binary) : boot home config settings Keymap ;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user