# endif(COMMAND cmake_policy)
#-----------------------------------------------------------------------------
-PROJECT(bbtk)
+PROJECT(BBTK)
#-----------------------------------------------------------------------------
cd ${BINPATH}
export LD_LIBRARY_PATH="../lib:${LD_LIBRARY_PATH}"
-./bbRegeneratePackageDoc ${PACK}
-./bbRegenerateBoxesLists
+./bbRegeneratePackageDoc ${PACK} -q
+./bbRegenerateBoxesLists -q
echo "Done !"
//==========================================================================
int main(int argc, char **argv)
{
+ if (argc>1)
+ {
+ bbtk::MessageManager::SetMessageLevel("max",0);
+ }
try
{
pack_index += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
pack_index += "index.html";
- std::cout << "* Generating doc for '"<<pack_name<<"' in "
+ std::cout << "* Generating doc for package '"<<pack_name<<"' in "
<< pack_index << std::endl;
p->SetDocURL(pack_index);
int main(int argc, char **argv)
{
std::string pack("-a");
- if (argc==1)
+ if (argc==2)
{
- /*
- // TO DO : make a Wx app
- wxString name = wxGetTextFromUser(_T("Enter package name (* for all)"),
- _T("Regenerate package doc"),
- _T(""));
- if (name.IsEmpty()) return 0;
- pack = bbtk::wx2std(name);
- */
+ pack = std::string(argv[1]);
}
- else if (argc==2)
+ else if (argc==3)
{
pack = std::string(argv[1]);
+ bbtk::MessageManager::SetMessageLevel("max",0);
}
else
{
- std::cout << "usage : bbRegeneratePackageDoc [<package name>|-a]" << std::endl;
+ std::cout << "usage : bbRegeneratePackageDoc [<package name>|-a] [-quiet]" << std::endl;
return 0;
}
#-----------------------------------------------------------------------------
# messages compilation options
OPTION ( BBTK_COMPILE_MESSAGES "Compile bbtk messages ?" ON)
-OPTION ( BBTK_COMPILE_DEBUG_MESSAGES "Compile bbtk debug messages ?" OFF)
+OPTION ( BBTK_COMPILE_DEBUG_MESSAGES "Compile bbtk debug messages ?" ON)
OPTION ( BBTK_COMPILE_WARNING_MESSAGES "Compile bbtk warning messages ?" ON)
OPTION ( BBTK_COMPILE_ERROR_MESSAGES "Compile bbtk error messages ?" ON)
#-----------------------------------------------------------------------------
OPTION(BUILD_BBTK_DOC_PACKAGE
"Build bbtk packages documentation (bbi+dot)." ON)
OPTION(BUILD_BBTK_DOC_DOXYGEN
- "Build doxygen documentation (doxygen)." OFF)
+ "Build doxygen documentation (doxygen)." ON)
OPTION(BUILD_BBTK_DOC_GUIDES_PDF
"Build bbtk Guides', PDF format (latex)." ON)
OPTION(BUILD_BBTK_DOC_GUIDES_HTML
SET(INDEX_OUTPUT index-alpha.html)
IF (WIN32)
-
+
SET(USE_DOT TRUE)
MAKE_DLL_PATH()
-
- ADD_CUSTOM_COMMAND(
- OUTPUT ${INDEX_OUTPUT}
- COMMAND
- set ${DLL_PATH} cd ${BBTK_BIN_PATH} && ./bbRegeneratePackageDoc -a && ./bbRegenerateBoxesLists
-
- DEPENDS ${BBTK_PACKAGES_DEPS}
- )
-
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${INDEX_OUTPUT}
+ COMMAND
+ set ${DLL_PATH} cd ${BBTK_BIN_PATH} && ./bbRegeneratePackageDoc -a -q && ./bbRegenerateBoxesLists -q
+
+ DEPENDS ${BBTK_PACKAGES_DEPS} bbRegeneratePackageDoc bbRegenerateBoxesLists
+ )
+
ELSE (WIN32)
-
- MESSAGE(STATUS "PACKAGE_DEPS=${BBTK_PACKAGES_DEPS}")
-
- SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
- # MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH})
-
- ADD_CUSTOM_COMMAND(
- OUTPUT ${INDEX_OUTPUT}
- COMMAND
-
- cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ./bbRegeneratePackageDoc -a && ./bbRegenerateBoxesLists
-
- DEPENDS ${BBTK_PACKAGES_DEPS}
- )
-
+
+ # MESSAGE(STATUS "PACKAGE_DEPS=${BBTK_PACKAGES_DEPS}")
+
+ SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
+ # MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH})
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${INDEX_OUTPUT}
+ COMMAND
+
+ cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ./bbRegeneratePackageDoc -a -q && ./bbRegenerateBoxesLists -q
+
+ DEPENDS ${BBTK_PACKAGES_DEPS} bbRegeneratePackageDoc bbRegenerateBoxesLists
+ )
+
ENDIF (WIN32)
-ADD_CUSTOM_TARGET(bbdoc ALL
- DEPENDS ${INDEX_OUTPUT}
- )
-
+ADD_CUSTOM_TARGET(
+ bbdoc ALL
+ DEPENDS ${INDEX_OUTPUT}
+ )
+
+