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