xref: /haiku/src/servers/input/Jamfile (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1SubDir HAIKU_TOP src servers input ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5if $(COMPILE_FOR_R5) {
6	SubDirC++Flags -DCOMPILE_FOR_R5 ;
7}
8
9rule MkKeymapHeader
10{
11	local binary = $(1) ;
12	local source = $(2) ;
13
14	SEARCH on $(source) = $(SEARCH_SOURCE) ;
15	MakeLocateArch $(binary) ;
16
17	Depends $(binary) : $(source) <build>keymap ;
18	MkKeymapHeader1 $(binary) : <build>keymap $(source) ;
19	LocalClean clean : $(binary) ;
20}
21
22actions MkKeymapHeader1
23{
24	$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
25	$(2[1]) -o "$(1)" -h "$(2[2-])" ;
26}
27
28MkKeymapHeader [ FGristFiles SystemKeymap.cpp ] : US-International.keymap ;
29
30SEARCH on US-International.keymap
31	  += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) data etc keymaps ] ;
32
33AddResources input_server : input_server.rdef ;
34
35UsePrivateHeaders app input interface shared storage ;
36
37
38SubDirC++Flags -DADD_ON_STABLE_SECONDS=1 ;	# for AddOnMonitorHandler.cpp
39if $(TARGET_PLATFORM) != haiku {
40	SubDirC++Flags -DCOMPILE_FOR_R5 ;
41	#APPSERVER_TEST_MODE = 1 ;
42	if $(APPSERVER_TEST_MODE) {
43		SubDirC++Flags -DAPPSERVER_TEST_MODE ;
44	} else {
45		SubDirC++Flags -DAPPSERVER_R5_COMM ;
46	}
47} else {
48	APPSERVER_TEST_MODE = 0 ;
49}
50
51Server input_server :
52	InputServer.cpp
53	InputServerDevice.cpp
54	InputServerFilter.cpp
55	InputServerMethod.cpp
56
57	AddOnManager.cpp
58	DeviceManager.cpp
59
60	MouseSettings.cpp
61	KeyboardSettings.cpp
62
63	SystemKeymap.cpp
64
65	MethodReplicant.cpp
66	MethodMenuItem.cpp
67	BottomlineWindow.cpp
68
69	# storage
70	AddOnMonitor.cpp
71	AddOnMonitorHandler.cpp
72	NodeMonitorHandler.cpp
73
74	: be $(TARGET_LIBSTDC++)
75;
76
77SEARCH on [ FGristFiles AddOnMonitor.cpp
78	AddOnMonitorHandler.cpp
79	NodeMonitorHandler.cpp ] += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ;
80
81Package haiku-inputkit-cvs :
82        input_server :
83        boot beos system servers ;
84
85Packages haiku-inputkit-cvs :
86        README LICENSE install.sh ;
87