Cleanup OptionalBuildFeatures and add CLucene as optional build feature / fix dependencies.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39176 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
843c030f80
commit
831d929e8c
@ -110,6 +110,20 @@ if $(TARGET_ARCH) = ppc {
|
||||
}
|
||||
|
||||
|
||||
# zip file and output directory
|
||||
HAIKU_ICU_DEVEL_ZIP_FILE = [ DownloadFile $(HAIKU_ICU_DEVEL_PACKAGE)
|
||||
: $(baseURL)/$(HAIKU_ICU_DEVEL_PACKAGE) ] ;
|
||||
HAIKU_ICU_DEVEL_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
||||
$(HAIKU_ICU_DEVEL_PACKAGE:B) ] ;
|
||||
|
||||
# extract headers
|
||||
HAIKU_ICU_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_ICU_DEVEL_DIR)
|
||||
: develop/headers/3rdparty : $(HAIKU_ICU_DEVEL_ZIP_FILE) ] ;
|
||||
|
||||
HAIKU_ICU_HEADERS
|
||||
= [ FDirName $(HAIKU_ICU_DEVEL_DIR) develop headers 3rdparty ] ;
|
||||
|
||||
|
||||
# EtPan
|
||||
|
||||
# Automatically install the EtPan mail lib, when the optional EtPan optional
|
||||
@ -121,6 +135,7 @@ if [ IsOptionalHaikuImagePackageAdded EtPan ] {
|
||||
HAIKU_ETPAN_GCC_2_PACKAGE = etpan-1.0-x86-gcc2-2010-10-20.zip ;
|
||||
HAIKU_ETPAN_GCC_4_PACKAGE = etpan-1.0-x86-gcc4-2010-10-20.zip ;
|
||||
|
||||
if $(HAIKU_BUILD_FEATURE_ETPAN) {
|
||||
if $(TARGET_ARCH) != x86 {
|
||||
Echo "EtPan not available for $(TARGET_ARCH)" ;
|
||||
} else {
|
||||
@ -148,17 +163,46 @@ if $(TARGET_ARCH) != x86 {
|
||||
HAIKU_ETPAN_HEADERS
|
||||
= [ FDirName $(HAIKU_ETPAN_DIR) common include ] ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# CLucene
|
||||
|
||||
# Automatically install the CLucene feature, when the optional CLucene optional
|
||||
# package is enabled.
|
||||
if [ IsOptionalHaikuImagePackageAdded CLucene ] {
|
||||
HAIKU_BUILD_FEATURE_CLUCENE = 1 ;
|
||||
}
|
||||
|
||||
local baseURL = http://haiku-files.org/files/optional-packages ;
|
||||
HAIKU_CLUCENE_PACKAGE = clucene-0.9.21svn-x86-gcc4-haiku-2009-08-11.zip ;
|
||||
HAIKU_CLUCENE_URL = $(baseURL)/$(HAIKU_CLUCENE_PACKAGE) ;
|
||||
|
||||
if $(HAIKU_BUILD_FEATURE_CLUCENE) {
|
||||
if $(TARGET_ARCH) != x86 {
|
||||
Echo "CLucene build feature not available for $(TARGET_ARCH)" ;
|
||||
} else {
|
||||
# Download the zip archive.
|
||||
local zipFile = [ DownloadFile $(HAIKU_CLUCENE_PACKAGE)
|
||||
: $(HAIKU_CLUCENE_URL) ] ;
|
||||
|
||||
# zip file and output directory
|
||||
HAIKU_ICU_DEVEL_ZIP_FILE = [ DownloadFile $(HAIKU_ICU_DEVEL_PACKAGE)
|
||||
: $(baseURL)/$(HAIKU_ICU_DEVEL_PACKAGE) ] ;
|
||||
HAIKU_ICU_DEVEL_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
||||
$(HAIKU_ICU_DEVEL_PACKAGE:B) ] ;
|
||||
HAIKU_CLUCENE_ZIP_FILE = $(zipFile) ;
|
||||
HAIKU_CLUCENE_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
||||
$(HAIKU_CLUCENE_PACKAGE:B) ] ;
|
||||
|
||||
# extract headers
|
||||
HAIKU_ICU_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_ICU_DEVEL_DIR)
|
||||
: develop/headers/3rdparty : $(HAIKU_ICU_DEVEL_ZIP_FILE) ] ;
|
||||
# extract headers and libraries
|
||||
HAIKU_CLUCENE_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_CLUCENE_DIR)
|
||||
: common/include/ : $(zipFile)
|
||||
] ;
|
||||
|
||||
HAIKU_ICU_HEADERS
|
||||
= [ FDirName $(HAIKU_ICU_DEVEL_DIR) develop headers 3rdparty ] ;
|
||||
HAIKU_CLUCENE_LIBS = [ ExtractArchive $(HAIKU_CLUCENE_DIR)
|
||||
:
|
||||
common/lib/libclucene.a
|
||||
: $(zipFile)
|
||||
] ;
|
||||
|
||||
HAIKU_CLUCENE_HEADERS
|
||||
= [ FDirName $(HAIKU_CLUCENE_DIR) common include ] ;
|
||||
}
|
||||
}
|
||||
|
@ -2,13 +2,20 @@ SubDir HAIKU_TOP src add-ons index_server FullText ;
|
||||
|
||||
UsePrivateHeaders index_server shared ;
|
||||
|
||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
||||
|
||||
Addon FullTextAnalyser :
|
||||
local sources =
|
||||
CLuceneDataBase.cpp
|
||||
FullTextAnalyser.cpp
|
||||
|
||||
IndexServerAddOn.cpp
|
||||
;
|
||||
|
||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_CLUCENE_HEADERS_DEPENDENCY) ;
|
||||
# Dependency needed to trigger downloading/unzipping the package before
|
||||
# compiling the files.
|
||||
|
||||
Addon FullTextAnalyser :
|
||||
$(sources)
|
||||
:
|
||||
be translation $(HAIKU_CLUCENE_LIBS) $(TARGET_LIBSTDC++)
|
||||
;
|
||||
|
@ -1,13 +1,20 @@
|
||||
SubDir HAIKU_TOP src tests add-ons index_server fulltext_search ;
|
||||
|
||||
UsePrivateHeaders index_server shared ;
|
||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
||||
|
||||
|
||||
Application FullTextSearch :
|
||||
local sources =
|
||||
BeaconSearcher.cpp
|
||||
main.cpp
|
||||
SearchWindow.cpp
|
||||
: be $(HAIKU_CLUCENE_LIBS) $(TARGET_LIBSTDC++)
|
||||
# : Sudoku.rdef
|
||||
;
|
||||
|
||||
UsePrivateHeaders index_server shared ;
|
||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
||||
local cluceneSources ;
|
||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_CLUCENE_HEADERS_DEPENDENCY) ;
|
||||
# Dependency needed to trigger downloading/unzipping the package before
|
||||
# compiling the files.
|
||||
|
||||
Application FullTextSearch :
|
||||
$(sources)
|
||||
:
|
||||
be $(HAIKU_CLUCENE_LIBS) $(TARGET_LIBSTDC++)
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user