Moved rc from <build> tools to target standard command tools.

Updated rules to build the <build>rc platform version.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2008-06-27 20:44:01 +00:00
parent 01f28a0ae3
commit e221c09e50
32 changed files with 81 additions and 46 deletions

View File

@ -201,6 +201,7 @@ SubInclude HAIKU_TOP src bin patch ;
SubInclude HAIKU_TOP src bin pc ;
SubInclude HAIKU_TOP src bin pcmcia-cs ;
SubInclude HAIKU_TOP src bin playsound ;
SubInclude HAIKU_TOP src bin rc ;
SubInclude HAIKU_TOP src bin rmd160 ;
SubInclude HAIKU_TOP src bin screen_blanker ;
SubInclude HAIKU_TOP src bin sed ;

32
src/bin/rc/Jamfile Normal file
View File

@ -0,0 +1,32 @@
SubDir HAIKU_TOP src bin rc ;
SetSubDirSupportedPlatformsBeOSCompatible ;
GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ;
SubDirC++Flags -Wno-sign-compare -Wno-unused ;
local r5Compatibility = [ FDirName $(SUBDIR) R5Compatibility.h ] ;
SubDirCcFlags -include $(r5Compatibility) ;
SubDirC++Flags -include $(r5Compatibility) ;
StaticLibrary librdef.a :
compile.cpp decompile.cpp lexer.l parser.y rdef.cpp ;
# On BeOS incompatible platforms we implicitly link against libroot_build.so,
# which does already include the strl*() routines.
local strlSources ;
if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
strlSources = strlcpy.c strlcat.c ;
}
BinCommand rc :
rc.cpp
# these two are needed for R5 only
$(strlSources)
: librdef.a $(TARGET_LIBSTDC++) be $(TARGET_LIBSUPC++)
;
SEARCH on [ FGristFiles $(strlSources) ]
= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;

View File

@ -1,12 +1,14 @@
SubDir HAIKU_TOP src tools rc ;
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin rc ] ;
USES_BE_API on <build>librdef.a <build>rc = true ;
GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ;
SubDirC++Flags -Wno-sign-compare -Wno-unused ;
local r5Compatibility = [ FDirName $(SUBDIR) R5Compatibility.h ] ;
local r5Compatibility = [ FDirName $(HAIKU_TOP) src bin rc R5Compatibility.h ] ;
SubDirCcFlags -include $(r5Compatibility) ;
SubDirC++Flags -include $(r5Compatibility) ;
@ -25,9 +27,9 @@ BuildPlatformMain <build>rc :
# these two are needed for R5 only
$(strlSources)
: <build>librdef.a $(HOST_LIBSTDC++) $(HOST_LIBBE) $(HOST_LIBSUPC++)
;
LinkAgainst <build>rc
: <build>librdef.a $(HOST_LIBSTDC++) $(HOST_LIBBE) $(HOST_LIBSUPC++) ;
SEARCH on [ FGristFiles $(strlSources) ]
= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;