xref: /haiku/src/tools/keymap/Jamfile (revision 3995592cdf304335132305e27c40cbb0b1ac46e3)
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) = cygwin || $(HOST_PLATFORM) = sunos {
13	UseHeaders [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;
14	SubDirCcFlags -D__USE_GNU -DHAVE_STDBOOL_H ;
15	regexSources = regex.c ;
16}
17
18# FreeBSD isolates the GNU-style functions and structures into their own library.
19if $(HOST_PLATFORM) = freebsd {
20	regexLib = gnuregex ;
21}
22
23BuildPlatformMain <build>keymap :
24	main.cpp
25	Keymap.cpp
26	$(regexSources)
27	: libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(regexLib)
28;
29
30LinkAgainst <build>keymap : $(HOST_LIBBE) ;
31
32SEARCH on [ FGristFiles $(regexSources) ]
33	= [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;
34