Updated app_server Jamfile to be able to build a server that runs under Haiku
if $TARGET_PLATFORM requires this. Note, "jam app_server" for R5 did not work for me before and does not work now although the number of errors are reduced - whoever knows the requirements for the app_server under R5 better than me, please fix this. Added the app_server as well as some more drivers to the Haiku HD image. Since RUN_WITHOUT_APP_SERVER is still defined, it won't work correctly, though. For the time being, you need to manually alter this and the Bootscript in order to run it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+7
-4
@@ -116,9 +116,9 @@ BEOS_SYSTEM_LIB="libbe.so libstdc++.r4.so libnet.so libmedia.so \
|
|||||||
libtextencoding.so libz.so libfreetype.so libpng.so"
|
libtextencoding.so libz.so libfreetype.so libpng.so"
|
||||||
|
|
||||||
BEOS_SYSTEM_SERVERS="registrar debug_server syslog_daemon media_server \
|
BEOS_SYSTEM_SERVERS="registrar debug_server syslog_daemon media_server \
|
||||||
media_addon_server input_server"
|
media_addon_server input_server app_server"
|
||||||
|
|
||||||
BEOS_ADD_ONS_ACCELERANTS="radeon.accelerant"
|
BEOS_ADD_ONS_ACCELERANTS="radeon.accelerant nv.accelerant mga.accelerant nm.accelerant"
|
||||||
BEOS_ADD_ONS_TRANSLATORS="STXTTranslator RTF-Translator"
|
BEOS_ADD_ONS_TRANSLATORS="STXTTranslator RTF-Translator"
|
||||||
BEOS_ADD_ONS_MEDIA="mixer.media_addon legacy.media_addon multi_audio.media_addon"
|
BEOS_ADD_ONS_MEDIA="mixer.media_addon legacy.media_addon multi_audio.media_addon"
|
||||||
BEOS_ADD_ONS_INPUT_DEVICES="<input>keyboard"
|
BEOS_ADD_ONS_INPUT_DEVICES="<input>keyboard"
|
||||||
@@ -133,6 +133,7 @@ jam -j$(sysinfo -cpu | head -c 2) -q rc resattr kernel boot_loader config_manage
|
|||||||
$BEOS_ADD_ONS_TRANSLATORS $BEOS_ADD_ONS_MEDIA $BEOS_ADD_ONS_INPUT_DEVICES \
|
$BEOS_ADD_ONS_TRANSLATORS $BEOS_ADD_ONS_MEDIA $BEOS_ADD_ONS_INPUT_DEVICES \
|
||||||
libnet.so dprintf null zero random ps2_hid \<driver\>tty console \
|
libnet.so dprintf null zero random ps2_hid \<driver\>tty console \
|
||||||
\<driver\>config vga_text timezone_files keymap_files radeon.driver \
|
\<driver\>config vga_text timezone_files keymap_files radeon.driver \
|
||||||
|
nv.driver nm.driver mga.driver \
|
||||||
bfs_shell fs_shell_command \
|
bfs_shell fs_shell_command \
|
||||||
|| { echo "*** Build failed!" 1>&2 ; exit 1; }
|
|| { echo "*** Build failed!" 1>&2 ; exit 1; }
|
||||||
|
|
||||||
@@ -242,7 +243,7 @@ done
|
|||||||
|
|
||||||
cd $sourceDir/distro/${arch}.R1/beos/system/add-ons/kernel/drivers/bin
|
cd $sourceDir/distro/${arch}.R1/beos/system/add-ons/kernel/drivers/bin
|
||||||
$scd ${sPrefix}$sourceDir/distro/${arch}.R1/beos/system/add-ons/kernel/drivers/bin
|
$scd ${sPrefix}$sourceDir/distro/${arch}.R1/beos/system/add-ons/kernel/drivers/bin
|
||||||
for f in ps2_hid radeon.driver; do
|
for f in ps2_hid radeon.driver nv.driver mga.driver nm.driver; do
|
||||||
$cp ${sPrefix}$f $targetDir/beos/system/add-ons/kernel/drivers/bin
|
$cp ${sPrefix}$f $targetDir/beos/system/add-ons/kernel/drivers/bin
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -346,7 +347,9 @@ for f in drivers/dev/dprintf drivers/dev/keyboard drivers/dev/null \
|
|||||||
drivers/dev/misc/config drivers/dev/tty drivers/dev/zero \
|
drivers/dev/misc/config drivers/dev/tty drivers/dev/zero \
|
||||||
drivers/dev/disk/scsi/scsi_dsk drivers/dev/disk/scsi/scsi_cd \
|
drivers/dev/disk/scsi/scsi_dsk drivers/dev/disk/scsi/scsi_cd \
|
||||||
drivers/dev/misc/config drivers/dev/input/ps2_hid \
|
drivers/dev/misc/config drivers/dev/input/ps2_hid \
|
||||||
drivers/dev/console drivers/dev/graphics/radeon.driver; do
|
drivers/dev/console drivers/dev/graphics/radeon.driver \
|
||||||
|
drivers/dev/graphics/nv.driver drivers/dev/graphics/mga.driver \
|
||||||
|
drivers/dev/graphics/nm.driver; do
|
||||||
relName=$(echo $f | sed -e s@drivers/dev/@@)
|
relName=$(echo $f | sed -e s@drivers/dev/@@)
|
||||||
linkName=bin/$(basename $f)
|
linkName=bin/$(basename $f)
|
||||||
while [ $relName != . ]; do
|
while [ $relName != . ]; do
|
||||||
|
|||||||
+52
-29
@@ -12,6 +12,33 @@ UseHeaders [ FDirName $(OBOS_TOP) src servers app drawing Painter drawing_modes
|
|||||||
UseHeaders [ FDirName $(OBOS_TOP) src servers app drawing Painter font_support ] ;
|
UseHeaders [ FDirName $(OBOS_TOP) src servers app drawing Painter font_support ] ;
|
||||||
UseFreeTypeHeaders ;
|
UseFreeTypeHeaders ;
|
||||||
|
|
||||||
|
SEARCH_SOURCE += [ FDirName $(SUBDIR) drawing ] ;
|
||||||
|
|
||||||
|
if ( $(TARGET_PLATFORM) = haiku ) {
|
||||||
|
# This overrides the definition in private/servers/app/ServerConfig.h
|
||||||
|
defines = [ FDefines DISPLAYDRIVER=HWDRIVER ] ;
|
||||||
|
SubDirCcFlags $(defines) ;
|
||||||
|
SubDirC++Flags $(defines) ;
|
||||||
|
|
||||||
|
VIEW_DRIVER_SOURCES = AccelerantDriver.cpp ;
|
||||||
|
} else {
|
||||||
|
VIEW_DRIVER_SOURCES =
|
||||||
|
fake_input_server.cpp
|
||||||
|
AccelerantDriver.cpp
|
||||||
|
BitmapDriver.cpp
|
||||||
|
ViewDriver.cpp
|
||||||
|
DirectDriver.cpp
|
||||||
|
# We'll just remove this from the build for a little while...
|
||||||
|
#ScreenDriver.cpp
|
||||||
|
# Painter based DisplayDriver Classes
|
||||||
|
BitmapBuffer.cpp
|
||||||
|
DisplayDriverPainter.cpp
|
||||||
|
HWInterface.cpp
|
||||||
|
UpdateQueue.cpp
|
||||||
|
ViewHWInterface.cpp
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
SharedLibrary appserver :
|
SharedLibrary appserver :
|
||||||
Angle.cpp
|
Angle.cpp
|
||||||
BGet++.cpp
|
BGet++.cpp
|
||||||
@@ -20,15 +47,10 @@ SharedLibrary appserver :
|
|||||||
CursorData.cpp
|
CursorData.cpp
|
||||||
CursorHandler.cpp
|
CursorHandler.cpp
|
||||||
Decorator.cpp
|
Decorator.cpp
|
||||||
drawing/DisplayDriver.cpp
|
|
||||||
drawing/DisplayDriverImpl.cpp
|
|
||||||
drawing/DisplaySupport.cpp
|
|
||||||
FontFamily.cpp
|
FontFamily.cpp
|
||||||
GraphicsBuffer.cpp
|
GraphicsBuffer.cpp
|
||||||
IPoint.cpp
|
IPoint.cpp
|
||||||
LayerData.cpp
|
LayerData.cpp
|
||||||
drawing/PatternHandler.cpp
|
|
||||||
drawing/PixelRenderer.cpp
|
|
||||||
RectUtils.cpp
|
RectUtils.cpp
|
||||||
RGBColor.cpp
|
RGBColor.cpp
|
||||||
ServerBitmap.cpp
|
ServerBitmap.cpp
|
||||||
@@ -39,11 +61,14 @@ SharedLibrary appserver :
|
|||||||
SystemPalette.cpp
|
SystemPalette.cpp
|
||||||
TokenHandler.cpp
|
TokenHandler.cpp
|
||||||
Utils.cpp
|
Utils.cpp
|
||||||
;
|
|
||||||
|
|
||||||
LinkSharedOSLibs libappserver.so : root be
|
# drawing
|
||||||
<boot!home!config!lib>libopenbeos.so
|
PatternHandler.cpp
|
||||||
libfreetype.so ;
|
PixelRenderer.cpp
|
||||||
|
DisplayDriver.cpp
|
||||||
|
DisplayDriverImpl.cpp
|
||||||
|
DisplaySupport.cpp
|
||||||
|
;
|
||||||
|
|
||||||
Server app_server :
|
Server app_server :
|
||||||
# Misc. Sources
|
# Misc. Sources
|
||||||
@@ -60,21 +85,9 @@ Server app_server :
|
|||||||
ServerWindow.cpp
|
ServerWindow.cpp
|
||||||
|
|
||||||
# DisplayDriver Classes
|
# DisplayDriver Classes
|
||||||
drawing/fake_input_server.cpp
|
$(VIEW_DRIVER_SOURCES)
|
||||||
# Clipper.cpp
|
|
||||||
drawing/AccelerantDriver.cpp
|
|
||||||
drawing/BitmapDriver.cpp
|
|
||||||
drawing/ViewDriver.cpp
|
|
||||||
drawing/DirectDriver.cpp
|
|
||||||
# We'll just remove this from the build for a little while...
|
|
||||||
#drawing/ScreenDriver.cpp
|
|
||||||
# Painter based DisplayDriver Classes
|
|
||||||
drawing/BitmapBuffer.cpp
|
|
||||||
drawing/DisplayDriverPainter.cpp
|
|
||||||
drawing/HWInterface.cpp
|
|
||||||
drawing/UpdateQueue.cpp
|
|
||||||
drawing/ViewHWInterface.cpp
|
|
||||||
|
|
||||||
|
# Clipper.cpp
|
||||||
DefaultDecorator.cpp
|
DefaultDecorator.cpp
|
||||||
Layer.cpp
|
Layer.cpp
|
||||||
RootLayer.cpp
|
RootLayer.cpp
|
||||||
@@ -82,15 +95,25 @@ Server app_server :
|
|||||||
ServerScreen.cpp
|
ServerScreen.cpp
|
||||||
WinBorder.cpp
|
WinBorder.cpp
|
||||||
Workspace.cpp
|
Workspace.cpp
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
LINKFLAGS on app_server ?= $(LINKFLAGS) ;
|
# link libraries for app_server and libappserver.so
|
||||||
LINKFLAGS on app_server += -lbe ;
|
|
||||||
|
|
||||||
LinkSharedOSLibs app_server : root game translation libz.so libpng.so libappserver.so
|
if $(TARGET_PLATFORM) = haiku {
|
||||||
libpainter.a <boot!home!config!lib>libopenbeos.so
|
LinkSharedOSLibs libappserver.so :
|
||||||
libagg.a libfreetype.so textencoding ;
|
libroot.so libbe.so libfreetype.so ;
|
||||||
|
LinkSharedOSLibs app_server :
|
||||||
|
libroot.so libtranslation.so libz.so libpng.so libbe.so
|
||||||
|
libappserver.so libfreetype.so libtextencoding.so ;
|
||||||
|
} else {
|
||||||
|
LinkSharedOSLibs libappserver.so :
|
||||||
|
root be <boot!home!config!lib>libopenbeos.so
|
||||||
|
libfreetype.so ;
|
||||||
|
LinkSharedOSLibs app_server :
|
||||||
|
root be game translation libz.so libpng.so libappserver.so
|
||||||
|
libpainter.a <boot!home!config!lib>libopenbeos.so
|
||||||
|
libagg.a libfreetype.so textencoding ;
|
||||||
|
}
|
||||||
|
|
||||||
SubInclude OBOS_TOP src servers app fonts ;
|
SubInclude OBOS_TOP src servers app fonts ;
|
||||||
SubInclude OBOS_TOP src servers app drawing Painter ;
|
SubInclude OBOS_TOP src servers app drawing Painter ;
|
||||||
|
|||||||
Reference in New Issue
Block a user