closing #5039:
* fix ICU jamfiles to no longer MakeLocate on source files and added some missing dependency declarations for break-iterators - now building with -j16 no longer fails (it did before, for me too) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,23 +33,32 @@ Depends ICU_ResourceBundles : ICU_BreakIterators ;
|
||||
|
||||
rule GenerateIndexedResourceBundles
|
||||
indexName : installableSources : otherSources : targetDir : sourceDir
|
||||
: additionalDependencies
|
||||
{
|
||||
local sources = $(installableSources) $(otherSources) ;
|
||||
GenerateResourceBundles $(sources) : $(targetDir) : $(sourceDir) ;
|
||||
GenerateResourceBundles $(installableSources) : $(targetDir)
|
||||
: $(sourceDir) ;
|
||||
GenerateResourceBundles $(otherSources) : $(targetDir) : $(sourceDir)
|
||||
: $(additionalDependencies) ;
|
||||
|
||||
local indexSource = $(indexName:G=$(sourceDir)) ;
|
||||
MakeLocateICUData $(indexSource) : $(targetDir) ;
|
||||
GenerateResourceIndex $(indexSource) : $(installableSources)
|
||||
: $(ICU_CLDR_VERSION) ;
|
||||
|
||||
local indexTarget = $(indexSource:S=.res) ;
|
||||
GenerateResourceIndex $(indexSource)
|
||||
: $(installableSources) : $(ICU_CLDR_VERSION) ;
|
||||
Depends $(indexTarget) : $(additionalDependencies) ;
|
||||
Depends ICU_ResourceBundles : $(indexTarget) ;
|
||||
GenerateResourceBundle $(indexTarget) : $(indexSource) : $(targetDir) ;
|
||||
}
|
||||
|
||||
rule GenerateResourceBundles sources : targetDir : sourceDir
|
||||
rule GenerateResourceBundles
|
||||
sources : targetDir : sourceDir : additionalDependencies
|
||||
{
|
||||
for source in $(sources) {
|
||||
local target = $(source:D=:S=.res:G=$(sourceDir)) ;
|
||||
Depends ICU_ResourceBundles : $(target) ;
|
||||
Depends $(target) : $(additionalDependencies) ;
|
||||
GenerateResourceBundle $(target) : $(source) : $(targetDir) ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,11 @@ actions GenerateBreakIterator1
|
||||
$(2[1]) -c -i $(ICU_DATA_DIR) -r $(2[2]) -o $(1) >/dev/null
|
||||
}
|
||||
|
||||
local brkSources = [ FGristFiles $(ICU_BRK_SOURCE) ] ;
|
||||
for source in $(brkSources) {
|
||||
MakeLocate $(source) : $(SUBDIR) ;
|
||||
local brkitrSources = [ FGristFiles $(ICU_BRK_SOURCE) ] ;
|
||||
local brkitrTargets ;
|
||||
for source in $(brkitrSources) {
|
||||
local target = $(source:D=:S=.brk) ;
|
||||
brkitrTargets += $(target) ;
|
||||
Depends ICU_BreakIterators : $(target) ;
|
||||
GenerateBreakIterator $(target) : $(source) ;
|
||||
}
|
||||
@@ -64,7 +65,6 @@ actions GenerateCtdBreakIterator1
|
||||
|
||||
local ctdSources = [ FGristFiles $(ICU_BRK_CTD_SOURCE) ] ;
|
||||
for source in $(ctdSources) {
|
||||
MakeLocate $(source) : $(SUBDIR) ;
|
||||
local target = $(source:D=:S=.ctd) ;
|
||||
Depends ICU_BreakIterators : $(target) ;
|
||||
GenerateCtdBreakIterator $(target) : $(source) ;
|
||||
@@ -78,10 +78,11 @@ local installableBrkitrSources = [ FGristFiles $(ICU_BRK_RES_SOURCE) ] ;
|
||||
local otherBrkitrSources
|
||||
= [ FGristFiles root.txt $(ICU_BRK_RES_ALIAS_SOURCE) ] ;
|
||||
|
||||
MakeLocate $(installableBrkitrSources) : $(SUBDIR) ;
|
||||
MakeLocate $(otherBrkitrSources) : $(SUBDIR) ;
|
||||
SEARCH on $(brkitrSources) = $(SUBDIR) ;
|
||||
SEARCH on $(ctdSources) = $(SUBDIR) ;
|
||||
SEARCH on $(installableBrkitrSources) = $(SUBDIR) ;
|
||||
SEARCH on $(otherBrkitrSources) = $(SUBDIR) ;
|
||||
|
||||
GenerateIndexedResourceBundles res_index.txt
|
||||
: $(installableBrkitrSources) : $(otherBrkitrSources)
|
||||
: brkitr : brkitr ;
|
||||
|
||||
: brkitr : brkitr : $(brkitrTargets) ;
|
||||
|
||||
@@ -70,9 +70,8 @@ local installableCollSources = [ FGristFiles $(ICU_COLLATION_SOURCE) ] ;
|
||||
local otherCollSources
|
||||
= [ FGristFiles root.txt $(ICU_COLLATION_ALIAS_SOURCE) ] ;
|
||||
|
||||
MakeLocate $(installableCollSources) : $(SUBDIR) ;
|
||||
MakeLocate $(otherCollSources) : $(SUBDIR) ;
|
||||
SEARCH on $(installableCollSources) = $(SUBDIR) ;
|
||||
SEARCH on $(otherCollSources) = $(SUBDIR) ;
|
||||
|
||||
GenerateIndexedResourceBundles res_index.txt
|
||||
: $(installableCollSources) : $(otherCollSources) : coll : coll ;
|
||||
|
||||
|
||||
@@ -86,8 +86,8 @@ ICU_GENRB_SOURCE = af.txt af_NA.txt af_ZA.txt am.txt
|
||||
local installableLocalesSources = [ FGristFiles $(ICU_GENRB_SOURCE) ] ;
|
||||
local otherLocalesSources = [ FGristFiles root.txt $(ICU_GENRB_ALIAS_SOURCE) ] ;
|
||||
|
||||
MakeLocate $(installableLocalesSources) : $(SUBDIR) ;
|
||||
MakeLocate $(otherLocalesSources) : $(SUBDIR) ;
|
||||
SEARCH on $(installableLocalesSources) = $(SUBDIR) ;
|
||||
SEARCH on $(otherLocalesSources) = $(SUBDIR) ;
|
||||
|
||||
GenerateIndexedResourceBundles res_index.txt
|
||||
: $(installableLocalesSources) : $(otherLocalesSources) : : locales ;
|
||||
|
||||
@@ -133,7 +133,6 @@ NotFile ICU_CharsetConverters ;
|
||||
|
||||
rule GenerateConvAliases target : source
|
||||
{
|
||||
MakeLocate $(source) : $(SUBDIR) ;
|
||||
MakeLocateICUData $(target) ;
|
||||
Depends $(target) : <build>gencnval $(source) ;
|
||||
LocalClean clean : $(target) ;
|
||||
@@ -147,6 +146,7 @@ actions GenerateConvAliases1
|
||||
}
|
||||
|
||||
local converters = [ FGristFiles convrtrs.txt ] ;
|
||||
SEARCH on $(converters) = $(SUBDIR) ;
|
||||
GenerateConvAliases cnvalias.icu : $(converters) ;
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@@ -155,7 +155,6 @@ GenerateConvAliases cnvalias.icu : $(converters) ;
|
||||
|
||||
rule GenerateCharsetConverter target : source
|
||||
{
|
||||
MakeLocate $(source) : $(SUBDIR) ;
|
||||
MakeLocateICUData $(target) ;
|
||||
Depends $(target) : <build>makeconv $(source) ;
|
||||
LocalClean clean : $(target) ;
|
||||
@@ -171,6 +170,7 @@ actions GenerateCharsetConverter1
|
||||
# local mappingSources = [ FGristFiles $(ICU_UCM_ALL) ] ;
|
||||
# use the above for running the ICU tests
|
||||
local mappingSources = [ FGristFiles $(ICU_UCM_SOURCE_CORE) ] ;
|
||||
SEARCH on $(mappingSources) = $(SUBDIR) ;
|
||||
|
||||
local source ;
|
||||
for source in $(mappingSources) {
|
||||
|
||||
@@ -11,5 +11,5 @@ ICU_MISC_SOURCE = zoneinfo.txt supplementalData.txt metazoneInfo.txt
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
local miscSources = [ FGristFiles $(ICU_MISC_SOURCE) ] ;
|
||||
MakeLocate $(miscSources) : $(SUBDIR) ;
|
||||
SEARCH on $(miscSources) = $(SUBDIR) ;
|
||||
GenerateResourceBundles $(miscSources) : : misc ;
|
||||
|
||||
@@ -30,8 +30,8 @@ ICU_RBNF_SOURCE = af.txt am.txt ar.txt az.txt
|
||||
local installableRbnfSources = [ FGristFiles $(ICU_RBNF_SOURCE) ] ;
|
||||
local otherRbnfSources = [ FGristFiles root.txt $(ICU_RBNF_ALIAS_SOURCE) ] ;
|
||||
|
||||
MakeLocate $(installableRbnfSources) : $(SUBDIR) ;
|
||||
MakeLocate $(otherRbnfSources) : $(SUBDIR) ;
|
||||
SEARCH on $(installableRbnfSources) = $(SUBDIR) ;
|
||||
SEARCH on $(otherRbnfSources) = $(SUBDIR) ;
|
||||
|
||||
GenerateIndexedResourceBundles res_index.txt
|
||||
: $(installableRbnfSources) : $(otherRbnfSources) : rbnf : rbnf ;
|
||||
|
||||
@@ -32,7 +32,7 @@ actions GenerateStringPrep1
|
||||
|
||||
local sprepSources = [ FGristFiles $(ICU_SPREP_SOURCE) ] ;
|
||||
for source in $(sprepSources) {
|
||||
MakeLocate $(source) : $(SUBDIR) ;
|
||||
SEARCH on $(source) = $(SUBDIR) ;
|
||||
local target = $(source:D=:S=.spp) ;
|
||||
Depends ICU_StringPreps : $(target) ;
|
||||
GenerateStringPrep $(target) : $(source) ;
|
||||
|
||||
@@ -9,6 +9,6 @@ ICU_TRANSLIT_SOURCE = root.txt en.txt el.txt ;
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
local translitSources = [ FGristFiles $(ICU_TRANSLIT_SOURCE) ] ;
|
||||
MakeLocate $(translitSources) : $(SUBDIR) ;
|
||||
SEARCH on $(translitSources) = $(SUBDIR) ;
|
||||
GenerateResourceBundles $(translitSources) : translit : translit ;
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ actions GeneratePNames1
|
||||
|
||||
local propertyFiles
|
||||
= [ FGristFiles Blocks.txt PropertyAliases.txt PropertyValueAliases.txt ] ;
|
||||
MakeLocate $(propertyFiles) : $(SUBDIR) ;
|
||||
SEARCH on $(propertyFiles) = $(SUBDIR) ;
|
||||
|
||||
local propertyHeaders = [ FGristFiles uscript.h uchar.h ] ;
|
||||
MakeLocate $(propertyHeaders)
|
||||
: [ FDirName $(HAIKU_TOP) headers libs icu unicode ] ;
|
||||
SEARCH on $(propertyHeaders)
|
||||
= [ FDirName $(HAIKU_TOP) headers libs icu unicode ] ;
|
||||
|
||||
GeneratePNames pnames.icu : $(propertyFiles) $(propertyHeaders) ;
|
||||
|
||||
@@ -49,7 +49,7 @@ actions GenerateUNames1
|
||||
}
|
||||
|
||||
local unicodeData = [ FGristFiles UnicodeData.txt ] ;
|
||||
MakeLocate $(unicodeData) : $(SUBDIR) ;
|
||||
SEARCH on $(unicodeData) = $(SUBDIR) ;
|
||||
GenerateUNames unames.icu : $(unicodeData) ;
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@@ -71,7 +71,7 @@ actions GenerateUcaData1
|
||||
}
|
||||
|
||||
local fractionalUCA = [ FGristFiles FractionalUCA.txt ] ;
|
||||
MakeLocate $(fractionalUCA) : $(SUBDIR) ;
|
||||
SEARCH on $(fractionalUCA) = $(SUBDIR) ;
|
||||
GenerateUcaData ucadata.icu invuca.icu : $(fractionalUCA) ;
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@@ -94,7 +94,7 @@ actions GenerateConfusables1
|
||||
|
||||
local confusableSources
|
||||
= [ FGristFiles confusables.txt confusablesWholeScript.txt ] ;
|
||||
MakeLocate $(confusableSources) : $(SUBDIR) ;
|
||||
SEARCH on $(confusableSources) = $(SUBDIR) ;
|
||||
local target = $(confusableSources[1]:D=:S=.cfu) ;
|
||||
Depends ICU_Confusables : $(target) ;
|
||||
GenerateConfusables $(target) : $(confusableSources) ;
|
||||
|
||||
Reference in New Issue
Block a user