xref: /haiku/src/servers/input/Jamfile (revision 746cac055adc6ac3308c7bc2d29040fb95689cc9)
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 ;
34UsePrivateSystemHeaders ;
35
36
37SubDirC++Flags -DADD_ON_STABLE_SECONDS=1 ;	# for AddOnMonitorHandler.cpp
38if $(TARGET_PLATFORM) != haiku {
39	SubDirC++Flags -DCOMPILE_FOR_R5 ;
40	#APPSERVER_TEST_MODE = 1 ;
41	if $(APPSERVER_TEST_MODE) {
42		SubDirC++Flags -DAPPSERVER_TEST_MODE ;
43	} else {
44		SubDirC++Flags -DAPPSERVER_R5_COMM ;
45	}
46} else {
47	APPSERVER_TEST_MODE = 0 ;
48}
49
50Server input_server :
51	InputServer.cpp
52	InputServerDevice.cpp
53	InputServerFilter.cpp
54	InputServerMethod.cpp
55
56	AddOnManager.cpp
57	DeviceManager.cpp
58
59	MouseSettings.cpp
60	KeyboardSettings.cpp
61
62	MethodReplicant.cpp
63	MethodMenuItem.cpp
64	BottomlineWindow.cpp
65
66	# storage
67	AddOnMonitor.cpp
68	AddOnMonitorHandler.cpp
69	NodeMonitorHandler.cpp
70
71	: be $(TARGET_LIBSTDC++)
72;
73
74SEARCH on [ FGristFiles AddOnMonitor.cpp
75	AddOnMonitorHandler.cpp
76	NodeMonitorHandler.cpp ] += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ;
77
78Package haiku-inputkit-cvs :
79	input_server :
80	boot beos system servers ;
81
82Packages haiku-inputkit-cvs :
83	README LICENSE install.sh ;
84