xref: /haiku/src/servers/input/Jamfile (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
1SubDir HAIKU_TOP src servers input ;
2
3rule MkKeymapHeader
4{
5	local binary = $(1) ;
6	local source = $(2) ;
7
8	SEARCH on $(source) = $(SEARCH_SOURCE) ;
9	MakeLocateArch $(binary) ;
10
11	Depends $(binary) : $(source) <build>keymap ;
12	MkKeymapHeader1 $(binary) : <build>keymap $(source) ;
13	LocalClean clean : $(binary) ;
14}
15
16actions MkKeymapHeader1
17{
18	$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) \
19	$(2[1]) -o "$(1)" -h "$(2[2-])"
20}
21
22MkKeymapHeader [ FGristFiles SystemKeymap.h ] : US-International.keymap ;
23
24SEARCH on US-International.keymap += [ FDirName $(HAIKU_TOP) src data keymaps ] ;
25
26AddResources input_server : input_server.rdef ;
27
28UsePrivateHeaders app input interface shared storage support ;
29UsePrivateSystemHeaders ;
30
31if $(TARGET_PLATFORM) != haiku {
32	#APPSERVER_TEST_MODE = 1 ;
33	if $(APPSERVER_TEST_MODE) {
34		SubDirC++Flags -DAPPSERVER_TEST_MODE ;
35	} else {
36		SubDirC++Flags -DAPPSERVER_R5_COMM ;
37	}
38} else {
39	APPSERVER_TEST_MODE = 0 ;
40}
41
42Server input_server :
43	InputServer.cpp
44	InputServerDevice.cpp
45	InputServerFilter.cpp
46	InputServerMethod.cpp
47
48	AddOnManager.cpp
49
50	MouseSettings.cpp
51	KeyboardSettings.cpp
52
53	MethodReplicant.cpp
54	MethodMenuItem.cpp
55	BottomlineWindow.cpp
56
57	PathList.cpp
58
59	# storage
60	AddOnMonitor.cpp
61	AddOnMonitorHandler.cpp
62	NodeMonitorHandler.cpp
63
64	: be [ TargetLibstdc++ ]
65;
66
67Includes [ FGristFiles InputServer.cpp ] : [ FGristFiles SystemKeymap.h ] ;
68
69SEARCH on [ FGristFiles AddOnMonitor.cpp
70		AddOnMonitorHandler.cpp
71		NodeMonitorHandler.cpp ]
72	+= [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ;
73