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:
@@ -110,46 +110,6 @@ if $(TARGET_ARCH) = ppc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# EtPan
|
|
||||||
|
|
||||||
# Automatically install the EtPan mail lib, when the optional EtPan optional
|
|
||||||
# package is enabled.
|
|
||||||
if [ IsOptionalHaikuImagePackageAdded EtPan ] {
|
|
||||||
HAIKU_BUILD_FEATURE_ETPAN = 1 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 $(TARGET_ARCH) != x86 {
|
|
||||||
Echo "EtPan not available for $(TARGET_ARCH)" ;
|
|
||||||
} else {
|
|
||||||
local etpan_package ;
|
|
||||||
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
|
||||||
etpan_package = $(HAIKU_ETPAN_GCC_2_PACKAGE) ;
|
|
||||||
} else {
|
|
||||||
etpan_package = $(HAIKU_ETPAN_GCC_4_PACKAGE) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
local zipFile = [ DownloadFile $(etpan_package)
|
|
||||||
: $(baseURL)/$(etpan_package) ] ;
|
|
||||||
|
|
||||||
# zip file and output directory
|
|
||||||
HAIKU_ETPAN_ZIP_FILE = $(zipFile) ;
|
|
||||||
HAIKU_ETPAN_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
||||||
$(etpan_package:B) ] ;
|
|
||||||
|
|
||||||
# extract libraries
|
|
||||||
HAIKU_ETPAN_LIBS = [ ExtractArchive $(HAIKU_ETPAN_DIR)
|
|
||||||
:
|
|
||||||
common/lib/libetpan.a
|
|
||||||
: $(zipFile)
|
|
||||||
] ;
|
|
||||||
HAIKU_ETPAN_HEADERS
|
|
||||||
= [ FDirName $(HAIKU_ETPAN_DIR) common include ] ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# zip file and output directory
|
# zip file and output directory
|
||||||
HAIKU_ICU_DEVEL_ZIP_FILE = [ DownloadFile $(HAIKU_ICU_DEVEL_PACKAGE)
|
HAIKU_ICU_DEVEL_ZIP_FILE = [ DownloadFile $(HAIKU_ICU_DEVEL_PACKAGE)
|
||||||
: $(baseURL)/$(HAIKU_ICU_DEVEL_PACKAGE) ] ;
|
: $(baseURL)/$(HAIKU_ICU_DEVEL_PACKAGE) ] ;
|
||||||
@@ -162,3 +122,87 @@ HAIKU_ICU_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_ICU_DEVEL_DIR)
|
|||||||
|
|
||||||
HAIKU_ICU_HEADERS
|
HAIKU_ICU_HEADERS
|
||||||
= [ FDirName $(HAIKU_ICU_DEVEL_DIR) develop headers 3rdparty ] ;
|
= [ FDirName $(HAIKU_ICU_DEVEL_DIR) develop headers 3rdparty ] ;
|
||||||
|
|
||||||
|
|
||||||
|
# EtPan
|
||||||
|
|
||||||
|
# Automatically install the EtPan mail lib, when the optional EtPan optional
|
||||||
|
# package is enabled.
|
||||||
|
if [ IsOptionalHaikuImagePackageAdded EtPan ] {
|
||||||
|
HAIKU_BUILD_FEATURE_ETPAN = 1 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 {
|
||||||
|
local etpan_package ;
|
||||||
|
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
||||||
|
etpan_package = $(HAIKU_ETPAN_GCC_2_PACKAGE) ;
|
||||||
|
} else {
|
||||||
|
etpan_package = $(HAIKU_ETPAN_GCC_4_PACKAGE) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
local zipFile = [ DownloadFile $(etpan_package)
|
||||||
|
: $(baseURL)/$(etpan_package) ] ;
|
||||||
|
|
||||||
|
# zip file and output directory
|
||||||
|
HAIKU_ETPAN_ZIP_FILE = $(zipFile) ;
|
||||||
|
HAIKU_ETPAN_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
||||||
|
$(etpan_package:B) ] ;
|
||||||
|
|
||||||
|
# extract libraries
|
||||||
|
HAIKU_ETPAN_LIBS = [ ExtractArchive $(HAIKU_ETPAN_DIR)
|
||||||
|
:
|
||||||
|
common/lib/libetpan.a
|
||||||
|
: $(zipFile)
|
||||||
|
] ;
|
||||||
|
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_CLUCENE_ZIP_FILE = $(zipFile) ;
|
||||||
|
HAIKU_CLUCENE_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
||||||
|
$(HAIKU_CLUCENE_PACKAGE:B) ] ;
|
||||||
|
|
||||||
|
# extract headers and libraries
|
||||||
|
HAIKU_CLUCENE_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_CLUCENE_DIR)
|
||||||
|
: common/include/ : $(zipFile)
|
||||||
|
] ;
|
||||||
|
|
||||||
|
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 ;
|
UsePrivateHeaders index_server shared ;
|
||||||
|
|
||||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
local sources =
|
||||||
|
|
||||||
Addon FullTextAnalyser :
|
|
||||||
CLuceneDataBase.cpp
|
CLuceneDataBase.cpp
|
||||||
FullTextAnalyser.cpp
|
FullTextAnalyser.cpp
|
||||||
|
|
||||||
IndexServerAddOn.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++)
|
be translation $(HAIKU_CLUCENE_LIBS) $(TARGET_LIBSTDC++)
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,13 +1,20 @@
|
|||||||
SubDir HAIKU_TOP src tests add-ons index_server fulltext_search ;
|
SubDir HAIKU_TOP src tests add-ons index_server fulltext_search ;
|
||||||
|
|
||||||
UsePrivateHeaders index_server shared ;
|
local sources =
|
||||||
SubDirSysHdrs $(HAIKU_CLUCENE_HEADERS) ;
|
|
||||||
|
|
||||||
|
|
||||||
Application FullTextSearch :
|
|
||||||
BeaconSearcher.cpp
|
BeaconSearcher.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
SearchWindow.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++)
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user