* Reintroduced third LinkAgainst parameter <mapLibs>, defaulting to true.

Library names are now mapped for all targets but "host" (not only for
  "haiku") -- added one more level of indirection to achieve that.
  (TARGET_LIBRARY_NAME_MAP -> *_LIBRARY_NAME_MAP_*).
* Renamed build/HaikuBuildCompatibility.h to BeOSBuildCompatibility.h
  (auto-included when compiling something that uses the Be API for platform
  "host" on anon-BeOS platform), and introduced build/HaikuBuildCompatibility.h,
  which can be included when compiling something that can be built for both,
  Haiku and BeOS compatible platforms.
* Introduced libhaikucompat.a, a library that adds a few functions existing
  under Haiku, but not under BeOS.
* New rule AddSubDirSupportedPlatforms.
* Renamed libopenbeos.so to libbe_haiku.so.
* Introduced new target platform "libbe_test", which is basically equivalent
  to a BeOS compatible host platform target, with the exception, that instead
  of the host platform's libbe.so a special build of Haiku's libbe.so
  (libbe_haiku.so (formerly known as libopenbeos.so)) is used. Furthermore
  Haiku's public app, interface, storage, and support kit headers are used
  when compiling. This replaces the less nice way in which the test app server
  and applications for this test environment were built.
  When building for platform "libbe_test", the library name "be" is
  autotranslated to "libbe_haiku.so". Thus most applications don't need
  special fiddling when them building them for the app server test environment;
  usually an "AddSubDirSupportedPlatforms libbe_test ;" will suffice.
* Reduced the dependencies of <syscalls.h> and fixed problems caused by this
  (e.g. source files not including the needed headers directly).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-11-07 16:07:25 +00:00
parent 948d1276e6
commit ca9e5772c3
79 changed files with 328 additions and 312 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon BeDecorator : decorators :
BeDecorator.cpp
: false
: be libopenbeos.so libappserver.so
: be libappserver.so
;
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon MacDecorator : decorators :
MacDecorator.cpp
: false
: be libopenbeos.so libappserver.so
: be libappserver.so
;
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon WinDecorator : decorators :
WinDecorator.cpp
: false
: be libopenbeos.so libappserver.so
: be libappserver.so
;
@@ -10,11 +10,6 @@ Addon <input>serial_mouse : input_server/devices :
: false
: be device <nogrist>input_server ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst <input>mouse : <boot!home!config!lib>libopenbeos.so ;
}
Package haiku-inputkit-cvs :
<input>serial_mouse :
boot home config add-ons input_server devices ;
+1
View File
@@ -1,5 +1,6 @@
SubDir HAIKU_TOP src build ;
SubInclude HAIKU_TOP src build libbe ;
SubInclude HAIKU_TOP src build libhaikucompat ;
SubInclude HAIKU_TOP src build libroot ;
+13
View File
@@ -0,0 +1,13 @@
SubDir HAIKU_TOP src build libhaikucompat ;
SetSubDirSupportedPlatforms libbe_test ;
StaticLibrary libhaikucompat.a :
strcasestr.c
strlcat.c
strlcpy.c
strnlen.c
;
SEARCH on [ FGristFiles strcasestr.c strlcat.c strlcpy.c strnlen.c ]
= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
+14 -11
View File
@@ -37,22 +37,25 @@ SharedLibrary libbe.so :
$(TARGET_LIBSTDC++)
;
# Build libopenbeos.so
# Build libbe_haiku.so
SetSupportedPlatformsForTarget libopenbeos.so : r5 bone dano ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() only.
SetSupportedPlatformsForTarget libbe_haiku.so : libbe_test ;
if $(TARGET_PLATFORM) = libbe_test {
local syslog = [ FGristFiles syslog.o ] ;
# Remove _NO_INLINE_ASM from the defines for syslog.cpp. Otherwise we get
# references to tls_get/set() etc. that don't exist under BeOS.
TARGET_DEFINES on [ FGristFiles syslog.o ]
= [ FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ;
TARGET_DEFINES on $(syslog)
= [ on $(syslog) FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ;
# We need to use our <syslog.h>, because the syslog() prototype differs
# from the BeOS one.
TARGET_DEFINES on $(syslog) += _SYS_LOG_H ;
TARGET_C++FLAGS on $(syslog) = [ on $(syslog) return $(TARGET_C++FLAGS) ]
-include [ FDirName $(HAIKU_TOP) headers posix syslog.h ] ;
}
SharedLibrary libopenbeos.so :
SharedLibrary libbe_haiku.so :
KMessage.cpp
syslog.cpp
:
@@ -63,7 +66,7 @@ SharedLibrary libopenbeos.so :
libbeadapter.so
net
stdc++.r4
$(TARGET_LIBSTDC++)
;
SEARCH on [ FGristFiles KMessage.cpp ]
+1 -6
View File
@@ -20,12 +20,7 @@ if $(RUN_WITHOUT_APP_SERVER) != 0 {
UsePrivateHeaders shared app interface ;
UsePrivateHeaders [ FDirName kernel util ] ; # For KMessage.h
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() only.
}
SetSubDirSupportedPlatforms haiku libbe_test ;
MergeObject <libbe>app_kit.o :
AppDefs.cpp
+1 -7
View File
@@ -23,13 +23,7 @@ if ! $(HAIKU_COMPATIBLE) {
SubDirC++Flags $(defines) ;
}
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() only.
}
SetSubDirSupportedPlatforms haiku libbe_test ;
UsePrivateHeaders shared app interface input [ FDirName servers app ] ;
+3 -2
View File
@@ -14,14 +14,15 @@
#include <string.h>
#include <unistd.h>
#include <syscalls.h>
#include <DiskDevice.h>
#include <DiskDeviceVisitor.h>
#include <Drivers.h>
#include <Message.h>
#include <Path.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
/*! \class BDiskDevice
\brief A BDiskDevice object represents a storage device.
+3 -2
View File
@@ -3,10 +3,11 @@
// by the OpenBeOS license.
//---------------------------------------------------------------------
#include <syscalls.h>
#include <DiskDeviceJob.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
// constructor
BDiskDeviceJob::BDiskDeviceJob()
: fID(B_NO_INIT),
+3 -2
View File
@@ -5,8 +5,6 @@
#include <new>
#include <syscalls.h>
#include <Directory.h>
#include <DiskDevice.h>
#include <DiskDeviceJob.h>
@@ -19,6 +17,9 @@
#include <Partition.h>
#include <Path.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
//#include "AddOnImage.h"
/*! \class BDiskDeviceRoster
+3 -2
View File
@@ -3,11 +3,12 @@
// by the OpenBeOS license.
//---------------------------------------------------------------------
#include <syscalls.h>
#include <DiskSystem.h>
#include <Partition.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
// constructor
BDiskSystem::BDiskSystem()
: fID(B_NO_INIT),
+1
View File
@@ -8,6 +8,7 @@
*/
#include <fcntl.h>
#include <unistd.h>
#include <Directory.h>
#include <Entry.h>
+3 -18
View File
@@ -1,13 +1,6 @@
SubDir HAIKU_TOP src kits storage ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UsePrivateHeaders $(DOT) ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() and
# sys/select.h only.
}
SetSubDirSupportedPlatforms haiku libbe_test ;
UsePrivateHeaders shared app kernel storage ;
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
@@ -68,7 +61,7 @@ MergeObject <libbe>storage_kit.o :
Rule.cpp
;
# We need to keep the DiskDevice API out of libopenbeos as long as the
# We need to keep the DiskDevice API out of libbe_haiku as long as the
# Interface Kit is not fully functional (at least the part we are using).
# So, we build it separately.
@@ -90,13 +83,5 @@ MergeObject <libbe>storage_diskdevice_kit.o :
SharedLibrary libbeadapter.so :
LibBeAdapter.cpp
strlcat.c
strlcpy.c
strcasestr.c
: be
;
SEARCH on [ FGristFiles
strlcat.c strlcpy.c strcasestr.c
] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
LinkAgainst libbeadapter.so : be : false ;
+3 -2
View File
@@ -8,8 +8,6 @@
#include <unistd.h>
#include <sys/stat.h>
#include <syscalls.h>
#include <Directory.h>
#include <DiskDevice.h>
#include <DiskDevicePrivate.h>
@@ -23,6 +21,9 @@
#include <String.h>
#include <Volume.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
/*! \class BPartition
\brief A BPartition object represent a partition and provides a lot of
methods to retrieve information about it and some to manipulate it.
+3 -2
View File
@@ -5,10 +5,11 @@
#include <new>
#include <syscalls.h>
#include <PartitioningInfo.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
using namespace std;
// constructor
+4 -1
View File
@@ -17,7 +17,6 @@
#include <Bitmap.h>
#include <Directory.h>
#include <fs_info.h>
#include <fs_interface.h>
#include <Node.h>
#include <Path.h>
#include <Volume.h>
@@ -25,6 +24,10 @@
#include <storage_support.h>
#include <syscalls.h>
#ifndef HAIKU_TARGET_PLATFORM_LIBBE_TEST
#include <fs_interface.h>
#endif
#ifdef USE_OPENBEOS_NAMESPACE
namespace OpenBeOS {
#endif
+7 -7
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src kits support ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() and
# addr_t.
}
SetSubDirSupportedPlatforms haiku libbe_test ;
#if $(TARGET_PLATFORM) != haiku {
# UseHeaders [ FStandardOSHeaders ] : true ;
# UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# # TODO: POSIX headers shouldn't be used. Needed for strlcpy() and
# # addr_t.
#}
UsePrivateHeaders shared app ;
+2
View File
@@ -1,6 +1,8 @@
SubDir HAIKU_TOP src kits textencoding ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UsePrivateHeaders textencoding ;
SubDirSysHdrs [ FDirName $(SUBDIR) libiconv ] ;
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src kits textencoding libiconv ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
# disable warnings we don't want here
TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src libs agg ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
UseLibraryHeaders agg ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
# The file <freetype/internal/internal.h> is used to define macros that are
# later used in #include statements. It needs to be parsed in order to
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 autofit ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 autohint ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 base ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 bdf ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cache ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cff ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cid ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 gzip ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 lzw ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -12,6 +12,7 @@
SubDir HAIKU_TOP src libs freetype2 otvalid ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pcf ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pfr ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 psaux ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pshinter ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 psnames ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 raster ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 sfnt ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 smooth ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 truetype ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 type1 ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 type42 ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 winfonts ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ;
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src libs png ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseLibraryHeaders zlib ;
+1 -1
View File
@@ -19,7 +19,7 @@ Preference Appearance :
#FontMenu.cpp
#MenuView.cpp
: libbe.so libopenbeos.so libtranslation.so libappserver.so
: be libtranslation.so libappserver.so
: Appearance.rdef
;
+1 -3
View File
@@ -1,9 +1,7 @@
SubDir HAIKU_TOP src servers app drawing Painter ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
}
AddSubDirSupportedPlatforms libbe_test ;
UseLibraryHeaders agg ;
UsePrivateHeaders app interface shared [ FDirName servers app ] ;
+1 -19
View File
@@ -74,27 +74,9 @@ Server input_server :
AddOnMonitorHandler.cpp
NodeMonitorHandler.cpp
: $(TARGET_LIBSTDC++)
: be $(TARGET_LIBSTDC++)
;
if $(TARGET_PLATFORM) = haiku {
# link for Haiku
LinkAgainst input_server :
libroot.so libbe.so ;
} else {
# link as test application under R5
LinkAgainst input_server :
be ;
if $(APPSERVER_TEST_MODE) {
LinkAgainst input_server :
<boot!home!config!lib>libopenbeos.so ;
}
}
SEARCH on [ FGristFiles AddOnMonitor.cpp
AddOnMonitorHandler.cpp
NodeMonitorHandler.cpp ] += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ;
+4 -2
View File
@@ -4,9 +4,11 @@
*/
#include <unistd.h>
#include <syscalls.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <syscalls.h>
uint
+4 -2
View File
@@ -4,9 +4,11 @@
*/
#include <unistd.h>
#include <syscalls.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <syscalls.h>
uint
+4 -6
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src tests apps miniterminal ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName $(HAIKU_TOP) src tests apps miniterminal ] ;
UseHeaders [ FDirName $(HAIKU_TOP) src apps terminal ] ;
@@ -14,13 +15,10 @@ Application MiniTerminal :
MiniView.cpp
MiniWin.cpp
ViewBuffer.cpp
;
if $(TARGET_PLATFORM) = haiku {
LinkAgainst MiniTerminal : be ;
} else {
LinkAgainst MiniTerminal : libopenbeos.so ;
: be
;
if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : MiniTerminal
: tests!apps ;
}
+2 -3
View File
@@ -25,7 +25,7 @@ CommonTestLib libmessagetest.so
MessageOpAssignTest.cpp
MessageEasyFindTest.cpp
MessageSpeedTest.cpp
: <boot!home!config!lib>libopenbeos.so stdc++.r4
: be stdc++.r4
: be stdc++.r4
:
: app
@@ -151,8 +151,7 @@ CommonTestLib libapptest.so
AppRunner.cpp
PipedAppRunner.cpp
: <boot!home!config!lib>libopenbeos.so
be stdc++.r4
: be stdc++.r4
: be stdc++.r4
:
: app support
@@ -37,7 +37,7 @@ rule SimpleBAppTestApp2
CommonUnitTest $(name)
: $(sources)
: kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects)
: app support
;
+1 -1
View File
@@ -4,7 +4,7 @@ CommonUnitTest SMRemoteTargetApp
: SMRemoteTargetApp.cpp
SMLooper.cpp
: kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4
: be stdc++.r4
: be stdc++.r4
: app support
;
@@ -38,7 +38,7 @@ rule SimpleBMessengerTestApp2
CommonUnitTest $(name)
: $(sources)
: kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects)
: app support
;
+1 -1
View File
@@ -40,7 +40,7 @@ rule SimpleBRosterTestApp2
CommonUnitTest $(name)
: $(sources)
: kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects)
: app support
;
+1 -2
View File
@@ -50,8 +50,7 @@ CommonTestLib libinterfacetest.so
WidthBufferTest.cpp
WidthBufferSimpleTest.cpp
: <boot!home!config!lib>libopenbeos.so
be stdc++.r4
: be stdc++.r4
: be stdc++.r4
:
: app support
+1 -1
View File
@@ -22,7 +22,7 @@ CommonTestLib libstoragetest.so
SymLinkTest.cpp
TestApp.cpp
VolumeTest.cpp
: <boot!home!config!lib>libopenbeos.so be stdc++.r4
: be stdc++.r4
: be stdc++.r4
:
: storage
+1 -1
View File
@@ -9,7 +9,7 @@ UsePrivateHeaders storage ;
SimpleTest DiskDeviceTest
: DiskDeviceTest.cpp
# We compile these classes in. If we would link against libopenbeos
# We compile these classes in. If we would link against libbe_haiku
# instead, we couldn't use any GUI. At least not at this time.
#
# Mime.cpp
+1 -2
View File
@@ -74,8 +74,7 @@ CommonTestLib libsupporttest.so
BlockCacheExerciseTest.cpp
BlockCacheConcurrencyTest.cpp
: <boot!home!config!lib>libopenbeos.so
be stdc++.r4
: be stdc++.r4
: be stdc++.r4
: libsupporttest_RemoteTestObject.so
: support
@@ -7,7 +7,7 @@ AddResources libsupporttest_RemoteTestObject_r5.so : RemoteTestObject.rdef ;
CommonTestLib libsupporttest_RemoteTestObject.so
: RemoteTestObject.cpp
: <boot!home!config!lib>libopenbeos.so be stdc++.r4
: be stdc++.r4
: be stdc++.r4
:
: support
+9 -18
View File
@@ -1,15 +1,9 @@
SubDir HAIKU_TOP src tests servers app ;
SetSubDirSupportedPlatforms r5 bone ;
SetSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() and addr_t.
# Remove _NO_INLINE_ASM from the defines for syslog.cpp. Otherwise we get
# references to tls_get/set() etc. that don't exist under BeOS.
#TARGET_DEFINES on [ FGristFiles syslog.o ]
# = [ FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ;
# No need to define any of those targets, when not building for libbe_test
if $(TARGET_PLATFORM) = libbe_test {
UseLibraryHeaders agg png zlib ;
UsePrivateHeaders app interface shared [ FDirName servers app ] ;
@@ -24,15 +18,12 @@ UseFreeTypeHeaders ;
SEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ;
# No need to define any of those targets, when building for haiku
if $(TARGET_PLATFORM) != haiku {
SharedLibrary libhwinterface.so :
BBitmapBuffer.cpp
HWInterface.cpp
MultiLocker.cpp
: libhaikuappserver.so libopenbeos.so
: libhaikuappserver.so be
;
@@ -46,7 +37,7 @@ SharedLibrary libhwinterfaceimpl.so :
fake_input_server.cpp
ViewHWInterface.cpp
: libopenbeos.so libhwinterface.so
: be libhwinterface.so
;
SharedLibrary libhaikuappserver.so :
@@ -74,7 +65,7 @@ SharedLibrary libhaikuappserver.so :
# libraries
:
libopenbeos.so libtextencoding.so libfreetype.so
be libtextencoding.so libfreetype.so
;
AddResources haiku_app_server : app_server.rdef ;
@@ -124,21 +115,21 @@ Server haiku_app_server :
# libraries
:
z libpng.so libhaikuappserver.so
libpainter.a libopenbeos.so
libpainter.a be
libhwinterface.so libhwinterfaceimpl.so
libagg.a libfreetype.so libtextencoding.so
;
# install in the test dir
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_DIR)
: libpng.so libhaikuappserver.so libopenbeos.so libhwinterface.so
: libpng.so libhaikuappserver.so libbe_haiku.so libhwinterface.so
libhwinterfaceimpl.so libfreetype.so libtextencoding.so
: tests!apps ;
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
: tests!apps ;
} # if $(TARGET_PLATFORM) != haiku
} # if $(TARGET_PLATFORM) = libbe_test
SubInclude HAIKU_TOP src tests servers app bitmap_drawing ;
SubInclude HAIKU_TOP src tests servers app copy_bits ;
+5 -12
View File
@@ -1,20 +1,13 @@
SubDir HAIKU_TOP src tests servers app bitmap_drawing ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
Application BitmapDrawing :
main.cpp
;
if ( $(TARGET_PLATFORM) = haiku ) {
# for running natively under R5 or Haiku:
LinkAgainst BitmapDrawing :
libbe.so ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst BitmapDrawing :
<boot!home!config!lib>libopenbeos.so ;
# be ;
}
: be
;
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app copy_bits ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
SimpleTest CopyBits :
main.cpp
# for running in the Haiku app_server under R5:
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
: be ;
+3 -7
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src tests servers app playground ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
@@ -10,15 +11,10 @@ Application Playground :
ObjectView.cpp
ObjectWindow.cpp
States.cpp
: be
;
if ( $(TARGET_PLATFORM) = haiku ) {
# for running natively under R5 or Haiku:
LinkAgainst Playground : be ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst Playground : libopenbeos.so ;
if ( $(TARGET_PLATFORM) = libbe_test ) {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : Playground
: tests!apps ;
}
+5 -3
View File
@@ -7,15 +7,17 @@ UseHeaders [ FDirName $(clockDir) ] ;
SEARCH_SOURCE += $(clockDir) [ FDirName $(clockDir) ] ;
# No need to define any of those targets, when building for haiku
if $(TARGET_PLATFORM) != haiku {
if $(TARGET_PLATFORM) = libbe_test {
SetSubDirSupportedPlatforms libbe_test ;
SimpleTest TestApp_Clock :
cl_view.cpp
cl_wind.cpp
clock.cpp
: libopenbeos.so
: be
: Clock.rdef
;
} # if $(TARGET_PLATFORM) != haiku
} # if $(TARGET_PLATFORM) = libbe_test
+5 -12
View File
@@ -1,16 +1,9 @@
SubDir HAIKU_TOP src tests servers app resize_limits ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
Application ResizeLimits :
ResizeLimits.cpp
;
if ( $(TARGET_PLATFORM) = haiku ) {
# for running natively under R5 or Haiku:
LinkAgainst ResizeLimits :
libbe.so ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst ResizeLimits :
<boot!home!config!lib>libopenbeos.so ;
}
: be
;
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app scrolling ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
SimpleTest Scrolling :
main.cpp
# for running in the Haiku app_server under R5:
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
: be ;
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app textview ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
SimpleTest TextView :
main.cpp
# for running in the Haiku app_server under R5:
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
: be ;
+3 -7
View File
@@ -1,21 +1,17 @@
SubDir HAIKU_TOP src tests servers app view_state ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
Application ViewState :
ViewState.cpp
: be
;
if ( $(TARGET_PLATFORM) = haiku ) {
# for running natively under R5 or Haiku:
LinkAgainst ViewState : be ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst ViewState : libopenbeos.so ;
if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : ViewState
: tests!apps ;
}
-20
View File
@@ -22,11 +22,6 @@ SimpleTest KeymapTest :
Input.cpp
: be tracker ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst KeymapTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles
KeymapApplication.cpp
KeymapWindow.cpp
@@ -48,11 +43,6 @@ SimpleTest KeyboardTest :
Input.cpp
: translation be ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst KeyboardTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles
Keyboard.cpp
KeyboardSettings.cpp
@@ -75,11 +65,6 @@ SimpleTest MouseTest :
: translation be
;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst MouseTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles
Mouse.cpp
MouseSettings.cpp
@@ -98,11 +83,6 @@ SimpleTest keymapTest :
Input.cpp
: be ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst keymapTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles
main.cpp
Keymap.cpp
@@ -1,6 +1,8 @@
SubDir HAIKU_TOP src tests servers input view_input_device ;
SetSubDirSupportedPlatforms libbe_test ;
Addon ViewInputDevice : input_server devices : ViewInputDevice.cpp ;
LinkAgainst ViewInputDevice : be <nogrist>input_server <boot!home!config!lib>libopenbeos.so ;
LinkAgainst ViewInputDevice : be <nogrist>input_server be ;
MakeLocate ViewInputDevice : [ FDirName $(HAIKU_TEST_DIR) servers input view_input_device input_server devices ] ;
+17 -35
View File
@@ -1,24 +1,18 @@
SubDir HAIKU_TOP src tests servers registrar ;
local libbe ;
if $(TARGET_PLATFORM) = r5 {
libbe = libopenbeos.so ;
} else {
libbe = be ;
}
SetSubDirSupportedPlatforms libbe_test ;
SimpleTest RegistrarTest1
: RegistrarTest1.cpp
: <boot!home!config!lib>libopenbeos.so be
: be
;
SimpleTest RosterShell
: RosterShell.cpp
: $(libbe) stdc++.r4
: be stdc++.r4
;
SimpleTest message_deliverer_test : message_deliverer_test.cpp
: <boot!home!config!lib>libopenbeos.so ;
SimpleTest message_deliverer_test : message_deliverer_test.cpp : be ;
SimpleTest run_haiku_registrar
@@ -27,47 +21,35 @@ SimpleTest run_haiku_registrar
;
# a shutdown working with the emulation under R5
if $(TARGET_PLATFORM) = r5 {
UsePrivateHeaders app ;
UsePrivateHeaders kernel ;
UsePrivateHeaders app ;
UsePrivateHeaders kernel ;
SimpleTest <test>shutdown
: shutdown.cpp
: <boot!home!config!lib>libopenbeos.so ;
SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
}
SimpleTest <test>shutdown
: shutdown.cpp
: be ;
SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
# Two small test apps for testing the shutdown process.
SimpleTest no_shutdown_reply
: no_shutdown_reply.cpp
: $(libbe)
: be
;
SimpleTest negative_shutdown_reply
: negative_shutdown_reply.cpp
: $(libbe)
: be
;
SimpleTest user_shutdown_reply
: user_shutdown_reply.cpp
: $(libbe)
: be
;
# the registrar itself
SetSupportedPlatformsForTarget haiku_registrar : r5 bone dano ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ;
UsePrivateHeaders $(DOT) ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() and
# <sys/select.h>.
}
UsePrivateHeaders app ;
UsePrivateHeaders kernel ;
UsePrivateHeaders shared ;
@@ -104,13 +86,13 @@ Server haiku_registrar
R5Compatibility.cpp
:
libopenbeos.so
stdc++.r4
be
$(TARGET_LIBSTDC++)
:
registrar.rdef
;
if $(TARGET_PLATFORM) != haiku {
if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_registrar
: tests!apps ;
}