xref: /haiku/src/tools/keymap/Jamfile (revision 481f986b59e7782458dcc5fe98ad59a57480e5db)
1SubDir HAIKU_TOP src tools keymap ;
2
3UseHeaders [ FDirName $(HAIKU_TOP) headers build private shared ] : true ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers build private storage ] : true ;
5
6SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ;
7
8USES_BE_API on <build>keymap = true ;
9
10local regexSources ;
11local storageSources ;
12
13if $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = sunos {
14	regexSources = regex.c ;
15}
16if $(HOST_PLATFORM) = haiku_host {
17	# those are missing from early Haiku builds
18	storageSources = FileIO.cpp ;
19}
20
21BuildPlatformMain <build>keymap :
22	main.cpp
23	Keymap.cpp
24	$(regexSources)
25	$(storageSources)
26	: libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++)
27;
28
29LinkAgainst <build>keymap : $(HOST_LIBBE) ;
30
31SEARCH on [ FGristFiles $(regexSources) ]
32	= [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;
33
34SEARCH on [ FGristFiles $(storageSources) ]
35	= [ FDirName $(HAIKU_TOP) src kits storage ] ;
36