Moved resattr.cpp to src/bin, made it buildable for Haiku, and fixed a
warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
686c893326
commit
695f0b114b
@ -113,6 +113,7 @@ StdBinCommands
|
||||
dstcheck.cpp
|
||||
hey.cpp
|
||||
reindex.cpp
|
||||
resattr.cpp
|
||||
settype.cpp
|
||||
spybmessage.cpp
|
||||
urlwrapper.cpp
|
||||
|
@ -98,8 +98,9 @@ write_attributes(BNode &out, const char *inFileName, BResources &resources,
|
||||
const void *data = resources.LoadResource(type, id, &size);
|
||||
if (!data && size > 0) {
|
||||
// should not happen
|
||||
fprintf(stderr, "Failed to get resource `%s', type: %lx, id: %ld "
|
||||
"from input file `%s'\n", name, type, id, inFileName);
|
||||
fprintf(stderr, "Failed to get resource `%s', type: %" B_PRIx32
|
||||
", id: %" B_PRId32 " from input file `%s'\n", name, type, id,
|
||||
inFileName);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -257,7 +258,7 @@ attributes_to_resources(const char *outputFile, const char **inputFiles,
|
||||
}
|
||||
|
||||
// add the resources
|
||||
|
||||
|
||||
write_resources(resources, inputFiles[i], in, resID);
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ SubDir HAIKU_TOP src tools resattr ;
|
||||
|
||||
USES_BE_API on <build>resattr = true ;
|
||||
|
||||
BuildPlatformMain <build>resattr : resattr.cpp ;
|
||||
LinkAgainst <build>resattr : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
|
||||
BuildPlatformMain <build>resattr : resattr.cpp
|
||||
: $(HOST_LIBBE) $(HOST_LIBSUPC++) ;
|
||||
|
||||
SEARCH on [ FGristFiles resattr.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
|
||||
|
Loading…
Reference in New Issue
Block a user