* Changed Ld rule to allow adding resource files.
* Changed ResAttr rule to allow not deleting the file before writing the attributes. * Added application signatures for the runtime_loader and zbeos, just so that they may have an icon, too (hint, hint) :-) * As a side effect, this also let's FileTypes handle these two as apps (even though they aren't), so that I can close bug #606. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22412 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+11
-4
@@ -224,16 +224,21 @@ actions ResComp1
|
|||||||
cat "$(2[2-])" | $(CC) -E $(CCDEFS) $(HDRS) - | egrep -v '^#' | $(2[1]) $(RCHDRS) --auto-names -o "$(1)" -
|
cat "$(2[2-])" | $(CC) -E $(CCDEFS) $(HDRS) - | egrep -v '^#' | $(2[1]) $(RCHDRS) --auto-names -o "$(1)" -
|
||||||
}
|
}
|
||||||
|
|
||||||
rule ResAttr attributeFile : _resourceFiles
|
rule ResAttr attributeFile : _resourceFiles : deleteAttributeFile
|
||||||
{
|
{
|
||||||
# ResAttr <attribute file> : <resource files> ;
|
# ResAttr <attribute file> : <resource files> [ : <delete file> ] ;
|
||||||
#
|
#
|
||||||
# <attribute file> and <resource files> must be gristed.
|
# <attribute file> and <resource files> must be gristed.
|
||||||
# <resource files> can also be .rdef files -- they will be compiled first in
|
# <resource files> can also be .rdef files -- they will be compiled first in
|
||||||
# this case.
|
# this case.
|
||||||
|
# <clear file> is a boolean that specifies wether or not the target file
|
||||||
|
# should be removed before writing. Defaults to true.
|
||||||
|
|
||||||
local resourceFiles ;
|
local resourceFiles ;
|
||||||
local resourceFile ;
|
local resourceFile ;
|
||||||
|
deleteAttributeFile ?= true ;
|
||||||
|
deleteAttributeFile1 on $(1) = $(deleteAttributeFile) ;
|
||||||
|
|
||||||
for resourceFile in $(_resourceFiles) {
|
for resourceFile in $(_resourceFiles) {
|
||||||
# if the specified resource file is an .rdef file, we compile it first
|
# if the specified resource file is an .rdef file, we compile it first
|
||||||
if $(resourceFile:S) = ".rdef" {
|
if $(resourceFile:S) = ".rdef" {
|
||||||
@@ -256,6 +261,8 @@ rule ResAttr attributeFile : _resourceFiles
|
|||||||
actions ResAttr1
|
actions ResAttr1
|
||||||
{
|
{
|
||||||
$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
|
$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
|
||||||
rm -f $(1)
|
if [ \\"$(deleteAttributeFile1)\\" = "true" ]; then
|
||||||
$(2[1]) -o "$(1)" "$(2[2-])"
|
rm -f $(1)
|
||||||
|
fi
|
||||||
|
$(2[1]) -O -o "$(1)" "$(2[2-])"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -270,7 +270,6 @@ local spellFiles = words geekspeak ;
|
|||||||
spellFiles = $(spellFiles:G=spell) ;
|
spellFiles = $(spellFiles:G=spell) ;
|
||||||
SEARCH on $(spellFiles)
|
SEARCH on $(spellFiles)
|
||||||
= [ FDirName $(HAIKU_TOP) src apps mail ] ;
|
= [ FDirName $(HAIKU_TOP) src apps mail ] ;
|
||||||
#AddDirectoryToHaikuImage beos etc word_dictionary ;
|
|
||||||
AddFilesToHaikuImage beos etc word_dictionary : $(spellFiles) ;
|
AddFilesToHaikuImage beos etc word_dictionary : $(spellFiles) ;
|
||||||
|
|
||||||
local svgFiles = "lion.svg" ;
|
local svgFiles = "lion.svg" ;
|
||||||
|
|||||||
@@ -198,6 +198,13 @@ rule Ld
|
|||||||
Depends $(target) : $(objects) ;
|
Depends $(target) : $(objects) ;
|
||||||
|
|
||||||
MakeLocateDebug $(target) ;
|
MakeLocateDebug $(target) ;
|
||||||
|
|
||||||
|
on $(1) XRes $(1) : $(RESFILES) ;
|
||||||
|
if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
|
||||||
|
SetType $(1) ;
|
||||||
|
MimeSet $(1) ;
|
||||||
|
SetVersion $(1) ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
actions Ld
|
actions Ld
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ if $(TARGET_ARCH) = x86 {
|
|||||||
platformObjects += <src!system!kernel!arch!$(TARGET_ARCH)>cpuid.o ;
|
platformObjects += <src!system!kernel!arch!$(TARGET_ARCH)>cpuid.o ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AddResources zbeos : boot_loader.rdef ;
|
||||||
|
|
||||||
KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
|
KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
|
||||||
boot_platform_$(TARGET_BOOT_PLATFORM).o
|
boot_platform_$(TARGET_BOOT_PLATFORM).o
|
||||||
boot_arch_$(TARGET_ARCH).o
|
boot_arch_$(TARGET_ARCH).o
|
||||||
@@ -61,6 +63,12 @@ rule BuildZbeos {
|
|||||||
|
|
||||||
Depends $(zbeos) : $(bootLoader) ;
|
Depends $(zbeos) : $(bootLoader) ;
|
||||||
MakeLocateDebug $(zbeos) ;
|
MakeLocateDebug $(zbeos) ;
|
||||||
|
|
||||||
|
on $(1) ResAttr $(1) : $(RESFILES) : false ;
|
||||||
|
if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
|
||||||
|
SetType $(1) ;
|
||||||
|
MimeSet $(1) ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
actions BuildZbeos {
|
actions BuildZbeos {
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
resource app_signature "application/x-vnd.Haiku-BootLoader";
|
||||||
|
|
||||||
|
resource app_version {
|
||||||
|
major = 1,
|
||||||
|
middle = 0,
|
||||||
|
minor = 0,
|
||||||
|
|
||||||
|
variety = B_APPV_DEVELOPMENT,
|
||||||
|
internal = 0,
|
||||||
|
|
||||||
|
short_info = "Boot Loader",
|
||||||
|
long_info = "Boot Loader ©2002-2007 Haiku Inc."
|
||||||
|
};
|
||||||
@@ -14,6 +14,8 @@ DEFINES += BEOS_STYLE_SYMBOLS_RESOLUTION
|
|||||||
_LOADER_MODE
|
_LOADER_MODE
|
||||||
;
|
;
|
||||||
|
|
||||||
|
AddResources runtime_loader : runtime_loader.rdef ;
|
||||||
|
|
||||||
# needed for "runtime_loader" only
|
# needed for "runtime_loader" only
|
||||||
StaticLibrary libruntime_loader.a :
|
StaticLibrary libruntime_loader.a :
|
||||||
kernel_vsprintf.c
|
kernel_vsprintf.c
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
resource app_signature "application/x-vnd.Haiku-RuntimeLoader";
|
||||||
|
|
||||||
|
resource app_version {
|
||||||
|
major = 1,
|
||||||
|
middle = 0,
|
||||||
|
minor = 0,
|
||||||
|
|
||||||
|
variety = B_APPV_DEVELOPMENT,
|
||||||
|
internal = 0,
|
||||||
|
|
||||||
|
short_info = "Runtime Loader",
|
||||||
|
long_info = "Runtime Loader ©2002-2007 Haiku Inc."
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user