* 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
+60 -6
View File
@@ -409,7 +409,7 @@ if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
[ FDirName $(HAIKU_TOP) headers build os storage ] [ FDirName $(HAIKU_TOP) headers build os storage ]
[ FDirName $(HAIKU_TOP) headers build os support ] [ FDirName $(HAIKU_TOP) headers build os support ]
; ;
HOST_BE_API_CCFLAGS = -include HaikuBuildCompatibility.h ; HOST_BE_API_CCFLAGS = -include BeOSBuildCompatibility.h ;
HOST_BE_API_C++FLAGS = $(HOST_BE_API_CCFLAGS) ; HOST_BE_API_C++FLAGS = $(HOST_BE_API_CCFLAGS) ;
} }
@@ -492,6 +492,8 @@ if $(TARGET_PLATFORM) = haiku {
TARGET_BOOT_PLATFORM = $(HAIKU_BOOT_PLATFORM) ; TARGET_BOOT_PLATFORM = $(HAIKU_BOOT_PLATFORM) ;
TARGET_LIBRARY_NAME_MAP = HAIKU_LIBRARY_NAME_MAP ;
} else { } else {
local var ; local var ;
for var in $(buildVars) { for var in $(buildVars) {
@@ -504,15 +506,67 @@ if $(TARGET_PLATFORM) = haiku {
TARGET_GCC_LIBGCC_OBJECTS = ; TARGET_GCC_LIBGCC_OBJECTS = ;
TARGET_BOOT_PLATFORM = ; TARGET_BOOT_PLATFORM = ;
TARGET_LIBRARY_NAME_MAP = ;
} }
# define macro, for identifying the platform # define macro, for identifying the platform
switch $(TARGET_PLATFORM) { switch $(TARGET_PLATFORM) {
case r5 : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_BEOS ; case r5 : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_BEOS ;
case bone : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_BONE ; case bone : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_BONE ;
case dano : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_DANO ; case dano : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_DANO ;
case haiku : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_HAIKU ; case haiku : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_HAIKU ;
case linux : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_LINUX ; case linux : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_LINUX ;
case libbe_test : TARGET_DEFINES += HAIKU_TARGET_PLATFORM_LIBBE_TEST ;
}
# define macro, for identifying the host platform
switch $(HOST_PLATFORM) {
case r5 : TARGET_DEFINES += HAIKU_HOST_PLATFORM_BEOS ;
case bone : TARGET_DEFINES += HAIKU_HOST_PLATFORM_BONE ;
case dano : TARGET_DEFINES += HAIKU_HOST_PLATFORM_DANO ;
case haiku : TARGET_DEFINES += HAIKU_HOST_PLATFORM_HAIKU ;
case linux : TARGET_DEFINES += HAIKU_HOST_PLATFORM_LINUX ;
}
#pragma mark -
# special target libbe_test
if $(TARGET_PLATFORM) = libbe_test {
# headers and flags
TARGET_HDRS += [ PublicHeaders app interface storage support ]
[ PrivateHeaders $(DOT) ] ;
local compatibilityHeader = -include [ FDirName $(HAIKU_TOP) headers build
HaikuBuildCompatibility.h ] ;
TARGET_CCFLAGS += $(compatibilityHeader) ;
TARGET_C++FLAGS += $(compatibilityHeader) ;
# compatibility library
TARGET_HAIKU_COMPATIBILITY_LIBS = libhaikucompat.a ;
# directories
TARGET_OBJECT_BASE_DIR
= [ FDirName $(HAIKU_OBJECT_DIR) $(TARGET_PLATFORM) ] ;
TARGET_COMMON_ARCH_OBJECT_DIR
= [ FDirName $(TARGET_OBJECT_BASE_DIR) common ] ;
TARGET_ARCH_OBJECT_DIR
= [ FDirName $(TARGET_OBJECT_BASE_DIR) $(TARGET_ARCH) ] ;
TARGET_COMMON_DEBUG_OBJECT_DIR
= [ FDirName $(TARGET_ARCH_OBJECT_DIR) common ] ;
TARGET_DEBUG_0_OBJECT_DIR
= [ FDirName $(TARGET_ARCH_OBJECT_DIR) release ] ;
local level ;
for level in $(HAIKU_DEBUG_LEVELS[2-]) {
TARGET_DEBUG_$(level)_OBJECT_DIR
= [ FDirName $(TARGET_ARCH_OBJECT_DIR) debug_$(level) ] ;
}
# library name map
TARGET_LIBRARY_NAME_MAP = LIBBE_LIBRARY_NAME_MAP ;
LIBBE_LIBRARY_NAME_MAP_be = libbe_haiku.so ;
} }
+15
View File
@@ -126,6 +126,11 @@ rule SetPlatformCompatibilityFlagVariables
EXIT "specify it manually." ; EXIT "specify it manually." ;
} }
# special case: Haiku libbe.so built for testing under BeOS
if $(platform) = libbe_test {
platform = haiku ;
}
$(varPrefix)_PLATFORM_BEOS_COMPATIBLE = ; $(varPrefix)_PLATFORM_BEOS_COMPATIBLE = ;
$(varPrefix)_PLATFORM_BONE_COMPATIBLE = ; $(varPrefix)_PLATFORM_BONE_COMPATIBLE = ;
$(varPrefix)_PLATFORM_DANO_COMPATIBLE = ; $(varPrefix)_PLATFORM_DANO_COMPATIBLE = ;
@@ -178,6 +183,9 @@ rule SetPlatformCompatibilityFlagVariables
?= $($(varPrefix)_PLATFORM_BONE_COMPATIBLE) ; ?= $($(varPrefix)_PLATFORM_BONE_COMPATIBLE) ;
$(varPrefix)_PLATFORM_(r5)_COMPATIBLE $(varPrefix)_PLATFORM_(r5)_COMPATIBLE
?= $($(varPrefix)_PLATFORM_BEOS_COMPATIBLE) ; ?= $($(varPrefix)_PLATFORM_BEOS_COMPATIBLE) ;
$(varPrefix)_PLATFORM_(libbe_test)_COMPATIBLE
?= $($(varPrefix)_PLATFORM_BEOS_COMPATIBLE) ;
} }
@@ -211,6 +219,13 @@ rule SetSubDirSupportedPlatforms
SUPPORTED_PLATFORMS = $(1) ; SUPPORTED_PLATFORMS = $(1) ;
} }
rule AddSubDirSupportedPlatforms
{
# AddSubDirSupportedPlatforms <platforms> ;
SUPPORTED_PLATFORMS += $(1) ;
}
rule SetSubDirSupportedPlatformsBeOSCompatible rule SetSubDirSupportedPlatformsBeOSCompatible
{ {
# SetSubDirSupportedPlatformsBeOSCompatible ; # SetSubDirSupportedPlatformsBeOSCompatible ;
+15 -6
View File
@@ -5,7 +5,8 @@ rule AddSharedObjectGlueCode
# we link with -nostdlib and add the required libs manually, when building # we link with -nostdlib and add the required libs manually, when building
# for Haiku # for Haiku
if [ on $(1) return $(PLATFORM) ] = haiku { local platform = [ on $(1) return $(PLATFORM) ] ;
if $(platform) = haiku {
local stdLibs = libroot.so ; local stdLibs = libroot.so ;
local beginGlue ; local beginGlue ;
local endGlue ; local endGlue ;
@@ -29,6 +30,11 @@ rule AddSharedObjectGlueCode
Depends $(1) : $(stdLibs) $(beginGlue) $(endGlue) ; Depends $(1) : $(stdLibs) $(beginGlue) $(endGlue) ;
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib ; LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib ;
} }
# link against the compatibility libraries needed for the target
if $(platform) != host && $(TARGET_HAIKU_COMPATIBILITY_LIBS) {
LinkAgainst $(1) : $(TARGET_HAIKU_COMPATIBILITY_LIBS) ;
}
} }
rule Executable rule Executable
@@ -256,26 +262,29 @@ rule SharedLibrary
rule LinkAgainst rule LinkAgainst
{ {
# LinkAgainst <name> : <libs> ; # LinkAgainst <name> : <libs> [ : <mapLibs> ] ;
# Valid elements for <libs> are e.g. "be" or "libopenbeos.so" or # Valid elements for <libs> are e.g. "be" or "libtranslation.so" or
# "/boot/.../libfoo.so". If the basename starts with "lib" or the thingy # "/boot/.../libfoo.so". If the basename starts with "lib" or the thingy
# has a dirname or grist, it is added to the NEEDLIBS variable (i.e. the # has a dirname or grist, it is added to the NEEDLIBS variable (i.e. the
# file will be bound!), otherwise it is prefixed "-l" and added to # file will be bound!), otherwise it is prefixed "-l" and added to
# LINKLIBS. If you want to specify a target that isn't a library and # LINKLIBS. If you want to specify a target that isn't a library and
# also has neither grist nor a dirname, you can prepend "<nogrist>" as # also has neither grist nor a dirname, you can prepend "<nogrist>" as
# grist; it will be stripped by this rule. # grist; it will be stripped by this rule.
# <mapLibs> specifies whether the to translate library names (e.g. "be"
# to "libbe.so" in case of target platform "haiku"). Defaults to "true".
# #
local target = $(1) ; local target = $(1) ;
local libs = $(2) ; local libs = $(2) ;
local mapLibs = $(3) ; local mapLibs = $(3:E=true) ;
on $(target) { on $(target) {
# map libraries, if desired and target platform is Haiku # map libraries, if desired and target platform is Haiku
if $(PLATFORM) = haiku { if $(PLATFORM) != host && $(mapLibs) = true
&& $(TARGET_LIBRARY_NAME_MAP) {
local mappedLibs ; local mappedLibs ;
for i in $(libs) { for i in $(libs) {
local mapped = $(HAIKU_LIBRARY_NAME_MAP_$(i)) ; local mapped = $($(TARGET_LIBRARY_NAME_MAP)_$(i)) ;
mapped ?= $(i) ; mapped ?= $(i) ;
mappedLibs += $(mapped) ; mappedLibs += $(mapped) ;
} }
+22 -35
View File
@@ -1,51 +1,38 @@
#ifndef HAIKU_BUILD_COMPATIBILITY_H #ifndef HAIKU_BUILD_COMPATIBILITY_H
#define HAIKU_BUILD_COMPATIBILITY_H #define HAIKU_BUILD_COMPATIBILITY_H
#include <sys/types.h>
#include <Errors.h>
#include <string.h>
// no addr_t under standard BeOS
typedef unsigned long haiku_build_addr_t; typedef unsigned long haiku_build_addr_t;
#define addr_t haiku_build_addr_t #define addr_t haiku_build_addr_t
#include <Errors.h> #ifndef DEFFILEMODE
#include <sys/types.h> #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
#include <string.h> #endif
#ifndef FS_WRITE_FSINFO_NAME
#define FS_WRITE_FSINFO_NAME 0x0001
#endif
#ifndef B_CURRENT_TEAM
#define B_CURRENT_TEAM 0
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
// Is kernel-only under Linux. extern size_t strnlen(const char *string, size_t count);
extern size_t strlcat(char *dest, const char *source, size_t length);
extern size_t strlcpy(char *dest, const char *source, size_t length); extern size_t strlcpy(char *dest, const char *source, size_t length);
// BeOS only extern char *strcasestr(const char *string, const char *searchString);
extern ssize_t read_pos(int fd, off_t pos, void *buffer, size_t count);
extern ssize_t write_pos(int fd, off_t pos, const void *buffer,size_t count);
// There's no O_NOTRAVERSE under Linux, but there's a O_NOFOLLOW, which
// means something different (open() fails when the file is a symlink), but
// we can abuse this flag for our purposes (we filter it in libroot).
#ifndef O_NOTRAVERSE
#ifdef O_NOFOLLOW
#define O_NOTRAVERSE O_NOFOLLOW
#else
#define O_NOTRAVERSE 0
#endif
#endif
#ifndef S_IUMSK
#define S_IUMSK ALLPERMS
#endif
// remap strerror()
extern char *_haiku_build_strerror(int errnum);
#ifndef BUILDING_HAIKU_ERROR_MAPPER
#undef strerror
#define strerror(errnum) _haiku_build_strerror(errnum)
#endif
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
+34 -21
View File
@@ -8,21 +8,29 @@
#include <OS.h> #include <OS.h>
#include <image.h> #include <image.h>
#include <disk_device_manager/ddm_userland_interface.h> #include <storage/DiskDeviceDefs.h>
#include <sys/select.h> #include <signal.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
struct sigaction;
struct rlimit;
struct stat;
struct pollfd;
struct fs_info;
struct dirent; struct dirent;
struct fd_set;
struct fs_info;
struct iovec;
struct pollfd;
struct rlimit;
struct sigaction;
struct stat;
struct disk_device_job_progress_info;
struct partitionable_space_data;
struct user_disk_device_data;
struct user_disk_device_job_info;
struct user_disk_system_info;
// This marks the beginning of the syscalls prototypes for gensyscallinfos. // This marks the beginning of the syscalls prototypes for gensyscallinfos.
// NOTE: // NOTE:
@@ -146,7 +154,8 @@ extern status_t _kern_unlink(int fd, const char *path);
extern status_t _kern_rename(int oldDir, const char *oldpath, int newDir, extern status_t _kern_rename(int oldDir, const char *oldpath, int newDir,
const char *newpath); const char *newpath);
extern status_t _kern_access(const char *path, int mode); extern status_t _kern_access(const char *path, int mode);
extern ssize_t _kern_select(int numfds, fd_set *readSet, fd_set *writeSet, fd_set *errorSet, extern ssize_t _kern_select(int numfds, struct fd_set *readSet,
struct fd_set *writeSet, struct fd_set *errorSet,
bigtime_t timeout, const sigset_t *sigMask); bigtime_t timeout, const sigset_t *sigMask);
extern ssize_t _kern_poll(struct pollfd *fds, int numfds, bigtime_t timeout); extern ssize_t _kern_poll(struct pollfd *fds, int numfds, bigtime_t timeout);
extern int _kern_open_attr_dir(int fd, const char *path); extern int _kern_open_attr_dir(int fd, const char *path);
@@ -165,9 +174,10 @@ extern int _kern_open_query(dev_t device, const char *query, size_t queryLengt
// file descriptor functions // file descriptor functions
extern ssize_t _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize); extern ssize_t _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize);
extern ssize_t _kern_readv(int fd, off_t pos, const iovec *vecs, size_t count); extern ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count);
extern ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize); extern ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize);
extern ssize_t _kern_writev(int fd, off_t pos, const iovec *vecs, size_t count); extern ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs,
size_t count);
extern status_t _kern_ioctl(int fd, ulong cmd, void *data, size_t length); extern status_t _kern_ioctl(int fd, ulong cmd, void *data, size_t length);
extern ssize_t _kern_read_dir(int fd, struct dirent *buffer, size_t bufferSize, uint32 maxCount); extern ssize_t _kern_read_dir(int fd, struct dirent *buffer, size_t bufferSize, uint32 maxCount);
extern status_t _kern_rewind_dir(int fd); extern status_t _kern_rewind_dir(int fd);
@@ -231,8 +241,9 @@ extern ssize_t _kern_read_port_etc(port_id port, int32 *msgCode, void *msgBuffe
extern status_t _kern_set_port_owner(port_id port, team_id team); extern status_t _kern_set_port_owner(port_id port, team_id team);
extern status_t _kern_write_port_etc(port_id port, int32 msgCode, const void *msgBuffer, extern status_t _kern_write_port_etc(port_id port, int32 msgCode, const void *msgBuffer,
size_t bufferSize, uint32 flags, bigtime_t timeout); size_t bufferSize, uint32 flags, bigtime_t timeout);
extern status_t _kern_writev_port_etc(port_id id, int32 msgCode, const iovec *msgVecs, extern status_t _kern_writev_port_etc(port_id id, int32 msgCode,
size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout); const struct iovec *msgVecs, size_t vecCount,
size_t bufferSize, uint32 flags, bigtime_t timeout);
// debug support functions // debug support functions
extern void _kern_debugger(const char *message); extern void _kern_debugger(const char *message);
@@ -297,7 +308,7 @@ extern partition_id _kern_get_next_disk_device_id(int32 *cookie, size_t *neededS
extern partition_id _kern_find_disk_device(const char *filename, size_t *neededSize); extern partition_id _kern_find_disk_device(const char *filename, size_t *neededSize);
extern partition_id _kern_find_partition(const char *filename, size_t *neededSize); extern partition_id _kern_find_partition(const char *filename, size_t *neededSize);
extern status_t _kern_get_disk_device_data(partition_id deviceID, bool deviceOnly, extern status_t _kern_get_disk_device_data(partition_id deviceID, bool deviceOnly,
bool shadow, user_disk_device_data *buffer, bool shadow, struct user_disk_device_data *buffer,
size_t bufferSize, size_t *neededSize); size_t bufferSize, size_t *neededSize);
extern partition_id _kern_register_file_device(const char *filename); extern partition_id _kern_register_file_device(const char *filename);
extern status_t _kern_unregister_file_device(partition_id deviceID, extern status_t _kern_unregister_file_device(partition_id deviceID,
@@ -307,10 +318,11 @@ extern status_t _kern_unregister_file_device(partition_id deviceID,
// disk systems // disk systems
extern status_t _kern_get_disk_system_info(disk_system_id id, extern status_t _kern_get_disk_system_info(disk_system_id id,
user_disk_system_info *info); struct user_disk_system_info *info);
extern status_t _kern_get_next_disk_system_info(int32 *cookie, extern status_t _kern_get_next_disk_system_info(int32 *cookie,
user_disk_system_info *info); struct user_disk_system_info *info);
extern status_t _kern_find_disk_system(const char *name, user_disk_system_info *info); extern status_t _kern_find_disk_system(const char *name,
struct user_disk_system_info *info);
extern bool _kern_supports_defragmenting_partition(partition_id partitionID, extern bool _kern_supports_defragmenting_partition(partition_id partitionID,
int32 changeCounter, bool *whileMounted); int32 changeCounter, bool *whileMounted);
extern bool _kern_supports_repairing_partition(partition_id partitionID, extern bool _kern_supports_repairing_partition(partition_id partitionID,
@@ -357,8 +369,9 @@ extern status_t _kern_validate_create_child_partition(partition_id partitionID,
const char *type, const char *parameters, const char *type, const char *parameters,
size_t parametersSize); size_t parametersSize);
extern status_t _kern_get_partitionable_spaces(partition_id partitionID, extern status_t _kern_get_partitionable_spaces(partition_id partitionID,
int32 changeCounter, partitionable_space_data *buffer, int32 changeCounter,
int32 count, int32 *actualCount); struct partitionable_space_data *buffer, int32 count,
int32 *actualCount);
extern status_t _kern_get_next_supported_partition_type(partition_id partitionID, extern status_t _kern_get_next_supported_partition_type(partition_id partitionID,
int32 changeCounter, int32 *cookie, char *type); int32 changeCounter, int32 *cookie, char *type);
extern status_t _kern_get_partition_type_for_content_type(disk_system_id diskSystemID, extern status_t _kern_get_partition_type_for_content_type(disk_system_id diskSystemID,
@@ -404,11 +417,11 @@ extern status_t _kern_delete_partition(partition_id partitionID, int32 changeCo
// jobs // jobs
extern status_t _kern_get_next_disk_device_job_info(int32 *cookie, extern status_t _kern_get_next_disk_device_job_info(int32 *cookie,
user_disk_device_job_info *info); struct user_disk_device_job_info *info);
extern status_t _kern_get_disk_device_job_info(disk_job_id id, extern status_t _kern_get_disk_device_job_info(disk_job_id id,
user_disk_device_job_info *info); struct user_disk_device_job_info *info);
extern status_t _kern_get_disk_device_job_progress_info(disk_job_id id, extern status_t _kern_get_disk_device_job_progress_info(disk_job_id id,
disk_device_job_progress_info *info); struct disk_device_job_progress_info *info);
extern status_t _kern_pause_disk_device_job(disk_job_id id); extern status_t _kern_pause_disk_device_job(disk_job_id id);
extern status_t _kern_cancel_disk_device_job(disk_job_id id, bool reverse); extern status_t _kern_cancel_disk_device_job(disk_job_id id, bool reverse);
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon BeDecorator : decorators : Addon BeDecorator : decorators :
BeDecorator.cpp BeDecorator.cpp
: false : false
: be libopenbeos.so libappserver.so : be libappserver.so
; ;
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon MacDecorator : decorators : Addon MacDecorator : decorators :
MacDecorator.cpp MacDecorator.cpp
: false : false
: be libopenbeos.so libappserver.so : be libappserver.so
; ;
+1 -1
View File
@@ -7,5 +7,5 @@ UsePrivateHeaders [ FDirName servers app ] ;
Addon WinDecorator : decorators : Addon WinDecorator : decorators :
WinDecorator.cpp WinDecorator.cpp
: false : false
: be libopenbeos.so libappserver.so : be libappserver.so
; ;
@@ -10,11 +10,6 @@ Addon <input>serial_mouse : input_server/devices :
: false : false
: be device <nogrist>input_server ; : be device <nogrist>input_server ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst <input>mouse : <boot!home!config!lib>libopenbeos.so ;
}
Package haiku-inputkit-cvs : Package haiku-inputkit-cvs :
<input>serial_mouse : <input>serial_mouse :
boot home config add-ons input_server devices ; boot home config add-ons input_server devices ;
+1
View File
@@ -1,5 +1,6 @@
SubDir HAIKU_TOP src build ; SubDir HAIKU_TOP src build ;
SubInclude HAIKU_TOP src build libbe ; SubInclude HAIKU_TOP src build libbe ;
SubInclude HAIKU_TOP src build libhaikucompat ;
SubInclude HAIKU_TOP src build libroot ; 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++) $(TARGET_LIBSTDC++)
; ;
# Build libopenbeos.so # Build libbe_haiku.so
SetSupportedPlatformsForTarget libopenbeos.so : r5 bone dano ; SetSupportedPlatformsForTarget libbe_haiku.so : 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() only.
if $(TARGET_PLATFORM) = libbe_test {
local syslog = [ FGristFiles syslog.o ] ;
# Remove _NO_INLINE_ASM from the defines for syslog.cpp. Otherwise we get # 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. # references to tls_get/set() etc. that don't exist under BeOS.
TARGET_DEFINES on [ FGristFiles syslog.o ] TARGET_DEFINES on $(syslog)
= [ FFilter $(TARGET_DEFINES) : _NO_INLINE_ASM ] ; = [ 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 KMessage.cpp
syslog.cpp syslog.cpp
: :
@@ -63,7 +66,7 @@ SharedLibrary libopenbeos.so :
libbeadapter.so libbeadapter.so
net net
stdc++.r4 $(TARGET_LIBSTDC++)
; ;
SEARCH on [ FGristFiles KMessage.cpp ] SEARCH on [ FGristFiles KMessage.cpp ]
+1 -6
View File
@@ -20,12 +20,7 @@ if $(RUN_WITHOUT_APP_SERVER) != 0 {
UsePrivateHeaders shared app interface ; UsePrivateHeaders shared app interface ;
UsePrivateHeaders [ FDirName kernel util ] ; # For KMessage.h UsePrivateHeaders [ FDirName kernel util ] ; # For KMessage.h
SetSubDirSupportedPlatformsBeOSCompatible ; 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() only.
}
MergeObject <libbe>app_kit.o : MergeObject <libbe>app_kit.o :
AppDefs.cpp AppDefs.cpp
+1 -7
View File
@@ -23,13 +23,7 @@ if ! $(HAIKU_COMPATIBLE) {
SubDirC++Flags $(defines) ; SubDirC++Flags $(defines) ;
} }
SetSubDirSupportedPlatformsBeOSCompatible ; 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() only.
}
UsePrivateHeaders shared app interface input [ FDirName servers app ] ; UsePrivateHeaders shared app interface input [ FDirName servers app ] ;
+3 -2
View File
@@ -14,14 +14,15 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <syscalls.h>
#include <DiskDevice.h> #include <DiskDevice.h>
#include <DiskDeviceVisitor.h> #include <DiskDeviceVisitor.h>
#include <Drivers.h> #include <Drivers.h>
#include <Message.h> #include <Message.h>
#include <Path.h> #include <Path.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
/*! \class BDiskDevice /*! \class BDiskDevice
\brief A BDiskDevice object represents a storage device. \brief A BDiskDevice object represents a storage device.
+3 -2
View File
@@ -3,10 +3,11 @@
// by the OpenBeOS license. // by the OpenBeOS license.
//--------------------------------------------------------------------- //---------------------------------------------------------------------
#include <syscalls.h>
#include <DiskDeviceJob.h> #include <DiskDeviceJob.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
// constructor // constructor
BDiskDeviceJob::BDiskDeviceJob() BDiskDeviceJob::BDiskDeviceJob()
: fID(B_NO_INIT), : fID(B_NO_INIT),
+3 -2
View File
@@ -5,8 +5,6 @@
#include <new> #include <new>
#include <syscalls.h>
#include <Directory.h> #include <Directory.h>
#include <DiskDevice.h> #include <DiskDevice.h>
#include <DiskDeviceJob.h> #include <DiskDeviceJob.h>
@@ -19,6 +17,9 @@
#include <Partition.h> #include <Partition.h>
#include <Path.h> #include <Path.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
//#include "AddOnImage.h" //#include "AddOnImage.h"
/*! \class BDiskDeviceRoster /*! \class BDiskDeviceRoster
+3 -2
View File
@@ -3,11 +3,12 @@
// by the OpenBeOS license. // by the OpenBeOS license.
//--------------------------------------------------------------------- //---------------------------------------------------------------------
#include <syscalls.h>
#include <DiskSystem.h> #include <DiskSystem.h>
#include <Partition.h> #include <Partition.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
// constructor // constructor
BDiskSystem::BDiskSystem() BDiskSystem::BDiskSystem()
: fID(B_NO_INIT), : fID(B_NO_INIT),
+1
View File
@@ -8,6 +8,7 @@
*/ */
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#include <Directory.h> #include <Directory.h>
#include <Entry.h> #include <Entry.h>
+3 -18
View File
@@ -1,13 +1,6 @@
SubDir HAIKU_TOP src kits storage ; SubDir HAIKU_TOP src kits storage ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatforms haiku libbe_test ;
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.
}
UsePrivateHeaders shared app kernel storage ; UsePrivateHeaders shared app kernel storage ;
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ; UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
@@ -68,7 +61,7 @@ MergeObject <libbe>storage_kit.o :
Rule.cpp 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). # Interface Kit is not fully functional (at least the part we are using).
# So, we build it separately. # So, we build it separately.
@@ -90,13 +83,5 @@ MergeObject <libbe>storage_diskdevice_kit.o :
SharedLibrary libbeadapter.so : SharedLibrary libbeadapter.so :
LibBeAdapter.cpp LibBeAdapter.cpp
strlcat.c
strlcpy.c
strcasestr.c
: be
; ;
LinkAgainst libbeadapter.so : be : false ;
SEARCH on [ FGristFiles
strlcat.c strlcpy.c strcasestr.c
] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
+3 -2
View File
@@ -8,8 +8,6 @@
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <syscalls.h>
#include <Directory.h> #include <Directory.h>
#include <DiskDevice.h> #include <DiskDevice.h>
#include <DiskDevicePrivate.h> #include <DiskDevicePrivate.h>
@@ -23,6 +21,9 @@
#include <String.h> #include <String.h>
#include <Volume.h> #include <Volume.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
/*! \class BPartition /*! \class BPartition
\brief A BPartition object represent a partition and provides a lot of \brief A BPartition object represent a partition and provides a lot of
methods to retrieve information about it and some to manipulate it. methods to retrieve information about it and some to manipulate it.
+3 -2
View File
@@ -5,10 +5,11 @@
#include <new> #include <new>
#include <syscalls.h>
#include <PartitioningInfo.h> #include <PartitioningInfo.h>
#include <syscalls.h>
#include <disk_device_manager/ddm_userland_interface.h>
using namespace std; using namespace std;
// constructor // constructor
+4 -1
View File
@@ -17,7 +17,6 @@
#include <Bitmap.h> #include <Bitmap.h>
#include <Directory.h> #include <Directory.h>
#include <fs_info.h> #include <fs_info.h>
#include <fs_interface.h>
#include <Node.h> #include <Node.h>
#include <Path.h> #include <Path.h>
#include <Volume.h> #include <Volume.h>
@@ -25,6 +24,10 @@
#include <storage_support.h> #include <storage_support.h>
#include <syscalls.h> #include <syscalls.h>
#ifndef HAIKU_TARGET_PLATFORM_LIBBE_TEST
#include <fs_interface.h>
#endif
#ifdef USE_OPENBEOS_NAMESPACE #ifdef USE_OPENBEOS_NAMESPACE
namespace OpenBeOS { namespace OpenBeOS {
#endif #endif
+7 -7
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src kits support ; SubDir HAIKU_TOP src kits support ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatforms haiku libbe_test ;
if $(TARGET_PLATFORM) != haiku { #if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FStandardOSHeaders ] : true ; # UseHeaders [ FStandardOSHeaders ] : true ;
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; # UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
# TODO: POSIX headers shouldn't be used. Needed for strlcpy() and # # TODO: POSIX headers shouldn't be used. Needed for strlcpy() and
# addr_t. # # addr_t.
} #}
UsePrivateHeaders shared app ; UsePrivateHeaders shared app ;
+2
View File
@@ -1,6 +1,8 @@
SubDir HAIKU_TOP src kits textencoding ; SubDir HAIKU_TOP src kits textencoding ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UsePrivateHeaders textencoding ; UsePrivateHeaders textencoding ;
SubDirSysHdrs [ FDirName $(SUBDIR) libiconv ] ; SubDirSysHdrs [ FDirName $(SUBDIR) libiconv ] ;
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src kits textencoding libiconv ; SubDir HAIKU_TOP src kits textencoding libiconv ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
# disable warnings we don't want here # disable warnings we don't want here
TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS) TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src libs agg ; SubDir HAIKU_TOP src libs agg ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
UseLibraryHeaders agg ; UseLibraryHeaders agg ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 ; SubDir HAIKU_TOP src libs freetype2 ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
# The file <freetype/internal/internal.h> is used to define macros that are # 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 # 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 ; SubDir HAIKU_TOP src libs freetype2 autofit ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 autohint ; SubDir HAIKU_TOP src libs freetype2 autohint ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 base ; SubDir HAIKU_TOP src libs freetype2 base ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 bdf ; SubDir HAIKU_TOP src libs freetype2 bdf ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cache ; SubDir HAIKU_TOP src libs freetype2 cache ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cff ; SubDir HAIKU_TOP src libs freetype2 cff ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 cid ; SubDir HAIKU_TOP src libs freetype2 cid ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 gzip ; SubDir HAIKU_TOP src libs freetype2 gzip ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 lzw ; SubDir HAIKU_TOP src libs freetype2 lzw ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -12,6 +12,7 @@
SubDir HAIKU_TOP src libs freetype2 otvalid ; SubDir HAIKU_TOP src libs freetype2 otvalid ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pcf ; SubDir HAIKU_TOP src libs freetype2 pcf ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pfr ; SubDir HAIKU_TOP src libs freetype2 pfr ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 psaux ; SubDir HAIKU_TOP src libs freetype2 psaux ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 pshinter ; SubDir HAIKU_TOP src libs freetype2 pshinter ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 psnames ; SubDir HAIKU_TOP src libs freetype2 psnames ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 raster ; SubDir HAIKU_TOP src libs freetype2 raster ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 sfnt ; SubDir HAIKU_TOP src libs freetype2 sfnt ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 smooth ; SubDir HAIKU_TOP src libs freetype2 smooth ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 truetype ; SubDir HAIKU_TOP src libs freetype2 truetype ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 type1 ; SubDir HAIKU_TOP src libs freetype2 type1 ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 type42 ; SubDir HAIKU_TOP src libs freetype2 type42 ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -4,6 +4,7 @@
SubDir HAIKU_TOP src libs freetype2 winfonts ; SubDir HAIKU_TOP src libs freetype2 winfonts ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseFreeTypeHeaders ; UseFreeTypeHeaders ;
+1
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src libs png ; SubDir HAIKU_TOP src libs png ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseLibraryHeaders zlib ; UseLibraryHeaders zlib ;
+1 -1
View File
@@ -19,7 +19,7 @@ Preference Appearance :
#FontMenu.cpp #FontMenu.cpp
#MenuView.cpp #MenuView.cpp
: libbe.so libopenbeos.so libtranslation.so libappserver.so : be libtranslation.so libappserver.so
: Appearance.rdef : Appearance.rdef
; ;
+1 -3
View File
@@ -1,9 +1,7 @@
SubDir HAIKU_TOP src servers app drawing Painter ; SubDir HAIKU_TOP src servers app drawing Painter ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku { AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FStandardOSHeaders ] : true ;
}
UseLibraryHeaders agg ; UseLibraryHeaders agg ;
UsePrivateHeaders app interface shared [ FDirName servers app ] ; UsePrivateHeaders app interface shared [ FDirName servers app ] ;
+1 -19
View File
@@ -74,27 +74,9 @@ Server input_server :
AddOnMonitorHandler.cpp AddOnMonitorHandler.cpp
NodeMonitorHandler.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 SEARCH on [ FGristFiles AddOnMonitor.cpp
AddOnMonitorHandler.cpp AddOnMonitorHandler.cpp
NodeMonitorHandler.cpp ] += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) kits storage ] ; 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 <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <syscalls.h>
uint uint
+4 -2
View File
@@ -4,9 +4,11 @@
*/ */
#include <unistd.h>
#include <syscalls.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <syscalls.h>
uint uint
+4 -6
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src tests apps miniterminal ; SubDir HAIKU_TOP src tests apps miniterminal ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName $(HAIKU_TOP) src tests apps miniterminal ] ; UseHeaders [ FDirName $(HAIKU_TOP) src tests apps miniterminal ] ;
UseHeaders [ FDirName $(HAIKU_TOP) src apps terminal ] ; UseHeaders [ FDirName $(HAIKU_TOP) src apps terminal ] ;
@@ -14,13 +15,10 @@ Application MiniTerminal :
MiniView.cpp MiniView.cpp
MiniWin.cpp MiniWin.cpp
ViewBuffer.cpp ViewBuffer.cpp
; : be
;
if $(TARGET_PLATFORM) = haiku {
LinkAgainst MiniTerminal : be ;
} else {
LinkAgainst MiniTerminal : libopenbeos.so ;
if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : MiniTerminal HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : MiniTerminal
: tests!apps ; : tests!apps ;
} }
+2 -3
View File
@@ -25,7 +25,7 @@ CommonTestLib libmessagetest.so
MessageOpAssignTest.cpp MessageOpAssignTest.cpp
MessageEasyFindTest.cpp MessageEasyFindTest.cpp
MessageSpeedTest.cpp MessageSpeedTest.cpp
: <boot!home!config!lib>libopenbeos.so stdc++.r4 : be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: :
: app : app
@@ -151,8 +151,7 @@ CommonTestLib libapptest.so
AppRunner.cpp AppRunner.cpp
PipedAppRunner.cpp PipedAppRunner.cpp
: <boot!home!config!lib>libopenbeos.so : be stdc++.r4
be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: :
: app support : app support
@@ -37,7 +37,7 @@ rule SimpleBAppTestApp2
CommonUnitTest $(name) CommonUnitTest $(name)
: $(sources) : $(sources)
: kits app : kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects) : be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects) : be stdc++.r4 $(useR5Objects)
: app support : app support
; ;
+1 -1
View File
@@ -4,7 +4,7 @@ CommonUnitTest SMRemoteTargetApp
: SMRemoteTargetApp.cpp : SMRemoteTargetApp.cpp
SMLooper.cpp SMLooper.cpp
: kits app : kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 : be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: app support : app support
; ;
@@ -38,7 +38,7 @@ rule SimpleBMessengerTestApp2
CommonUnitTest $(name) CommonUnitTest $(name)
: $(sources) : $(sources)
: kits app : kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects) : be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects) : be stdc++.r4 $(useR5Objects)
: app support : app support
; ;
+1 -1
View File
@@ -40,7 +40,7 @@ rule SimpleBRosterTestApp2
CommonUnitTest $(name) CommonUnitTest $(name)
: $(sources) : $(sources)
: kits app : kits app
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects) : be stdc++.r4 $(useObjects)
: be stdc++.r4 $(useR5Objects) : be stdc++.r4 $(useR5Objects)
: app support : app support
; ;
+1 -2
View File
@@ -50,8 +50,7 @@ CommonTestLib libinterfacetest.so
WidthBufferTest.cpp WidthBufferTest.cpp
WidthBufferSimpleTest.cpp WidthBufferSimpleTest.cpp
: <boot!home!config!lib>libopenbeos.so : be stdc++.r4
be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: :
: app support : app support
+1 -1
View File
@@ -22,7 +22,7 @@ CommonTestLib libstoragetest.so
SymLinkTest.cpp SymLinkTest.cpp
TestApp.cpp TestApp.cpp
VolumeTest.cpp VolumeTest.cpp
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 : be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: :
: storage : storage
+1 -1
View File
@@ -9,7 +9,7 @@ UsePrivateHeaders storage ;
SimpleTest DiskDeviceTest SimpleTest DiskDeviceTest
: DiskDeviceTest.cpp : 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. # instead, we couldn't use any GUI. At least not at this time.
# #
# Mime.cpp # Mime.cpp
+1 -2
View File
@@ -74,8 +74,7 @@ CommonTestLib libsupporttest.so
BlockCacheExerciseTest.cpp BlockCacheExerciseTest.cpp
BlockCacheConcurrencyTest.cpp BlockCacheConcurrencyTest.cpp
: <boot!home!config!lib>libopenbeos.so : be stdc++.r4
be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: libsupporttest_RemoteTestObject.so : libsupporttest_RemoteTestObject.so
: support : support
@@ -7,7 +7,7 @@ AddResources libsupporttest_RemoteTestObject_r5.so : RemoteTestObject.rdef ;
CommonTestLib libsupporttest_RemoteTestObject.so CommonTestLib libsupporttest_RemoteTestObject.so
: RemoteTestObject.cpp : RemoteTestObject.cpp
: <boot!home!config!lib>libopenbeos.so be stdc++.r4 : be stdc++.r4
: be stdc++.r4 : be stdc++.r4
: :
: support : support
+9 -18
View File
@@ -1,15 +1,9 @@
SubDir HAIKU_TOP src tests servers app ; SubDir HAIKU_TOP src tests servers app ;
SetSubDirSupportedPlatforms r5 bone ; SetSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FStandardOSHeaders ] : true ; # No need to define any of those targets, when not building for libbe_test
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; if $(TARGET_PLATFORM) = libbe_test {
# 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 ] ;
UseLibraryHeaders agg png zlib ; UseLibraryHeaders agg png zlib ;
UsePrivateHeaders app interface shared [ FDirName servers app ] ; UsePrivateHeaders app interface shared [ FDirName servers app ] ;
@@ -24,15 +18,12 @@ UseFreeTypeHeaders ;
SEARCH_SOURCE += $(appServerDir) [ FDirName $(appServerDir) drawing ] ; 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 : SharedLibrary libhwinterface.so :
BBitmapBuffer.cpp BBitmapBuffer.cpp
HWInterface.cpp HWInterface.cpp
MultiLocker.cpp MultiLocker.cpp
: libhaikuappserver.so libopenbeos.so : libhaikuappserver.so be
; ;
@@ -46,7 +37,7 @@ SharedLibrary libhwinterfaceimpl.so :
fake_input_server.cpp fake_input_server.cpp
ViewHWInterface.cpp ViewHWInterface.cpp
: libopenbeos.so libhwinterface.so : be libhwinterface.so
; ;
SharedLibrary libhaikuappserver.so : SharedLibrary libhaikuappserver.so :
@@ -74,7 +65,7 @@ SharedLibrary libhaikuappserver.so :
# libraries # libraries
: :
libopenbeos.so libtextencoding.so libfreetype.so be libtextencoding.so libfreetype.so
; ;
AddResources haiku_app_server : app_server.rdef ; AddResources haiku_app_server : app_server.rdef ;
@@ -124,21 +115,21 @@ Server haiku_app_server :
# libraries # libraries
: :
z libpng.so libhaikuappserver.so z libpng.so libhaikuappserver.so
libpainter.a libopenbeos.so libpainter.a be
libhwinterface.so libhwinterfaceimpl.so libhwinterface.so libhwinterfaceimpl.so
libagg.a libfreetype.so libtextencoding.so libagg.a libfreetype.so libtextencoding.so
; ;
# install in the test dir # install in the test dir
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_LIB_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 libhwinterfaceimpl.so libfreetype.so libtextencoding.so
: tests!apps ; : tests!apps ;
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_app_server
: tests!apps ; : 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 bitmap_drawing ;
SubInclude HAIKU_TOP src tests servers app copy_bits ; 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 ; SubDir HAIKU_TOP src tests servers app bitmap_drawing ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
Application BitmapDrawing : Application BitmapDrawing :
main.cpp main.cpp
; : be
;
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 ;
}
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app copy_bits ; SubDir HAIKU_TOP src tests servers app copy_bits ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
SimpleTest CopyBits : SimpleTest CopyBits :
main.cpp main.cpp
# for running in the Haiku app_server under R5: : be ;
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
+3 -7
View File
@@ -1,6 +1,7 @@
SubDir HAIKU_TOP src tests servers app playground ; SubDir HAIKU_TOP src tests servers app playground ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
@@ -10,15 +11,10 @@ Application Playground :
ObjectView.cpp ObjectView.cpp
ObjectWindow.cpp ObjectWindow.cpp
States.cpp States.cpp
: be
; ;
if ( $(TARGET_PLATFORM) = haiku ) { if ( $(TARGET_PLATFORM) = libbe_test ) {
# for running natively under R5 or Haiku:
LinkAgainst Playground : be ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst Playground : libopenbeos.so ;
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : Playground HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : Playground
: tests!apps ; : tests!apps ;
} }
+5 -3
View File
@@ -7,15 +7,17 @@ UseHeaders [ FDirName $(clockDir) ] ;
SEARCH_SOURCE += $(clockDir) [ FDirName $(clockDir) ] ; SEARCH_SOURCE += $(clockDir) [ FDirName $(clockDir) ] ;
# No need to define any of those targets, when building for haiku # 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 : SimpleTest TestApp_Clock :
cl_view.cpp cl_view.cpp
cl_wind.cpp cl_wind.cpp
clock.cpp clock.cpp
: libopenbeos.so : be
: Clock.rdef : 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 ; SubDir HAIKU_TOP src tests servers app resize_limits ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
Application ResizeLimits : Application ResizeLimits :
ResizeLimits.cpp ResizeLimits.cpp
; : be
;
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 ;
}
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app scrolling ; SubDir HAIKU_TOP src tests servers app scrolling ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
SimpleTest Scrolling : SimpleTest Scrolling :
main.cpp main.cpp
# for running in the Haiku app_server under R5: : be ;
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
+4 -4
View File
@@ -1,12 +1,12 @@
SubDir HAIKU_TOP src tests servers app textview ; SubDir HAIKU_TOP src tests servers app textview ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
SimpleTest TextView : SimpleTest TextView :
main.cpp main.cpp
# for running in the Haiku app_server under R5: : be ;
# : <boot!home!config!lib>libopenbeos.so ;
# for running natively under R5 or Haiku:
: libbe.so ;
+3 -7
View File
@@ -1,21 +1,17 @@
SubDir HAIKU_TOP src tests servers app view_state ; SubDir HAIKU_TOP src tests servers app view_state ;
SetSubDirSupportedPlatformsBeOSCompatible ; SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ; UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ; UseHeaders [ FDirName os interface ] ;
Application ViewState : Application ViewState :
ViewState.cpp ViewState.cpp
: be
; ;
if ( $(TARGET_PLATFORM) = haiku ) { if $(TARGET_PLATFORM) = libbe_test {
# for running natively under R5 or Haiku:
LinkAgainst ViewState : be ;
} else {
# for running in the Haiku app_server under R5:
LinkAgainst ViewState : libopenbeos.so ;
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : ViewState HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : ViewState
: tests!apps ; : tests!apps ;
} }
-20
View File
@@ -22,11 +22,6 @@ SimpleTest KeymapTest :
Input.cpp Input.cpp
: be tracker ; : be tracker ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst KeymapTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles SEARCH on [ FGristFiles
KeymapApplication.cpp KeymapApplication.cpp
KeymapWindow.cpp KeymapWindow.cpp
@@ -48,11 +43,6 @@ SimpleTest KeyboardTest :
Input.cpp Input.cpp
: translation be ; : translation be ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst KeyboardTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles SEARCH on [ FGristFiles
Keyboard.cpp Keyboard.cpp
KeyboardSettings.cpp KeyboardSettings.cpp
@@ -75,11 +65,6 @@ SimpleTest MouseTest :
: translation be : translation be
; ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst MouseTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles SEARCH on [ FGristFiles
Mouse.cpp Mouse.cpp
MouseSettings.cpp MouseSettings.cpp
@@ -98,11 +83,6 @@ SimpleTest keymapTest :
Input.cpp Input.cpp
: be ; : be ;
if $(COMPILE_FOR_R5) {
} else {
LinkAgainst keymapTest : <boot!home!config!lib>libopenbeos.so ;
}
SEARCH on [ FGristFiles SEARCH on [ FGristFiles
main.cpp main.cpp
Keymap.cpp Keymap.cpp
@@ -1,6 +1,8 @@
SubDir HAIKU_TOP src tests servers input view_input_device ; SubDir HAIKU_TOP src tests servers input view_input_device ;
SetSubDirSupportedPlatforms libbe_test ;
Addon ViewInputDevice : input_server devices : ViewInputDevice.cpp ; 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 ] ; 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 ; SubDir HAIKU_TOP src tests servers registrar ;
local libbe ; SetSubDirSupportedPlatforms libbe_test ;
if $(TARGET_PLATFORM) = r5 {
libbe = libopenbeos.so ;
} else {
libbe = be ;
}
SimpleTest RegistrarTest1 SimpleTest RegistrarTest1
: RegistrarTest1.cpp : RegistrarTest1.cpp
: <boot!home!config!lib>libopenbeos.so be : be
; ;
SimpleTest RosterShell SimpleTest RosterShell
: RosterShell.cpp : RosterShell.cpp
: $(libbe) stdc++.r4 : be stdc++.r4
; ;
SimpleTest message_deliverer_test : message_deliverer_test.cpp SimpleTest message_deliverer_test : message_deliverer_test.cpp : be ;
: <boot!home!config!lib>libopenbeos.so ;
SimpleTest run_haiku_registrar SimpleTest run_haiku_registrar
@@ -27,47 +21,35 @@ SimpleTest run_haiku_registrar
; ;
# a shutdown working with the emulation under R5 # a shutdown working with the emulation under R5
if $(TARGET_PLATFORM) = r5 { UsePrivateHeaders app ;
UsePrivateHeaders app ; UsePrivateHeaders kernel ;
UsePrivateHeaders kernel ;
SimpleTest <test>shutdown SimpleTest <test>shutdown
: shutdown.cpp : shutdown.cpp
: <boot!home!config!lib>libopenbeos.so ; : be ;
SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ; SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
}
# Two small test apps for testing the shutdown process. # Two small test apps for testing the shutdown process.
SimpleTest no_shutdown_reply SimpleTest no_shutdown_reply
: no_shutdown_reply.cpp : no_shutdown_reply.cpp
: $(libbe) : be
; ;
SimpleTest negative_shutdown_reply SimpleTest negative_shutdown_reply
: negative_shutdown_reply.cpp : negative_shutdown_reply.cpp
: $(libbe) : be
; ;
SimpleTest user_shutdown_reply SimpleTest user_shutdown_reply
: user_shutdown_reply.cpp : user_shutdown_reply.cpp
: $(libbe) : be
; ;
# the registrar itself # 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 app ;
UsePrivateHeaders kernel ; UsePrivateHeaders kernel ;
UsePrivateHeaders shared ; UsePrivateHeaders shared ;
@@ -104,13 +86,13 @@ Server haiku_registrar
R5Compatibility.cpp R5Compatibility.cpp
: :
libopenbeos.so be
stdc++.r4 $(TARGET_LIBSTDC++)
: :
registrar.rdef registrar.rdef
; ;
if $(TARGET_PLATFORM) != haiku { if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_registrar HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : haiku_registrar
: tests!apps ; : tests!apps ;
} }