mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0033378: Configuration - Moving ExpToCas into separate module
Moved ExpToCasExe and its DLL to new module - DETools Created new module - DETools to keep tools to DE Changed definition of main of ExpToCasExe to not const parameter FlexLexer.h moved to general location into TKernel
This commit is contained in:
parent
c4f56862ab
commit
7b90113083
@ -820,12 +820,6 @@ else()
|
|||||||
OCCT_CHECK_AND_UNSET ("3RDPARTY_DOT_EXECUTABLE")
|
OCCT_CHECK_AND_UNSET ("3RDPARTY_DOT_EXECUTABLE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# ExpToCasExe
|
|
||||||
if (EMSCRIPTEN)
|
|
||||||
list (REMOVE_ITEM BUILD_TOOLKITS TKExpress)
|
|
||||||
list (REMOVE_ITEM BUILD_TOOLKITS ExpToCasExe)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# bison
|
# bison
|
||||||
if (BUILD_YACCLEX)
|
if (BUILD_YACCLEX)
|
||||||
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/bison")
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/bison")
|
||||||
|
@ -3,5 +3,6 @@ ModelingData TKG2d TKG3d TKGeomBase TKBRep
|
|||||||
ModelingAlgorithms TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat TKMesh TKXMesh TKShHealing
|
ModelingAlgorithms TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat TKMesh TKXMesh TKShHealing
|
||||||
Visualization TKService TKV3d TKOpenGl TKOpenGles TKMeshVS TKIVtk TKD3DHost
|
Visualization TKService TKV3d TKOpenGl TKOpenGles TKMeshVS TKIVtk TKD3DHost
|
||||||
ApplicationFramework TKCDF TKLCAF TKCAF TKBinL TKXmlL TKBin TKXml TKStdL TKStd TKTObj TKBinTObj TKXmlTObj TKVCAF
|
ApplicationFramework TKCDF TKLCAF TKCAF TKBinL TKXmlL TKBin TKXml TKStdL TKStd TKTObj TKBinTObj TKXmlTObj TKVCAF
|
||||||
DataExchange TKXDE TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES TKXCAF TKXDEIGES TKXDESTEP TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh TKXDECascade TKExpress ExpToCasExe
|
DataExchange TKXDE TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES TKXCAF TKXDEIGES TKXDESTEP TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh TKXDECascade
|
||||||
Draw TKDraw TKTopTest TKOpenGlTest TKOpenGlesTest TKD3DHostTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw TKIVtkDraw DRAWEXE
|
Draw TKDraw TKTopTest TKOpenGlTest TKOpenGlesTest TKD3DHostTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw TKIVtkDraw DRAWEXE
|
||||||
|
DETools TKExpress ExpToCasExe
|
||||||
|
@ -70,6 +70,16 @@ foreach (OCCT_PACKAGE ${USED_PACKAGES})
|
|||||||
OCCT_ORIGIN_AND_PATCHED_FILES ("${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}" "*[.]lex" SOURCE_FILES_FLEX)
|
OCCT_ORIGIN_AND_PATCHED_FILES ("${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}" "*[.]lex" SOURCE_FILES_FLEX)
|
||||||
list (LENGTH SOURCE_FILES_FLEX SOURCE_FILES_FLEX_LEN)
|
list (LENGTH SOURCE_FILES_FLEX SOURCE_FILES_FLEX_LEN)
|
||||||
|
|
||||||
|
# remove old general version of FlexLexer
|
||||||
|
if (EXISTS ${CMAKE_SOURCE_DIR}/${RELATIVE_SOURCES_DIR}/FlexLexer/FlexLexer.h)
|
||||||
|
message (STATUS "Info: remove old FLEX header file: ${CMAKE_SOURCE_DIR}/${RELATIVE_SOURCES_DIR}/FlexLexer/FlexLexer.h")
|
||||||
|
file(REMOVE ${CMAKE_SOURCE_DIR}/${RELATIVE_SOURCES_DIR}/FlexLexer/FlexLexer.h)
|
||||||
|
endif()
|
||||||
|
# install copy of FlexLexer.h locally to allow further building without flex
|
||||||
|
if (FLEX_INCLUDE_DIR AND EXISTS "${FLEX_INCLUDE_DIR}/FlexLexer.h")
|
||||||
|
configure_file("${FLEX_INCLUDE_DIR}/FlexLexer.h" "${CMAKE_SOURCE_DIR}/${RELATIVE_SOURCES_DIR}/FlexLexer/FlexLexer.h" @ONLY NEWLINE_STYLE LF)
|
||||||
|
endif()
|
||||||
|
|
||||||
# bison files
|
# bison files
|
||||||
OCCT_ORIGIN_AND_PATCHED_FILES ("${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}" "*[.]yacc" SOURCE_FILES_BISON)
|
OCCT_ORIGIN_AND_PATCHED_FILES ("${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}" "*[.]yacc" SOURCE_FILES_BISON)
|
||||||
list (LENGTH SOURCE_FILES_BISON SOURCE_FILES_BISON_LEN)
|
list (LENGTH SOURCE_FILES_BISON SOURCE_FILES_BISON_LEN)
|
||||||
@ -107,21 +117,11 @@ foreach (OCCT_PACKAGE ${USED_PACKAGES})
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if (EXISTS ${FLEX_BISON_TARGET_DIR}/FlexLexer.h)
|
|
||||||
message (STATUS "Info: remove old FLEX header file: ${FLEX_BISON_TARGET_DIR}/FlexLexer.h")
|
|
||||||
file(REMOVE ${FLEX_BISON_TARGET_DIR}/FlexLexer.h)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
file (STRINGS "${CURRENT_FLEX_FILE}" FILE_FLEX_CONTENT)
|
file (STRINGS "${CURRENT_FLEX_FILE}" FILE_FLEX_CONTENT)
|
||||||
foreach (FILE_FLEX_CONTENT_LINE ${FILE_FLEX_CONTENT})
|
foreach (FILE_FLEX_CONTENT_LINE ${FILE_FLEX_CONTENT})
|
||||||
string (REGEX MATCH "%option c\\+\\+" CXX_FLEX_LANGUAGE_FOUND ${FILE_FLEX_CONTENT_LINE})
|
string (REGEX MATCH "%option c\\+\\+" CXX_FLEX_LANGUAGE_FOUND ${FILE_FLEX_CONTENT_LINE})
|
||||||
if (CXX_FLEX_LANGUAGE_FOUND)
|
if (CXX_FLEX_LANGUAGE_FOUND)
|
||||||
set (FLEX_OUTPUT_FILE_EXT "cxx")
|
set (FLEX_OUTPUT_FILE_EXT "cxx")
|
||||||
|
|
||||||
# install copy of FlexLexer.h locally to allow further building without flex
|
|
||||||
if (FLEX_INCLUDE_DIR AND EXISTS "${FLEX_INCLUDE_DIR}/FlexLexer.h")
|
|
||||||
configure_file("${FLEX_INCLUDE_DIR}/FlexLexer.h" "${FLEX_BISON_TARGET_DIR}/FlexLexer.h" @ONLY NEWLINE_STYLE LF)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
set (BISON_OUTPUT_FILE ${CURRENT_BISON_FILE_NAME}.tab.${BISON_OUTPUT_FILE_EXT})
|
set (BISON_OUTPUT_FILE ${CURRENT_BISON_FILE_NAME}.tab.${BISON_OUTPUT_FILE_EXT})
|
||||||
|
@ -116,6 +116,7 @@ endmacro()
|
|||||||
|
|
||||||
BUILD_MODULE_MESSAGE (BUILD_MODULE_ApplicationFramework "ApplicationFramework")
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_ApplicationFramework "ApplicationFramework")
|
||||||
BUILD_MODULE_MESSAGE (BUILD_MODULE_DataExchange "DataExchange")
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_DataExchange "DataExchange")
|
||||||
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_DETools "DETools")
|
||||||
BUILD_MODULE_MESSAGE (BUILD_MODULE_Draw "Draw")
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_Draw "Draw")
|
||||||
BUILD_MODULE_MESSAGE (BUILD_MODULE_FoundationClasses "FoundationClasses")
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_FoundationClasses "FoundationClasses")
|
||||||
BUILD_MODULE_MESSAGE (BUILD_MODULE_ModelingAlgorithms "ModelingAlgorithms")
|
BUILD_MODULE_MESSAGE (BUILD_MODULE_ModelingAlgorithms "ModelingAlgorithms")
|
||||||
|
@ -33,6 +33,7 @@ set "BUILD_ModelingAlgorithms=ON"
|
|||||||
set "BUILD_Visualization=ON"
|
set "BUILD_Visualization=ON"
|
||||||
set "BUILD_ApplicationFramework=ON"
|
set "BUILD_ApplicationFramework=ON"
|
||||||
set "BUILD_DataExchange=ON"
|
set "BUILD_DataExchange=ON"
|
||||||
|
set "BUILD_DETools=OFF"
|
||||||
|
|
||||||
rem Optional 3rd-party libraries to enable
|
rem Optional 3rd-party libraries to enable
|
||||||
set "USE_FREETYPE=ON"
|
set "USE_FREETYPE=ON"
|
||||||
@ -166,6 +167,7 @@ if ["%toCMake%"] == ["1"] (
|
|||||||
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
||||||
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
||||||
|
-D BUILD_MODULE_DETools:BOOL="OFF" ^
|
||||||
-D BUILD_MODULE_Draw:BOOL="OFF" ^
|
-D BUILD_MODULE_Draw:BOOL="OFF" ^
|
||||||
-D BUILD_DOC_Overview:BOOL="OFF" ^
|
-D BUILD_DOC_Overview:BOOL="OFF" ^
|
||||||
-D USE_FREETYPE:BOOL="%USE_FREETYPE%" ^
|
-D USE_FREETYPE:BOOL="%USE_FREETYPE%" ^
|
||||||
|
@ -27,6 +27,7 @@ rem set "BUILD_ModelingAlgorithms=ON"
|
|||||||
rem set "BUILD_Visualization=ON"
|
rem set "BUILD_Visualization=ON"
|
||||||
rem set "BUILD_ApplicationFramework=ON"
|
rem set "BUILD_ApplicationFramework=ON"
|
||||||
rem set "BUILD_DataExchange=ON"
|
rem set "BUILD_DataExchange=ON"
|
||||||
|
rem set "BUILD_MODULE_DETools=OFF"
|
||||||
|
|
||||||
rem Optional 3rd-party libraries to enable
|
rem Optional 3rd-party libraries to enable
|
||||||
rem set "USE_RAPIDJSON=ON"
|
rem set "USE_RAPIDJSON=ON"
|
||||||
|
@ -33,6 +33,7 @@ rem set BUILD_PATCH=
|
|||||||
|
|
||||||
rem set BUILD_MODULE_ApplicationFramework=ON
|
rem set BUILD_MODULE_ApplicationFramework=ON
|
||||||
rem set BUILD_MODULE_DataExchange=ON
|
rem set BUILD_MODULE_DataExchange=ON
|
||||||
|
rem set BUILD_MODULE_DETools=OFF
|
||||||
rem set BUILD_MODULE_Draw=ON
|
rem set BUILD_MODULE_Draw=ON
|
||||||
rem set BUILD_MODULE_ModelingAlgorithms=ON
|
rem set BUILD_MODULE_ModelingAlgorithms=ON
|
||||||
rem set BUILD_MODULE_ModelingData=ON
|
rem set BUILD_MODULE_ModelingData=ON
|
||||||
|
@ -26,6 +26,7 @@ FREETYPE_DIR="$OCCT3RDPARTY/freetype-2.7.1"
|
|||||||
|
|
||||||
#BUILD_MODULE_ApplicationFramework=ON
|
#BUILD_MODULE_ApplicationFramework=ON
|
||||||
#BUILD_MODULE_DataExchange=ON
|
#BUILD_MODULE_DataExchange=ON
|
||||||
|
#BUILD_MODULE_DETools=OFF
|
||||||
#BUILD_MODULE_Draw=ON
|
#BUILD_MODULE_Draw=ON
|
||||||
#BUILD_MODULE_ModelingAlgorithms=ON
|
#BUILD_MODULE_ModelingAlgorithms=ON
|
||||||
#BUILD_MODULE_ModelingData=ON
|
#BUILD_MODULE_ModelingData=ON
|
||||||
|
@ -28,6 +28,7 @@ set BUILD_FORCE_RelWithDebInfo=OFF
|
|||||||
|
|
||||||
set BUILD_MODULE_ApplicationFramework=ON
|
set BUILD_MODULE_ApplicationFramework=ON
|
||||||
set BUILD_MODULE_DataExchange=ON
|
set BUILD_MODULE_DataExchange=ON
|
||||||
|
set BUILD_MODULE_DETools=OFF
|
||||||
set BUILD_MODULE_Draw=ON
|
set BUILD_MODULE_Draw=ON
|
||||||
set BUILD_MODULE_ModelingAlgorithms=ON
|
set BUILD_MODULE_ModelingAlgorithms=ON
|
||||||
set BUILD_MODULE_ModelingData=ON
|
set BUILD_MODULE_ModelingData=ON
|
||||||
@ -62,6 +63,7 @@ cmake -G "%arch_compile%" ^
|
|||||||
-D BUILD_LIBRARY_TYPE:STRING=%BUILD_LIBRARY_TYPE% ^
|
-D BUILD_LIBRARY_TYPE:STRING=%BUILD_LIBRARY_TYPE% ^
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL=%BUILD_MODULE_ApplicationFramework% ^
|
-D BUILD_MODULE_ApplicationFramework:BOOL=%BUILD_MODULE_ApplicationFramework% ^
|
||||||
-D BUILD_MODULE_DataExchange:BOOL=%BUILD_MODULE_DataExchange% ^
|
-D BUILD_MODULE_DataExchange:BOOL=%BUILD_MODULE_DataExchange% ^
|
||||||
|
-D BUILD_MODULE_DETools:BOOL=%BUILD_MODULE_DETools% ^
|
||||||
-D BUILD_MODULE_Draw:BOOL=%BUILD_MODULE_Draw% ^
|
-D BUILD_MODULE_Draw:BOOL=%BUILD_MODULE_Draw% ^
|
||||||
-D BUILD_MODULE_FoundationClasses:BOOL=ON ^
|
-D BUILD_MODULE_FoundationClasses:BOOL=ON ^
|
||||||
-D BUILD_MODULE_ModelingAlgorithms:BOOL=%BUILD_MODULE_ModelingAlgorithms% ^
|
-D BUILD_MODULE_ModelingAlgorithms:BOOL=%BUILD_MODULE_ModelingAlgorithms% ^
|
||||||
|
@ -31,6 +31,7 @@ BUILD_ENABLE_FPE_SIGNAL_HANDLER=ON
|
|||||||
|
|
||||||
BUILD_MODULE_ApplicationFramework=ON
|
BUILD_MODULE_ApplicationFramework=ON
|
||||||
BUILD_MODULE_DataExchange=ON
|
BUILD_MODULE_DataExchange=ON
|
||||||
|
BUILD_MODULE_DETools=OFF
|
||||||
BUILD_MODULE_Draw=ON
|
BUILD_MODULE_Draw=ON
|
||||||
BUILD_MODULE_ModelingAlgorithms=ON
|
BUILD_MODULE_ModelingAlgorithms=ON
|
||||||
BUILD_MODULE_ModelingData=ON
|
BUILD_MODULE_ModelingData=ON
|
||||||
@ -63,6 +64,7 @@ cmake -G "Unix Makefiles" \
|
|||||||
-D BUILD_LIBRARY_TYPE:STRING=$BUILD_LIBRARY_TYPE \
|
-D BUILD_LIBRARY_TYPE:STRING=$BUILD_LIBRARY_TYPE \
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL=$BUILD_MODULE_ApplicationFramework \
|
-D BUILD_MODULE_ApplicationFramework:BOOL=$BUILD_MODULE_ApplicationFramework \
|
||||||
-D BUILD_MODULE_DataExchange:BOOL=$BUILD_MODULE_DataExchange \
|
-D BUILD_MODULE_DataExchange:BOOL=$BUILD_MODULE_DataExchange \
|
||||||
|
-D BUILD_MODULE_DETools:BOOL=$BUILD_MODULE_DETools \
|
||||||
-D BUILD_MODULE_Draw:BOOL=$BUILD_MODULE_Draw \
|
-D BUILD_MODULE_Draw:BOOL=$BUILD_MODULE_Draw \
|
||||||
-D BUILD_MODULE_FoundationClasses:BOOL=ON \
|
-D BUILD_MODULE_FoundationClasses:BOOL=ON \
|
||||||
-D BUILD_MODULE_ModelingAlgorithms:BOOL=$BUILD_MODULE_ModelingAlgorithms \
|
-D BUILD_MODULE_ModelingAlgorithms:BOOL=$BUILD_MODULE_ModelingAlgorithms \
|
||||||
|
@ -34,6 +34,7 @@ export BUILD_ModelingAlgorithms=ON
|
|||||||
export BUILD_Visualization=ON
|
export BUILD_Visualization=ON
|
||||||
export BUILD_ApplicationFramework=ON
|
export BUILD_ApplicationFramework=ON
|
||||||
export BUILD_DataExchange=ON
|
export BUILD_DataExchange=ON
|
||||||
|
export BUILD_DETools=OFF
|
||||||
|
|
||||||
export USE_FREETYPE=ON
|
export USE_FREETYPE=ON
|
||||||
export USE_FREEIMAGE=OFF
|
export USE_FREEIMAGE=OFF
|
||||||
@ -148,6 +149,7 @@ function buildArch {
|
|||||||
-D BUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
-D BUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
-D BUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
||||||
-D BUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
-D BUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
||||||
|
-D BUILD_MODULE_DETools:BOOL="${BUILD_DETools}" \
|
||||||
-D BUILD_MODULE_Draw:BOOL="OFF" \
|
-D BUILD_MODULE_Draw:BOOL="OFF" \
|
||||||
-D BUILD_DOC_Overview:BOOL="OFF" \
|
-D BUILD_DOC_Overview:BOOL="OFF" \
|
||||||
"$aCasSrc" 2>&1 | tee -a "$aLogFile"
|
"$aCasSrc" 2>&1 | tee -a "$aLogFile"
|
||||||
|
@ -20,6 +20,7 @@ export aDraco="$aSrcRoot/../3rdparty/draco-1.4.1-ios"
|
|||||||
#export BUILD_Visualization=ON
|
#export BUILD_Visualization=ON
|
||||||
#export BUILD_ApplicationFramework=ON
|
#export BUILD_ApplicationFramework=ON
|
||||||
#export BUILD_DataExchange=ON
|
#export BUILD_DataExchange=ON
|
||||||
|
#export BUILD_DETools=OFF
|
||||||
|
|
||||||
#export USE_RAPIDJSON=ON
|
#export USE_RAPIDJSON=ON
|
||||||
#export USE_DRACO=ON
|
#export USE_DRACO=ON
|
||||||
|
@ -34,6 +34,7 @@ export BUILD_ModelingAlgorithms=ON
|
|||||||
export BUILD_Visualization=ON
|
export BUILD_Visualization=ON
|
||||||
export BUILD_ApplicationFramework=ON
|
export BUILD_ApplicationFramework=ON
|
||||||
export BUILD_DataExchange=ON
|
export BUILD_DataExchange=ON
|
||||||
|
export BUILD_DETools=OFF
|
||||||
export BUILD_Draw=ON
|
export BUILD_Draw=ON
|
||||||
|
|
||||||
export USE_FREETYPE=ON
|
export USE_FREETYPE=ON
|
||||||
@ -145,6 +146,7 @@ function buildArch {
|
|||||||
-D BUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
-D BUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
-D BUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
||||||
-D BUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
-D BUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
||||||
|
-D BUILD_MODULE_DETools:BOOL="${BUILD_DETools}" \
|
||||||
-D BUILD_MODULE_Draw:BOOL="${BUILD_Draw}" \
|
-D BUILD_MODULE_Draw:BOOL="${BUILD_Draw}" \
|
||||||
-D BUILD_DOC_Overview:BOOL="OFF" \
|
-D BUILD_DOC_Overview:BOOL="OFF" \
|
||||||
"$aCasSrc" 2>&1 | tee -a "$aLogFile"
|
"$aCasSrc" 2>&1 | tee -a "$aLogFile"
|
||||||
|
@ -19,6 +19,7 @@ export aDraco="$aSrcRoot/../3rdparty/draco-1.4.1-macos"
|
|||||||
#export BUILD_Visualization=ON
|
#export BUILD_Visualization=ON
|
||||||
#export BUILD_ApplicationFramework=ON
|
#export BUILD_ApplicationFramework=ON
|
||||||
#export BUILD_DataExchange=ON
|
#export BUILD_DataExchange=ON
|
||||||
|
#export BUILD_DETools=OFF
|
||||||
#export BUILD_Draw=ON
|
#export BUILD_Draw=ON
|
||||||
|
|
||||||
#export USE_RAPIDJSON=ON
|
#export USE_RAPIDJSON=ON
|
||||||
|
@ -32,6 +32,7 @@ set "BUILD_ModelingAlgorithms=ON"
|
|||||||
set "BUILD_Visualization=ON"
|
set "BUILD_Visualization=ON"
|
||||||
set "BUILD_ApplicationFramework=ON"
|
set "BUILD_ApplicationFramework=ON"
|
||||||
set "BUILD_DataExchange=ON"
|
set "BUILD_DataExchange=ON"
|
||||||
|
set "BUILD_DETools=OFF"
|
||||||
set "BUILD_Draw=ON"
|
set "BUILD_Draw=ON"
|
||||||
|
|
||||||
rem Optional 3rd-party libraries to enable
|
rem Optional 3rd-party libraries to enable
|
||||||
@ -155,6 +156,7 @@ if ["%toCMake%"] == ["1"] (
|
|||||||
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
||||||
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
||||||
|
-D BUILD_MODULE_DETools:BOOL="%BUILD_DETools%" ^
|
||||||
-D BUILD_MODULE_Draw:BOOL="%BUILD_Draw%" ^
|
-D BUILD_MODULE_Draw:BOOL="%BUILD_Draw%" ^
|
||||||
-D 3RDPARTY_TCL_DIR:PATH="%aTclTk%" ^
|
-D 3RDPARTY_TCL_DIR:PATH="%aTclTk%" ^
|
||||||
-D 3RDPARTY_TCL_INCLUDE_DIR:FILEPATH="%aTclTk%/include" ^
|
-D 3RDPARTY_TCL_INCLUDE_DIR:FILEPATH="%aTclTk%/include" ^
|
||||||
|
@ -22,6 +22,7 @@ rem set "BUILD_ModelingAlgorithms=ON"
|
|||||||
rem set "BUILD_Visualization=ON"
|
rem set "BUILD_Visualization=ON"
|
||||||
rem set "BUILD_ApplicationFramework=ON"
|
rem set "BUILD_ApplicationFramework=ON"
|
||||||
rem set "BUILD_DataExchange=ON"
|
rem set "BUILD_DataExchange=ON"
|
||||||
|
rem set "BUILD_DETools=OFF"
|
||||||
rem set "BUILD_Draw=ON"
|
rem set "BUILD_Draw=ON"
|
||||||
|
|
||||||
rem set "USE_RAPIDJSON=ON"
|
rem set "USE_RAPIDJSON=ON"
|
||||||
|
@ -32,6 +32,7 @@ set "BUILD_ModelingAlgorithms=ON"
|
|||||||
set "BUILD_Visualization=ON"
|
set "BUILD_Visualization=ON"
|
||||||
set "BUILD_ApplicationFramework=ON"
|
set "BUILD_ApplicationFramework=ON"
|
||||||
set "BUILD_DataExchange=ON"
|
set "BUILD_DataExchange=ON"
|
||||||
|
set "BUILD_DETools=OFF"
|
||||||
set "BUILD_Draw=OFF"
|
set "BUILD_Draw=OFF"
|
||||||
|
|
||||||
rem Optional 3rd-party libraries to enable
|
rem Optional 3rd-party libraries to enable
|
||||||
@ -175,6 +176,7 @@ if ["%toCMake%"] == ["1"] (
|
|||||||
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
-D BUILD_MODULE_Visualization:BOOL="%BUILD_Visualization%" ^
|
||||||
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
-D BUILD_MODULE_ApplicationFramework:BOOL="%BUILD_ApplicationFramework%" ^
|
||||||
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
-D BUILD_MODULE_DataExchange:BOOL="%BUILD_DataExchange%" ^
|
||||||
|
-D BUILD_MODULE_DETools:BOOL="%BUILD_DETools%" ^
|
||||||
-D BUILD_MODULE_Draw:BOOL="%BUILD_Draw%" ^
|
-D BUILD_MODULE_Draw:BOOL="%BUILD_Draw%" ^
|
||||||
-D BUILD_DOC_Overview:BOOL="OFF" ^
|
-D BUILD_DOC_Overview:BOOL="OFF" ^
|
||||||
-D USE_FREETYPE:BOOL="%USE_FREETYPE%" ^
|
-D USE_FREETYPE:BOOL="%USE_FREETYPE%" ^
|
||||||
|
@ -20,6 +20,7 @@ export BUILD_ModelingAlgorithms=ON
|
|||||||
export BUILD_Visualization=ON
|
export BUILD_Visualization=ON
|
||||||
export BUILD_ApplicationFramework=ON
|
export BUILD_ApplicationFramework=ON
|
||||||
export BUILD_DataExchange=ON
|
export BUILD_DataExchange=ON
|
||||||
|
export BUILD_DETools=OFF
|
||||||
|
|
||||||
if [ -f "${aScriptDir}/wasm_custom.sh" ] ; then
|
if [ -f "${aScriptDir}/wasm_custom.sh" ] ; then
|
||||||
. "${aScriptDir}/wasm_custom.sh"
|
. "${aScriptDir}/wasm_custom.sh"
|
||||||
@ -74,6 +75,7 @@ echo cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="${aToolchain}" \
|
|||||||
-DBUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
-DBUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
||||||
-DBUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
-DBUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
||||||
-DBUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
-DBUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
||||||
|
-DBUILD_MODULE_DETools:BOOL="${BUILD_DETools}" \
|
||||||
-DBUILD_MODULE_Draw:BOOL="OFF" \
|
-DBUILD_MODULE_Draw:BOOL="OFF" \
|
||||||
-DBUILD_DOC_Overview:BOOL="OFF" "${aSrcRoot}"
|
-DBUILD_DOC_Overview:BOOL="OFF" "${aSrcRoot}"
|
||||||
|
|
||||||
@ -92,6 +94,7 @@ cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="${aToolchain}" \
|
|||||||
-DBUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
-DBUILD_MODULE_Visualization:BOOL="${BUILD_Visualization}" \
|
||||||
-DBUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
-DBUILD_MODULE_ApplicationFramework:BOOL="${BUILD_ApplicationFramework}" \
|
||||||
-DBUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
-DBUILD_MODULE_DataExchange:BOOL="${BUILD_DataExchange}" \
|
||||||
|
-DBUILD_MODULE_DETools:BOOL="${BUILD_DETools}" \
|
||||||
-DBUILD_MODULE_Draw:BOOL="OFF" \
|
-DBUILD_MODULE_Draw:BOOL="OFF" \
|
||||||
-DBUILD_DOC_Overview:BOOL="OFF" "${aSrcRoot}"
|
-DBUILD_DOC_Overview:BOOL="OFF" "${aSrcRoot}"
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ rem set "BUILD_ModelingAlgorithms=ON"
|
|||||||
rem set "BUILD_Visualization=ON"
|
rem set "BUILD_Visualization=ON"
|
||||||
rem set "BUILD_ApplicationFramework=ON"
|
rem set "BUILD_ApplicationFramework=ON"
|
||||||
rem set "BUILD_DataExchange=ON"
|
rem set "BUILD_DataExchange=ON"
|
||||||
|
rem set "BUILD_DETools=OFF"
|
||||||
|
|
||||||
rem set "USE_RAPIDJSON=ON"
|
rem set "USE_RAPIDJSON=ON"
|
||||||
rem set "USE_DRACO=ON"
|
rem set "USE_DRACO=ON"
|
||||||
|
@ -14,3 +14,4 @@ export EMSDK_ROOT="$aSrcRoot/../emsdk"
|
|||||||
#export BUILD_Visualization=ON
|
#export BUILD_Visualization=ON
|
||||||
#export BUILD_ApplicationFramework=ON
|
#export BUILD_ApplicationFramework=ON
|
||||||
#export BUILD_DataExchange=ON
|
#export BUILD_DataExchange=ON
|
||||||
|
#export BUILD_DETools=OFF
|
||||||
|
@ -281,7 +281,7 @@ static Standard_Boolean LoadList (const char *theFileName,
|
|||||||
// function : main
|
// function : main
|
||||||
// purpose :
|
// purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
Standard_Integer main (const Standard_Integer argc, const char* argv[])
|
int main (int argc, char* argv[])
|
||||||
{
|
{
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
|
1
src/FlexLexer/FILES
Normal file
1
src/FlexLexer/FILES
Normal file
@ -0,0 +1 @@
|
|||||||
|
FlexLexer.h
|
@ -18,7 +18,7 @@ proc DataExchange:toolkits { } {
|
|||||||
return [list TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES \
|
return [list TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES \
|
||||||
TKXCAF TKXDEIGES TKXDESTEP \
|
TKXCAF TKXDEIGES TKXDESTEP \
|
||||||
TKXDE TKXDECascade \
|
TKXDE TKXDECascade \
|
||||||
TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh TKExpress]
|
TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh]
|
||||||
}
|
}
|
||||||
|
|
||||||
;#
|
;#
|
||||||
@ -29,7 +29,6 @@ proc DataExchange:ressources { } {
|
|||||||
[list both r XSMessage {} ] \
|
[list both r XSMessage {} ] \
|
||||||
[list both r SHMessage {} ] \
|
[list both r SHMessage {} ] \
|
||||||
[list both r XSTEPResource {} ] \
|
[list both r XSTEPResource {} ] \
|
||||||
[list both x ExpToCasExe {} ] \
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
;#
|
;#
|
||||||
|
@ -7,4 +7,3 @@ StepFile_Read.cxx
|
|||||||
StepFile_Read.hxx
|
StepFile_Read.hxx
|
||||||
step.lex
|
step.lex
|
||||||
step.yacc
|
step.yacc
|
||||||
FlexLexer.h
|
|
||||||
|
@ -1,220 +0,0 @@
|
|||||||
// -*-C++-*-
|
|
||||||
// FlexLexer.h -- define interfaces for lexical analyzer classes generated
|
|
||||||
// by flex
|
|
||||||
|
|
||||||
// Copyright (c) 1993 The Regents of the University of California.
|
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// This code is derived from software contributed to Berkeley by
|
|
||||||
// Kent Williams and Tom Epperly.
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without
|
|
||||||
// modification, are permitted provided that the following conditions
|
|
||||||
// are met:
|
|
||||||
|
|
||||||
// 1. Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer in the
|
|
||||||
// documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
// Neither the name of the University nor the names of its contributors
|
|
||||||
// may be used to endorse or promote products derived from this software
|
|
||||||
// without specific prior written permission.
|
|
||||||
|
|
||||||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
||||||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
||||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
// PURPOSE.
|
|
||||||
|
|
||||||
// This file defines FlexLexer, an abstract class which specifies the
|
|
||||||
// external interface provided to flex C++ lexer objects, and yyFlexLexer,
|
|
||||||
// which defines a particular lexer class.
|
|
||||||
//
|
|
||||||
// If you want to create multiple lexer classes, you use the -P flag
|
|
||||||
// to rename each yyFlexLexer to some other xxFlexLexer. You then
|
|
||||||
// include <FlexLexer.h> in your other sources once per lexer class:
|
|
||||||
//
|
|
||||||
// #undef yyFlexLexer
|
|
||||||
// #define yyFlexLexer xxFlexLexer
|
|
||||||
// #include <FlexLexer.h>
|
|
||||||
//
|
|
||||||
// #undef yyFlexLexer
|
|
||||||
// #define yyFlexLexer zzFlexLexer
|
|
||||||
// #include <FlexLexer.h>
|
|
||||||
// ...
|
|
||||||
|
|
||||||
#ifndef __FLEX_LEXER_H
|
|
||||||
// Never included before - need to define base class.
|
|
||||||
#define __FLEX_LEXER_H
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
extern "C++" {
|
|
||||||
|
|
||||||
struct yy_buffer_state;
|
|
||||||
typedef int yy_state_type;
|
|
||||||
|
|
||||||
class FlexLexer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual ~FlexLexer() { }
|
|
||||||
|
|
||||||
const char* YYText() const { return yytext; }
|
|
||||||
int YYLeng() const { return yyleng; }
|
|
||||||
|
|
||||||
virtual void
|
|
||||||
yy_switch_to_buffer( yy_buffer_state* new_buffer ) = 0;
|
|
||||||
virtual yy_buffer_state* yy_create_buffer( std::istream* s, int size ) = 0;
|
|
||||||
virtual yy_buffer_state* yy_create_buffer( std::istream& s, int size ) = 0;
|
|
||||||
virtual void yy_delete_buffer( yy_buffer_state* b ) = 0;
|
|
||||||
virtual void yyrestart( std::istream* s ) = 0;
|
|
||||||
virtual void yyrestart( std::istream& s ) = 0;
|
|
||||||
|
|
||||||
virtual int yylex() = 0;
|
|
||||||
|
|
||||||
// Call yylex with new input/output sources.
|
|
||||||
int yylex( std::istream& new_in, std::ostream& new_out )
|
|
||||||
{
|
|
||||||
switch_streams( new_in, new_out );
|
|
||||||
return yylex();
|
|
||||||
}
|
|
||||||
|
|
||||||
int yylex( std::istream* new_in, std::ostream* new_out = 0)
|
|
||||||
{
|
|
||||||
switch_streams( new_in, new_out );
|
|
||||||
return yylex();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Switch to new input/output streams. A nil stream pointer
|
|
||||||
// indicates "keep the current one".
|
|
||||||
virtual void switch_streams( std::istream* new_in,
|
|
||||||
std::ostream* new_out ) = 0;
|
|
||||||
virtual void switch_streams( std::istream& new_in,
|
|
||||||
std::ostream& new_out ) = 0;
|
|
||||||
|
|
||||||
int lineno() const { return yylineno; }
|
|
||||||
|
|
||||||
int debug() const { return yy_flex_debug; }
|
|
||||||
void set_debug( int flag ) { yy_flex_debug = flag; }
|
|
||||||
|
|
||||||
protected:
|
|
||||||
char* yytext;
|
|
||||||
int yyleng;
|
|
||||||
int yylineno; // only maintained if you use %option yylineno
|
|
||||||
int yy_flex_debug; // only has effect with -d or "%option debug"
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif // FLEXLEXER_H
|
|
||||||
|
|
||||||
#if defined(yyFlexLexer) || ! defined(yyFlexLexerOnce)
|
|
||||||
// Either this is the first time through (yyFlexLexerOnce not defined),
|
|
||||||
// or this is a repeated include to define a different flavor of
|
|
||||||
// yyFlexLexer, as discussed in the flex manual.
|
|
||||||
# define yyFlexLexerOnce
|
|
||||||
|
|
||||||
extern "C++" {
|
|
||||||
|
|
||||||
class yyFlexLexer : public FlexLexer {
|
|
||||||
public:
|
|
||||||
// arg_yyin and arg_yyout default to the cin and cout, but we
|
|
||||||
// only make that assignment when initializing in yylex().
|
|
||||||
yyFlexLexer( std::istream& arg_yyin, std::ostream& arg_yyout );
|
|
||||||
yyFlexLexer( std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0 );
|
|
||||||
private:
|
|
||||||
void ctor_common();
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
virtual ~yyFlexLexer();
|
|
||||||
|
|
||||||
void yy_switch_to_buffer( yy_buffer_state* new_buffer );
|
|
||||||
yy_buffer_state* yy_create_buffer( std::istream* s, int size );
|
|
||||||
yy_buffer_state* yy_create_buffer( std::istream& s, int size );
|
|
||||||
void yy_delete_buffer( yy_buffer_state* b );
|
|
||||||
void yyrestart( std::istream* s );
|
|
||||||
void yyrestart( std::istream& s );
|
|
||||||
|
|
||||||
void yypush_buffer_state( yy_buffer_state* new_buffer );
|
|
||||||
void yypop_buffer_state();
|
|
||||||
|
|
||||||
virtual int yylex();
|
|
||||||
virtual void switch_streams( std::istream& new_in, std::ostream& new_out );
|
|
||||||
virtual void switch_streams( std::istream* new_in = 0, std::ostream* new_out = 0 );
|
|
||||||
virtual int yywrap();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual int LexerInput( char* buf, int max_size );
|
|
||||||
virtual void LexerOutput( const char* buf, int size );
|
|
||||||
virtual void LexerError( const char* msg );
|
|
||||||
|
|
||||||
void yyunput( int c, char* buf_ptr );
|
|
||||||
int yyinput();
|
|
||||||
|
|
||||||
void yy_load_buffer_state();
|
|
||||||
void yy_init_buffer( yy_buffer_state* b, std::istream& s );
|
|
||||||
void yy_flush_buffer( yy_buffer_state* b );
|
|
||||||
|
|
||||||
int yy_start_stack_ptr;
|
|
||||||
int yy_start_stack_depth;
|
|
||||||
int* yy_start_stack;
|
|
||||||
|
|
||||||
void yy_push_state( int new_state );
|
|
||||||
void yy_pop_state();
|
|
||||||
int yy_top_state();
|
|
||||||
|
|
||||||
yy_state_type yy_get_previous_state();
|
|
||||||
yy_state_type yy_try_NUL_trans( yy_state_type current_state );
|
|
||||||
int yy_get_next_buffer();
|
|
||||||
|
|
||||||
std::istream yyin; // input source for default LexerInput
|
|
||||||
std::ostream yyout; // output sink for default LexerOutput
|
|
||||||
|
|
||||||
// yy_hold_char holds the character lost when yytext is formed.
|
|
||||||
char yy_hold_char;
|
|
||||||
|
|
||||||
// Number of characters read into yy_ch_buf.
|
|
||||||
int yy_n_chars;
|
|
||||||
|
|
||||||
// Points to current character in buffer.
|
|
||||||
char* yy_c_buf_p;
|
|
||||||
|
|
||||||
int yy_init; // whether we need to initialize
|
|
||||||
int yy_start; // start state number
|
|
||||||
|
|
||||||
// Flag which is used to allow yywrap()'s to do buffer switches
|
|
||||||
// instead of setting up a fresh yyin. A bit of a hack ...
|
|
||||||
int yy_did_buffer_switch_on_eof;
|
|
||||||
|
|
||||||
|
|
||||||
size_t yy_buffer_stack_top; /**< index of top of stack. */
|
|
||||||
size_t yy_buffer_stack_max; /**< capacity of stack. */
|
|
||||||
yy_buffer_state ** yy_buffer_stack; /**< Stack as an array. */
|
|
||||||
void yyensure_buffer_stack(void);
|
|
||||||
|
|
||||||
// The following are not always needed, but may be depending
|
|
||||||
// on use of certain flex features (like REJECT or yymore()).
|
|
||||||
|
|
||||||
yy_state_type yy_last_accepting_state;
|
|
||||||
char* yy_last_accepting_cpos;
|
|
||||||
|
|
||||||
yy_state_type* yy_state_buf;
|
|
||||||
yy_state_type* yy_state_ptr;
|
|
||||||
|
|
||||||
char* yy_full_match;
|
|
||||||
int* yy_full_state;
|
|
||||||
int yy_full_lp;
|
|
||||||
|
|
||||||
int yy_lp;
|
|
||||||
int yy_looking_for_trail_begin;
|
|
||||||
|
|
||||||
int yy_more_flag;
|
|
||||||
int yy_more_len;
|
|
||||||
int yy_more_offset;
|
|
||||||
int yy_prev_more_offset;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // yyFlexLexer || ! yyFlexLexerOnce
|
|
@ -14,3 +14,4 @@ UnitsAPI
|
|||||||
UnitsMethods
|
UnitsMethods
|
||||||
NCollection
|
NCollection
|
||||||
Message
|
Message
|
||||||
|
FlexLexer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user