* 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:
parent
0064e64138
commit
4421183286
@ -224,16 +224,21 @@ actions ResComp1
|
||||
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.
|
||||
# <resource files> can also be .rdef files -- they will be compiled first in
|
||||
# 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 resourceFile ;
|
||||
deleteAttributeFile ?= true ;
|
||||
deleteAttributeFile1 on $(1) = $(deleteAttributeFile) ;
|
||||
|
||||
for resourceFile in $(_resourceFiles) {
|
||||
# if the specified resource file is an .rdef file, we compile it first
|
||||
if $(resourceFile:S) = ".rdef" {
|
||||
@ -256,6 +261,8 @@ rule ResAttr attributeFile : _resourceFiles
|
||||
actions ResAttr1
|
||||
{
|
||||
$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
|
||||
rm -f $(1)
|
||||
$(2[1]) -o "$(1)" "$(2[2-])"
|
||||
if [ \\"$(deleteAttributeFile1)\\" = "true" ]; then
|
||||
rm -f $(1)
|
||||
fi
|
||||
$(2[1]) -O -o "$(1)" "$(2[2-])"
|
||||
}
|
||||
|
@ -270,7 +270,6 @@ local spellFiles = words geekspeak ;
|
||||
spellFiles = $(spellFiles:G=spell) ;
|
||||
SEARCH on $(spellFiles)
|
||||
= [ FDirName $(HAIKU_TOP) src apps mail ] ;
|
||||
#AddDirectoryToHaikuImage beos etc word_dictionary ;
|
||||
AddFilesToHaikuImage beos etc word_dictionary : $(spellFiles) ;
|
||||
|
||||
local svgFiles = "lion.svg" ;
|
||||
|
@ -198,6 +198,13 @@ rule Ld
|
||||
Depends $(target) : $(objects) ;
|
||||
|
||||
MakeLocateDebug $(target) ;
|
||||
|
||||
on $(1) XRes $(1) : $(RESFILES) ;
|
||||
if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
|
||||
SetType $(1) ;
|
||||
MimeSet $(1) ;
|
||||
SetVersion $(1) ;
|
||||
}
|
||||
}
|
||||
|
||||
actions Ld
|
||||
|
@ -30,6 +30,8 @@ if $(TARGET_ARCH) = x86 {
|
||||
platformObjects += <src!system!kernel!arch!$(TARGET_ARCH)>cpuid.o ;
|
||||
}
|
||||
|
||||
AddResources zbeos : boot_loader.rdef ;
|
||||
|
||||
KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
|
||||
boot_platform_$(TARGET_BOOT_PLATFORM).o
|
||||
boot_arch_$(TARGET_ARCH).o
|
||||
@ -61,6 +63,12 @@ rule BuildZbeos {
|
||||
|
||||
Depends $(zbeos) : $(bootLoader) ;
|
||||
MakeLocateDebug $(zbeos) ;
|
||||
|
||||
on $(1) ResAttr $(1) : $(RESFILES) : false ;
|
||||
if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
|
||||
SetType $(1) ;
|
||||
MimeSet $(1) ;
|
||||
}
|
||||
}
|
||||
|
||||
actions BuildZbeos {
|
||||
|
13
src/system/boot/boot_loader.rdef
Normal file
13
src/system/boot/boot_loader.rdef
Normal file
@ -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
|
||||
;
|
||||
|
||||
AddResources runtime_loader : runtime_loader.rdef ;
|
||||
|
||||
# needed for "runtime_loader" only
|
||||
StaticLibrary libruntime_loader.a :
|
||||
kernel_vsprintf.c
|
||||
|
13
src/system/runtime_loader/runtime_loader.rdef
Normal file
13
src/system/runtime_loader/runtime_loader.rdef
Normal file
@ -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."
|
||||
};
|
Loading…
Reference in New Issue
Block a user