Moved the BAboutWindow implementation to the shared source directory, which

despite being talked about repeatedly, does not currently exist.

Adding this required adding some new Jam rules to deal with this shared source
directory and headers. I had some fun figuring this out. Despite writing
articles about Jam in the Haiku newsletter a few years ago I still find Jam to
be a PITA at times.

But my solution seems to work pretty well. Basically you just call the rule
UseSharedSource and pass the name of the shared source file you want to use.
This rule sets up the header directories and the right Jam variables for the
source file. You then add the source file to the source list in the Application
rule like any other source file.

I also made the authors list sent to the about window constructor null
terminated instead of passing the size of the array, as suggested by Hugo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21391 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2007-06-12 03:54:07 +00:00
parent 31d4291174
commit 5a1210fbef
7 changed files with 34 additions and 17 deletions
+12
View File
@@ -249,3 +249,15 @@ actions CopySetHaikuRevision1
$(2[1]) --data $(2[3]) $(1) &&
$(2[2]) $(1) ${revision}
}
rule UseSharedSource
{
UseSharedHeaders ;
for file in $(1) {
local gristed_file = [ FGristFiles $(file) ] ;
SEARCH on $(gristed_file) = [ FDirName $(HAIKU_TOP) src shared ] ;
LOCATE on $(gristed_file) = [ FDirName $(HAIKU_TOP) src shared ] ;
SEARCH_SOURCE on $(gristed_file) = [ FDirName $(HAIKU_TOP) src shared ] ;
}
}