1SubDir OBOS_TOP src servers input ; 2 3if $(COMPILE_FOR_R5) { 4 SubDirC++Flags -DCOMPILE_FOR_R5 ; 5} 6 7rule MkKeymapHeader 8{ 9 local binary = $(1) ; 10 local source = $(2) ; 11 12 SetupObjectsDir ; 13 14 SEARCH on $(source) = $(SEARCH_SOURCE) ; 15 MakeLocate $(binary) : $(LOCATE_TARGET) ; 16 17 Depends $(binary) : $(source) keymap ; 18 MkKeymapHeader1 $(binary) : keymap $(source) ; 19 LocalClean clean : $(binary) ; 20} 21 22actions MkKeymapHeader1 23{ 24 $(2[1]) -o "$(1)" -h "$(2[2-])" ; 25} 26 27MkKeymapHeader [ FGristFiles SystemKeymap.cpp ] : US-International.keymap ; 28 29SEARCH on US-International.keymap 30 += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) data etc keymaps ] ; 31 32AddResources input_server : input_server.rdef ; 33 34UsePrivateHeaders app ; 35UsePrivateHeaders input ; 36UsePrivateHeaders interface ; 37UsePrivateHeaders storage ; 38 39 40SubDirC++Flags -DADD_ON_STABLE_SECONDS=1 ; # for AddOnMonitorHandler.cpp 41if $(TARGET_PLATFORM) != haiku { 42 SubDirC++Flags -DCOMPILE_FOR_R5 ; 43 #APPSERVER_TEST_MODE = 1 ; 44 if $(APPSERVER_TEST_MODE) { 45 SubDirC++Flags -DAPPSERVER_TEST_MODE ; 46 } else { 47 SubDirC++Flags -DAPPSERVER_R5_COMM ; 48 } 49} else { 50 APPSERVER_TEST_MODE = 0 ; 51} 52 53Server input_server : 54 InputServer.cpp 55 InputServerDevice.cpp 56 InputServerFilter.cpp 57 InputServerMethod.cpp 58 59 AddOnManager.cpp 60 DeviceManager.cpp 61 62 MouseSettings.cpp 63 KeyboardSettings.cpp 64 65 SystemKeymap.cpp 66 67 MethodReplicant.cpp 68 MethodMenuItem.cpp 69 BottomlineWindow.cpp 70 71 # storage 72 AddOnMonitor.cpp 73 AddOnMonitorHandler.cpp 74 NodeMonitorHandler.cpp 75 76 : stdc++.r4 77; 78 79if $(TARGET_PLATFORM) = haiku { 80 # link for Haiku 81 82 LinkSharedOSLibs input_server : 83 libroot.so libbe.so ; 84 85} else { 86 # link as test application under R5 87 88 LinkSharedOSLibs input_server : 89 be ; 90 if $(APPSERVER_TEST_MODE) { 91 LinkSharedOSLibs input_server : 92 <boot!home!config!lib>libopenbeos.so ; 93 } 94} 95 96 97SEARCH on [ FGristFiles AddOnMonitor.cpp 98 AddOnMonitorHandler.cpp 99 NodeMonitorHandler.cpp ] += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ; 100 101Package haiku-inputkit-cvs : 102 input_server : 103 boot beos system servers ; 104 105Packages haiku-inputkit-cvs : 106 README LICENSE install.sh ; 107