1SubDir HAIKU_TOP src tools keymap ;
2
3UsePrivateBuildHeaders shared storage ;
4
5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ;
6
7USES_BE_API on <build>keymap = true ;
8
9local regexSources ;
10local regexLib ;
11
12if $(HOST_PLATFORM) = freebsd {
13	# FreeBSD isolates the GNU regex functions into their own library.
14	regexLib = gnuregex ;
15} else if $(HOST_PLATFORM) = darwin {
16	# Darwin does not have them at all, so we use the bundled version.
17	regexLib = libgnuregex_build.so ;
18}
19
20BuildPlatformMain <build>keymap :
21	main.cpp
22	Keymap.cpp
23	$(regexSources)
24	: libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(regexLib)
25;
26
27LinkAgainst <build>keymap : $(HOST_LIBBE) ;
28
29SEARCH on [ FGristFiles $(regexSources) ]
30	= [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;
31