Compare commits
501 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
64ea47017a | ||
|
63bd365eed | ||
|
b4fd9d00c2 | ||
|
983fd6c02b | ||
|
cc8cbabe5c | ||
|
a6dee93dfa | ||
|
798849860f | ||
|
775530d462 | ||
|
7fc0e03544 | ||
|
f9801cf97a | ||
|
365a640d07 | ||
|
a5460e9d98 | ||
|
da67ffb75a | ||
|
d6cda17a42 | ||
|
efd535aebf | ||
|
35dced1c14 | ||
|
1eeef710bb | ||
|
851dacdbb9 | ||
|
336a63f042 | ||
|
ae572ec121 | ||
|
e14d870c30 | ||
|
5a7e1e7d00 | ||
|
7f5945d688 | ||
|
99cfc27757 | ||
|
b27ab03d09 | ||
|
475c2302d4 | ||
|
25e59720d6 | ||
|
e958a649c6 | ||
|
4679d975dc | ||
|
33ba856502 | ||
|
b09d86369b | ||
|
896faa7296 | ||
|
a07cff6957 | ||
|
fe4f17f018 | ||
|
b721c02a6c | ||
|
1e636751d7 | ||
|
6916e17414 | ||
|
68223adbc7 | ||
|
a2a6c87265 | ||
|
654c48b2b9 | ||
|
98ffe9dfdf | ||
|
a3762901a6 | ||
|
85220a9c01 | ||
|
66cfcd0f73 | ||
|
a228288f61 | ||
|
e9a7ec7a2b | ||
|
c1a688e9fb | ||
|
21b1980f05 | ||
|
df119b4ed9 | ||
|
f24f542856 | ||
|
b80d766ab9 | ||
|
6ae0790866 | ||
|
2c26a53d85 | ||
|
6c060ff2c4 | ||
|
2c02f319a4 | ||
|
9fd2d2c382 | ||
|
e3d02d1f84 | ||
|
bdae3beb87 | ||
|
4201bf79fb | ||
|
9c80aadfd8 | ||
|
09324e85c8 | ||
|
e57aedeb26 | ||
|
b36ebd49b6 | ||
|
669cd76e53 | ||
|
177781da92 | ||
|
8ae442a8cb | ||
|
f5b7241978 | ||
|
645f581fbe | ||
|
26cfd29cde | ||
|
eb85ed3649 | ||
|
d6b4d3d0d5 | ||
|
26e0b3353c | ||
|
d2e4d7b92d | ||
|
5fdf69c9db | ||
|
b07ce12b5f | ||
|
b2857a7ef0 | ||
|
1fae7cdaf1 | ||
|
5e3047fd4a | ||
|
bdb1e2f7af | ||
|
d4e12f61be | ||
|
b7a71e36aa | ||
|
c765ab619b | ||
|
3b337f77ed | ||
|
ec2039e9a7 | ||
|
4f0ba168fb | ||
|
f6b08ecf71 | ||
|
75b9688a9f | ||
|
ee2be2a881 | ||
|
3f5aa017e7 | ||
|
58e5d30edc | ||
|
fa6fc587b9 | ||
|
e28f12b304 | ||
|
edfa30deef | ||
|
884cafd893 | ||
|
3ae5dc8173 | ||
|
1603a49799 | ||
|
4560c05480 | ||
|
354c94b724 | ||
|
a38db39de6 | ||
|
87432b8278 | ||
|
5ecc46c08e | ||
|
261b7d9e8a | ||
|
0609d8ee53 | ||
|
69f1a8997e | ||
|
5a1271c8b4 | ||
|
b18a83d4a7 | ||
|
c8425f03ff | ||
|
38d90bb3d1 | ||
|
9e6cdbcad5 | ||
|
8c745be5e0 | ||
|
b493028765 | ||
|
53d696bf51 | ||
|
58772a28af | ||
|
ff3f03870b | ||
|
1709b02450 | ||
|
d29b2469eb | ||
|
d2e6068829 | ||
|
c9776c7ac0 | ||
|
41fbbba8c4 | ||
|
a71a71de09 | ||
|
46710942db | ||
|
a0b49de498 | ||
|
ff6665dc50 | ||
|
b7c18ef8b0 | ||
|
629362c6fa | ||
|
6769ec6b34 | ||
|
7e3451c7a2 | ||
|
b608f6a564 | ||
|
752f9d7201 | ||
|
c2f5b8211b | ||
|
a1073ae267 | ||
|
9151562167 | ||
|
36cc26194c | ||
|
7c1a9a461b | ||
|
5be09a153b | ||
|
bc001a4030 | ||
|
68b0769935 | ||
|
a9bdd54d1d | ||
|
107f794fc9 | ||
|
505e241c8a | ||
|
0af424c23c | ||
|
ec96437207 | ||
|
632175c3a8 | ||
|
dfde2a3315 | ||
|
68ef63f9f3 | ||
|
c0a1a35fac | ||
|
501d0d386a | ||
|
2d2b3d53b7 | ||
|
e87d0237d8 | ||
|
85719f0ef9 | ||
|
d51a0ff64a | ||
|
f6d4c5cf8d | ||
|
b2ec0b4da5 | ||
|
6fd4ffd9eb | ||
|
b60e8432dd | ||
|
c48e2889cd | ||
|
14c4193d11 | ||
|
973d410ea4 | ||
|
1406e955b3 | ||
|
33cc703b16 | ||
|
003281f4e7 | ||
|
0bd575a716 | ||
|
aeee70d353 | ||
|
e473b95fe9 | ||
|
450c83adcf | ||
|
4fecc3651c | ||
|
5652dc6272 | ||
|
769a2e88e0 | ||
|
353e6fa0cf | ||
|
2d0621bf94 | ||
|
90271a9003 | ||
|
83f32108f6 | ||
|
521efa926d | ||
|
bbdf3b5c66 | ||
|
7868210dbc | ||
|
ea6e537889 | ||
|
811d6b7d4a | ||
|
3b77eff652 | ||
|
431d0f181e | ||
|
f1b2eddc0f | ||
|
e8b9db57cd | ||
|
2967828dbf | ||
|
e45b5ff7f2 | ||
|
8b956afe8e | ||
|
f80842e34c | ||
|
19e7092d1b | ||
|
1b9f3f674e | ||
|
63c71e2f68 | ||
|
20aa0d3fdd | ||
|
f1191d3099 | ||
|
4d597f3e2f | ||
|
3b6ffeaca7 | ||
|
176a795920 | ||
|
c58055adeb | ||
|
093a3fe5bb | ||
|
7581b642af | ||
|
6c4c45b0f9 | ||
|
4954e4970c | ||
|
32e849ebc9 | ||
|
e99816df7f | ||
|
7a280da946 | ||
|
b672545674 | ||
|
5c09f8e016 | ||
|
9070a59fce | ||
|
370101f340 | ||
|
9ed6494b47 | ||
|
50258e776a | ||
|
56689b2700 | ||
|
05aa616d6d | ||
|
dc858f4c5a | ||
|
e6afb53983 | ||
|
0d0c99de4d | ||
|
7a033414d5 | ||
|
f40644350e | ||
|
2eacd0b872 | ||
|
e525fd6ad2 | ||
|
f48cb55d33 | ||
|
15b2583e69 | ||
|
0da0275c18 | ||
|
b66f375869 | ||
|
6d1e872b4d | ||
|
e44b0af456 | ||
|
224f48fa0e | ||
|
18c066908f | ||
|
8ce97bc90b | ||
|
97f3782bb0 | ||
|
f87817bc03 | ||
|
9f984417b1 | ||
|
dace4784d1 | ||
|
c4fa1c2c62 | ||
|
e6ae74fd42 | ||
|
ea3193f52e | ||
|
bf961e3c29 | ||
|
d3dadd2392 | ||
|
d76b39abf1 | ||
|
7c441da0d1 | ||
|
e59839c8c2 | ||
|
c13de40280 | ||
|
4cf17e1c04 | ||
|
d1d3e057ca | ||
|
6662fe6313 | ||
|
9775fa6110 | ||
|
0c63f2f8b9 | ||
|
cfece3ef2e | ||
|
b0d96eb753 | ||
|
478ad1d19e | ||
|
1a0dfc1bfd | ||
|
59edf905b1 | ||
|
92345dc222 | ||
|
baaacd4683 | ||
|
ff2bd6ef48 | ||
|
8cc8a6925d | ||
|
cbdcce0d64 | ||
|
f114566d01 | ||
|
4d901cde7c | ||
|
650efe05be | ||
|
2a4611e19f | ||
|
472634fa06 | ||
|
2b3e2b780d | ||
|
06bc0a59fa | ||
|
89029d3342 | ||
|
624f732fb4 | ||
|
e4780e5287 | ||
|
25dfc507be | ||
|
f542b7bbf1 | ||
|
31211c6cfe | ||
|
2df785d7f1 | ||
|
61887a4ade | ||
|
9f2d973602 | ||
|
0f358da3e3 | ||
|
4eaaf9d812 | ||
|
952886f056 | ||
|
2dad173d8b | ||
|
712879c808 | ||
|
4e1bc39a81 | ||
|
2b73a1d19f | ||
|
0e9fe060f3 | ||
|
f63101c984 | ||
|
b09447ed89 | ||
|
7a59f4ce9f | ||
|
f2a88e54e8 | ||
|
c5ec75471a | ||
|
44fae8b193 | ||
|
810b672ff3 | ||
|
ec7c343f23 | ||
|
acc909a893 | ||
|
7755fe829e | ||
|
bda0b631c8 | ||
|
6cfc06f00d | ||
|
10ce324694 | ||
|
1209c1b923 | ||
|
465e686173 | ||
|
0577ae8ca4 | ||
|
9bcfd6f649 | ||
|
0fdbd10b91 | ||
|
e22105a97c | ||
|
77a11d3df1 | ||
|
400af1bcf6 | ||
|
5da3dfdf08 | ||
|
3b1a2e5158 | ||
|
731c9b5bc0 | ||
|
a8232603a0 | ||
|
0c5a6d479b | ||
|
b3d20c7f46 | ||
|
96fffdc609 | ||
|
5c20836e0d | ||
|
09f30297f4 | ||
|
ad03c23449 | ||
|
0a40a30da5 | ||
|
a20cce397a | ||
|
9f951ebc44 | ||
|
0f0f0c06d1 | ||
|
51663cb434 | ||
|
b6826918fe | ||
|
8613985b2a | ||
|
decdee7d3f | ||
|
06e06389ea | ||
|
4e66868ad7 | ||
|
a061150b0b | ||
|
1ef277c369 | ||
|
4b3d6eb1d2 | ||
|
09a4804444 | ||
|
ac0cdacd09 | ||
|
471b22dea3 | ||
|
eadea5ea03 | ||
|
24542bc056 | ||
|
5200cc4aa3 | ||
|
f838dac48b | ||
|
404c893694 | ||
|
0a8630615d | ||
|
3a4a396251 | ||
|
f79b19a17e | ||
|
640d5fe219 | ||
|
dbe54d10f9 | ||
|
4dba155d8e | ||
|
fcfda0392f | ||
|
4d9733588f | ||
|
2a79a1aeb4 | ||
|
20ef5652b7 | ||
|
fe1d4d6cff | ||
|
291fced1e6 | ||
|
a699468165 | ||
|
51db017972 | ||
|
483ce1bd89 | ||
|
b4327ba8df | ||
|
a148c938b0 | ||
|
8013367c92 | ||
|
b443d53628 | ||
|
a8b5267725 | ||
|
851f870162 | ||
|
e3cb774f2e | ||
|
89aebdea8d | ||
|
168077a6dc | ||
|
d96fd48ee5 | ||
|
7dd37838f7 | ||
|
8f16a18454 | ||
|
1dd28279c8 | ||
|
cde381c4e2 | ||
|
10f55672df | ||
|
aff1875311 | ||
|
bb2cf06962 | ||
|
946e65b9c5 | ||
|
7fbac3c240 | ||
|
2fb5823d31 | ||
|
ce73cfd073 | ||
|
4208cf1872 | ||
|
b3eab8efc3 | ||
|
5299b92ba1 | ||
|
41aa3c3d5d | ||
|
f9ac4dc9ab | ||
|
ebcbd82410 | ||
|
45b9409aa4 | ||
|
d673da182b | ||
|
f411f94fac | ||
|
383c6c9fb2 | ||
|
8511408796 | ||
|
c894a5fdfc | ||
|
6dd6e5c758 | ||
|
f9f740d6b0 | ||
|
564c82b4f2 | ||
|
16c93d97eb | ||
|
ef9a9362ae | ||
|
8022338566 | ||
|
f3495b0139 | ||
|
6fe58c66d9 | ||
|
45d0af05b9 | ||
|
197cddcfc9 | ||
|
424392e0d8 | ||
|
eca0539260 | ||
|
326b3e283a | ||
|
bf7b2cebbe | ||
|
72523826de | ||
|
7a1b96cb98 | ||
|
3b2af789dd | ||
|
aa7b761d4c | ||
|
9d420e021d | ||
|
d102153bc0 | ||
|
baed683824 | ||
|
d5cdd12a38 | ||
|
3bae95c8a2 | ||
|
17d16f7887 | ||
|
fa53efefc3 | ||
|
9c86076b21 | ||
|
4af9e8a8b7 | ||
|
b070046674 | ||
|
2a8d1e7bcf | ||
|
71c089e99b | ||
|
2915f0b590 | ||
|
e7b01db7c4 | ||
|
a1565817f1 | ||
|
0e5ef9264f | ||
|
63dbfc04f8 | ||
|
c2bf27a6fb | ||
|
ecf4f17cb8 | ||
|
6e728f3b5c | ||
|
0d0481c787 | ||
|
b2134621cc | ||
|
a0ad45bf9a | ||
|
997e128f88 | ||
|
be70005cb5 | ||
|
9c189bd8dc | ||
|
1475265b58 | ||
|
e841c38c71 | ||
|
579f2938a8 | ||
|
f73c584ceb | ||
|
a3d4053c15 | ||
|
10c5aa00b0 | ||
|
953d87f32c | ||
|
681f3919f0 | ||
|
4a6d278356 | ||
|
434ffc0909 | ||
|
62ef08dfc8 | ||
|
d4507e82ba | ||
|
bc9a61ec69 | ||
|
ff1541f179 | ||
|
8878d0ecce | ||
|
f0cddd16eb | ||
|
c9c7286e56 | ||
|
e2e0498b17 | ||
|
416022a12f | ||
|
320a322080 | ||
|
43d3f6d8d8 | ||
|
4d19a2c5e7 | ||
|
ee5befae97 | ||
|
30f5e1a74b | ||
|
91764a8f6d | ||
|
e2a37a80f6 | ||
|
a965c45b2d | ||
|
ee905e847d | ||
|
0391af0aa1 | ||
|
964e27d91c | ||
|
d26375e22c | ||
|
dc6ae350f3 | ||
|
15173be5c9 | ||
|
be86ba90c4 | ||
|
6b8f3bdc36 | ||
|
95f8c6082d | ||
|
dd6b34fda4 | ||
|
9bba178dce | ||
|
1beb58d745 | ||
|
f204ec4c37 | ||
|
75378f50ea | ||
|
4945db69e5 | ||
|
7bbccb5f4e | ||
|
d94bed0e26 | ||
|
0b622d670d | ||
|
3f317e7d0c | ||
|
871dcdc201 | ||
|
dd115e1227 | ||
|
73ddbb9acc | ||
|
b969ebe7cf | ||
|
7c3ef2f752 | ||
|
ebc369da1d | ||
|
df18769ea6 | ||
|
caf231b050 | ||
|
2ec85268a1 | ||
|
1be4179947 | ||
|
bf95447514 | ||
|
c8c250a59d | ||
|
8b1441e374 | ||
|
a8122531ce | ||
|
922da0a825 | ||
|
5f4bd4d4d2 | ||
|
bd6a845441 | ||
|
bbbca107a2 | ||
|
d07a6c39cf | ||
|
d1d68ce714 | ||
|
c4a2f61e57 | ||
|
0f5ea4b5f8 | ||
|
b88b0cf7fc | ||
|
3c1624950a | ||
|
4e283d3379 | ||
|
e146ef9a93 | ||
|
d30895f5da | ||
|
fe4fc02d7b | ||
|
90b858262b | ||
|
95ae6ebb1b | ||
|
41ce5887ad | ||
|
88e55ec7ef | ||
|
d877e61038 | ||
|
ede89abcb9 |
4
.gitattributes
vendored
@@ -18,6 +18,7 @@
|
|||||||
*.yacc eol=lf
|
*.yacc eol=lf
|
||||||
*.lex eol=lf
|
*.lex eol=lf
|
||||||
*.mm eol=lf
|
*.mm eol=lf
|
||||||
|
*.i eol=lf
|
||||||
*.el eol=lf
|
*.el eol=lf
|
||||||
*.sh eol=lf
|
*.sh eol=lf
|
||||||
*.csh eol=lf
|
*.csh eol=lf
|
||||||
@@ -37,6 +38,9 @@
|
|||||||
*.vrml eol=lf
|
*.vrml eol=lf
|
||||||
*.md eol=lf
|
*.md eol=lf
|
||||||
*.natvis eol=lf
|
*.natvis eol=lf
|
||||||
|
*.fs eol=lf
|
||||||
|
*.vs eol=lf
|
||||||
|
*.glsl eol=lf
|
||||||
FILES eol=lf
|
FILES eol=lf
|
||||||
PACKAGES eol=lf
|
PACKAGES eol=lf
|
||||||
EXTERNLIB eol=lf
|
EXTERNLIB eol=lf
|
||||||
|
3
.tgitconfig
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[bugtraq]
|
||||||
|
url = https://tracker.dev.opencascade.org/view.php?id=%BUGID%
|
||||||
|
logregex = "(\\s)(00|#)\\d+(?!\\w)\n(\\d+)"
|
169
CMakeLists.txt
@@ -1,5 +1,7 @@
|
|||||||
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
|
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
|
||||||
|
|
||||||
|
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/adm/cmake")
|
||||||
|
|
||||||
set (CMAKE_SUPPRESS_REGENERATION TRUE)
|
set (CMAKE_SUPPRESS_REGENERATION TRUE)
|
||||||
|
|
||||||
set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
|
set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
|
||||||
@@ -37,6 +39,11 @@ endif()
|
|||||||
# the name of the project
|
# the name of the project
|
||||||
project (OCCT)
|
project (OCCT)
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
add_definitions(-DUNICODE)
|
||||||
|
add_definitions(-D_UNICODE)
|
||||||
|
endif()
|
||||||
|
|
||||||
# include occt macros
|
# include occt macros
|
||||||
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_macros")
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_macros")
|
||||||
|
|
||||||
@@ -52,6 +59,9 @@ set_property (GLOBAL PROPERTY OCC_VERSION_MAINTENANCE ${OCC_VERSION_MAINTENANCE}
|
|||||||
|
|
||||||
set (INSTALL_TEST_CASES OFF CACHE BOOL "${INSTALL_TEST_CASES_DESCR}")
|
set (INSTALL_TEST_CASES OFF CACHE BOOL "${INSTALL_TEST_CASES_DESCR}")
|
||||||
|
|
||||||
|
# Regeneration of OCCT resource files
|
||||||
|
set (BUILD_RESOURCES OFF CACHE BOOL "${BUILD_RESOURCES_DESCR}")
|
||||||
|
|
||||||
# single-configuration generator
|
# single-configuration generator
|
||||||
set (SINGLE_GENERATOR OFF)
|
set (SINGLE_GENERATOR OFF)
|
||||||
if (CMAKE_BUILD_TYPE)
|
if (CMAKE_BUILD_TYPE)
|
||||||
@@ -77,6 +87,31 @@ if (BUILD_WITH_DEBUG)
|
|||||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:DEBUG>:OCCT_DEBUG>)
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:DEBUG>:OCCT_DEBUG>)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# option to enable or disable use of precompiled headers
|
||||||
|
if (NOT DEFINED BUILD_USE_PCH)
|
||||||
|
set (BUILD_USE_PCH OFF CACHE BOOL "${BUILD_USE_PCH_DESCR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (BUILD_USE_PCH)
|
||||||
|
|
||||||
|
# Load Cotire tool for accelerating build procedure
|
||||||
|
include(cotire)
|
||||||
|
|
||||||
|
# Set Cotire to ignore lxx, pxx, gxx
|
||||||
|
set (COTIRE_ADDITIONAL_PREFIX_HEADER_IGNORE_EXTENSIONS "lxx;pxx;gxx" CACHE STRING "Set Cotire to ignore OCCT specific files that can be #included" FORCE)
|
||||||
|
|
||||||
|
# Set priority for inclusion of system headers in PCH to reduce problems
|
||||||
|
# due to incomplete inclusion or wrong order.
|
||||||
|
if (WIN32)
|
||||||
|
# on Windows, assume that SDK (windows.h) is in default location
|
||||||
|
set(ProgramFilesX86 "ProgramFiles(x86)")
|
||||||
|
file(TO_CMAKE_PATH "$ENV{${ProgramFilesX86}}" ProgramFilesX86)
|
||||||
|
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_INCLUDE_PRIORITY_PATH "${ProgramFilesX86}")
|
||||||
|
unset(ProgramFilesX86)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
# copy samples to install directory
|
# copy samples to install directory
|
||||||
set (INSTALL_SAMPLES OFF CACHE BOOL "${INSTALL_SAMPLES_DESCR}")
|
set (INSTALL_SAMPLES OFF CACHE BOOL "${INSTALL_SAMPLES_DESCR}")
|
||||||
|
|
||||||
@@ -285,13 +320,16 @@ if (NOT DEFINED INSTALL_DIR_CMAKE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# include occt macros
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_resources")
|
||||||
|
|
||||||
# install LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt files
|
# install LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt files
|
||||||
if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix")
|
if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("LICENSE_LGPL_21.txt" "${INSTALL_DIR}/${INSTALL_DIR_DOC}")
|
OCCT_INSTALL_FILE_OR_DIR ("LICENSE_LGPL_21.txt" "${INSTALL_DIR_DOC}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("OCCT_LGPL_EXCEPTION.txt" "${INSTALL_DIR}/${INSTALL_DIR_DOC}")
|
OCCT_INSTALL_FILE_OR_DIR ("OCCT_LGPL_EXCEPTION.txt" "${INSTALL_DIR_DOC}")
|
||||||
else()
|
else()
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("LICENSE_LGPL_21.txt" "${INSTALL_DIR}")
|
OCCT_INSTALL_FILE_OR_DIR ("LICENSE_LGPL_21.txt" ".")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("OCCT_LGPL_EXCEPTION.txt" "${INSTALL_DIR}")
|
OCCT_INSTALL_FILE_OR_DIR ("OCCT_LGPL_EXCEPTION.txt" ".")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
@@ -327,6 +365,17 @@ if (WIN32)
|
|||||||
set (USE_D3D OFF CACHE BOOL "${USE_D3D_DESCR}")
|
set (USE_D3D OFF CACHE BOOL "${USE_D3D_DESCR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Enable/Disable the floating point exceptions (FPE) during runtime.
|
||||||
|
if (NOT BUILD_ENABLE_FPE_SIGNAL_HANDLER)
|
||||||
|
set (BUILD_ENABLE_FPE_SIGNAL_HANDLER OFF CACHE BOOL "${BUILD_ENABLE_FPE_SIGNAL_HANDLER_DESCR}" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (BUILD_ENABLE_FPE_SIGNAL_HANDLER)
|
||||||
|
set (BUILD_ENABLE_FPE_SIGNAL_HANDLER 1)
|
||||||
|
else()
|
||||||
|
set (BUILD_ENABLE_FPE_SIGNAL_HANDLER 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
# include the patched or original list of modules
|
# include the patched or original list of modules
|
||||||
# list <MODULENAME>_TOOLKITS is created foreach module and contains its toolkits
|
# list <MODULENAME>_TOOLKITS is created foreach module and contains its toolkits
|
||||||
# list <OCCT_MODULES> will contain all modules
|
# list <OCCT_MODULES> will contain all modules
|
||||||
@@ -425,8 +474,17 @@ else()
|
|||||||
set (3RDPARTY_DIR "${3RDPARTY_DIR}" CACHE PATH "${3RDPARTY_DIR_DESCR}" FORCE)
|
set (3RDPARTY_DIR "${3RDPARTY_DIR}" CACHE PATH "${3RDPARTY_DIR_DESCR}" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# search for CSF_TclLibs variable in EXTERNLIB of each being used toolkit
|
# search for CSF variable in EXTERNLIB of each being used toolkit
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_FreeImagePlus CAN_USE_FREEIMAGE)
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)
|
OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_FREETYPE USE_FREETYPE)
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_OpenGlLibs CAN_USE_GLES2)
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_GL2PS CAN_USE_GL2PS)
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_TBB CAN_USE_TBB)
|
||||||
|
OCCT_IS_PRODUCT_REQUIRED (CSF_EIGEN CAN_USE_EIGEN)
|
||||||
|
|
||||||
|
# define CSF variable
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_csf")
|
||||||
|
|
||||||
if (USE_TCL)
|
if (USE_TCL)
|
||||||
message (STATUS "Info: TCL is used by OCCT")
|
message (STATUS "Info: TCL is used by OCCT")
|
||||||
@@ -442,9 +500,6 @@ else()
|
|||||||
OCCT_CHECK_AND_UNSET ("INSTALL_TK")
|
OCCT_CHECK_AND_UNSET ("INSTALL_TK")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# search for CSF_FREETYPE variable in EXTERNLIB of each being used toolkit
|
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_FREETYPE USE_FREETYPE)
|
|
||||||
|
|
||||||
if (USE_FREETYPE)
|
if (USE_FREETYPE)
|
||||||
message (STATUS "Info: Freetype is used by OCCT")
|
message (STATUS "Info: Freetype is used by OCCT")
|
||||||
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/freetype")
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/freetype")
|
||||||
@@ -485,8 +540,6 @@ if (USE_GLX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# FREEIMAGE
|
# FREEIMAGE
|
||||||
# search for CSF_FREEIMAGE variable in EXTERNLIB of each being used toolkit
|
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_FreeImagePlus CAN_USE_FREEIMAGE)
|
|
||||||
|
|
||||||
if (CAN_USE_FREEIMAGE)
|
if (CAN_USE_FREEIMAGE)
|
||||||
set (USE_FREEIMAGE OFF CACHE BOOL "${USE_FREEIMAGE_DESCR}")
|
set (USE_FREEIMAGE OFF CACHE BOOL "${USE_FREEIMAGE_DESCR}")
|
||||||
@@ -506,7 +559,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# OpenGL ES 2.0
|
# OpenGL ES 2.0
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_OpenGlLibs CAN_USE_GLES2)
|
|
||||||
if (WIN32 AND CAN_USE_GLES2)
|
if (WIN32 AND CAN_USE_GLES2)
|
||||||
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
||||||
set (USE_GLES2 ON)
|
set (USE_GLES2 ON)
|
||||||
@@ -534,9 +586,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GL2PS
|
# GL2PS
|
||||||
# search for CSF_GL2PS variable in EXTERNLIB of each being used toolkit
|
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_GL2PS CAN_USE_GL2PS)
|
|
||||||
|
|
||||||
if (NOT DEFINED ANDROID AND CAN_USE_GL2PS)
|
if (NOT DEFINED ANDROID AND CAN_USE_GL2PS)
|
||||||
set (USE_GL2PS OFF CACHE BOOL "${USE_GL2PS_DESCR}")
|
set (USE_GL2PS OFF CACHE BOOL "${USE_GL2PS_DESCR}")
|
||||||
|
|
||||||
@@ -555,9 +604,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# TBB
|
# TBB
|
||||||
# search for CSF_TBB variable in EXTERNLIB of each being used toolkit
|
|
||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_TBB CAN_USE_TBB)
|
|
||||||
|
|
||||||
if (NOT DEFINED ANDROID AND CAN_USE_TBB)
|
if (NOT DEFINED ANDROID AND CAN_USE_TBB)
|
||||||
set (USE_TBB OFF CACHE BOOL "${USE_TBB_DESCR}")
|
set (USE_TBB OFF CACHE BOOL "${USE_TBB_DESCR}")
|
||||||
|
|
||||||
@@ -577,6 +623,22 @@ else()
|
|||||||
OCCT_CHECK_AND_UNSET ("INSTALL_TBB")
|
OCCT_CHECK_AND_UNSET ("INSTALL_TBB")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# EIGEN
|
||||||
|
if (CAN_USE_EIGEN)
|
||||||
|
set (USE_EIGEN OFF CACHE BOOL "${USE_EIGEN_DESCR}")
|
||||||
|
|
||||||
|
if (USE_EIGEN)
|
||||||
|
add_definitions (-DHAVE_EIGEN)
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/eigen")
|
||||||
|
else()
|
||||||
|
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_EIGEN")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
OCCT_CHECK_AND_UNSET ("USE_EIGEN")
|
||||||
|
|
||||||
|
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_EIGEN")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Doxygen
|
# Doxygen
|
||||||
if (BUILD_DOC_Overview)
|
if (BUILD_DOC_Overview)
|
||||||
if (NOT DEFINED INSTALL_DOC_Overview)
|
if (NOT DEFINED INSTALL_DOC_Overview)
|
||||||
@@ -584,11 +646,11 @@ if (BUILD_DOC_Overview)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (INSTALL_DOC_Overview)
|
if (INSTALL_DOC_Overview)
|
||||||
install (DIRECTORY "${CMAKE_BINARY_DIR}/doc/overview" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_DOC}")
|
install (DIRECTORY "${CMAKE_BINARY_DIR}/doc/overview" DESTINATION "${INSTALL_DIR_DOC}")
|
||||||
|
|
||||||
# create overview.html only for windows
|
# create overview.html only for windows
|
||||||
if (WIN32 AND "${INSTALL_DIR_LAYOUT}" STREQUAL "Windows")
|
if (WIN32 AND "${INSTALL_DIR_LAYOUT}" STREQUAL "Windows")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("dox/resources/overview.html" "${INSTALL_DIR}/${INSTALL_DIR_DOC}/..")
|
OCCT_INSTALL_FILE_OR_DIR ("dox/resources/overview.html" "${INSTALL_DIR_DOC}/..")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -675,6 +737,12 @@ COLLECT_AND_INSTALL_OCCT_HEADER_FILES ("${CMAKE_BINARY_DIR}" "${BUILD_TOOLKITS}"
|
|||||||
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
||||||
message (STATUS "Info: \(${CURRENT_TIME}\) End the collecting")
|
message (STATUS "Info: \(${CURRENT_TIME}\) End the collecting")
|
||||||
|
|
||||||
|
list (FIND BUILD_TOOLKITS DRAWEXE DRAWEXE_INDEX)
|
||||||
|
if (${DRAWEXE_INDEX} GREATER -1)
|
||||||
|
OCCT_INSTALL_FILE_OR_DIR ("data/" "${INSTALL_DIR_DATA}")
|
||||||
|
OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR_SAMPLES}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (SCRIPT_EXT bat)
|
set (SCRIPT_EXT bat)
|
||||||
else()
|
else()
|
||||||
@@ -682,45 +750,51 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# OCCT samples
|
# OCCT samples
|
||||||
|
# get absolute path from INSTALL_DIR
|
||||||
|
set (INSTALL_DIR_ABSOLUTE "${INSTALL_DIR}")
|
||||||
|
if(NOT IS_ABSOLUTE "${INSTALL_DIR_ABSOLUTE}")
|
||||||
|
get_filename_component(INSTALL_DIR_ABSOLUTE "${CMAKE_BINARY_DIR}/${INSTALL_DIR}" ABSOLUTE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (INSTALL_SAMPLES)
|
if (INSTALL_SAMPLES)
|
||||||
OCCT_CONFIGURE ("adm/templates/env.samples.${SCRIPT_EXT}.in" "env.samples.${SCRIPT_EXT}")
|
OCCT_CONFIGURE ("adm/templates/env.samples.${SCRIPT_EXT}.in" "env.samples.${SCRIPT_EXT}")
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/CSharp" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/CSharp" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/mfc" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/mfc" "${INSTALL_DIR_SAMPLES}")
|
||||||
|
|
||||||
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/xaml" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/xaml" "${INSTALL_DIR_SAMPLES}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}/CSharp" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/CSharp" RENAME "env.${SCRIPT_EXT}")
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}/mfc/standard" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/mfc/standard" RENAME "env.${SCRIPT_EXT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/java" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/java" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/ocafsamples" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/ocafsamples" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/qt" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt" "${INSTALL_DIR_SAMPLES}")
|
||||||
|
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}/qt/FuncDemo" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/FuncDemo" RENAME "env.${SCRIPT_EXT}")
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}/qt/IESample" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/IESample" RENAME "env.${SCRIPT_EXT}")
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}/qt/Tutorial" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/Tutorial" RENAME "env.${SCRIPT_EXT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (INSTALL_TEST_CASES)
|
if (INSTALL_TEST_CASES)
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("tests/" "${INSTALL_DIR}/${INSTALL_DIR_TESTS}")
|
OCCT_INSTALL_FILE_OR_DIR ("tests/" "${INSTALL_DIR_TESTS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list (FIND BUILD_TOOLKITS DRAWEXE DRAWEXE_INDEX)
|
list (FIND BUILD_TOOLKITS DRAWEXE DRAWEXE_INDEX)
|
||||||
if (${DRAWEXE_INDEX} GREATER -1)
|
if (${DRAWEXE_INDEX} GREATER -1)
|
||||||
# copy data and samples/tcl folders to install script folder
|
# copy data and samples/tcl folders to install script folder
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("data/" "${INSTALL_DIR}/${INSTALL_DIR_DATA}")
|
OCCT_INSTALL_FILE_OR_DIR ("data/" "${INSTALL_DIR_DATA}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR_SAMPLES}")
|
||||||
|
|
||||||
# copy draw script to install script folder
|
# copy draw script to install script folder
|
||||||
if (BUILD_PATCH AND EXISTS "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}")
|
if (BUILD_PATCH AND EXISTS "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}")
|
||||||
install (FILES "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}"
|
install (FILES "${BUILD_PATCH}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}"
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
|
||||||
else()
|
else()
|
||||||
install (FILES "${CMAKE_SOURCE_DIR}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}"
|
install (FILES "${CMAKE_SOURCE_DIR}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}"
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -744,18 +818,18 @@ if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}")
|
|||||||
|
|
||||||
file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}")
|
file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}")
|
||||||
else()
|
else()
|
||||||
OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}")
|
OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# write current custom.bat/sh (for install directory)
|
# write current custom.bat/sh (for install directory)
|
||||||
set (SUB_CUSTOM_BUILD_NAME "custom_${COMPILER}_${COMPILER_BITNESS}.install.${SCRIPT_EXT}")
|
set (SUB_CUSTOM_BUILD_NAME "custom_${COMPILER}_${COMPILER_BITNESS}.install.${SCRIPT_EXT}")
|
||||||
OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.install.${SCRIPT_EXT}.in" "${SUB_CUSTOM_BUILD_NAME}" "${SUB_CUSTOM_NAME}" "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}")
|
OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.install.${SCRIPT_EXT}.in" "${SUB_CUSTOM_BUILD_NAME}" "${SUB_CUSTOM_NAME}" "${INSTALL_DIR_SCRIPT}")
|
||||||
|
|
||||||
# write current custom.bat/sh (for build directory)
|
# write current custom.bat/sh (for build directory)
|
||||||
OCCT_CONFIGURE ("adm/templates/custom.build.${SCRIPT_EXT}.in" "${SUB_CUSTOM_NAME}")
|
OCCT_CONFIGURE ("adm/templates/custom.build.${SCRIPT_EXT}.in" "${SUB_CUSTOM_NAME}")
|
||||||
|
|
||||||
if (BUILD_MODULE_MfcSamples)
|
if (BUILD_MODULE_MfcSamples)
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("adm/templates/sample.bat" "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}")
|
OCCT_INSTALL_FILE_OR_DIR ("adm/templates/sample.bat" "${INSTALL_DIR_SCRIPT}")
|
||||||
OCCT_COPY_FILE_OR_DIR ("adm/templates/sample.bat" "${CMAKE_BINARY_DIR}")
|
OCCT_COPY_FILE_OR_DIR ("adm/templates/sample.bat" "${CMAKE_BINARY_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -763,7 +837,7 @@ endif()
|
|||||||
OCCT_CONFIGURE ("adm/templates/env.${SCRIPT_EXT}.in" "env.${SCRIPT_EXT}")
|
OCCT_CONFIGURE ("adm/templates/env.${SCRIPT_EXT}.in" "env.${SCRIPT_EXT}")
|
||||||
|
|
||||||
# install env script
|
# install env script
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}")
|
||||||
|
|
||||||
# copy DrawAppliInit from OCCT source to build directory
|
# copy DrawAppliInit from OCCT source to build directory
|
||||||
if (NOT EXISTS "${CMAKE_BINARY_DIR}/DrawAppliInit")
|
if (NOT EXISTS "${CMAKE_BINARY_DIR}/DrawAppliInit")
|
||||||
@@ -776,9 +850,9 @@ foreach(RESOURCE ${RESOURCES})
|
|||||||
get_filename_component(RESOURCE_FOLDER ${RESOURCE} DIRECTORY)
|
get_filename_component(RESOURCE_FOLDER ${RESOURCE} DIRECTORY)
|
||||||
if(NOT "${RESOURCE_FOLDER}" STREQUAL "")
|
if(NOT "${RESOURCE_FOLDER}" STREQUAL "")
|
||||||
get_filename_component(RESOURCE_FOLDER ${RESOURCE_FOLDER} NAME)
|
get_filename_component(RESOURCE_FOLDER ${RESOURCE_FOLDER} NAME)
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("src/${RESOURCE}" "${INSTALL_DIR}/${INSTALL_DIR_RESOURCE}/${RESOURCE_FOLDER}")
|
OCCT_INSTALL_FILE_OR_DIR ("src/${RESOURCE}" "${INSTALL_DIR_RESOURCE}/${RESOURCE_FOLDER}")
|
||||||
else()
|
else()
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("src/${RESOURCE}" "${INSTALL_DIR}/${INSTALL_DIR_RESOURCE}")
|
OCCT_INSTALL_FILE_OR_DIR ("src/${RESOURCE}" "${INSTALL_DIR_RESOURCE}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
@@ -787,9 +861,6 @@ if (NOT "${BUILD_SHARED_LIBRARY_NAME_POSTFIX}" STREQUAL "")
|
|||||||
OCCT_UPDATE_DRAW_DEFAULT_FILE()
|
OCCT_UPDATE_DRAW_DEFAULT_FILE()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# define CSF variable
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_csf")
|
|
||||||
|
|
||||||
# include patched toolkit projects or original ones
|
# include patched toolkit projects or original ones
|
||||||
foreach (BUILD_TOOLKIT ${BUILD_TOOLKITS})
|
foreach (BUILD_TOOLKIT ${BUILD_TOOLKITS})
|
||||||
OCCT_ADD_SUBDIRECTORY ("src/${BUILD_TOOLKIT}")
|
OCCT_ADD_SUBDIRECTORY ("src/${BUILD_TOOLKIT}")
|
||||||
@@ -820,6 +891,8 @@ if (MSVC AND 3RDPARTY_DLL_DIRS)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
message (STATUS "Info: \(${CURRENT_TIME}\) OCCT toolkits processed")
|
||||||
|
|
||||||
# samples do not support patch usage
|
# samples do not support patch usage
|
||||||
if (BUILD_MODULE_MfcSamples)
|
if (BUILD_MODULE_MfcSamples)
|
||||||
set (OCCT_ROOT ${CMAKE_SOURCE_DIR})
|
set (OCCT_ROOT ${CMAKE_SOURCE_DIR})
|
||||||
@@ -838,6 +911,8 @@ if (BUILD_MODULE_MfcSamples)
|
|||||||
add_subdirectory(samples/mfc/standard/08_HLR)
|
add_subdirectory(samples/mfc/standard/08_HLR)
|
||||||
add_subdirectory(samples/mfc/standard/09_Animation)
|
add_subdirectory(samples/mfc/standard/09_Animation)
|
||||||
add_subdirectory(samples/mfc/standard/10_Convert)
|
add_subdirectory(samples/mfc/standard/10_Convert)
|
||||||
|
|
||||||
|
message (STATUS "Info: \(${CURRENT_TIME}\) MFC Sample projects added")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_MODULE_UwpSample)
|
if (BUILD_MODULE_UwpSample)
|
||||||
@@ -933,7 +1008,7 @@ endif()
|
|||||||
|
|
||||||
# Configure and install cmake config file
|
# Configure and install cmake config file
|
||||||
configure_file("${CMAKE_SOURCE_DIR}/adm/templates/OpenCASCADEConfig.cmake.in" "OpenCASCADEConfig.cmake" @ONLY)
|
configure_file("${CMAKE_SOURCE_DIR}/adm/templates/OpenCASCADEConfig.cmake.in" "OpenCASCADEConfig.cmake" @ONLY)
|
||||||
install(FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfig.cmake" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_CMAKE}")
|
install(FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfig.cmake" DESTINATION "${INSTALL_DIR_CMAKE}")
|
||||||
|
|
||||||
# Configure cmake version file
|
# Configure cmake version file
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
@@ -942,7 +1017,7 @@ write_basic_package_version_file( ${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.c
|
|||||||
COMPATIBILITY ExactVersion )
|
COMPATIBILITY ExactVersion )
|
||||||
|
|
||||||
# Install cmake version file
|
# Install cmake version file
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.cmake" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_CMAKE}")
|
install (FILES "${CMAKE_BINARY_DIR}/OpenCASCADEConfigVersion.cmake" DESTINATION "${INSTALL_DIR_CMAKE}")
|
||||||
|
|
||||||
# Install the export set for use with the install-tree for each configuration
|
# Install the export set for use with the install-tree for each configuration
|
||||||
foreach (OCCT_MODULE ${OCCT_MODULES_ENABLED})
|
foreach (OCCT_MODULE ${OCCT_MODULES_ENABLED})
|
||||||
@@ -952,3 +1027,5 @@ endforeach()
|
|||||||
# Update generated OpenCASCADETargets-*.cmake files
|
# Update generated OpenCASCADETargets-*.cmake files
|
||||||
# to have correct paths to libraries depending on the configuration
|
# to have correct paths to libraries depending on the configuration
|
||||||
OCCT_UPDATE_TARGET_FILE ()
|
OCCT_UPDATE_TARGET_FILE ()
|
||||||
|
|
||||||
|
message (STATUS "Info: \(${CURRENT_TIME}\) OCCT configuration files prepared")
|
||||||
|
@@ -6,6 +6,6 @@ Shaders
|
|||||||
XSMessage
|
XSMessage
|
||||||
XSTEPResource
|
XSTEPResource
|
||||||
XmlOcafResource
|
XmlOcafResource
|
||||||
UnitsAPI/Lexi_Expr.dat
|
|
||||||
UnitsAPI/Units.dat
|
UnitsAPI/Units.dat
|
||||||
TObj/TObj.msg
|
TObj/TObj.msg
|
||||||
|
BOPAlgo/BOPAlgo.msg
|
||||||
|
@@ -5,7 +5,6 @@ n Bnd
|
|||||||
n BVH
|
n BVH
|
||||||
n CSLib
|
n CSLib
|
||||||
n Convert
|
n Convert
|
||||||
n Dico
|
|
||||||
n ElCLib
|
n ElCLib
|
||||||
n ElSLib
|
n ElSLib
|
||||||
n Expr
|
n Expr
|
||||||
@@ -248,6 +247,7 @@ n StdObjMgt
|
|||||||
n StdDrivers
|
n StdDrivers
|
||||||
n StdObject
|
n StdObject
|
||||||
n StdPersistent
|
n StdPersistent
|
||||||
|
n StdStorage
|
||||||
n ShapePersistent
|
n ShapePersistent
|
||||||
n TDF
|
n TDF
|
||||||
n TDataStd
|
n TDataStd
|
||||||
@@ -399,9 +399,6 @@ n HLRTest
|
|||||||
n MeshTest
|
n MeshTest
|
||||||
n SWDRAW
|
n SWDRAW
|
||||||
n TObjDRAW
|
n TObjDRAW
|
||||||
n TestTopOpe
|
|
||||||
n TestTopOpeDraw
|
|
||||||
n TestTopOpeTools
|
|
||||||
n ViewerTest
|
n ViewerTest
|
||||||
n XDEDRAW
|
n XDEDRAW
|
||||||
n XSDRAW
|
n XSDRAW
|
||||||
@@ -438,3 +435,4 @@ n IVtkDraw
|
|||||||
t TKIVtkDraw
|
t TKIVtkDraw
|
||||||
n Geom2dEvaluator
|
n Geom2dEvaluator
|
||||||
t TKVCAF
|
t TKVCAF
|
||||||
|
n XCAFView
|
@@ -6,7 +6,7 @@ endif()
|
|||||||
set(3RDPARTY_MACRO_ALREADY_INCLUDED 1)
|
set(3RDPARTY_MACRO_ALREADY_INCLUDED 1)
|
||||||
|
|
||||||
|
|
||||||
macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME LIBRARY_NAME_DEBUG)
|
macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_CSF_NAME LIBRARY_NAME_DEBUG_SUFFIX)
|
||||||
|
|
||||||
if (NOT DEFINED INSTALL_${PRODUCT_NAME} AND BUILD_SHARED_LIBS)
|
if (NOT DEFINED INSTALL_${PRODUCT_NAME} AND BUILD_SHARED_LIBS)
|
||||||
set (INSTALL_${PRODUCT_NAME} OFF CACHE BOOL "${INSTALL_${PRODUCT_NAME}_DESCR}")
|
set (INSTALL_${PRODUCT_NAME} OFF CACHE BOOL "${INSTALL_${PRODUCT_NAME}_DESCR}")
|
||||||
@@ -37,54 +37,57 @@ macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME LIBRARY_NAME_DEB
|
|||||||
set (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "" CACHE PATH "the path of ${HEADER_NAME}")
|
set (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "" CACHE PATH "the path of ${HEADER_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
separate_arguments (${LIBRARY_CSF_NAME})
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY OR NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
foreach (LIBRARY_NAME ${${LIBRARY_CSF_NAME}})
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "" CACHE FILEPATH "${PRODUCT_NAME} library" FORCE)
|
string (REPLACE "." "" LIBRARY_NAME "${LIBRARY_NAME}")
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR)
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} library")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL OR NOT 3RDPARTY_${PRODUCT_NAME}_DLL_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "" CACHE FILEPATH "${PRODUCT_NAME} shared library" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR)
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# check 3RDPARTY_${PRODUCT_NAME}_ paths for consistency with specified 3RDPARTY_${PRODUCT_NAME}_DIR
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR PATH "the path to ${PRODUCT_NAME}")
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY FILEPATH "the path to ${PRODUCT_NAME} library")
|
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME} OR NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME} OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME}}")
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME} "" CACHE FILEPATH "${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME})
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" PATH)
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME} "" CACHE PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"")
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
|
||||||
else()
|
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR PATH "The directory containing ${PRODUCT_NAME} library")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_DLL FILEPATH "the path to ${PRODUCT_NAME} shared library")
|
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME} OR NOT 3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME} OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME}}")
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME} "" CACHE FILEPATH "${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
if (WIN32)
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL}" PATH)
|
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME})
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME} "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"")
|
||||||
else()
|
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_DLL_DIR PATH "The directory containing ${PRODUCT_NAME} shared library")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
|
# check 3RDPARTY_${PRODUCT_NAME}_ paths for consistency with specified 3RDPARTY_${PRODUCT_NAME}_DIR
|
||||||
|
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
||||||
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR PATH "the path to ${PRODUCT_NAME}")
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME} FILEPATH "the path to ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"")
|
||||||
|
|
||||||
|
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME} AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME}}")
|
||||||
|
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME} "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME}}" PATH)
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME} "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME}}" CACHE PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
else()
|
||||||
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME} PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME} FILEPATH "the path to ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"")
|
||||||
|
|
||||||
|
if (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME} AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME}}")
|
||||||
|
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME} "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME}}" PATH)
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME} "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME}}" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
else()
|
||||||
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_${PRODUCT_NAME}_DIR 3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME} PATH "The directory containing ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
# header
|
# header
|
||||||
if (NOT 3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR}")
|
if (NOT 3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR}")
|
||||||
|
|
||||||
@@ -94,12 +97,12 @@ macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME LIBRARY_NAME_DEB
|
|||||||
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
||||||
find_path (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR NAMES ${HEADER_NAME}
|
find_path (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR NAMES ${HEADER_NAME}
|
||||||
PATHS ${3RDPARTY_${PRODUCT_NAME}_DIR}
|
PATHS ${3RDPARTY_${PRODUCT_NAME}_DIR}
|
||||||
PATH_SUFFIXES include
|
PATH_SUFFIXES include inc
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_path (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR NAMES ${HEADER_NAME}
|
find_path (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR NAMES ${HEADER_NAME}
|
||||||
PATH_SUFFIXES include
|
PATH_SUFFIXES include inc
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH)
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -112,158 +115,182 @@ macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME LIBRARY_NAME_DEB
|
|||||||
set (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "" CACHE FILEPATH "The path to ${HEADER_NAME}" FORCE)
|
set (3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "" CACHE FILEPATH "The path to ${HEADER_NAME}" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
foreach (LIBRARY_NAME ${${LIBRARY_CSF_NAME}})
|
||||||
# library
|
string (REPLACE "." "" LIBRARY_NAME_SUFFIX "${LIBRARY_NAME}")
|
||||||
if (NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
if (BUILD_SHARED_LIBS)
|
||||||
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .so .dylib .a)
|
# library
|
||||||
|
if (NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}}")
|
||||||
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .so .dylib .a)
|
||||||
|
|
||||||
set (${PRODUCT_NAME}_PATH_SUFFIXES lib)
|
set (${PRODUCT_NAME}_PATH_SUFFIXES lib)
|
||||||
if (ANDROID)
|
if (WIN32)
|
||||||
set (${PRODUCT_NAME}_PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES} libs/${ANDROID_ABI})
|
set (${PRODUCT_NAME}_PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES} win${COMPILER_BITNESS}/${COMPILER}/lib)
|
||||||
endif()
|
endif()
|
||||||
|
if (ANDROID)
|
||||||
|
set (${PRODUCT_NAME}_PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES} libs/${ANDROID_ABI})
|
||||||
|
endif()
|
||||||
|
|
||||||
# set 3RDPARTY_${PRODUCT_NAME}_LIBRARY as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_LIBRARY
|
# set 3RDPARTY_${PRODUCT_NAME}_LIBRARY as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_LIBRARY
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "3RDPARTY_${PRODUCT_NAME}_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} "3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}-NOTFOUND" CACHE FILEPATH "The path to ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY NAMES ${LIBRARY_NAME}
|
|
||||||
PATHS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" "${3RDPARTY_${PRODUCT_NAME}_DIR}"
|
|
||||||
PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES}
|
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
|
||||||
NO_DEFAULT_PATH)
|
|
||||||
else()
|
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY NAMES ${LIBRARY_NAME}
|
|
||||||
PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES}
|
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" PATH)
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
|
||||||
else()
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
|
||||||
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
|
||||||
else()
|
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR)
|
|
||||||
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "" CACHE FILEPATH "The path to ${PRODUCT_NAME} library" FORCE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# shared library
|
|
||||||
if (WIN32)
|
|
||||||
if (NOT 3RDPARTY_${PRODUCT_NAME}_DLL OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
|
||||||
|
|
||||||
set (CMAKE_FIND_LIBRARY_SUFFIXES .dll)
|
|
||||||
|
|
||||||
# set 3RDPARTY_${PRODUCT_NAME}_DLL as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_DLL
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "3RDPARTY_${PRODUCT_NAME}_DLL-NOTFOUND" CACHE FILEPATH "The path to ${PRODUCT_NAME} shared library" FORCE)
|
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_DLL NAMES ${LIBRARY_NAME}
|
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} NAMES ${LIBRARY_NAME}
|
||||||
PATHS "${3RDPARTY_${PRODUCT_NAME}_DIR}"
|
PATHS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME}}" "${3RDPARTY_${PRODUCT_NAME}_DIR}"
|
||||||
PATH_SUFFIXES bin
|
PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES}
|
||||||
NO_DEFAULT_PATH)
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_DLL NAMES ${LIBRARY_NAME} PATH_SUFFIXES bin)
|
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} NAMES ${LIBRARY_NAME}
|
||||||
|
PATH_SUFFIXES ${${PRODUCT_NAME}_PATH_SUFFIXES}
|
||||||
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}}")
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL}" PATH)
|
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX} "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}}" PATH)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX} "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX}}" CACHE PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
else()
|
else()
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX} "" CACHE PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "" CACHE FILEPATH "${PRODUCT_NAME} shared library" FORCE)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL_DIR OR EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX} AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX}}")
|
||||||
list (APPEND 3RDPARTY_DLL_DIRS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX}}")
|
||||||
else()
|
else()
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR)
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX})
|
||||||
|
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} "" CACHE FILEPATH "The path to ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "")
|
|
||||||
|
|
||||||
if (INSTALL_${PRODUCT_NAME})
|
|
||||||
OCCT_MAKE_OS_WITH_BITNESS()
|
|
||||||
OCCT_MAKE_COMPILER_SHORT_NAME()
|
|
||||||
|
|
||||||
|
# shared library
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (SINGLE_GENERATOR)
|
if (NOT 3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}")
|
||||||
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
|
||||||
else()
|
|
||||||
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL}"
|
|
||||||
CONFIGURATIONS Release
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
|
||||||
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL}"
|
|
||||||
CONFIGURATIONS RelWithDebInfo
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}i")
|
|
||||||
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL}"
|
|
||||||
CONFIGURATIONS Debug
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
get_filename_component(ABS_PATH ${3RDPARTY_${PRODUCT_NAME}_LIBRARY} REALPATH)
|
|
||||||
|
|
||||||
if ("${PRODUCT_NAME}" STREQUAL "FREEIMAGE")
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .dll)
|
||||||
get_filename_component(FREEIMLIB ${3RDPARTY_${PRODUCT_NAME}_LIBRARY} NAME)
|
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
# set 3RDPARTY_${PRODUCT_NAME}_DLL as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_DLL
|
||||||
install (FILES "${ABS_PATH}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}" RENAME ${FREEIMLIB}.3)
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} "3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}-NOTFOUND" CACHE FILEPATH "The path to ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
|
|
||||||
|
if (3RDPARTY_${PRODUCT_NAME}_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DIR}")
|
||||||
|
find_library (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} NAMES ${LIBRARY_NAME}
|
||||||
|
PATHS "${3RDPARTY_${PRODUCT_NAME}_DIR}"
|
||||||
|
PATH_SUFFIXES bin win${COMPILER_BITNESS}/${COMPILER}/bin
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
install (FILES "${ABS_PATH}"
|
find_library (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} NAMES ${LIBRARY_NAME} PATH_SUFFIXES bin)
|
||||||
CONFIGURATIONS Release
|
endif()
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
|
||||||
RENAME ${FREEIMLIB}.3)
|
if (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}")
|
||||||
install (FILES "${ABS_PATH}"
|
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX} "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}" PATH)
|
||||||
CONFIGURATIONS RelWithDebInfo
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX} "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX}}" CACHE PATH "The directory containing ${PRODUCT_NAME} library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}i"
|
else()
|
||||||
RENAME ${FREEIMLIB}.3)
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX} "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
install (FILES "${ABS_PATH}"
|
|
||||||
CONFIGURATIONS Debug
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX} "" CACHE FILEPATH "${PRODUCT_NAME} shared library \"${LIBRARY_NAME}\"" FORCE)
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d"
|
|
||||||
RENAME ${FREEIMLIB}.3)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${PRODUCT_NAME}" STREQUAL "GL2PS")
|
if (3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX} OR EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX}}")
|
||||||
get_filename_component(GL2PSLIB ${3RDPARTY_${PRODUCT_NAME}_LIBRARY} NAME)
|
list (APPEND 3RDPARTY_DLL_DIRS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX}}")
|
||||||
|
else()
|
||||||
if (SINGLE_GENERATOR)
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX})
|
||||||
install (FILES "${ABS_PATH}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}" RENAME ${GL2PSLIB}.1)
|
|
||||||
else()
|
|
||||||
install (FILES "${ABS_PATH}"
|
|
||||||
CONFIGURATIONS Release
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
|
||||||
RENAME ${GL2PSLIB}.1)
|
|
||||||
install (FILES "${ABS_PATH}"
|
|
||||||
CONFIGURATIONS RelWithDebInfo
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}i"
|
|
||||||
RENAME ${GL2PSLIB}.1)
|
|
||||||
install (FILES "${ABS_PATH}"
|
|
||||||
CONFIGURATIONS Debug
|
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d"
|
|
||||||
RENAME ${GL2PSLIB}.1)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
|
||||||
# the library directory for using by the executable
|
|
||||||
if (WIN32)
|
|
||||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
|
||||||
else()
|
|
||||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced (3RDPARTY_${PRODUCT_NAME}_LIBRARY 3RDPARTY_${PRODUCT_NAME}_DLL)
|
if (WIN32)
|
||||||
endif()
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIRS "")
|
||||||
|
else()
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIRS "")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
foreach (LIBRARY_NAME ${${LIBRARY_CSF_NAME}})
|
||||||
|
string (REPLACE "." "" LIBRARY_NAME_SUFFIX "${LIBRARY_NAME}")
|
||||||
|
if (WIN32)
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIRS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX}};${3RDPARTY_${PRODUCT_NAME}_DLL_DIRS}")
|
||||||
|
else()
|
||||||
|
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIRS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX}}:${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIRS}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
set (USED_3RDPARTY_${PRODUCT_NAME}_DIRS "")
|
||||||
|
|
||||||
|
if (INSTALL_${PRODUCT_NAME})
|
||||||
|
OCCT_MAKE_OS_WITH_BITNESS()
|
||||||
|
OCCT_MAKE_COMPILER_SHORT_NAME()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
if (SINGLE_GENERATOR)
|
||||||
|
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}" DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
|
else()
|
||||||
|
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}"
|
||||||
|
CONFIGURATIONS Release
|
||||||
|
DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
|
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}"
|
||||||
|
CONFIGURATIONS RelWithDebInfo
|
||||||
|
DESTINATION "${INSTALL_DIR_BIN}i")
|
||||||
|
install (FILES "${3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX}}"
|
||||||
|
CONFIGURATIONS Debug
|
||||||
|
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
get_filename_component(ABS_PATH ${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}} REALPATH)
|
||||||
|
|
||||||
|
if ("${PRODUCT_NAME}" STREQUAL "FREEIMAGE")
|
||||||
|
get_filename_component(FREEIMLIB ${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}} NAME)
|
||||||
|
|
||||||
|
if (SINGLE_GENERATOR)
|
||||||
|
install (FILES "${ABS_PATH}" DESTINATION "${INSTALL_DIR_LIB}" RENAME ${FREEIMLIB}.3)
|
||||||
|
else()
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS Release
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
|
RENAME ${FREEIMLIB}.3)
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS RelWithDebInfo
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}i"
|
||||||
|
RENAME ${FREEIMLIB}.3)
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS Debug
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}d"
|
||||||
|
RENAME ${FREEIMLIB}.3)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("${PRODUCT_NAME}" STREQUAL "GL2PS")
|
||||||
|
get_filename_component(GL2PSLIB ${3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX}} NAME)
|
||||||
|
|
||||||
|
if (SINGLE_GENERATOR)
|
||||||
|
install (FILES "${ABS_PATH}" DESTINATION "${INSTALL_DIR_LIB}" RENAME ${GL2PSLIB}.1)
|
||||||
|
else()
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS Release
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
|
RENAME ${GL2PSLIB}.1)
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS RelWithDebInfo
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}i"
|
||||||
|
RENAME ${GL2PSLIB}.1)
|
||||||
|
install (FILES "${ABS_PATH}"
|
||||||
|
CONFIGURATIONS Debug
|
||||||
|
DESTINATION "${INSTALL_DIR_LIB}d"
|
||||||
|
RENAME ${GL2PSLIB}.1)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
# the library directory for using by the executable
|
||||||
|
foreach (LIBRARY_NAME ${${LIBRARY_CSF_NAME}})
|
||||||
|
string (REPLACE "." "" LIBRARY_NAME_SUFFIX "${LIBRARY_NAME}")
|
||||||
|
if (WIN32)
|
||||||
|
set (USED_3RDPARTY_${PRODUCT_NAME}_DIRS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR_${LIBRARY_NAME_SUFFIX}};${USED_3RDPARTY_${PRODUCT_NAME}_DIRS}")
|
||||||
|
else()
|
||||||
|
set (USED_3RDPARTY_${PRODUCT_NAME}_DIRS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR_${LIBRARY_NAME_SUFFIX}}:${USED_3RDPARTY_${PRODUCT_NAME}_DIRS}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced (3RDPARTY_${PRODUCT_NAME}_LIBRARY_${LIBRARY_NAME_SUFFIX} 3RDPARTY_${PRODUCT_NAME}_DLL_${LIBRARY_NAME_SUFFIX})
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro (COMPLIANCE_PRODUCT_CONSISTENCY LIBNAME)
|
macro (COMPLIANCE_PRODUCT_CONSISTENCY LIBNAME)
|
||||||
|
4017
adm/cmake/cotire.cmake
Normal file
@@ -1,9 +1,10 @@
|
|||||||
# doxygen
|
# doxygen
|
||||||
|
set (DOXYGEN_MINIMUM_VERSION 1.8.4)
|
||||||
|
|
||||||
if (DO_ONLY_CHECK_FOR_DOXYGEN)
|
if (DO_ONLY_CHECK_FOR_DOXYGEN)
|
||||||
message (STATUS "Info. Detecting doxygen")
|
message (STATUS "Info. Detecting doxygen")
|
||||||
set (DOXYGEN_SKIP_DOT ON)
|
set (DOXYGEN_SKIP_DOT ON)
|
||||||
find_package (Doxygen)
|
find_package (Doxygen ${DOXYGEN_MINIMUM_VERSION})
|
||||||
|
|
||||||
set (CAN_DOXYGEN_BE_USED OFF)
|
set (CAN_DOXYGEN_BE_USED OFF)
|
||||||
if (DOXYGEN_EXECUTABLE)
|
if (DOXYGEN_EXECUTABLE)
|
||||||
@@ -33,7 +34,7 @@ else()
|
|||||||
if (NOT 3RDPARTY_DOXYGEN_EXECUTABLE OR (NOT 3RDPARTY_SKIP_DOT_EXECUTABLE AND NOT 3RDPARTY_DOT_EXECUTABLE))
|
if (NOT 3RDPARTY_DOXYGEN_EXECUTABLE OR (NOT 3RDPARTY_SKIP_DOT_EXECUTABLE AND NOT 3RDPARTY_DOT_EXECUTABLE))
|
||||||
|
|
||||||
set (DOXYGEN_SKIP_DOT ${3RDPARTY_SKIP_DOT_EXECUTABLE})
|
set (DOXYGEN_SKIP_DOT ${3RDPARTY_SKIP_DOT_EXECUTABLE})
|
||||||
find_package (Doxygen)
|
find_package (Doxygen ${DOXYGEN_MINIMUM_VERSION})
|
||||||
|
|
||||||
if (NOT 3RDPARTY_DOXYGEN_EXECUTABLE AND DOXYGEN_EXECUTABLE)
|
if (NOT 3RDPARTY_DOXYGEN_EXECUTABLE AND DOXYGEN_EXECUTABLE)
|
||||||
set (3RDPARTY_DOXYGEN_EXECUTABLE "${DOXYGEN_EXECUTABLE}" CACHE FILEPATH "${3RDPARTY_DOXYGEN_EXECUTABLE_DESCR}" FORCE)
|
set (3RDPARTY_DOXYGEN_EXECUTABLE "${DOXYGEN_EXECUTABLE}" CACHE FILEPATH "${3RDPARTY_DOXYGEN_EXECUTABLE_DESCR}" FORCE)
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# EGL
|
# EGL
|
||||||
if (WIN32)
|
|
||||||
THIRDPARTY_PRODUCT("EGL" "EGL/egl.h" "libEGL" "libEGL")
|
THIRDPARTY_PRODUCT("EGL" "EGL/egl.h" "CSF_OpenGlLibs" "")
|
||||||
else()
|
|
||||||
THIRDPARTY_PRODUCT("EGL" "EGL/egl.h" "EGL" "EGL")
|
|
||||||
endif()
|
|
||||||
|
71
adm/cmake/eigen.cmake
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# eigen
|
||||||
|
|
||||||
|
# eigen directory
|
||||||
|
if (NOT DEFINED 3RDPARTY_EIGEN_DIR)
|
||||||
|
set (3RDPARTY_EIGEN_DIR "" CACHE PATH "The directory containing eigen")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# search for eigen in user defined directory
|
||||||
|
if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
|
||||||
|
if (NOT 3RDPARTY_EIGEN_DIR OR NOT EXISTS "${3RDPARTY_EIGEN_DIR}")
|
||||||
|
FIND_PRODUCT_DIR("${3RDPARTY_DIR}" Eigen EIGEN_DIR_NAME)
|
||||||
|
if (EIGEN_DIR_NAME)
|
||||||
|
set (3RDPARTY_EIGEN_DIR "${3RDPARTY_DIR}/${EIGEN_DIR_NAME}" CACHE PATH "The directory containing eigen" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED 3RDPARTY_EIGEN_INCLUDE_DIR)
|
||||||
|
set (3RDPARTY_EIGEN_INCLUDE_DIR "" CACHE FILEPATH "The directory containing headers of the EIGEN")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT 3RDPARTY_EIGEN_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_EIGEN_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
set (HEADER_NAMES Eigen)
|
||||||
|
|
||||||
|
set (3RDPARTY_EIGEN_INCLUDE_DIR "3RDPARTY_EIGEN_INCLUDE_DIR-NOTFOUND" CACHE PATH "the path to Eigen header file" FORCE)
|
||||||
|
|
||||||
|
if (3RDPARTY_EIGEN_DIR AND EXISTS "${3RDPARTY_EIGEN_DIR}")
|
||||||
|
find_path (3RDPARTY_EIGEN_INCLUDE_DIR NAMES ${HEADER_NAMES}
|
||||||
|
PATHS ${3RDPARTY_EIGEN_DIR}
|
||||||
|
PATH_SUFFIXES include eigen3 include/eigen3
|
||||||
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
|
else()
|
||||||
|
find_path (3RDPARTY_EIGEN_INCLUDE_DIR NAMES ${HEADER_NAMES}
|
||||||
|
PATH_SUFFIXES include eigen3 include/eigen3
|
||||||
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# use default (CMake) EIGEN search
|
||||||
|
if (NOT 3RDPARTY_EIGEN_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_EIGEN_INCLUDE_DIR}")
|
||||||
|
# use 3RDPARTY_EIGEN_DIR if it is specified for eigen search
|
||||||
|
if (3RDPARTY_EIGEN_DIR AND EXISTS "${3RDPARTY_EIGEN_DIR}")
|
||||||
|
set (CACHED_EIGEN_DIR $ENV{Eigen3_DIR})
|
||||||
|
set (ENV{Eigen3_DIR} "${3RDPARTY_EIGEN_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(Eigen3 QUIET)
|
||||||
|
|
||||||
|
# restore ENV{Eigen3_DIR}
|
||||||
|
if (3RDPARTY_EIGEN_DIR AND EXISTS "${3RDPARTY_EIGEN_DIR}")
|
||||||
|
set (ENV{Eigen3_DIR} ${CACHED_EIGEN_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (${EIGEN3_FOUND})
|
||||||
|
set (3RDPARTY_EIGEN_INCLUDE_DIR "${EIGEN3_INCLUDE_DIR}" CACHE PATH "the path to Eigen header file" FORCE)
|
||||||
|
set (3RDPARTY_EIGEN_DIR "${EIGEN3_ROOT_DIR}" CACHE PATH "The directory containing eigen" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (3RDPARTY_EIGEN_INCLUDE_DIR AND EXISTS "${3RDPARTY_EIGEN_INCLUDE_DIR}")
|
||||||
|
list (APPEND 3RDPARTY_INCLUDE_DIRS "${3RDPARTY_EIGEN_INCLUDE_DIR}")
|
||||||
|
else()
|
||||||
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_EIGEN_INCLUDE_DIR)
|
||||||
|
|
||||||
|
set (3RDPARTY_EIGEN_INCLUDE_DIR "" CACHE PATH "the path to Eigen header file" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# unset all redundant variables
|
||||||
|
OCCT_CHECK_AND_UNSET(Eigen3_DIR)
|
@@ -1,3 +1,3 @@
|
|||||||
#freeimage
|
#freeimage
|
||||||
|
|
||||||
THIRDPARTY_PRODUCT("FREEIMAGE" "FreeImage.h" "freeimage" "freeimaged")
|
THIRDPARTY_PRODUCT("FREEIMAGE" "FreeImage.h" "CSF_FreeImagePlus" "d")
|
||||||
|
@@ -231,13 +231,13 @@ if (BUILD_SHARED_LIBS)
|
|||||||
set (3RDPARTY_FREETYPE_LIBRARY "3RDPARTY_FREETYPE_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to freetype library" FORCE)
|
set (3RDPARTY_FREETYPE_LIBRARY "3RDPARTY_FREETYPE_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to freetype library" FORCE)
|
||||||
|
|
||||||
if (3RDPARTY_FREETYPE_DIR AND EXISTS "${3RDPARTY_FREETYPE_DIR}")
|
if (3RDPARTY_FREETYPE_DIR AND EXISTS "${3RDPARTY_FREETYPE_DIR}")
|
||||||
find_library (3RDPARTY_FREETYPE_LIBRARY freetype
|
find_library (3RDPARTY_FREETYPE_LIBRARY ${CSF_FREETYPE}
|
||||||
PATHS "${3RDPARTY_FREETYPE_LIBRARY_DIR}" "${3RDPARTY_FREETYPE_DIR}"
|
PATHS "${3RDPARTY_FREETYPE_LIBRARY_DIR}" "${3RDPARTY_FREETYPE_DIR}"
|
||||||
PATH_SUFFIXES ${FREETYPE_PATH_SUFFIXES}
|
PATH_SUFFIXES ${FREETYPE_PATH_SUFFIXES}
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_library (3RDPARTY_FREETYPE_LIBRARY freetype
|
find_library (3RDPARTY_FREETYPE_LIBRARY ${CSF_FREETYPE}
|
||||||
PATH_SUFFIXES ${FREETYPE_PATH_SUFFIXES}
|
PATH_SUFFIXES ${FREETYPE_PATH_SUFFIXES}
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH)
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
||||||
endif()
|
endif()
|
||||||
@@ -268,12 +268,12 @@ if (BUILD_SHARED_LIBS)
|
|||||||
set (3RDPARTY_FREETYPE_DLL "3RDPARTY_FREETYPE_DLL-NOTFOUND" CACHE FILEPATH "The path to freetype shared library" FORCE)
|
set (3RDPARTY_FREETYPE_DLL "3RDPARTY_FREETYPE_DLL-NOTFOUND" CACHE FILEPATH "The path to freetype shared library" FORCE)
|
||||||
|
|
||||||
if (3RDPARTY_FREETYPE_DIR AND EXISTS "${3RDPARTY_FREETYPE_DIR}")
|
if (3RDPARTY_FREETYPE_DIR AND EXISTS "${3RDPARTY_FREETYPE_DIR}")
|
||||||
find_library (3RDPARTY_FREETYPE_DLL freetype
|
find_library (3RDPARTY_FREETYPE_DLL ${CSF_FREETYPE}
|
||||||
PATHS "${3RDPARTY_FREETYPE_DIR}"
|
PATHS "${3RDPARTY_FREETYPE_DIR}"
|
||||||
PATH_SUFFIXES bin
|
PATH_SUFFIXES bin
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_library (3RDPARTY_FREETYPE_DLL freetype
|
find_library (3RDPARTY_FREETYPE_DLL ${CSF_FREETYPE}
|
||||||
PATH_SUFFIXES bin)
|
PATH_SUFFIXES bin)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -300,17 +300,17 @@ if (BUILD_SHARED_LIBS)
|
|||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES "${3RDPARTY_FREETYPE_DLL}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
install (FILES "${3RDPARTY_FREETYPE_DLL}" DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
else()
|
else()
|
||||||
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}i")
|
DESTINATION "${INSTALL_DIR_BIN}i")
|
||||||
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
install (FILES "${3RDPARTY_FREETYPE_DLL}"
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
|
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
get_filename_component(3RDPARTY_FREETYPE_LIBRARY_ABS ${3RDPARTY_FREETYPE_LIBRARY} REALPATH)
|
get_filename_component(3RDPARTY_FREETYPE_LIBRARY_ABS ${3RDPARTY_FREETYPE_LIBRARY} REALPATH)
|
||||||
@@ -318,20 +318,20 @@ if (BUILD_SHARED_LIBS)
|
|||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
||||||
else()
|
else()
|
||||||
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
||||||
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}i"
|
DESTINATION "${INSTALL_DIR_LIB}i"
|
||||||
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
||||||
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
install (FILES "${3RDPARTY_FREETYPE_LIBRARY_ABS}"
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d"
|
DESTINATION "${INSTALL_DIR_LIB}d"
|
||||||
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
RENAME ${3RDPARTY_FREETYPE_LIBRARY_NAME}.6)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
#GL2PS
|
#GL2PS
|
||||||
|
|
||||||
THIRDPARTY_PRODUCT("GL2PS" "gl2ps.h" "gl2ps" "gl2psd")
|
THIRDPARTY_PRODUCT("GL2PS" "gl2ps.h" "CSF_GL2PS" "d")
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# OpenGL ES 2.0
|
# OpenGL ES 2.0
|
||||||
if (WIN32)
|
|
||||||
THIRDPARTY_PRODUCT("GLES2" "GLES2/gl2.h" "libGLESv2" "libGLESv2")
|
THIRDPARTY_PRODUCT("GLES2" "GLES2/gl2.h" "CSF_OpenGlLibs" "")
|
||||||
else()
|
|
||||||
THIRDPARTY_PRODUCT("GLES2" "GLES2/gl2.h" "GLESv2" "GLESv2")
|
|
||||||
endif()
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
# glx
|
# glx
|
||||||
|
|
||||||
THIRDPARTY_PRODUCT("GLX" "GL/glx.h" "GL" "GLd")
|
separate_arguments (CSF_OpenGlLibs)
|
||||||
|
THIRDPARTY_PRODUCT("GLX" "GL/glx.h" "CSF_OpenGlLibs" "d")
|
||||||
|
@@ -10,61 +10,65 @@ if (NOT DEFINED USE_TCL)
|
|||||||
OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)
|
OCCT_IS_PRODUCT_REQUIRED (CSF_TclLibs USE_TCL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (USE_TCL AND BUILD_SHARED_LIBS)
|
# TBB
|
||||||
if ("${3RDPARTY_TCL_LIBRARY_VERSION}" STREQUAL "")
|
|
||||||
message (STATUS "Warning: TCL version has not been specified by CSF_TclLibs defining thus it will be used as 8.6")
|
|
||||||
set (3RDPARTY_TCL_LIBRARY_VERSION "8.6")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if ("${3RDPARTY_TK_LIBRARY_VERSION}" STREQUAL "")
|
|
||||||
message (STATUS "Warning: TK version has not been specified by CSF_TclTkLibs defining thus it will be used as 8.6")
|
|
||||||
set (3RDPARTY_TK_LIBRARY_VERSION "8.6")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (USE_TBB)
|
if (USE_TBB)
|
||||||
set (CSF_TBB "tbb tbbmalloc")
|
set (CSF_TBB "tbb tbbmalloc")
|
||||||
else()
|
else()
|
||||||
set (CSF_TBB)
|
set (CSF_TBB)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# FREETYPE
|
||||||
|
if (USE_FREETYPE)
|
||||||
|
set (CSF_FREETYPE "freetype")
|
||||||
|
else()
|
||||||
|
set (CSF_FREETYPE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# FREEIMAGE
|
||||||
|
if (USE_FREEIMAGE)
|
||||||
|
set (CSF_FreeImagePlus "freeimage")
|
||||||
|
else()
|
||||||
|
set (CSF_FreeImagePlus)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# TCL/TK
|
||||||
|
if (USE_TCL)
|
||||||
|
if (WIN32)
|
||||||
|
set (CSF_TclLibs "tcl86")
|
||||||
|
set (CSF_TclTkLibs "tk86")
|
||||||
|
else()
|
||||||
|
if(APPLE)
|
||||||
|
set (CSF_TclTkLibs Tk)
|
||||||
|
set (CSF_TclLibs Tcl)
|
||||||
|
elseif(UNIX)
|
||||||
|
set (CSF_TclLibs "tcl8.6")
|
||||||
|
set (CSF_TclTkLibs "tk8.6")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# GL2PS
|
||||||
|
if (NOT DEFINED ANDROID)
|
||||||
|
if (USE_GL2PS)
|
||||||
|
set (CSF_GL2PS "gl2ps")
|
||||||
|
else()
|
||||||
|
set (CSF_GL2PS)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (CSF_advapi32 "advapi32.lib")
|
set (CSF_advapi32 "advapi32.lib")
|
||||||
set (CSF_gdi32 "gdi32.lib")
|
set (CSF_gdi32 "gdi32.lib")
|
||||||
set (CSF_user32 "user32.lib")
|
set (CSF_user32 "user32.lib")
|
||||||
set (CSF_wsock32 "wsock32.lib")
|
set (CSF_wsock32 "wsock32.lib")
|
||||||
set (CSF_psapi "Psapi.lib")
|
set (CSF_psapi "Psapi.lib")
|
||||||
set (CSF_AviLibs "ws2_32.lib vfw32.lib")
|
|
||||||
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore" OR USE_GLES2)
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore" OR USE_GLES2)
|
||||||
set (CSF_OpenGlLibs "libEGL.lib libGLESv2.lib")
|
set (CSF_OpenGlLibs "libEGL libGLESv2")
|
||||||
else()
|
else()
|
||||||
set (CSF_OpenGlLibs "opengl32.lib")
|
set (CSF_OpenGlLibs "opengl32.lib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (USE_FREETYPE)
|
|
||||||
set (CSF_FREETYPE "freetype.lib")
|
|
||||||
else()
|
else()
|
||||||
set (CSF_FREETYPE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (USE_GL2PS)
|
|
||||||
set (CSF_GL2PS "gl2ps.lib")
|
|
||||||
else()
|
|
||||||
set (CSF_GL2PS)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (USE_FREEIMAGE)
|
|
||||||
set (CSF_FreeImagePlus "freeimage.lib")
|
|
||||||
else()
|
|
||||||
set (CSF_FreeImagePlus)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (USE_TCL)
|
|
||||||
set (CSF_TclLibs "tcl${3RDPARTY_TCL_LIBRARY_VERSION}.lib")
|
|
||||||
set (CSF_TclTkLibs "tk${3RDPARTY_TK_LIBRARY_VERSION}.lib")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set (CSF_objc "objc")
|
set (CSF_objc "objc")
|
||||||
@@ -89,10 +93,6 @@ else()
|
|||||||
OCCT_CHECK_AND_UNSET (OpenGlLibs_LIB)
|
OCCT_CHECK_AND_UNSET (OpenGlLibs_LIB)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (USE_TCL)
|
|
||||||
set (CSF_TclTkLibs Tk)
|
|
||||||
set (CSF_TclLibs Tcl)
|
|
||||||
endif()
|
|
||||||
elseif (ANDROID)
|
elseif (ANDROID)
|
||||||
set (CSF_ThreadLibs "c")
|
set (CSF_ThreadLibs "c")
|
||||||
set (CSF_OpenGlLibs "EGL GLESv2")
|
set (CSF_OpenGlLibs "EGL GLESv2")
|
||||||
@@ -101,30 +101,5 @@ else()
|
|||||||
set (CSF_OpenGlLibs "GL")
|
set (CSF_OpenGlLibs "GL")
|
||||||
set (CSF_XwLibs "X11 Xext Xmu Xi")
|
set (CSF_XwLibs "X11 Xext Xmu Xi")
|
||||||
set (CSF_dl "dl")
|
set (CSF_dl "dl")
|
||||||
|
|
||||||
if (USE_TCL)
|
|
||||||
set (CSF_TclLibs "tcl${3RDPARTY_TCL_LIBRARY_VERSION}")
|
|
||||||
set (CSF_TclTkLibs "tk${3RDPARTY_TK_LIBRARY_VERSION}")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
if (USE_FREETYPE)
|
|
||||||
set (CSF_FREETYPE "freetype")
|
|
||||||
else()
|
|
||||||
set (CSF_FREETYPE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (USE_FREEIMAGE)
|
|
||||||
set (CSF_FreeImagePlus "freeimage")
|
|
||||||
else()
|
|
||||||
set (CSF_FreeImagePlus)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT DEFINED ANDROID)
|
|
||||||
if (USE_GL2PS)
|
|
||||||
set (CSF_GL2PS "gl2ps")
|
|
||||||
else()
|
|
||||||
set (CSF_GL2PS)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
@@ -122,7 +122,14 @@ if(MINGW)
|
|||||||
add_definitions(-D_WIN32_WINNT=0x0501)
|
add_definitions(-D_WIN32_WINNT=0x0501)
|
||||||
# workaround bugs in mingw with vtable export
|
# workaround bugs in mingw with vtable export
|
||||||
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols")
|
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols")
|
||||||
elseif (DEFINED CMAKE_COMPILER_IS_GNUCXX OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang")
|
elseif ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang")
|
||||||
|
if (APPLE)
|
||||||
|
# CLang can be used with both libstdc++ and libc++, however on OS X libstdc++ is outdated.
|
||||||
|
set (CMAKE_CXX_FLAGS "-std=c++0x -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
|
||||||
|
else()
|
||||||
|
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
|
||||||
|
endif()
|
||||||
|
elseif (DEFINED CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
|
set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@@ -74,6 +74,11 @@ macro (OCCT_MAKE_COMPILER_SHORT_NAME)
|
|||||||
set (COMPILER vc12)
|
set (COMPILER vc12)
|
||||||
elseif (MSVC14)
|
elseif (MSVC14)
|
||||||
set (COMPILER vc14)
|
set (COMPILER vc14)
|
||||||
|
elseif (MSVC15)
|
||||||
|
# Since Visual Studio 15 (2017), its version diverged from version of
|
||||||
|
# compiler which is 14.1; as that compiler uses the same run-time as 14.0,
|
||||||
|
# we keep its id as "vc14" to be compatibille
|
||||||
|
set (COMPILER vc14)
|
||||||
endif()
|
endif()
|
||||||
elseif (DEFINED CMAKE_COMPILER_IS_GNUCC)
|
elseif (DEFINED CMAKE_COMPILER_IS_GNUCC)
|
||||||
set (COMPILER gcc)
|
set (COMPILER gcc)
|
||||||
@@ -257,6 +262,8 @@ macro (COLLECT_AND_INSTALL_OCCT_HEADER_FILES ROOT_TARGET_OCCT_DIR OCCT_BUILD_TOO
|
|||||||
foreach (FILE_INDEX RANGE ${ALL_FILES_NB})
|
foreach (FILE_INDEX RANGE ${ALL_FILES_NB})
|
||||||
list (GET OCCT_ALL_FILE_NAMES ${FILE_INDEX} OCCT_FILE_NAME)
|
list (GET OCCT_ALL_FILE_NAMES ${FILE_INDEX} OCCT_FILE_NAME)
|
||||||
|
|
||||||
|
string (REGEX REPLACE "[^:]+:+" "" OCCT_FILE_NAME "${OCCT_FILE_NAME}")
|
||||||
|
|
||||||
if ("${OCCT_FILE_IN_DIR_NAME}" STREQUAL "${OCCT_FILE_NAME}")
|
if ("${OCCT_FILE_IN_DIR_NAME}" STREQUAL "${OCCT_FILE_NAME}")
|
||||||
set (OCCT_FILE_IN_DIR_STATUS ON)
|
set (OCCT_FILE_IN_DIR_STATUS ON)
|
||||||
|
|
||||||
@@ -296,10 +303,11 @@ macro (COLLECT_AND_INSTALL_OCCT_HEADER_FILES ROOT_TARGET_OCCT_DIR OCCT_BUILD_TOO
|
|||||||
|
|
||||||
foreach (OCCT_HEADER_FILE ${OCCT_HEADER_FILES_COMPLETE})
|
foreach (OCCT_HEADER_FILE ${OCCT_HEADER_FILES_COMPLETE})
|
||||||
get_filename_component (HEADER_FILE_NAME ${OCCT_HEADER_FILE} NAME)
|
get_filename_component (HEADER_FILE_NAME ${OCCT_HEADER_FILE} NAME)
|
||||||
|
set (OCCT_HEADER_FILE_CONTENT "#include \"${OCCT_HEADER_FILE}\"")
|
||||||
configure_file ("${TEMPLATE_HEADER_PATH}" "${ROOT_TARGET_OCCT_DIR}/inc/${HEADER_FILE_NAME}" @ONLY)
|
configure_file ("${TEMPLATE_HEADER_PATH}" "${ROOT_TARGET_OCCT_DIR}/inc/${HEADER_FILE_NAME}" @ONLY)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
install (FILES ${OCCT_HEADER_FILES_COMPLETE} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_INCLUDE}")
|
install (FILES ${OCCT_HEADER_FILES_COMPLETE} DESTINATION "${INSTALL_DIR_INCLUDE}")
|
||||||
|
|
||||||
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
||||||
message (STATUS "Info: \(${CURRENT_TIME}\) Checking headers in inc folder...")
|
message (STATUS "Info: \(${CURRENT_TIME}\) Checking headers in inc folder...")
|
||||||
@@ -421,7 +429,7 @@ function (OCCT_TOOLKIT_DEP TOOLKIT_NAME TOOLKIT_DEPS)
|
|||||||
set (LOCAL_TOOLKIT_DEPS)
|
set (LOCAL_TOOLKIT_DEPS)
|
||||||
foreach (FILE_CONTENT_LINE ${FILE_CONTENT})
|
foreach (FILE_CONTENT_LINE ${FILE_CONTENT})
|
||||||
string (REGEX MATCH "^TK" TK_FOUND ${FILE_CONTENT_LINE})
|
string (REGEX MATCH "^TK" TK_FOUND ${FILE_CONTENT_LINE})
|
||||||
if ("${FILE_CONTENT_LINE}" STREQUAL "DRAWEXE" OR NOT "${TK_FOUND}" STREQUAL "")
|
if ("x${FILE_CONTENT_LINE}" STREQUAL "xDRAWEXE" OR NOT "${TK_FOUND}" STREQUAL "")
|
||||||
list (APPEND LOCAL_TOOLKIT_DEPS ${FILE_CONTENT_LINE})
|
list (APPEND LOCAL_TOOLKIT_DEPS ${FILE_CONTENT_LINE})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
77
adm/cmake/occt_resources.cmake
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# OCCT resource files generation
|
||||||
|
|
||||||
|
macro (OCCT_GENERATE_CONTENT_ONLY CurrentResource)
|
||||||
|
set (RESOURCE_FILES)
|
||||||
|
set (isResDirectory FALSE)
|
||||||
|
if (IS_DIRECTORY "${CMAKE_SOURCE_DIR}/src/${CurrentResource}")
|
||||||
|
file (STRINGS "${CMAKE_SOURCE_DIR}/src/${CurrentResource}/FILES" RESOURCE_FILES)
|
||||||
|
set (CurrentResource_Directory "${CurrentResource}")
|
||||||
|
set (isResDirectory TRUE)
|
||||||
|
else()
|
||||||
|
get_filename_component (CurrentResource_Name "${CurrentResource}" NAME)
|
||||||
|
list (APPEND RESOURCE_FILES "res:::${CurrentResource_Name}")
|
||||||
|
get_filename_component (CurrentResource_Directory "${CurrentResource}" DIRECTORY)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Add current toolkit into RESOURCE_TOOLKITS array to copy it to the BUILD directory
|
||||||
|
list (APPEND RESOURCE_TOOLKITS "${CurrentResource_Directory}")
|
||||||
|
list (REMOVE_DUPLICATES RESOURCE_TOOLKITS)
|
||||||
|
|
||||||
|
if (BUILD_RESOURCES)
|
||||||
|
foreach (RESOURCE_FILE ${RESOURCE_FILES})
|
||||||
|
string (REGEX MATCH "^[^:]+:::" IS_RESOURCE "${RESOURCE_FILE}")
|
||||||
|
if (IS_RESOURCE)
|
||||||
|
string (REGEX REPLACE "[^:]+:+" "" RESOURCE_FILE "${RESOURCE_FILE}")
|
||||||
|
|
||||||
|
get_filename_component (CurrentResource_FileName "${RESOURCE_FILE}" NAME)
|
||||||
|
string (REPLACE "." "_" CurrentResource_FileName "${CurrentResource_FileName}")
|
||||||
|
set (HEADER_FILE_NAME "${CurrentResource_Directory}_${CurrentResource_FileName}.pxx")
|
||||||
|
|
||||||
|
set (toProcessResFile TRUE)
|
||||||
|
if (isResDirectory)
|
||||||
|
list (FIND RESOURCE_FILES "${HEADER_FILE_NAME}" aResIndex)
|
||||||
|
if ("${aResIndex}" STREQUAL "-1")
|
||||||
|
set (toProcessResFile FALSE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (toProcessResFile)
|
||||||
|
message(STATUS "Info. Generating header file from resource file: ${CMAKE_SOURCE_DIR}/src/${CurrentResource_Directory}/${RESOURCE_FILE}")
|
||||||
|
|
||||||
|
# generate content for header file
|
||||||
|
set (OCCT_HEADER_FILE_CONTENT "// This file has been automatically generated from resource file src/${CurrentResource_Directory}/${RESOURCE_FILE}\n\n")
|
||||||
|
|
||||||
|
# read resource file
|
||||||
|
file (STRINGS "${CMAKE_SOURCE_DIR}/src/${CurrentResource_Directory}/${RESOURCE_FILE}" RESOURCE_FILE_LINES_LIST)
|
||||||
|
|
||||||
|
set (OCCT_HEADER_FILE_CONTENT "${OCCT_HEADER_FILE_CONTENT}static const char ${CurrentResource_Directory}_${CurrentResource_FileName}[] =")
|
||||||
|
foreach (line IN LISTS RESOURCE_FILE_LINES_LIST)
|
||||||
|
string (REPLACE "\"" "\\\"" line "${line}")
|
||||||
|
set (OCCT_HEADER_FILE_CONTENT "${OCCT_HEADER_FILE_CONTENT}\n \"${line}\\n\"")
|
||||||
|
endforeach()
|
||||||
|
set (OCCT_HEADER_FILE_CONTENT "${OCCT_HEADER_FILE_CONTENT};")
|
||||||
|
|
||||||
|
# Save generated content to header file
|
||||||
|
set (HEADER_FILE "${CMAKE_SOURCE_DIR}/src/${CurrentResource_Directory}/${HEADER_FILE_NAME}")
|
||||||
|
if (EXISTS "${HEADER_FILE}")
|
||||||
|
file (REMOVE "${HEADER_FILE}")
|
||||||
|
endif()
|
||||||
|
configure_file ("${CMAKE_SOURCE_DIR}/adm/templates/header.in" "${HEADER_FILE}" @ONLY NEWLINE_STYLE LF)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
FILE_TO_LIST ("adm/RESOURCES" RESOURCES)
|
||||||
|
foreach (CurrentResource ${RESOURCES})
|
||||||
|
get_filename_component (CurrentResource_FileName "${CurrentResource}" NAME)
|
||||||
|
if ("${CurrentResource_FileName}" STREQUAL TObj.msg OR
|
||||||
|
"${CurrentResource_FileName}" STREQUAL Units.dat OR
|
||||||
|
"${CurrentResource}" STREQUAL XSMessage OR
|
||||||
|
"${CurrentResource}" STREQUAL SHMessage OR
|
||||||
|
"${CurrentResource}" STREQUAL Shaders)
|
||||||
|
OCCT_GENERATE_CONTENT_ONLY ("${CurrentResource}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
@@ -147,14 +147,14 @@ if ("${PROJECT_NAME}" STREQUAL "DRAWEXE")
|
|||||||
add_executable (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE})
|
add_executable (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE})
|
||||||
|
|
||||||
install (TARGETS ${PROJECT_NAME}
|
install (TARGETS ${PROJECT_NAME}
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}\${OCCT_INSTALL_BIN_LETTER}")
|
DESTINATION "${INSTALL_DIR_BIN}\${OCCT_INSTALL_BIN_LETTER}")
|
||||||
else()
|
else()
|
||||||
add_library (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE})
|
add_library (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE})
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
install (FILES ${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bind/${PROJECT_NAME}.pdb
|
install (FILES ${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bind/${PROJECT_NAME}.pdb
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}\${OCCT_INSTALL_BIN_LETTER}")
|
DESTINATION "${INSTALL_DIR_BIN}\${OCCT_INSTALL_BIN_LETTER}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS AND NOT "${BUILD_SHARED_LIBRARY_NAME_POSTFIX}" STREQUAL "")
|
if (BUILD_SHARED_LIBS AND NOT "${BUILD_SHARED_LIBRARY_NAME_POSTFIX}" STREQUAL "")
|
||||||
@@ -219,10 +219,39 @@ foreach (USED_ITEM ${USED_EXTERNLIB_AND_TOOLKITS})
|
|||||||
message (STATUS "Info: ${USED_ITEM} from ${PROJECT_NAME} skipped due to it is empty")
|
message (STATUS "Info: ${USED_ITEM} from ${PROJECT_NAME} skipped due to it is empty")
|
||||||
else() # get CSF_ value
|
else() # get CSF_ value
|
||||||
set (CURRENT_CSF ${${USED_ITEM}})
|
set (CURRENT_CSF ${${USED_ITEM}})
|
||||||
if (NOT "${CURRENT_CSF}" STREQUAL "")
|
if (NOT "x${CURRENT_CSF}" STREQUAL "x")
|
||||||
# prepare a list from a string with whitespaces
|
set (LIBRARY_FROM_CACHE 0)
|
||||||
separate_arguments (CURRENT_CSF)
|
separate_arguments (CURRENT_CSF)
|
||||||
list (APPEND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT ${CURRENT_CSF})
|
foreach (CSF_LIBRARY ${CURRENT_CSF})
|
||||||
|
string (TOLOWER "${CSF_LIBRARY}" CSF_LIBRARY)
|
||||||
|
string (REPLACE "+" "[+]" CSF_LIBRARY "${CSF_LIBRARY}")
|
||||||
|
string (REPLACE "." "" CSF_LIBRARY "${CSF_LIBRARY}")
|
||||||
|
get_cmake_property(ALL_CACHE_VARIABLES CACHE_VARIABLES)
|
||||||
|
string (REGEX MATCHALL "(^|;)3RDPARTY_[^;]+_LIBRARY[^;]*" ALL_CACHE_VARIABLES "${ALL_CACHE_VARIABLES}")
|
||||||
|
foreach (CACHE_VARIABLE ${ALL_CACHE_VARIABLES})
|
||||||
|
set (CURRENT_CACHE_LIBRARY ${${CACHE_VARIABLE}})
|
||||||
|
string (TOLOWER "${CACHE_VARIABLE}" CACHE_VARIABLE)
|
||||||
|
|
||||||
|
if (EXISTS "${CURRENT_CACHE_LIBRARY}" AND NOT IS_DIRECTORY "${CURRENT_CACHE_LIBRARY}")
|
||||||
|
string (REGEX MATCH "_${CSF_LIBRARY}$" IS_ENDING "${CACHE_VARIABLE}")
|
||||||
|
string (REGEX MATCH "^([a-z]+)" CSF_WO_VERSION "${CSF_LIBRARY}")
|
||||||
|
string (REGEX MATCH "_${CSF_WO_VERSION}$" IS_ENDING_WO_VERSION "${CACHE_VARIABLE}")
|
||||||
|
if ("3rdparty_${CSF_LIBRARY}_library" STREQUAL "${CACHE_VARIABLE}" OR
|
||||||
|
"3rdparty_${CSF_WO_VERSION}_library" STREQUAL "${CACHE_VARIABLE}" OR
|
||||||
|
NOT "x${IS_ENDING}" STREQUAL "x" OR
|
||||||
|
NOT "x${IS_ENDING_WO_VERSION}" STREQUAL "x")
|
||||||
|
list (APPEND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT "${CURRENT_CACHE_LIBRARY}")
|
||||||
|
set (LIBRARY_FROM_CACHE 1)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
if (NOT ${LIBRARY_FROM_CACHE})
|
||||||
|
# prepare a list from a string with whitespaces
|
||||||
|
separate_arguments (CURRENT_CSF)
|
||||||
|
list (APPEND USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT ${CURRENT_CSF})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -257,3 +286,34 @@ endif()
|
|||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
target_link_libraries (${PROJECT_NAME} ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
target_link_libraries (${PROJECT_NAME} ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# use Cotire to accelerate build via usage of precompiled headers
|
||||||
|
if (BUILD_USE_PCH)
|
||||||
|
if (WIN32)
|
||||||
|
# prevent definition of min and max macros through inclusion of Windows.h
|
||||||
|
# (for cotire builds)
|
||||||
|
add_definitions("-DNOMINMAX")
|
||||||
|
# avoid warnings on deprecated names from standard C library (see strsafe.h)
|
||||||
|
add_definitions("-DSTRSAFE_NO_DEPRECATE")
|
||||||
|
# avoid "std::Equal1" warning in QANCollection_Stl.cxx in debug mode
|
||||||
|
# suggesting using msvc "Checked Iterators"
|
||||||
|
add_definitions("-D_SCL_SECURE_NO_WARNINGS")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Exclude system-provided glext.h.
|
||||||
|
# These macros are already defined within OpenGl_GlFunctions.hxx,
|
||||||
|
# however we have to duplicate them here for building TKOpenGl with PCH.
|
||||||
|
add_definitions("-DGL_GLEXT_LEGACY")
|
||||||
|
add_definitions("-DGLX_GLXEXT_LEGACY")
|
||||||
|
|
||||||
|
# workaround for old gcc
|
||||||
|
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
add_definitions("-D__STDC_FORMAT_MACROS")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# unity builds are not used since they do not add speed but cause conflicts
|
||||||
|
# in TKV3d
|
||||||
|
set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
|
||||||
|
|
||||||
|
cotire(${PROJECT_NAME})
|
||||||
|
endif()
|
||||||
|
@@ -70,49 +70,49 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# common steps for tbb and tbbmalloc
|
# common steps for tbb and tbbmalloc
|
||||||
macro (TBB_PRODUCT_SEARCH PRODUCT_NAME)
|
macro (TBB_PRODUCT_SEARCH PRODUCT_LIBRARY_NAME)
|
||||||
|
|
||||||
string (TOLOWER ${PRODUCT_NAME} lower_PRODUCT_NAME)
|
string (TOUPPER ${PRODUCT_LIBRARY_NAME} upper_PRODUCT_LIBRARY_NAME)
|
||||||
|
|
||||||
# define required tbb/tbbmalloc variables
|
# define required tbb/tbbmalloc variables
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY OR NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
if (NOT DEFINED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY OR NOT 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR OR NOT EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}")
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "" CACHE FILEPATH "${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY "" CACHE FILEPATH "${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR)
|
if (NOT DEFINED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} library")
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL OR NOT 3RDPARTY_${PRODUCT_NAME}_DLL_DIR OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
if (NOT DEFINED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL OR NOT 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR OR NOT EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR}")
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "" CACHE FILEPATH "${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL "" CACHE FILEPATH "${upper_PRODUCT_LIBRARY_NAME} shared library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32 AND NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR)
|
if (WIN32 AND NOT DEFINED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library")
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} shared library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# check 3RDPARTY_${PRODUCT_NAME}_ paths for consistency with specified 3RDPARTY_TBB_DIR
|
# check 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_ paths for consistency with specified 3RDPARTY_TBB_DIR
|
||||||
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY FILEPATH "the path to ${PRODUCT_NAME} library")
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY FILEPATH "the path to ${upper_PRODUCT_LIBRARY_NAME} library")
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}")
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" PATH)
|
get_filename_component (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}" PATH)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
else()
|
else()
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR PATH "The directory containing ${PRODUCT_NAME} library")
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${PRODUCT_NAME}_DLL FILEPATH "the path to ${PRODUCT_NAME} shared library")
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL FILEPATH "the path to ${upper_PRODUCT_LIBRARY_NAME} shared library")
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL AND EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}")
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL}" PATH)
|
get_filename_component (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}" PATH)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} shared library" FORCE)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${PRODUCT_NAME}_DLL_DIR PATH "The directory containing ${PRODUCT_NAME} shared library")
|
CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_TBB_DIR 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} shared library")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -121,112 +121,112 @@ macro (TBB_PRODUCT_SEARCH PRODUCT_NAME)
|
|||||||
OCCT_MAKE_COMPILER_BITNESS()
|
OCCT_MAKE_COMPILER_BITNESS()
|
||||||
|
|
||||||
if (${COMPILER_BITNESS} EQUAL 32)
|
if (${COMPILER_BITNESS} EQUAL 32)
|
||||||
set (${PRODUCT_NAME}_ARCH_NAME ia32)
|
set (${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME ia32)
|
||||||
else()
|
else()
|
||||||
set (${PRODUCT_NAME}_ARCH_NAME intel64)
|
set (${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME intel64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# tbb/tbbmalloc library
|
# tbb/tbbmalloc library
|
||||||
if (NOT 3RDPARTY_${PRODUCT_NAME}_LIBRARY OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
if (NOT 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY OR NOT EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}")
|
||||||
|
|
||||||
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .so .dylib .a)
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib .so .dylib .a)
|
||||||
set (PRODUCT_PATH_SUFFIXES lib ${lower_PRODUCT_NAME})
|
set (PRODUCT_PATH_SUFFIXES lib ${PRODUCT_LIBRARY_NAME})
|
||||||
|
|
||||||
# set 3RDPARTY_${PRODUCT_NAME}_LIBRARY as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_LIBRARY
|
# set 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "3RDPARTY_${PRODUCT_NAME}_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY "3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY-NOTFOUND" CACHE FILEPATH "The path to ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
|
|
||||||
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
||||||
if (NOT EXISTS "${3RDPARTY_TBB_DIR}/lib/${${PRODUCT_NAME}_ARCH_NAME}/${COMPILER}")
|
if (NOT EXISTS "${3RDPARTY_TBB_DIR}/lib/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${COMPILER}")
|
||||||
if (EXISTS "${3RDPARTY_TBB_DIR}/lib/${${PRODUCT_NAME}_ARCH_NAME}")
|
if (EXISTS "${3RDPARTY_TBB_DIR}/lib/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}")
|
||||||
file (GLOB ${PRODUCT_NAME}_COMPILER_LIST "${3RDPARTY_TBB_DIR}/lib/${${PRODUCT_NAME}_ARCH_NAME}/*")
|
file (GLOB ${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST "${3RDPARTY_TBB_DIR}/lib/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/*")
|
||||||
if (${PRODUCT_NAME}_COMPILER_LIST)
|
if (${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST)
|
||||||
list (GET ${PRODUCT_NAME}_COMPILER_LIST -1 THE_MOST_FRESH_COMPILER_VERSION)
|
list (GET ${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST -1 THE_MOST_FRESH_COMPILER_VERSION)
|
||||||
if (THE_MOST_FRESH_COMPILER_VERSION)
|
if (THE_MOST_FRESH_COMPILER_VERSION)
|
||||||
get_filename_component (THE_MOST_FRESH_COMPILER_VERSION_NAME "${THE_MOST_FRESH_COMPILER_VERSION}" NAME)
|
get_filename_component (THE_MOST_FRESH_COMPILER_VERSION_NAME "${THE_MOST_FRESH_COMPILER_VERSION}" NAME)
|
||||||
set (PRODUCT_PATH_SUFFIXES lib ${lower_PRODUCT_NAME} lib/${${PRODUCT_NAME}_ARCH_NAME}/${THE_MOST_FRESH_COMPILER_VERSION_NAME})
|
set (PRODUCT_PATH_SUFFIXES lib ${PRODUCT_LIBRARY_NAME} lib/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${THE_MOST_FRESH_COMPILER_VERSION_NAME})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set (PRODUCT_PATH_SUFFIXES lib ${lower_PRODUCT_NAME} lib/${${PRODUCT_NAME}_ARCH_NAME}/${COMPILER})
|
set (PRODUCT_PATH_SUFFIXES lib ${PRODUCT_LIBRARY_NAME} lib/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${COMPILER})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY ${lower_PRODUCT_NAME}
|
find_library (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY ${PRODUCT_LIBRARY_NAME}
|
||||||
PATHS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" "${3RDPARTY_TBB_DIR}"
|
PATHS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}" "${3RDPARTY_TBB_DIR}"
|
||||||
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_LIBRARY ${lower_PRODUCT_NAME}
|
find_library (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY ${PRODUCT_LIBRARY_NAME}
|
||||||
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH)
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY AND EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}")
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" PATH)
|
get_filename_component (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}" PATH)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
else()
|
else()
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR "" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR AND EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}")
|
||||||
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR}")
|
||||||
else()
|
else()
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR)
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY_DIR)
|
||||||
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_LIBRARY "" CACHE FILEPATH "The path to ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY "" CACHE FILEPATH "The path to ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# tbb/tbbmalloc shared library
|
# tbb/tbbmalloc shared library
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (NOT 3RDPARTY_${PRODUCT_NAME}_DLL OR NOT EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
if (NOT 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL OR NOT EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}")
|
||||||
set (CMAKE_FIND_LIBRARY_SUFFIXES .dll)
|
set (CMAKE_FIND_LIBRARY_SUFFIXES .dll)
|
||||||
set (PRODUCT_PATH_SUFFIXES bin)
|
set (PRODUCT_PATH_SUFFIXES bin)
|
||||||
|
|
||||||
# set 3RDPARTY_${PRODUCT_NAME}_DLL as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${PRODUCT_NAME}_DLL
|
# set 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL as notfound, otherwise find_library can't assign a new value to 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "3RDPARTY_${PRODUCT_NAME}_DLL-NOTFOUND" CACHE FILEPATH "${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL "3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL-NOTFOUND" CACHE FILEPATH "${upper_PRODUCT_LIBRARY_NAME} shared library" FORCE)
|
||||||
|
|
||||||
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
||||||
if (NOT EXISTS "${3RDPARTY_TBB_DIR}/bin/${${PRODUCT_NAME}_ARCH_NAME}/${COMPILER}")
|
if (NOT EXISTS "${3RDPARTY_TBB_DIR}/bin/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${COMPILER}")
|
||||||
if (EXISTS "${3RDPARTY_TBB_DIR}/bin/${${PRODUCT_NAME}_ARCH_NAME}")
|
if (EXISTS "${3RDPARTY_TBB_DIR}/bin/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}")
|
||||||
file (GLOB ${PRODUCT_NAME}_COMPILER_LIST "${3RDPARTY_TBB_DIR}/bin/${${PRODUCT_NAME}_ARCH_NAME}/*")
|
file (GLOB ${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST "${3RDPARTY_TBB_DIR}/bin/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/*")
|
||||||
if (${PRODUCT_NAME}_COMPILER_LIST)
|
if (${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST)
|
||||||
list (GET ${PRODUCT_NAME}_COMPILER_LIST -1 THE_MOST_FRESH_COMPILER_VERSION)
|
list (GET ${upper_PRODUCT_LIBRARY_NAME}_COMPILER_LIST -1 THE_MOST_FRESH_COMPILER_VERSION)
|
||||||
if (THE_MOST_FRESH_COMPILER_VERSION)
|
if (THE_MOST_FRESH_COMPILER_VERSION)
|
||||||
get_filename_component (THE_MOST_FRESH_COMPILER_VERSION_NAME "${THE_MOST_FRESH_COMPILER_VERSION}" NAME)
|
get_filename_component (THE_MOST_FRESH_COMPILER_VERSION_NAME "${THE_MOST_FRESH_COMPILER_VERSION}" NAME)
|
||||||
set (PRODUCT_PATH_SUFFIXES bin bin/${${PRODUCT_NAME}_ARCH_NAME}/${THE_MOST_FRESH_COMPILER_VERSION_NAME})
|
set (PRODUCT_PATH_SUFFIXES bin bin/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${THE_MOST_FRESH_COMPILER_VERSION_NAME})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set (PRODUCT_PATH_SUFFIXES bin bin/${${PRODUCT_NAME}_ARCH_NAME}/${COMPILER})
|
set (PRODUCT_PATH_SUFFIXES bin bin/${${upper_PRODUCT_LIBRARY_NAME}_ARCH_NAME}/${COMPILER})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
if (3RDPARTY_TBB_DIR AND EXISTS "${3RDPARTY_TBB_DIR}")
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_DLL ${lower_PRODUCT_NAME}
|
find_library (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL ${PRODUCT_LIBRARY_NAME}
|
||||||
PATHS "${3RDPARTY_TBB_DIR}"
|
PATHS "${3RDPARTY_TBB_DIR}"
|
||||||
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES}
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_library (3RDPARTY_${PRODUCT_NAME}_DLL ${lower_PRODUCT_NAME} PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES})
|
find_library (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL ${PRODUCT_LIBRARY_NAME} PATH_SUFFIXES ${PRODUCT_PATH_SUFFIXES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL AND EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL AND EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}")
|
||||||
get_filename_component (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL}" PATH)
|
get_filename_component (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}" PATH)
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${PRODUCT_NAME} library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR}" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} library" FORCE)
|
||||||
else()
|
else()
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR "" CACHE PATH "The directory containing ${upper_PRODUCT_LIBRARY_NAME} shared library" FORCE)
|
||||||
|
|
||||||
set (3RDPARTY_${PRODUCT_NAME}_DLL "" CACHE FILEPATH "${PRODUCT_NAME} shared library" FORCE)
|
set (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL "" CACHE FILEPATH "${upper_PRODUCT_LIBRARY_NAME} shared library" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_${PRODUCT_NAME}_DLL_DIR OR EXISTS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
if (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR OR EXISTS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR}")
|
||||||
list (APPEND 3RDPARTY_DLL_DIRS "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
list (APPEND 3RDPARTY_DLL_DIRS "${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR}")
|
||||||
else()
|
else()
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_DLL_DIR)
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL_DIR)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -237,47 +237,49 @@ macro (TBB_PRODUCT_SEARCH PRODUCT_NAME)
|
|||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_DLL} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL} DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
else()
|
else()
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_DLL}
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_DLL}
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}i")
|
DESTINATION "${INSTALL_DIR_BIN}i")
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_DLL}
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL}
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
|
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
get_filename_component (PRODUCT_LIBRARY_NAME ${3RDPARTY_${PRODUCT_NAME}_LIBRARY} NAME)
|
get_filename_component (PRODUCT_LIBRARY_NAME ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY} NAME)
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_LIBRARY}.2
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}.2
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
||||||
else()
|
else()
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_LIBRARY}.2
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}.2
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
|
DESTINATION "${INSTALL_DIR_LIB}"
|
||||||
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_LIBRARY}.2
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}.2
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}i"
|
DESTINATION "${INSTALL_DIR_LIB}i"
|
||||||
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
||||||
install (FILES ${3RDPARTY_${PRODUCT_NAME}_LIBRARY}.2
|
install (FILES ${3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY}.2
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d"
|
DESTINATION "${INSTALL_DIR_LIB}d"
|
||||||
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
RENAME ${PRODUCT_LIBRARY_NAME}.2)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
mark_as_advanced (3RDPARTY_${PRODUCT_NAME}_LIBRARY 3RDPARTY_${PRODUCT_NAME}_DLL)
|
mark_as_advanced (3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_LIBRARY 3RDPARTY_${upper_PRODUCT_LIBRARY_NAME}_DLL)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
TBB_PRODUCT_SEARCH (TBB)
|
separate_arguments (CSF_TBB)
|
||||||
TBB_PRODUCT_SEARCH (TBBMALLOC)
|
foreach (LIB IN LISTS CSF_TBB)
|
||||||
|
TBB_PRODUCT_SEARCH (${LIB})
|
||||||
|
endforeach()
|
||||||
|
|
||||||
if (INSTALL_TBB)
|
if (INSTALL_TBB)
|
||||||
set (USED_3RDPARTY_TBB_DIR "")
|
set (USED_3RDPARTY_TBB_DIR "")
|
||||||
|
@@ -93,9 +93,9 @@ if (BUILD_SHARED_LIBS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set (3RDPARTY_TCL_DLL "3RDPARTY_TCL_DLL-NOTFOUND" CACHE FILEPATH "TCL shared library" FORCE)
|
set (3RDPARTY_TCL_DLL "3RDPARTY_TCL_DLL-NOTFOUND" CACHE FILEPATH "TCL shared library" FORCE)
|
||||||
find_library (3RDPARTY_TCL_DLL NAMES tcl86 tcl85
|
find_library (3RDPARTY_TCL_DLL NAMES ${CSF_TclLibs}
|
||||||
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -106,14 +106,14 @@ if (BUILD_SHARED_LIBS)
|
|||||||
# tcl dir and library
|
# tcl dir and library
|
||||||
if (NOT 3RDPARTY_TCL_LIBRARY)
|
if (NOT 3RDPARTY_TCL_LIBRARY)
|
||||||
set (3RDPARTY_TCL_LIBRARY "3RDPARTY_TCL_LIBRARY-NOTFOUND" CACHE FILEPATH "TCL library" FORCE)
|
set (3RDPARTY_TCL_LIBRARY "3RDPARTY_TCL_LIBRARY-NOTFOUND" CACHE FILEPATH "TCL library" FORCE)
|
||||||
find_library (3RDPARTY_TCL_LIBRARY NAMES tcl8.6 tcl86 tcl8.5 tcl85
|
find_library (3RDPARTY_TCL_LIBRARY NAMES ${CSF_TclLibs}
|
||||||
PATHS "${3RDPARTY_TCL_LIBRARY_DIR}"
|
PATHS "${3RDPARTY_TCL_LIBRARY_DIR}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
# search in another place if previous search doesn't find anything
|
# search in another place if previous search doesn't find anything
|
||||||
find_library (3RDPARTY_TCL_LIBRARY NAMES tcl8.6 tcl86 tcl8.5 tcl85
|
find_library (3RDPARTY_TCL_LIBRARY NAMES ${CSF_TclLibs}
|
||||||
PATHS "${3RDPARTY_TCL_DIR}/lib"
|
PATHS "${3RDPARTY_TCL_DIR}/lib"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
|
|
||||||
if (NOT 3RDPARTY_TCL_LIBRARY OR NOT EXISTS "${3RDPARTY_TCL_LIBRARY}")
|
if (NOT 3RDPARTY_TCL_LIBRARY OR NOT EXISTS "${3RDPARTY_TCL_LIBRARY}")
|
||||||
@@ -161,8 +161,8 @@ if (BUILD_SHARED_LIBS)
|
|||||||
|
|
||||||
set (3RDPARTY_TCL_DLL "3RDPARTY_TCL_DLL-NOTFOUND" CACHE FILEPATH "TCL shared library" FORCE)
|
set (3RDPARTY_TCL_DLL "3RDPARTY_TCL_DLL-NOTFOUND" CACHE FILEPATH "TCL shared library" FORCE)
|
||||||
find_library (3RDPARTY_TCL_DLL NAMES tcl${3RDPARTY_TCL_LIBRARY_VERSION}
|
find_library (3RDPARTY_TCL_DLL NAMES tcl${3RDPARTY_TCL_LIBRARY_VERSION}
|
||||||
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
if (NOT 3RDPARTY_TCL_DLL OR NOT EXISTS "${3RDPARTY_TCL_DLL}")
|
if (NOT 3RDPARTY_TCL_DLL OR NOT EXISTS "${3RDPARTY_TCL_DLL}")
|
||||||
set (3RDPARTY_TCL_DLL "" CACHE FILEPATH "TCL shared library" FORCE)
|
set (3RDPARTY_TCL_DLL "" CACHE FILEPATH "TCL shared library" FORCE)
|
||||||
@@ -184,7 +184,7 @@ if (BUILD_SHARED_LIBS)
|
|||||||
if (3RDPARTY_TCL_LIBRARY AND EXISTS "${3RDPARTY_TCL_LIBRARY}")
|
if (3RDPARTY_TCL_LIBRARY AND EXISTS "${3RDPARTY_TCL_LIBRARY}")
|
||||||
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_TCL_LIBRARY_DIR}")
|
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_TCL_LIBRARY_DIR}")
|
||||||
else()
|
else()
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_TCL_LIBRARY_DIR})
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_TCL_LIBRARY_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
@@ -210,40 +210,40 @@ if (BUILD_SHARED_LIBS)
|
|||||||
file (GLOB TCL_DLLS "${3RDPARTY_TCL_DLL_DIR}/*.dll")
|
file (GLOB TCL_DLLS "${3RDPARTY_TCL_DLL_DIR}/*.dll")
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${TCL_DLLS} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
install (FILES ${TCL_DLLS} DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
else()
|
else()
|
||||||
install (FILES ${TCL_DLLS}
|
install (FILES ${TCL_DLLS}
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
install (FILES ${TCL_DLLS}
|
install (FILES ${TCL_DLLS}
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}i")
|
DESTINATION "${INSTALL_DIR_BIN}i")
|
||||||
install (FILES ${TCL_DLLS}
|
install (FILES ${TCL_DLLS}
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
|
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
get_filename_component(3RDPARTY_TCL_LIBRARY_REALPATH ${3RDPARTY_TCL_LIBRARY} REALPATH)
|
get_filename_component(3RDPARTY_TCL_LIBRARY_REALPATH ${3RDPARTY_TCL_LIBRARY} REALPATH)
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH} DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
else()
|
else()
|
||||||
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}i")
|
DESTINATION "${INSTALL_DIR_LIB}i")
|
||||||
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TCL_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d")
|
DESTINATION "${INSTALL_DIR_LIB}d")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TCL_TCLSH_VERSION)
|
if (TCL_TCLSH_VERSION)
|
||||||
# tcl is required to install in lib folder (without)
|
# tcl is required to install in lib folder (without)
|
||||||
install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl8" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl8" DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
else()
|
else()
|
||||||
message (STATUS "\nWarning: tclX.X subdir won't be copyied during the installation process.")
|
message (STATUS "\nWarning: tclX.X subdir won't be copyied during the installation process.")
|
||||||
message (STATUS "Try seeking tcl within another folder by changing 3RDPARTY_TCL_DIR variable.")
|
message (STATUS "Try seeking tcl within another folder by changing 3RDPARTY_TCL_DIR variable.")
|
||||||
|
@@ -97,9 +97,9 @@ if (BUILD_SHARED_LIBS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set (3RDPARTY_TK_DLL "3RDPARTY_TK_DLL-NOTFOUND" CACHE FILEPATH "TK shared library" FORCE)
|
set (3RDPARTY_TK_DLL "3RDPARTY_TK_DLL-NOTFOUND" CACHE FILEPATH "TK shared library" FORCE)
|
||||||
find_library (3RDPARTY_TK_DLL NAMES tk86 tk85
|
find_library (3RDPARTY_TK_DLL NAMES ${CSF_TclTkLibs}
|
||||||
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -110,14 +110,14 @@ if (BUILD_SHARED_LIBS)
|
|||||||
# tk dir and library
|
# tk dir and library
|
||||||
if (NOT 3RDPARTY_TK_LIBRARY)
|
if (NOT 3RDPARTY_TK_LIBRARY)
|
||||||
set (3RDPARTY_TK_LIBRARY "3RDPARTY_TK_LIBRARY-NOTFOUND" CACHE FILEPATH "TK library" FORCE)
|
set (3RDPARTY_TK_LIBRARY "3RDPARTY_TK_LIBRARY-NOTFOUND" CACHE FILEPATH "TK library" FORCE)
|
||||||
find_library (3RDPARTY_TK_LIBRARY NAMES tk8.6 tk86 tk8.5 tk85
|
find_library (3RDPARTY_TK_LIBRARY NAMES ${CSF_TclTkLibs}
|
||||||
PATHS "${3RDPARTY_TK_LIBRARY_DIR}"
|
PATHS "${3RDPARTY_TK_LIBRARY_DIR}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
# search in another place if previous search doesn't find anything
|
# search in another place if previous search doesn't find anything
|
||||||
find_library (3RDPARTY_TK_LIBRARY NAMES tk8.6 tk86 tk8.5 tk85
|
find_library (3RDPARTY_TK_LIBRARY NAMES ${CSF_TclTkLibs}
|
||||||
PATHS "${3RDPARTY_TK_DIR}/lib"
|
PATHS "${3RDPARTY_TK_DIR}/lib"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
|
|
||||||
if (NOT 3RDPARTY_TK_LIBRARY OR NOT EXISTS "${3RDPARTY_TK_LIBRARY}")
|
if (NOT 3RDPARTY_TK_LIBRARY OR NOT EXISTS "${3RDPARTY_TK_LIBRARY}")
|
||||||
@@ -165,8 +165,8 @@ if (BUILD_SHARED_LIBS)
|
|||||||
|
|
||||||
set (3RDPARTY_TK_DLL "3RDPARTY_TK_DLL-NOTFOUND" CACHE FILEPATH "TK shared library" FORCE)
|
set (3RDPARTY_TK_DLL "3RDPARTY_TK_DLL-NOTFOUND" CACHE FILEPATH "TK shared library" FORCE)
|
||||||
find_library (3RDPARTY_TK_DLL NAMES tk${3RDPARTY_TK_LIBRARY_VERSION}
|
find_library (3RDPARTY_TK_DLL NAMES tk${3RDPARTY_TK_LIBRARY_VERSION}
|
||||||
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
PATHS "${DLL_FOLDER_FOR_SEARCH}"
|
||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
if (NOT 3RDPARTY_TK_DLL OR NOT EXISTS "${3RDPARTY_TK_DLL}")
|
if (NOT 3RDPARTY_TK_DLL OR NOT EXISTS "${3RDPARTY_TK_DLL}")
|
||||||
set (3RDPARTY_TK_DLL "" CACHE FILEPATH "TK shared library" FORCE)
|
set (3RDPARTY_TK_DLL "" CACHE FILEPATH "TK shared library" FORCE)
|
||||||
@@ -190,7 +190,7 @@ if (BUILD_SHARED_LIBS)
|
|||||||
if (3RDPARTY_TK_LIBRARY AND EXISTS "${3RDPARTY_TK_LIBRARY}")
|
if (3RDPARTY_TK_LIBRARY AND EXISTS "${3RDPARTY_TK_LIBRARY}")
|
||||||
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_TK_LIBRARY_DIR}")
|
list (APPEND 3RDPARTY_LIBRARY_DIRS "${3RDPARTY_TK_LIBRARY_DIR}")
|
||||||
else()
|
else()
|
||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_TK_LIBRARY_DIR})
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_TK_LIBRARY_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
@@ -216,39 +216,39 @@ if (BUILD_SHARED_LIBS)
|
|||||||
file (GLOB TK_DLLS "${3RDPARTY_TK_DLL_DIR}/*.dll")
|
file (GLOB TK_DLLS "${3RDPARTY_TK_DLL_DIR}/*.dll")
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${TK_DLLS} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
install (FILES ${TK_DLLS} DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
else()
|
else()
|
||||||
install (FILES ${TK_DLLS}
|
install (FILES ${TK_DLLS}
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
|
DESTINATION "${INSTALL_DIR_BIN}")
|
||||||
install (FILES ${TK_DLLS}
|
install (FILES ${TK_DLLS}
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}i")
|
DESTINATION "${INSTALL_DIR_BIN}i")
|
||||||
install (FILES ${TK_DLLS}
|
install (FILES ${TK_DLLS}
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
|
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
get_filename_component(3RDPARTY_TK_LIBRARY_REALPATH ${3RDPARTY_TK_LIBRARY} REALPATH)
|
get_filename_component(3RDPARTY_TK_LIBRARY_REALPATH ${3RDPARTY_TK_LIBRARY} REALPATH)
|
||||||
|
|
||||||
if (SINGLE_GENERATOR)
|
if (SINGLE_GENERATOR)
|
||||||
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH} DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH} DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
else()
|
else()
|
||||||
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS Release
|
CONFIGURATIONS Release
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}/")
|
DESTINATION "${INSTALL_DIR_LIB}/")
|
||||||
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS RelWithDebInfo
|
CONFIGURATIONS RelWithDebInfo
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}/i")
|
DESTINATION "${INSTALL_DIR_LIB}/i")
|
||||||
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
install (FILES ${3RDPARTY_TK_LIBRARY_REALPATH}
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d")
|
DESTINATION "${INSTALL_DIR_LIB}d")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TCL_TCLSH_VERSION)
|
if (TCL_TCLSH_VERSION)
|
||||||
# tk is required to install in lib folder (without)
|
# tk is required to install in lib folder (without)
|
||||||
install (DIRECTORY "${3RDPARTY_TK_LIBRARY_DIR}/tk${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
|
install (DIRECTORY "${3RDPARTY_TK_LIBRARY_DIR}/tk${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR_LIB}")
|
||||||
else()
|
else()
|
||||||
message (STATUS "\nWarning: tkX.X subdir won't be copyied during the installation process.")
|
message (STATUS "\nWarning: tkX.X subdir won't be copyied during the installation process.")
|
||||||
message (STATUS "Try seeking tk within another folder by changing 3RDPARTY_TK_DIR variable.")
|
message (STATUS "Try seeking tk within another folder by changing 3RDPARTY_TK_DIR variable.")
|
||||||
|
@@ -18,6 +18,8 @@ set (BUILD_YACCLEX_DESCR
|
|||||||
ExprIntrp functionality are generated automatically with Flex/Bison. Checking this options
|
ExprIntrp functionality are generated automatically with Flex/Bison. Checking this options
|
||||||
leads to automatic search of Flex/Bison binaries and regeneration of the mentioned files")
|
leads to automatic search of Flex/Bison binaries and regeneration of the mentioned files")
|
||||||
|
|
||||||
|
set (BUILD_RESOURCES_DESCR "Enables regeneration of OCCT resource files")
|
||||||
|
|
||||||
set (BUILD_WITH_DEBUG_DESCR
|
set (BUILD_WITH_DEBUG_DESCR
|
||||||
"Enables extended messages of many OCCT algorithms, usually printed to cout.
|
"Enables extended messages of many OCCT algorithms, usually printed to cout.
|
||||||
These include messages on internal errors and special cases encountered, timing etc.
|
These include messages on internal errors and special cases encountered, timing etc.
|
||||||
@@ -26,6 +28,15 @@ Applies only for Debug configuration.")
|
|||||||
set (BUILD_SHARED_LIBRARY_NAME_POSTFIX_DESCR
|
set (BUILD_SHARED_LIBRARY_NAME_POSTFIX_DESCR
|
||||||
"Append the postfix to names of output libraries")
|
"Append the postfix to names of output libraries")
|
||||||
|
|
||||||
|
set (BUILD_ENABLE_FPE_SIGNAL_HANDLER_DESCR
|
||||||
|
"Enable/Disable the floating point exceptions (FPE) during DRAW execution only.
|
||||||
|
Corresponding environment variable (CSF_FPE) can be changed manually
|
||||||
|
in custom.bat/sh scripts without regeneration by CMake.")
|
||||||
|
|
||||||
|
set (BUILD_USE_PCH_DESCR
|
||||||
|
"Use precompiled headers to accelerate the build.
|
||||||
|
Precompiled headers are generated automatically by Cotire tool.")
|
||||||
|
|
||||||
# install variables
|
# install variables
|
||||||
set (INSTALL_DIR_DESCR
|
set (INSTALL_DIR_DESCR
|
||||||
"The place where built OCCT libraries, headers, test cases (INSTALL_TEST_CASES variable),
|
"The place where built OCCT libraries, headers, test cases (INSTALL_TEST_CASES variable),
|
||||||
|
106
adm/genconf.tcl
@@ -38,39 +38,50 @@ set SYS_VS_LIST {}
|
|||||||
set SYS_VC_LIST {}
|
set SYS_VC_LIST {}
|
||||||
set SYS_VCVARS_LIST {}
|
set SYS_VCVARS_LIST {}
|
||||||
|
|
||||||
# detect installed Visual Studio instances from global environment
|
# detect installed Visual Studio 2017 instances by running vswhere.exe
|
||||||
if { [info exists ::env(VS150COMNTOOLS)] } {
|
if { ! [catch {exec vswhere.exe -version "\[15.0,15.99\]" -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath} res] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 201x (vc15)"
|
lappend ::SYS_VS_LIST "Visual Studio 2017 (15, toolset v141)"
|
||||||
lappend ::SYS_VC_LIST "vc15"
|
lappend ::SYS_VC_LIST "vc141"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS150COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "$res\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
|
if { ! [catch {exec vswhere.exe -version "\[15.0,15.99\]" -latest -requires Microsoft.VisualStudio.Workload.Universal -property installationPath} res] } {
|
||||||
|
lappend ::SYS_VS_LIST "Visual Studio 2017 (15, toolset v141) UWP"
|
||||||
|
lappend ::SYS_VC_LIST "vc141-uwp"
|
||||||
|
lappend ::SYS_VCVARS_LIST "$res\\VC\\vcvarsall.bat"
|
||||||
|
}
|
||||||
|
|
||||||
|
# detect installed Visual Studio instances from global environment
|
||||||
if { [info exists ::env(VS140COMNTOOLS)] } {
|
if { [info exists ::env(VS140COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2015 (vc14)"
|
lappend ::SYS_VS_LIST "Visual Studio 2015 (14, toolset v140)"
|
||||||
lappend ::SYS_VC_LIST "vc14"
|
lappend ::SYS_VC_LIST "vc14"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS140COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS140COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
|
|
||||||
|
lappend ::SYS_VS_LIST "Visual Studio 2015 (14, toolset v140) UWP"
|
||||||
|
lappend ::SYS_VC_LIST "vc14-uwp"
|
||||||
|
lappend ::SYS_VCVARS_LIST "%VS140COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VS120COMNTOOLS)] } {
|
if { [info exists ::env(VS120COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2013 (vc12)"
|
lappend ::SYS_VS_LIST "Visual Studio 2013 (12, toolset v120)"
|
||||||
lappend ::SYS_VC_LIST "vc12"
|
lappend ::SYS_VC_LIST "vc12"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS120COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS120COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VS110COMNTOOLS)] } {
|
if { [info exists ::env(VS110COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2012 (vc11)"
|
lappend ::SYS_VS_LIST "Visual Studio 2012 (11, toolset v110)"
|
||||||
lappend ::SYS_VC_LIST "vc11"
|
lappend ::SYS_VC_LIST "vc11"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS110COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS110COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VS100COMNTOOLS)] } {
|
if { [info exists ::env(VS100COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2010 (vc10)"
|
lappend ::SYS_VS_LIST "Visual Studio 2010 (10, toolset v100)"
|
||||||
lappend ::SYS_VC_LIST "vc10"
|
lappend ::SYS_VC_LIST "vc10"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS100COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS100COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VS90COMNTOOLS)] } {
|
if { [info exists ::env(VS90COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2008 (vc9)"
|
lappend ::SYS_VS_LIST "Visual Studio 2008 (9, toolset v90)"
|
||||||
lappend ::SYS_VC_LIST "vc9"
|
lappend ::SYS_VC_LIST "vc9"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS90COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS90COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VS80COMNTOOLS)] } {
|
if { [info exists ::env(VS80COMNTOOLS)] } {
|
||||||
lappend ::SYS_VS_LIST "Visual Studio 2005 (vc8)"
|
lappend ::SYS_VS_LIST "Visual Studio 2005 (8, toolset v80)"
|
||||||
lappend ::SYS_VC_LIST "vc8"
|
lappend ::SYS_VC_LIST "vc8"
|
||||||
lappend ::SYS_VCVARS_LIST "%VS80COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
lappend ::SYS_VCVARS_LIST "%VS80COMNTOOLS%..\\..\\VC\\vcvarsall.bat"
|
||||||
}
|
}
|
||||||
@@ -129,10 +140,10 @@ proc wokdep:gui:UpdateList {} {
|
|||||||
wokdep:SearchX11 anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchX11 anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
if { "$::HAVE_GLES2" == "true" } {
|
if { "$::HAVE_GLES2" == "true" } {
|
||||||
if { "$::HAVE_GL2PS" == "true" } {
|
if { "$::HAVE_GL2PS" == "true" } {
|
||||||
lappend anIncErrs "Error: gl2ps can not be used within OpenGL ES"
|
lappend anIncErrs "Error: gl2ps can not be used with OpenGL ES"
|
||||||
}
|
}
|
||||||
if { "$::HAVE_D3D" == "true" } {
|
if { "$::HAVE_D3D" == "true" } {
|
||||||
lappend anIncErrs "Error: Direct3D can not be used within OpenGL ES"
|
lappend anIncErrs "Error: Direct3D can not be used with OpenGL ES"
|
||||||
}
|
}
|
||||||
wokdep:SearchEGL anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchEGL anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
wokdep:SearchGLES anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchGLES anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
@@ -140,8 +151,11 @@ proc wokdep:gui:UpdateList {} {
|
|||||||
if { "$::HAVE_FREEIMAGE" == "true" } {
|
if { "$::HAVE_FREEIMAGE" == "true" } {
|
||||||
wokdep:SearchFreeImage anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchFreeImage anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
}
|
}
|
||||||
|
if { "$::HAVE_FFMPEG" == "true" } {
|
||||||
|
wokdep:SearchFFmpeg anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
|
}
|
||||||
if { "$::HAVE_GL2PS" == "true" } {
|
if { "$::HAVE_GL2PS" == "true" } {
|
||||||
wokdep:SearchGL2PS anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchStandardLibrary anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs "gl2ps" "gl2ps.h" "gl2ps" {"gl2ps"}
|
||||||
}
|
}
|
||||||
if { "$::HAVE_TBB" == "true" } {
|
if { "$::HAVE_TBB" == "true" } {
|
||||||
wokdep:SearchTBB anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchTBB anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
@@ -152,6 +166,18 @@ proc wokdep:gui:UpdateList {} {
|
|||||||
if { "$::HAVE_VTK" == "true" } {
|
if { "$::HAVE_VTK" == "true" } {
|
||||||
wokdep:SearchVTK anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchVTK anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if { "$::HAVE_ZLIB" == "true" } {
|
||||||
|
wokdep:SearchStandardLibrary anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs "zlib" "zlib.h" "zlib" {"zlib"}
|
||||||
|
}
|
||||||
|
if { "$::HAVE_LIBLZMA" == "true" } {
|
||||||
|
set aCheckLib "lzma"
|
||||||
|
if { "$::tcl_platform(platform)" == "windows" } {
|
||||||
|
set aCheckLib "liblzma"
|
||||||
|
}
|
||||||
|
wokdep:SearchStandardLibrary anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs "liblzma" "lzma.h" "$aCheckLib" {"lzma" "xz"}
|
||||||
|
}
|
||||||
|
|
||||||
if { "$::CHECK_QT4" == "true" } {
|
if { "$::CHECK_QT4" == "true" } {
|
||||||
wokdep:SearchQt4 anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
wokdep:SearchQt4 anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs
|
||||||
}
|
}
|
||||||
@@ -373,12 +399,14 @@ proc wokdep:gui:Show64Bitness { theRowIter } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Header
|
# Header
|
||||||
ttk::label .myFrame.myVsFrame.myVsLbl -text "Visual Studio configuration:" -padding {5 5 80 5}
|
ttk::label .myFrame.myVsFrame.myVsLbl -text "Visual Studio configuration:" -padding {5 5 20 5}
|
||||||
ttk::combobox .myFrame.myVsFrame.myVsCombo -values $SYS_VS_LIST -state readonly -textvariable VSVER -width 30
|
ttk::combobox .myFrame.myVsFrame.myVsCombo -values $SYS_VS_LIST -state readonly -textvariable VSVER -width 40
|
||||||
ttk::combobox .myFrame.myVsFrame.myArchCombo -values { {32} {64} } -textvariable ARCH -state readonly -width 6
|
ttk::combobox .myFrame.myVsFrame.myArchCombo -values { {32} {64} } -textvariable ARCH -state readonly -width 6
|
||||||
entry .myFrame.myVcEntry -textvariable VCVER -width 6
|
entry .myFrame.myVcEntry -textvariable VCVER -width 10
|
||||||
entry .myFrame.myVcVarsEntry -textvariable VCVARS -width 70
|
entry .myFrame.myVcVarsEntry -textvariable VCVARS -width 70
|
||||||
ttk::button .myFrame.myVcBrowseBtn -text "Browse" -command wokdep:gui:BrowseVcVars
|
ttk::button .myFrame.myVcBrowseBtn -text "Browse" -command wokdep:gui:BrowseVcVars
|
||||||
|
ttk::label .myFrame.myHxxChecks.myRelDebInfoLbl -text "Release with Debug info"
|
||||||
|
checkbutton .myFrame.myHxxChecks.myRelDebInfoCheck -offvalue "false" -onvalue "true" -variable HAVE_RelWithDebInfo
|
||||||
|
|
||||||
#
|
#
|
||||||
ttk::combobox .myFrame.myHxxChecks.myScutsCombo -values { {ShortCut} {Copy} {HardLink} } -textvariable SHORTCUT_HEADERS -state readonly -width 12
|
ttk::combobox .myFrame.myHxxChecks.myScutsCombo -values { {ShortCut} {Copy} {HardLink} } -textvariable SHORTCUT_HEADERS -state readonly -width 12
|
||||||
@@ -402,12 +430,20 @@ if { "$::tcl_platform(platform)" == "windows" } {
|
|||||||
checkbutton .myFrame.myChecks.myD3dCheck -offvalue "false" -onvalue "true" -variable HAVE_D3D -command wokdep:gui:UpdateList
|
checkbutton .myFrame.myChecks.myD3dCheck -offvalue "false" -onvalue "true" -variable HAVE_D3D -command wokdep:gui:UpdateList
|
||||||
ttk::label .myFrame.myChecks.myD3dLbl -text "Use Direct3D"
|
ttk::label .myFrame.myChecks.myD3dLbl -text "Use Direct3D"
|
||||||
}
|
}
|
||||||
|
checkbutton .myFrame.myChecks.myFFmpegCheck -offvalue "false" -onvalue "true" -variable HAVE_FFMPEG -command wokdep:gui:UpdateList
|
||||||
|
ttk::label .myFrame.myChecks.myFFmpegLbl -text "Use FFmpeg"
|
||||||
#checkbutton .myFrame.myChecks.myOpenClCheck -offvalue "false" -onvalue "true" -variable HAVE_OPENCL -command wokdep:gui:UpdateList
|
#checkbutton .myFrame.myChecks.myOpenClCheck -offvalue "false" -onvalue "true" -variable HAVE_OPENCL -command wokdep:gui:UpdateList
|
||||||
#ttk::label .myFrame.myChecks.myOpenClLbl -text "Use OpenCL"
|
#ttk::label .myFrame.myChecks.myOpenClLbl -text "Use OpenCL"
|
||||||
checkbutton .myFrame.myChecks.myMacGLXCheck -offvalue "false" -onvalue "true" -variable MACOSX_USE_GLX
|
checkbutton .myFrame.myChecks.myMacGLXCheck -offvalue "false" -onvalue "true" -variable MACOSX_USE_GLX
|
||||||
ttk::label .myFrame.myChecks.myMacGLXLbl -text "Use X11 for windows drawing"
|
ttk::label .myFrame.myChecks.myMacGLXLbl -text "Use X11 for windows drawing"
|
||||||
ttk::label .myFrame.myChecks.myVtkLbl -text "Use VTK"
|
ttk::label .myFrame.myChecks.myVtkLbl -text "Use VTK"
|
||||||
checkbutton .myFrame.myChecks.myVtkCheck -offvalue "false" -onvalue "true" -variable HAVE_VTK -command wokdep:gui:UpdateList
|
checkbutton .myFrame.myChecks.myVtkCheck -offvalue "false" -onvalue "true" -variable HAVE_VTK -command wokdep:gui:UpdateList
|
||||||
|
|
||||||
|
checkbutton .myFrame.myChecks.myZLibCheck -offvalue "false" -onvalue "true" -variable HAVE_ZLIB -command wokdep:gui:UpdateList
|
||||||
|
ttk::label .myFrame.myChecks.myZLibLbl -text "Use zlib"
|
||||||
|
checkbutton .myFrame.myChecks.myLzmaCheck -offvalue "false" -onvalue "true" -variable HAVE_LIBLZMA -command wokdep:gui:UpdateList
|
||||||
|
ttk::label .myFrame.myChecks.myLzmaLbl -text "Use liblzma"
|
||||||
|
|
||||||
checkbutton .myFrame.myChecks.myQt4Check -offvalue "false" -onvalue "true" -variable CHECK_QT4 -command wokdep:gui:UpdateList
|
checkbutton .myFrame.myChecks.myQt4Check -offvalue "false" -onvalue "true" -variable CHECK_QT4 -command wokdep:gui:UpdateList
|
||||||
ttk::label .myFrame.myChecks.myQt4Lbl -text "Search Qt4"
|
ttk::label .myFrame.myChecks.myQt4Lbl -text "Search Qt4"
|
||||||
checkbutton .myFrame.myChecks.myJDKCheck -offvalue "false" -onvalue "true" -variable CHECK_JDK -command wokdep:gui:UpdateList
|
checkbutton .myFrame.myChecks.myJDKCheck -offvalue "false" -onvalue "true" -variable CHECK_JDK -command wokdep:gui:UpdateList
|
||||||
@@ -485,6 +521,10 @@ if { "$tcl_platform(platform)" == "windows" } {
|
|||||||
grid .myFrame.myHxxChecks -row $aRowIter -column 0 -columnspan 10 -sticky w
|
grid .myFrame.myHxxChecks -row $aRowIter -column 0 -columnspan 10 -sticky w
|
||||||
grid .myFrame.myHxxChecks.myScutsLbl -row 0 -column 0
|
grid .myFrame.myHxxChecks.myScutsLbl -row 0 -column 0
|
||||||
grid .myFrame.myHxxChecks.myScutsCombo -row 0 -column 1
|
grid .myFrame.myHxxChecks.myScutsCombo -row 0 -column 1
|
||||||
|
if { "$tcl_platform(platform)" == "windows" } {
|
||||||
|
grid .myFrame.myHxxChecks.myRelDebInfoCheck -row 0 -column 2
|
||||||
|
grid .myFrame.myHxxChecks.myRelDebInfoLbl -row 0 -column 3
|
||||||
|
}
|
||||||
incr aRowIter
|
incr aRowIter
|
||||||
#
|
#
|
||||||
grid .myFrame.mySrchLbl -row $aRowIter -column 0 -columnspan 10 -sticky w
|
grid .myFrame.mySrchLbl -row $aRowIter -column 0 -columnspan 10 -sticky w
|
||||||
@@ -499,23 +539,35 @@ grid .myFrame.myChecks.myFImageCheck -row $aCheckRowIter -column 0 -sticky e
|
|||||||
grid .myFrame.myChecks.myFImageLbl -row $aCheckRowIter -column 1 -sticky w
|
grid .myFrame.myChecks.myFImageLbl -row $aCheckRowIter -column 1 -sticky w
|
||||||
grid .myFrame.myChecks.myTbbCheck -row $aCheckRowIter -column 2 -sticky e
|
grid .myFrame.myChecks.myTbbCheck -row $aCheckRowIter -column 2 -sticky e
|
||||||
grid .myFrame.myChecks.myTbbLbl -row $aCheckRowIter -column 3 -sticky w
|
grid .myFrame.myChecks.myTbbLbl -row $aCheckRowIter -column 3 -sticky w
|
||||||
grid .myFrame.myChecks.myQt4Check -row $aCheckRowIter -column 4 -sticky e
|
if { "$::tcl_platform(os)" != "Darwin" } {
|
||||||
grid .myFrame.myChecks.myQt4Lbl -row $aCheckRowIter -column 5 -sticky w
|
grid .myFrame.myChecks.myGlesCheck -row $aCheckRowIter -column 4 -sticky e
|
||||||
grid .myFrame.myChecks.myGlesCheck -row $aCheckRowIter -column 6 -sticky e
|
grid .myFrame.myChecks.myGlesLbl -row $aCheckRowIter -column 5 -sticky w
|
||||||
grid .myFrame.myChecks.myGlesLbl -row $aCheckRowIter -column 7 -sticky w
|
}
|
||||||
#grid .myFrame.myChecks.myOpenClCheck -row $aCheckRowIter -column 6 -sticky e
|
#grid .myFrame.myChecks.myOpenClCheck -row $aCheckRowIter -column 6 -sticky e
|
||||||
#grid .myFrame.myChecks.myOpenClLbl -row $aCheckRowIter -column 7 -sticky w
|
#grid .myFrame.myChecks.myOpenClLbl -row $aCheckRowIter -column 7 -sticky w
|
||||||
|
grid .myFrame.myChecks.myZLibCheck -row $aCheckRowIter -column 6 -sticky e
|
||||||
|
grid .myFrame.myChecks.myZLibLbl -row $aCheckRowIter -column 7 -sticky w
|
||||||
|
|
||||||
|
grid .myFrame.myChecks.myGl2psCheck -row $aCheckRowIter -column 8 -sticky e
|
||||||
|
grid .myFrame.myChecks.myGl2psLbl -row $aCheckRowIter -column 9 -sticky w
|
||||||
|
|
||||||
|
grid .myFrame.myChecks.myQt4Check -row $aCheckRowIter -column 10 -sticky e
|
||||||
|
grid .myFrame.myChecks.myQt4Lbl -row $aCheckRowIter -column 11 -sticky w
|
||||||
|
|
||||||
incr aCheckRowIter
|
incr aCheckRowIter
|
||||||
grid .myFrame.myChecks.myGl2psCheck -row $aCheckRowIter -column 0 -sticky e
|
grid .myFrame.myChecks.myFFmpegCheck -row $aCheckRowIter -column 0 -sticky e
|
||||||
grid .myFrame.myChecks.myGl2psLbl -row $aCheckRowIter -column 1 -sticky w
|
grid .myFrame.myChecks.myFFmpegLbl -row $aCheckRowIter -column 1 -sticky w
|
||||||
grid .myFrame.myChecks.myVtkCheck -row $aCheckRowIter -column 2 -sticky e
|
grid .myFrame.myChecks.myVtkCheck -row $aCheckRowIter -column 2 -sticky e
|
||||||
grid .myFrame.myChecks.myVtkLbl -row $aCheckRowIter -column 3 -sticky w
|
grid .myFrame.myChecks.myVtkLbl -row $aCheckRowIter -column 3 -sticky w
|
||||||
grid .myFrame.myChecks.myJDKCheck -row $aCheckRowIter -column 4 -sticky e
|
|
||||||
grid .myFrame.myChecks.myJDKLbl -row $aCheckRowIter -column 5 -sticky w
|
|
||||||
if { "$::tcl_platform(platform)" == "windows" } {
|
if { "$::tcl_platform(platform)" == "windows" } {
|
||||||
grid .myFrame.myChecks.myD3dCheck -row $aCheckRowIter -column 6 -sticky e
|
grid .myFrame.myChecks.myD3dCheck -row $aCheckRowIter -column 4 -sticky e
|
||||||
grid .myFrame.myChecks.myD3dLbl -row $aCheckRowIter -column 7 -sticky w
|
grid .myFrame.myChecks.myD3dLbl -row $aCheckRowIter -column 5 -sticky w
|
||||||
}
|
}
|
||||||
|
grid .myFrame.myChecks.myLzmaCheck -row $aCheckRowIter -column 6 -sticky e
|
||||||
|
grid .myFrame.myChecks.myLzmaLbl -row $aCheckRowIter -column 7 -sticky w
|
||||||
|
grid .myFrame.myChecks.myJDKCheck -row $aCheckRowIter -column 10 -sticky e
|
||||||
|
grid .myFrame.myChecks.myJDKLbl -row $aCheckRowIter -column 11 -sticky w
|
||||||
|
|
||||||
incr aCheckRowIter
|
incr aCheckRowIter
|
||||||
if { "$::tcl_platform(os)" == "Darwin" } {
|
if { "$::tcl_platform(os)" == "Darwin" } {
|
||||||
grid .myFrame.myChecks.myMacGLXCheck -row $aCheckRowIter -column 0 -sticky e
|
grid .myFrame.myChecks.myMacGLXCheck -row $aCheckRowIter -column 0 -sticky e
|
||||||
|
@@ -43,16 +43,6 @@ if { "$tcl_platform(platform)" == "unix" } {
|
|||||||
|
|
||||||
set SHORTCUT_HEADERS "ShortCut"
|
set SHORTCUT_HEADERS "ShortCut"
|
||||||
|
|
||||||
set HAVE_FREEIMAGE "false"
|
|
||||||
set HAVE_GL2PS "false"
|
|
||||||
set HAVE_TBB "false"
|
|
||||||
set HAVE_D3D "false"
|
|
||||||
set HAVE_GLES2 "false"
|
|
||||||
set HAVE_OPENCL "false"
|
|
||||||
set HAVE_VTK "false"
|
|
||||||
set MACOSX_USE_GLX "false"
|
|
||||||
set CHECK_QT4 "false"
|
|
||||||
set CHECK_JDK "false"
|
|
||||||
set PRODUCTS_PATH ""
|
set PRODUCTS_PATH ""
|
||||||
set CSF_OPT_INC [list]
|
set CSF_OPT_INC [list]
|
||||||
set CSF_OPT_LIB32 [list]
|
set CSF_OPT_LIB32 [list]
|
||||||
@@ -66,51 +56,38 @@ if { "$tcl_platform(pointerSize)" == "4" } {
|
|||||||
if { [info exists ::env(ARCH)] } {
|
if { [info exists ::env(ARCH)] } {
|
||||||
set ARCH "$::env(ARCH)"
|
set ARCH "$::env(ARCH)"
|
||||||
}
|
}
|
||||||
if { [info exists ::env(VCVER)] } {
|
|
||||||
set VCVER "$::env(VCVER)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(VCVARS)] } {
|
|
||||||
set VCVARS "$::env(VCVARS)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(SHORTCUT_HEADERS)] } {
|
if { [info exists ::env(SHORTCUT_HEADERS)] } {
|
||||||
set SHORTCUT_HEADERS "$::env(SHORTCUT_HEADERS)"
|
set SHORTCUT_HEADERS "$::env(SHORTCUT_HEADERS)"
|
||||||
if { $SHORTCUT_HEADERS == "true" } {
|
if { $SHORTCUT_HEADERS == "true" } {
|
||||||
set SHORTCUT_HEADERS "ShortCut"
|
set SHORTCUT_HEADERS "ShortCut"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if { [info exists ::env(HAVE_FREEIMAGE)] } {
|
|
||||||
set HAVE_FREEIMAGE "$::env(HAVE_FREEIMAGE)"
|
# fetch environment variables (e.g. set by custom.sh or custom.bat) and set them as tcl variables with the same name
|
||||||
|
set THE_ENV_VARIABLES {HAVE_FREEIMAGE HAVE_FFMPEG HAVE_TBB HAVE_GLES2 HAVE_D3D HAVE_VTK HAVE_GL2PS HAVE_ZLIB HAVE_LIBLZMA HAVE_OPENCL CHECK_QT4 CHECK_JDK MACOSX_USE_GLX HAVE_RelWithDebInfo}
|
||||||
|
foreach anEnvIter $THE_ENV_VARIABLES {
|
||||||
|
set ${anEnvIter} "false"
|
||||||
|
if { [info exists ::env(${anEnvIter})] } {
|
||||||
|
set ${anEnvIter} "$::env(${anEnvIter})"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if { [info exists ::env(HAVE_GL2PS)] } {
|
# do not export platform-specific variables
|
||||||
set HAVE_GL2PS "$::env(HAVE_GL2PS)"
|
if { "$::tcl_platform(os)" == "Darwin" } {
|
||||||
|
set HAVE_GLES2 ""
|
||||||
|
} else {
|
||||||
|
set MACOSX_USE_GLX ""
|
||||||
}
|
}
|
||||||
if { [info exists ::env(HAVE_TBB)] } {
|
if { "$tcl_platform(platform)" != "windows" } {
|
||||||
set HAVE_TBB "$::env(HAVE_TBB)"
|
set HAVE_D3D ""
|
||||||
|
set HAVE_RelWithDebInfo ""
|
||||||
}
|
}
|
||||||
if { [info exists ::env(HAVE_D3D)] } {
|
foreach anEnvIter {ARCH VCVER VCVARS PRODUCTS_PATH} {
|
||||||
set HAVE_D3D "$::env(HAVE_D3D)"
|
if { [info exists ::env(${anEnvIter})] } {
|
||||||
}
|
set ${anEnvIter} "$::env(${anEnvIter})"
|
||||||
if { [info exists ::env(HAVE_GLES2)] } {
|
}
|
||||||
set HAVE_GLES2 "$::env(HAVE_GLES2)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(HAVE_OPENCL)] } {
|
|
||||||
set HAVE_OPENCL "$::env(HAVE_OPENCL)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(HAVE_VTK)] } {
|
|
||||||
set HAVE_VTK "$::env(HAVE_VTK)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(MACOSX_USE_GLX)] } {
|
|
||||||
set MACOSX_USE_GLX "$::env(MACOSX_USE_GLX)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(CHECK_QT4)] } {
|
|
||||||
set CHECK_QT4 "$::env(CHECK_QT4)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(CHECK_JDK)] } {
|
|
||||||
set CHECK_JDK "$::env(CHECK_JDK)"
|
|
||||||
}
|
|
||||||
if { [info exists ::env(PRODUCTS_PATH)] } {
|
|
||||||
set PRODUCTS_PATH "$::env(PRODUCTS_PATH)"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if { [info exists ::env(CSF_OPT_INC)] } {
|
if { [info exists ::env(CSF_OPT_INC)] } {
|
||||||
set CSF_OPT_INC [split "$::env(CSF_OPT_INC)" $::SYS_PATH_SPLITTER]
|
set CSF_OPT_INC [split "$::env(CSF_OPT_INC)" $::SYS_PATH_SPLITTER]
|
||||||
}
|
}
|
||||||
@@ -227,9 +204,14 @@ proc wokdep:Preferred {theList theCmpl theArch} {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# keep only two first digits in "vc141"
|
||||||
|
if { ! [regexp {^vc[0-9][0-9]} $theCmpl aCmpl] } {
|
||||||
|
set aCmpl $theCmpl
|
||||||
|
}
|
||||||
|
|
||||||
set aShortList {}
|
set aShortList {}
|
||||||
foreach aPath $theList {
|
foreach aPath $theList {
|
||||||
if { [string first "$theCmpl" "$aPath"] != "-1" } {
|
if { [string first "$aCmpl" "$aPath"] != "-1" } {
|
||||||
lappend aShortList "$aPath"
|
lappend aShortList "$aPath"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -252,6 +234,83 @@ proc wokdep:Preferred {theList theCmpl theArch} {
|
|||||||
return [lindex [lsort -decreasing $aVeryShortList] 0]
|
return [lindex [lsort -decreasing $aVeryShortList] 0]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Search library placement
|
||||||
|
proc wokdep:SearchStandardLibrary {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64 theName theCheckHeader theCheckLib theCheckFolders} {
|
||||||
|
upvar $theErrInc anErrInc
|
||||||
|
upvar $theErrLib32 anErrLib32
|
||||||
|
upvar $theErrLib64 anErrLib64
|
||||||
|
upvar $theErrBin32 anErrBin32
|
||||||
|
upvar $theErrBin64 anErrBin64
|
||||||
|
|
||||||
|
set isFound "true"
|
||||||
|
set aHeaderPath [wokdep:SearchHeader "$theCheckHeader"]
|
||||||
|
if { "$aHeaderPath" == "" } {
|
||||||
|
set hasHeader false
|
||||||
|
foreach aFolderIter $theCheckFolders {
|
||||||
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{$aFolderIter}*] "$::VCVER" "$::ARCH" ]
|
||||||
|
if { "$aPath" != "" && [file exists "$aPath/include/$theCheckHeader"] } {
|
||||||
|
lappend ::CSF_OPT_INC "$aPath/include"
|
||||||
|
set hasHeader true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if { !$hasHeader } {
|
||||||
|
lappend anErrInc "Error: '$theCheckHeader' not found ($theName)"
|
||||||
|
set isFound "false"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach anArchIter {64 32} {
|
||||||
|
set aLibPath [wokdep:SearchLib "$theCheckLib" "$anArchIter"]
|
||||||
|
if { "$aLibPath" == "" } {
|
||||||
|
set hasLib false
|
||||||
|
foreach aFolderIter $theCheckFolders {
|
||||||
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{$aFolderIter}*] "$::VCVER" "$anArchIter" ]
|
||||||
|
set aLibPath [wokdep:SearchLib "$theCheckLib" "$anArchIter" "$aPath/lib"]
|
||||||
|
if { "$aLibPath" != "" } {
|
||||||
|
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib"
|
||||||
|
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin"
|
||||||
|
set hasLib true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if { !$hasLib } {
|
||||||
|
lappend anErrLib$anArchIter "Error: '${::SYS_LIB_PREFIX}$theCheckLib.${::SYS_LIB_SUFFIX}' not found ($theName)"
|
||||||
|
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if { "$::tcl_platform(platform)" == "windows" } {
|
||||||
|
set aDllPath [wokdep:SearchBin "$theCheckLib.dll" "$anArchIter"]
|
||||||
|
if { "$aDllPath" == "" } {
|
||||||
|
set hasDll false
|
||||||
|
foreach aFolderIter $theCheckFolders {
|
||||||
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{$aFolderIter}*] "$::VCVER" "$anArchIter" ]
|
||||||
|
set aDllPath [wokdep:SearchBin "$theCheckLib.dll" "$anArchIter" "$aPath/bin"]
|
||||||
|
if { "$aDllPath" != "" } {
|
||||||
|
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin"
|
||||||
|
set hasDll true
|
||||||
|
break
|
||||||
|
} else {
|
||||||
|
set aDllPath [wokdep:SearchBin "$theCheckLib.dll" "$anArchIter" "$aPath/lib"]
|
||||||
|
if { "$aDllPath" != "" } {
|
||||||
|
lappend ::CSF_OPT_BIN$anArchIter "$aPath/lib"
|
||||||
|
set hasDll true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if { !$hasDll } {
|
||||||
|
lappend anErrBin$anArchIter "Error: '$theCheckLib.dll' not found ($theName)"
|
||||||
|
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "$isFound"
|
||||||
|
}
|
||||||
|
|
||||||
# Search Tcl/Tk libraries placement
|
# Search Tcl/Tk libraries placement
|
||||||
proc wokdep:SearchTclTk {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64} {
|
proc wokdep:SearchTclTk {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64} {
|
||||||
upvar $theErrInc anErrInc
|
upvar $theErrInc anErrInc
|
||||||
@@ -489,8 +548,8 @@ proc wokdep:SearchFreeImage {theErrInc theErrLib32 theErrLib64 theErrBin32 theEr
|
|||||||
return "$isFound"
|
return "$isFound"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Search GL2PS library placement
|
# Search FFmpeg framework placement
|
||||||
proc wokdep:SearchGL2PS {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64} {
|
proc wokdep:SearchFFmpeg {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64} {
|
||||||
upvar $theErrInc anErrInc
|
upvar $theErrInc anErrInc
|
||||||
upvar $theErrLib32 anErrLib32
|
upvar $theErrLib32 anErrLib32
|
||||||
upvar $theErrLib64 anErrLib64
|
upvar $theErrLib64 anErrLib64
|
||||||
@@ -498,47 +557,30 @@ proc wokdep:SearchGL2PS {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin
|
|||||||
upvar $theErrBin64 anErrBin64
|
upvar $theErrBin64 anErrBin64
|
||||||
|
|
||||||
set isFound "true"
|
set isFound "true"
|
||||||
set aGl2psHPath [wokdep:SearchHeader "gl2ps.h"]
|
set aFFmpegHPath [wokdep:SearchHeader "libavutil/avutil.h"]
|
||||||
if { "$aGl2psHPath" == "" } {
|
if { "$aFFmpegHPath" == "" } {
|
||||||
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{gl2ps}*] "$::VCVER" "$::ARCH" ]
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{ffmpeg}*] "$::VCVER" "$::ARCH" ]
|
||||||
if { "$aPath" != "" && [file exists "$aPath/include/gl2ps.h"] } {
|
if { "$aPath" != "" && [file exists "$aPath/include/libavutil/avutil.h"] } {
|
||||||
lappend ::CSF_OPT_INC "$aPath/include"
|
lappend ::CSF_OPT_INC "$aPath/include"
|
||||||
} else {
|
} else {
|
||||||
lappend anErrInc "Error: 'gl2ps.h' not found (GL2PS)"
|
lappend anErrInc "Error: 'libavutil/avutil.h' not found (FFmpeg)"
|
||||||
set isFound "false"
|
set isFound "false"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach anArchIter {64 32} {
|
foreach anArchIter {64 32} {
|
||||||
set aGl2psLibPath [wokdep:SearchLib "gl2ps" "$anArchIter"]
|
set aFFmpegLibPath [wokdep:SearchLib "avutil" "$anArchIter"]
|
||||||
if { "$aGl2psLibPath" == "" } {
|
if { "$aFFmpegLibPath" == "" } {
|
||||||
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{gl2ps}*] "$::VCVER" "$anArchIter" ]
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{ffmpeg}*] "$::VCVER" "$anArchIter" ]
|
||||||
set aGl2psLibPath [wokdep:SearchLib "gl2ps" "$anArchIter" "$aPath/lib"]
|
set aFFmpegLibPath [wokdep:SearchLib "avutil" "$anArchIter" "$aPath/lib"]
|
||||||
if { "$aGl2psLibPath" != "" } {
|
if { "$aFFmpegLibPath" != "" } {
|
||||||
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib"
|
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib"
|
||||||
|
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin"
|
||||||
} else {
|
} else {
|
||||||
lappend anErrLib$anArchIter "Error: '${::SYS_LIB_PREFIX}gl2ps.${::SYS_LIB_SUFFIX}' not found (GL2PS)"
|
lappend anErrLib$anArchIter "Error: '${::SYS_LIB_PREFIX}avutil.${::SYS_LIB_SUFFIX}' not found (FFmpeg)"
|
||||||
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if { "$::tcl_platform(platform)" == "windows" } {
|
|
||||||
set aGl2psDllPath [wokdep:SearchBin "gl2ps.dll" "$anArchIter"]
|
|
||||||
if { "$aGl2psDllPath" == "" } {
|
|
||||||
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{gl2ps}*] "$::VCVER" "$anArchIter" ]
|
|
||||||
set aGl2psDllPath [wokdep:SearchBin "gl2ps.dll" "$anArchIter" "$aPath/bin"]
|
|
||||||
if { "$aGl2psDllPath" != "" } {
|
|
||||||
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin"
|
|
||||||
} else {
|
|
||||||
set aGl2psDllPath [wokdep:SearchBin "gl2ps.dll" "$anArchIter" "$aPath/lib"]
|
|
||||||
if { "$aGl2psDllPath" != "" } {
|
|
||||||
lappend ::CSF_OPT_BIN$anArchIter "$aPath/lib"
|
|
||||||
} else {
|
|
||||||
lappend anErrBin$anArchIter "Error: 'gl2ps.dll' not found (GL2PS)"
|
|
||||||
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "$isFound"
|
return "$isFound"
|
||||||
@@ -552,6 +594,11 @@ proc wokdep:SearchTBB {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64
|
|||||||
upvar $theErrBin32 anErrBin32
|
upvar $theErrBin32 anErrBin32
|
||||||
upvar $theErrBin64 anErrBin64
|
upvar $theErrBin64 anErrBin64
|
||||||
|
|
||||||
|
# keep only two first digits in "vc141"
|
||||||
|
if { ! [regexp {^vc[0-9][0-9]} ${::VCVER} aVcLib] } {
|
||||||
|
set aVcLib ${::VCVER}
|
||||||
|
}
|
||||||
|
|
||||||
set isFound "true"
|
set isFound "true"
|
||||||
set aTbbHPath [wokdep:SearchHeader "tbb/scalable_allocator.h"]
|
set aTbbHPath [wokdep:SearchHeader "tbb/scalable_allocator.h"]
|
||||||
if { "$aTbbHPath" == "" } {
|
if { "$aTbbHPath" == "" } {
|
||||||
@@ -572,8 +619,8 @@ proc wokdep:SearchTBB {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64
|
|||||||
|
|
||||||
set aTbbLibPath [wokdep:SearchLib "tbb" "$anArchIter"]
|
set aTbbLibPath [wokdep:SearchLib "tbb" "$anArchIter"]
|
||||||
if { "$aTbbLibPath" == "" } {
|
if { "$aTbbLibPath" == "" } {
|
||||||
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{tbb}*] "$::VCVER" "$anArchIter" ]
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{tbb}*] $aVcLib "$anArchIter" ]
|
||||||
set aTbbLibPath [wokdep:SearchLib "tbb" "$anArchIter" "$aPath/lib/$aSubDir/${::VCVER}"]
|
set aTbbLibPath [wokdep:SearchLib "tbb" "$anArchIter" "$aPath/lib/$aSubDir/$aVcLib"]
|
||||||
if { "$aTbbLibPath" == "" } {
|
if { "$aTbbLibPath" == "" } {
|
||||||
# Set the path to the TBB library for Linux
|
# Set the path to the TBB library for Linux
|
||||||
if { "$::tcl_platform(platform)" != "windows" } {
|
if { "$::tcl_platform(platform)" != "windows" } {
|
||||||
@@ -584,7 +631,7 @@ proc wokdep:SearchTBB {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64
|
|||||||
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib/$aSubDir"
|
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib/$aSubDir"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib/$aSubDir/${::VCVER}"
|
lappend ::CSF_OPT_LIB$anArchIter "$aPath/lib/$aSubDir/$aVcLib"
|
||||||
}
|
}
|
||||||
if { "$aTbbLibPath" == "" } {
|
if { "$aTbbLibPath" == "" } {
|
||||||
lappend anErrLib$anArchIter "Error: '${::SYS_LIB_PREFIX}tbb.${::SYS_LIB_SUFFIX}' not found (Intel TBB)"
|
lappend anErrLib$anArchIter "Error: '${::SYS_LIB_PREFIX}tbb.${::SYS_LIB_SUFFIX}' not found (Intel TBB)"
|
||||||
@@ -594,10 +641,10 @@ proc wokdep:SearchTBB {theErrInc theErrLib32 theErrLib64 theErrBin32 theErrBin64
|
|||||||
if { "$::tcl_platform(platform)" == "windows" } {
|
if { "$::tcl_platform(platform)" == "windows" } {
|
||||||
set aTbbDllPath [wokdep:SearchBin "tbb.dll" "$anArchIter"]
|
set aTbbDllPath [wokdep:SearchBin "tbb.dll" "$anArchIter"]
|
||||||
if { "$aTbbDllPath" == "" } {
|
if { "$aTbbDllPath" == "" } {
|
||||||
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{tbb}*] "$::VCVER" "$anArchIter" ]
|
set aPath [wokdep:Preferred [glob -nocomplain -directory "$::PRODUCTS_PATH" -type d *{tbb}*] $aVcLib "$anArchIter" ]
|
||||||
set aTbbDllPath [wokdep:SearchBin "tbb.dll" "$anArchIter" "$aPath/bin/$aSubDir/${::VCVER}"]
|
set aTbbDllPath [wokdep:SearchBin "tbb.dll" "$anArchIter" "$aPath/bin/$aSubDir/$aVcLib"]
|
||||||
if { "$aTbbDllPath" != "" } {
|
if { "$aTbbDllPath" != "" } {
|
||||||
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin/$aSubDir/${::VCVER}"
|
lappend ::CSF_OPT_BIN$anArchIter "$aPath/bin/$aSubDir/$aVcLib"
|
||||||
} else {
|
} else {
|
||||||
lappend anErrBin$anArchIter "Error: 'tbb.dll' not found (Intel TBB)"
|
lappend anErrBin$anArchIter "Error: 'tbb.dll' not found (Intel TBB)"
|
||||||
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
if { "$::ARCH" == "$anArchIter"} { set isFound "false" }
|
||||||
@@ -1075,15 +1122,13 @@ proc wokdep:SaveCustom {} {
|
|||||||
|
|
||||||
puts $aFile ""
|
puts $aFile ""
|
||||||
puts $aFile "rem Optional 3rd-parties switches"
|
puts $aFile "rem Optional 3rd-parties switches"
|
||||||
puts $aFile "set HAVE_FREEIMAGE=$::HAVE_FREEIMAGE"
|
foreach anEnvIter $::THE_ENV_VARIABLES {
|
||||||
puts $aFile "set HAVE_GL2PS=$::HAVE_GL2PS"
|
set aName ${anEnvIter}
|
||||||
puts $aFile "set HAVE_TBB=$::HAVE_TBB"
|
set aValue [set ::${anEnvIter}]
|
||||||
puts $aFile "set HAVE_GLES2=$::HAVE_GLES2"
|
if { "$aValue" != "" } {
|
||||||
puts $aFile "set HAVE_D3D=$::HAVE_D3D"
|
puts $aFile "set ${aName}=$aValue"
|
||||||
puts $aFile "set HAVE_OPENCL=$::HAVE_OPENCL"
|
}
|
||||||
puts $aFile "set HAVE_VTK=$::HAVE_VTK"
|
}
|
||||||
puts $aFile "set CHECK_QT4=$::CHECK_QT4"
|
|
||||||
puts $aFile "set CHECK_JDK=$::CHECK_JDK"
|
|
||||||
|
|
||||||
set aStringInc [join $::CSF_OPT_INC $::SYS_PATH_SPLITTER]
|
set aStringInc [join $::CSF_OPT_INC $::SYS_PATH_SPLITTER]
|
||||||
puts $aFile ""
|
puts $aFile ""
|
||||||
@@ -1126,17 +1171,13 @@ proc wokdep:SaveCustom {} {
|
|||||||
|
|
||||||
puts $aFile ""
|
puts $aFile ""
|
||||||
puts $aFile "# Optional 3rd-parties switches"
|
puts $aFile "# Optional 3rd-parties switches"
|
||||||
puts $aFile "export HAVE_FREEIMAGE=$::HAVE_FREEIMAGE"
|
foreach anEnvIter $::THE_ENV_VARIABLES {
|
||||||
puts $aFile "export HAVE_GL2PS=$::HAVE_GL2PS"
|
set aName ${anEnvIter}
|
||||||
puts $aFile "export HAVE_TBB=$::HAVE_TBB"
|
set aValue [set ::${anEnvIter}]
|
||||||
puts $aFile "export HAVE_GLES2=$::HAVE_GLES2"
|
if { "$aValue" != "" } {
|
||||||
puts $aFile "export HAVE_OPENCL=$::HAVE_OPENCL"
|
puts $aFile "export ${aName}=${aValue}"
|
||||||
puts $aFile "export HAVE_VTK=$::HAVE_VTK"
|
}
|
||||||
if { "$::tcl_platform(os)" == "Darwin" } {
|
|
||||||
puts $aFile "export MACOSX_USE_GLX=$::MACOSX_USE_GLX"
|
|
||||||
}
|
}
|
||||||
puts $aFile "export CHECK_QT4=$::CHECK_QT4"
|
|
||||||
puts $aFile "export CHECK_JDK=$::CHECK_JDK"
|
|
||||||
|
|
||||||
set aStringInc [join $::CSF_OPT_INC $::SYS_PATH_SPLITTER]
|
set aStringInc [join $::CSF_OPT_INC $::SYS_PATH_SPLITTER]
|
||||||
puts $aFile ""
|
puts $aFile ""
|
||||||
|
132
adm/gendoc.tcl
@@ -56,7 +56,7 @@ proc OCCDoc_PrintHelpMessage {} {
|
|||||||
puts " -s=<search_mode> : Specifies the Search mode of HTML documents"
|
puts " -s=<search_mode> : Specifies the Search mode of HTML documents"
|
||||||
puts " Can be: none | local | server | external"
|
puts " Can be: none | local | server | external"
|
||||||
puts " -h : Prints this help message"
|
puts " -h : Prints this help message"
|
||||||
puts " -v : Enables more verbose output"
|
puts " -v : Enables more verbose output"
|
||||||
}
|
}
|
||||||
|
|
||||||
# A command for User Documentation compilation
|
# A command for User Documentation compilation
|
||||||
@@ -70,7 +70,7 @@ proc gendoc {args} {
|
|||||||
set DOCLABEL ""
|
set DOCLABEL ""
|
||||||
set VERB_MODE "NO"
|
set VERB_MODE "NO"
|
||||||
set SEARCH_MODE "none"
|
set SEARCH_MODE "none"
|
||||||
set MATHJAX_LOCATION "http://cdn.mathjax.org/mathjax/latest"
|
set MATHJAX_LOCATION "https://cdn.mathjax.org/mathjax/latest"
|
||||||
set mathjax_js_name "MathJax.js"
|
set mathjax_js_name "MathJax.js"
|
||||||
set DOCTYPE_COMBO_FLAG 0
|
set DOCTYPE_COMBO_FLAG 0
|
||||||
set GENMODE_COMBO_FLAG 0
|
set GENMODE_COMBO_FLAG 0
|
||||||
@@ -171,7 +171,7 @@ proc gendoc {args} {
|
|||||||
if { $DOCTYPE_COMBO_FLAG != 1 } {
|
if { $DOCTYPE_COMBO_FLAG != 1 } {
|
||||||
set DOC_TYPE "REFMAN"
|
set DOC_TYPE "REFMAN"
|
||||||
set DOCTYPE_COMBO_FLAG 1
|
set DOCTYPE_COMBO_FLAG 1
|
||||||
if { [info exists env(PRODROOT)] && [file exists $::env(PRODROOT)/src/VAS/Products.tcl] } {
|
if { [file exists [OCCDoc_GetProdRootDir]/src/VAS/Products.tcl] } {
|
||||||
set GENERATE_PRODUCTS_REFMAN "YES"
|
set GENERATE_PRODUCTS_REFMAN "YES"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -312,7 +312,23 @@ proc gendoc {args} {
|
|||||||
|
|
||||||
# Start main activities
|
# Start main activities
|
||||||
if { $GEN_MODE != "PDF_ONLY" } {
|
if { $GEN_MODE != "PDF_ONLY" } {
|
||||||
OCCDoc_Main $DOC_TYPE $DOCFILES $MODULES $GEN_MODE $VERB_MODE $SEARCH_MODE $MATHJAX_LOCATION $GENERATE_PRODUCTS_REFMAN $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
if { [OCCDoc_GetProdRootDir] == ""} {
|
||||||
|
OCCDoc_Main $DOC_TYPE $DOCFILES $MODULES $GEN_MODE $VERB_MODE $SEARCH_MODE $MATHJAX_LOCATION $GENERATE_PRODUCTS_REFMAN $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
||||||
|
} else {
|
||||||
|
if { $DOC_TYPE == "REFMAN" } {
|
||||||
|
if { $MODULES != "" } {
|
||||||
|
foreach module $MODULES {
|
||||||
|
OCCDoc_Main $DOC_TYPE $DOCFILES $module $GEN_MODE $VERB_MODE $SEARCH_MODE $MATHJAX_LOCATION $GENERATE_PRODUCTS_REFMAN $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
OCCDoc_Main $DOC_TYPE $DOCFILES $MODULES $GEN_MODE $VERB_MODE $SEARCH_MODE $MATHJAX_LOCATION $GENERATE_PRODUCTS_REFMAN $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
foreach md $DOCFILES {
|
||||||
|
OCCDoc_Main $DOC_TYPE $md $MODULES $GEN_MODE $VERB_MODE $SEARCH_MODE $MATHJAX_LOCATION $GENERATE_PRODUCTS_REFMAN $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Generating OCCT User Guides in PDF format...\n"
|
puts "Generating OCCT User Guides in PDF format...\n"
|
||||||
foreach pdf $DOCFILES {
|
foreach pdf $DOCFILES {
|
||||||
@@ -323,7 +339,6 @@ proc gendoc {args} {
|
|||||||
OCCDoc_Main "OVERVIEW" [list $pdf] {} "PDF_ONLY" $VERB_MODE "none" $MATHJAX_LOCATION "NO" $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
OCCDoc_Main "OVERVIEW" [list $pdf] {} "PDF_ONLY" $VERB_MODE "none" $MATHJAX_LOCATION "NO" $DOXYGEN_PATH $GRAPHVIZ_PATH $INKSCAPE_PATH $HHC_PATH
|
||||||
}
|
}
|
||||||
puts "[clock format [clock seconds] -format {%Y-%m-%d %H:%M}] Generation completed."
|
puts "[clock format [clock seconds] -format {%Y-%m-%d %H:%M}] Generation completed."
|
||||||
puts "\nPDF files are generated in \n[file normalize [OCCDoc_GetRootDir]/doc/pdf]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,12 +348,7 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
global available_docfiles
|
global available_docfiles
|
||||||
global available_pdf
|
global available_pdf
|
||||||
|
|
||||||
set PRODPATH ""
|
set ROOTDIR [OCCDoc_GetRootDir [OCCDoc_GetProdRootDir]]
|
||||||
if { [string compare -nocase $generateProductsRefman "YES"] == 0 } {
|
|
||||||
set PRODPATH "$::env(PRODROOT)"
|
|
||||||
}
|
|
||||||
|
|
||||||
set ROOTDIR [OCCDoc_GetRootDir $PRODPATH]
|
|
||||||
set INDIR [OCCDoc_GetDoxDir]
|
set INDIR [OCCDoc_GetDoxDir]
|
||||||
set OUTDIR $ROOTDIR/doc
|
set OUTDIR $ROOTDIR/doc
|
||||||
set PDFDIR $OUTDIR/pdf
|
set PDFDIR $OUTDIR/pdf
|
||||||
@@ -348,7 +358,29 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
set HTMLDIR $OUTDIR/overview/html
|
set HTMLDIR $OUTDIR/overview/html
|
||||||
set LATEXDIR $OUTDIR/overview/latex
|
set LATEXDIR $OUTDIR/overview/latex
|
||||||
set DOXYFILE $OUTDIR/OCCT.cfg
|
set DOXYFILE $OUTDIR/OCCT.cfg
|
||||||
|
|
||||||
|
# OUTDIR for products documentation should be separate directories for each components
|
||||||
|
if { [OCCDoc_GetProdRootDir] != ""} {
|
||||||
|
if { $docType == "REFMAN" } {
|
||||||
|
if { "$modules" != "" } {
|
||||||
|
source "[OCCDoc_GetSourceDir [OCCDoc_GetProdRootDir]]/VAS/${modules}.tcl"
|
||||||
|
set doc_component_name [${modules}:documentation_name]
|
||||||
|
set OUTDIR $OUTDIR/$doc_component_name
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if {[regexp {([^/]+)/([^/]+)/([^/]+)} $docfiles dump doc_type doc_component doc_name]} {
|
||||||
|
set PDFNAME [file rootname $doc_name]
|
||||||
|
set OUTDIR $OUTDIR/$doc_component
|
||||||
|
} else {
|
||||||
|
error "Could not parse input path to *.md file: \"${docfiles}\""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set HTMLDIR $OUTDIR/html
|
||||||
|
set LATEXDIR $OUTDIR/latex
|
||||||
|
set DOXYFILE $OUTDIR/OCCT.cfg
|
||||||
|
set TAGFILEDIR $OUTDIR/refman
|
||||||
|
}
|
||||||
|
|
||||||
# Create or cleanup the output folders
|
# Create or cleanup the output folders
|
||||||
if { [string compare -nocase $generateProductsRefman "YES"] != 0 } {
|
if { [string compare -nocase $generateProductsRefman "YES"] != 0 } {
|
||||||
if { ![file exists $OUTDIR] } {
|
if { ![file exists $OUTDIR] } {
|
||||||
@@ -357,19 +389,24 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
if { ![file exists $HTMLDIR] } {
|
if { ![file exists $HTMLDIR] } {
|
||||||
file mkdir $HTMLDIR
|
file mkdir $HTMLDIR
|
||||||
}
|
}
|
||||||
if { ![file exists $PDFDIR] } {
|
if { [OCCDoc_GetProdRootDir] == ""} {
|
||||||
file mkdir $PDFDIR
|
if { ![file exists $PDFDIR] } {
|
||||||
|
file mkdir $PDFDIR
|
||||||
|
}
|
||||||
|
if { ![file exists $UGDIR] } {
|
||||||
|
file mkdir $UGDIR
|
||||||
|
}
|
||||||
|
if { ![file exists $DGDIR] } {
|
||||||
|
file mkdir $DGDIR
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if { ![file exists $UGDIR] } {
|
|
||||||
file mkdir $UGDIR
|
if { $generatorMode == "PDF_ONLY" } {
|
||||||
|
if { [file exists $LATEXDIR] } {
|
||||||
|
file delete -force $LATEXDIR
|
||||||
|
}
|
||||||
|
file mkdir $LATEXDIR
|
||||||
}
|
}
|
||||||
if { ![file exists $DGDIR] } {
|
|
||||||
file mkdir $DGDIR
|
|
||||||
}
|
|
||||||
if { [file exists $LATEXDIR] } {
|
|
||||||
file delete -force $LATEXDIR
|
|
||||||
}
|
|
||||||
file mkdir $LATEXDIR
|
|
||||||
}
|
}
|
||||||
if { $docType == "REFMAN" } {
|
if { $docType == "REFMAN" } {
|
||||||
if { ![file exists $TAGFILEDIR] } {
|
if { ![file exists $TAGFILEDIR] } {
|
||||||
@@ -397,7 +434,11 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
set DOCDIR "$OUTDIR/refman"
|
set DOCDIR "$OUTDIR/refman"
|
||||||
puts "\nGenerating Open CASCADE Reference Manual\n"
|
puts "\nGenerating Open CASCADE Reference Manual\n"
|
||||||
} elseif { $docType == "OVERVIEW" } {
|
} elseif { $docType == "OVERVIEW" } {
|
||||||
set DOCDIR "$OUTDIR/overview"
|
if { [OCCDoc_GetProdRootDir] == ""} {
|
||||||
|
set DOCDIR "$OUTDIR/overview"
|
||||||
|
} else {
|
||||||
|
set DOCDIR "$OUTDIR"
|
||||||
|
}
|
||||||
set FORMAT ""
|
set FORMAT ""
|
||||||
if { ($generatorMode == "HTML_ONLY") || ($generatorMode == "CHM_ONLY") } {
|
if { ($generatorMode == "HTML_ONLY") || ($generatorMode == "CHM_ONLY") } {
|
||||||
if { $generatorMode == "HTML_ONLY" } {
|
if { $generatorMode == "HTML_ONLY" } {
|
||||||
@@ -416,7 +457,7 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
# Generate Doxyfile
|
# Generate Doxyfile
|
||||||
puts "[clock format [clock seconds] -format {%Y-%m-%d %H:%M}] Generating Doxyfile..."
|
puts "[clock format [clock seconds] -format {%Y-%m-%d %H:%M}] Generating Doxyfile..."
|
||||||
|
|
||||||
if { [OCCDoc_MakeDoxyfile $docType $DOCDIR $TAGFILEDIR $DOXYFILE $generatorMode $docfiles $modules $verboseMode $searchMode $HHC_PATH $mathjax_relative_location $GRAPHVIZ_PATH $PRODPATH] == -1 } {
|
if { [OCCDoc_MakeDoxyfile $docType $DOCDIR $TAGFILEDIR $DOXYFILE $generatorMode $docfiles $modules $verboseMode $searchMode $HHC_PATH $mathjax_relative_location $GRAPHVIZ_PATH [OCCDoc_GetProdRootDir]] == -1 } {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -564,21 +605,29 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
|
|
||||||
set destFolder $PDFDIR
|
set destFolder $PDFDIR
|
||||||
set parsed_string [split $TEX "_"]
|
set parsed_string [split $TEX "_"]
|
||||||
if { [lsearch $parsed_string "tutorial"] != -1 } {
|
if { [OCCDoc_GetProdRootDir] == ""} {
|
||||||
set TEX [string map [list occt__ occt_] $TEX]
|
if { [lsearch $parsed_string "tutorial"] != -1 } {
|
||||||
set destFolder $PDFDIR
|
set TEX [string map [list occt__ occt_] $TEX]
|
||||||
} elseif { [lsearch $parsed_string "user"] != -1 } {
|
set destFolder $PDFDIR
|
||||||
set TEX [string map [list user_guides__ ""] $TEX]
|
} elseif { [lsearch $parsed_string "user"] != -1 } {
|
||||||
set destFolder $UGDIR
|
set TEX [string map [list user_guides__ ""] $TEX]
|
||||||
} elseif { [lsearch $parsed_string "dev"] != -1 } {
|
set destFolder $UGDIR
|
||||||
set TEX [string map [list dev_guides__ ""] $TEX]
|
} elseif { [lsearch $parsed_string "dev"] != -1 } {
|
||||||
set destFolder $DGDIR
|
set TEX [string map [list dev_guides__ ""] $TEX]
|
||||||
|
set destFolder $DGDIR
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
set destFolder $OUTDIR
|
||||||
|
set TEX "$PDFNAME"
|
||||||
}
|
}
|
||||||
file rename -force $LATEXDIR/refman.pdf "$destFolder/$TEX.pdf"
|
file rename -force $LATEXDIR/refman.pdf "$destFolder/$TEX.pdf"
|
||||||
|
|
||||||
}
|
}
|
||||||
} elseif { $generatorMode == "CHM_ONLY" } {
|
} elseif { $generatorMode == "CHM_ONLY" } {
|
||||||
file rename $OUTDIR/overview.chm $OUTDIR/occt_overview.chm
|
if { [OCCDoc_GetProdRootDir] == ""} {
|
||||||
|
file rename $OUTDIR/overview.chm $OUTDIR/occt_overview.chm
|
||||||
|
} else {
|
||||||
|
file rename -force $ROOTDIR/doc/overview.chm $OUTDIR/occt_overview.chm
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cd $INDIR
|
cd $INDIR
|
||||||
|
|
||||||
@@ -597,14 +646,17 @@ proc OCCDoc_Main {docType {docfiles {}} {modules {}} generatorMode verboseMode s
|
|||||||
foreach file $deleteList {
|
foreach file $deleteList {
|
||||||
file delete $file
|
file delete $file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puts "\nPDF files are generated in \n[file normalize $OUTDIR]"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generates Doxygen configuration file for Overview documentation
|
# Generates Doxygen configuration file for Overview documentation
|
||||||
proc OCCDoc_MakeDoxyfile {docType outDir tagFileDir {doxyFileName} {generatorMode ""} {DocFilesList {}} {ModulesList {}} verboseMode searchMode hhcPath mathjaxLocation graphvizPath productsPath} {
|
proc OCCDoc_MakeDoxyfile {docType outDir tagFileDir {doxyFileName} {generatorMode ""} {DocFilesList {}} {ModulesList {}} verboseMode searchMode hhcPath mathjaxLocation graphvizPath productsPath} {
|
||||||
|
set inputDir [OCCDoc_GetDoxDir [OCCDoc_GetProdRootDir]]
|
||||||
|
|
||||||
set inputDir [OCCDoc_GetDoxDir]
|
set TEMPLATES_DIR [OCCDoc_GetDoxDir]/resources
|
||||||
set TEMPLATES_DIR $inputDir/resources
|
|
||||||
set occt_version [OCCDoc_DetectCasVersion]
|
set occt_version [OCCDoc_DetectCasVersion]
|
||||||
|
|
||||||
# Delete existent doxyfile
|
# Delete existent doxyfile
|
||||||
@@ -751,10 +803,10 @@ proc OCCDoc_MakeDoxyfile {docType outDir tagFileDir {doxyFileName} {generatorMod
|
|||||||
# Add common options for generation of Overview and User Guides
|
# Add common options for generation of Overview and User Guides
|
||||||
puts $doxyFile "PROJECT_NUMBER = $occt_version"
|
puts $doxyFile "PROJECT_NUMBER = $occt_version"
|
||||||
puts $doxyFile "OUTPUT_DIRECTORY = $outDir/."
|
puts $doxyFile "OUTPUT_DIRECTORY = $outDir/."
|
||||||
puts $doxyFile "PROJECT_LOGO = $inputDir/resources/occ_logo.png"
|
puts $doxyFile "PROJECT_LOGO = [OCCDoc_GetDoxDir]/resources/occ_logo.png"
|
||||||
|
|
||||||
set PARAM_INPUT "INPUT ="
|
set PARAM_INPUT "INPUT ="
|
||||||
set PARAM_IMAGEPATH "IMAGE_PATH = $inputDir/resources/ "
|
set PARAM_IMAGEPATH "IMAGE_PATH = [OCCDoc_GetDoxDir]/resources/ "
|
||||||
foreach docFile $DocFilesList {
|
foreach docFile $DocFilesList {
|
||||||
set NEW_IMG_PATH "$inputDir/$docFile"
|
set NEW_IMG_PATH "$inputDir/$docFile"
|
||||||
if { [string compare $NEW_IMG_PATH [OCCDoc_GetRootDir $productsPath]] != 0 } {
|
if { [string compare $NEW_IMG_PATH [OCCDoc_GetRootDir $productsPath]] != 0 } {
|
||||||
|
569
adm/genproj.tcl
@@ -108,17 +108,163 @@ proc osutils:findSrcSubPath {theSubPath} {
|
|||||||
return "$::THE_CASROOT/src/$theSubPath"
|
return "$::THE_CASROOT/src/$theSubPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Auxiliary tool comparing content of two files line-by-line.
|
||||||
|
proc osutils:isEqualContent { theContent1 theContent2 } {
|
||||||
|
set aLen1 [llength $theContent1]
|
||||||
|
set aLen2 [llength $theContent2]
|
||||||
|
if { $aLen1 != $aLen2 } {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
for {set aLineIter 0} {$aLineIter < $aLen1} {incr aLineIter} {
|
||||||
|
set aLine1 [lindex $theContent1 $aLineIter]
|
||||||
|
set aLine2 [lindex $theContent2 $aLineIter]
|
||||||
|
if { $aLine1 != $aLine2 } {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Auxiliary function for writing new file content only if it has been actually changed
|
||||||
|
# (e.g. to preserve file timestamp on no change).
|
||||||
|
# Useful for automatically (re)generated files.
|
||||||
|
proc osutils:writeTextFile { theFile theContent {theEol lf} } {
|
||||||
|
if {[file exists "${theFile}"]} {
|
||||||
|
set aFileOld [open "${theFile}" rb]
|
||||||
|
fconfigure $aFileOld -translation crlf
|
||||||
|
set aLineListOld [split [read $aFileOld] "\n"]
|
||||||
|
close $aFileOld
|
||||||
|
|
||||||
|
# append empty line for proper comparison (which will be implicitly added by last puts below)
|
||||||
|
set aContent $theContent
|
||||||
|
lappend aContent ""
|
||||||
|
if { [osutils:isEqualContent $aLineListOld $aContent] == true } {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
file delete -force "${theFile}"
|
||||||
|
}
|
||||||
|
|
||||||
|
set anOutFile [open "$theFile" "w"]
|
||||||
|
fconfigure $anOutFile -translation $theEol
|
||||||
|
foreach aLine ${theContent} {
|
||||||
|
puts $anOutFile "${aLine}"
|
||||||
|
}
|
||||||
|
close $anOutFile
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function re-generating header files for specified text resource
|
||||||
|
proc genResources { theResource } {
|
||||||
|
global path
|
||||||
|
|
||||||
|
set aResFileList {}
|
||||||
|
set aResourceAbsPath [file normalize "${path}/src/${theResource}"]
|
||||||
|
set aResourceDirectory ""
|
||||||
|
set isResDirectory false
|
||||||
|
|
||||||
|
if {[file isdirectory "${aResourceAbsPath}"]} {
|
||||||
|
if {[file exists "${aResourceAbsPath}/FILES"]} {
|
||||||
|
set aFilesFile [open "${aResourceAbsPath}/FILES" rb]
|
||||||
|
set aResFileList [split [read $aFilesFile] "\n"]
|
||||||
|
close $aFilesFile
|
||||||
|
}
|
||||||
|
set aResFileList [lsearch -inline -all -not -exact $aResFileList ""]
|
||||||
|
set aResourceDirectory "${theResource}"
|
||||||
|
set isResDirectory true
|
||||||
|
} else {
|
||||||
|
set aResourceName [file tail "${theResource}"]
|
||||||
|
lappend aResFileList "res:::${aResourceName}"
|
||||||
|
set aResourceDirectory [file dirname "${theResource}"]
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach aResFileIter ${aResFileList} {
|
||||||
|
if {![regexp {^[^:]+:::(.+)} "${aResFileIter}" dump aResFileIter]} {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
set aResFileName [file tail "${aResFileIter}"]
|
||||||
|
regsub -all {\.} "${aResFileName}" {_} aResFileName
|
||||||
|
set aHeaderFileName "${aResourceDirectory}_${aResFileName}.pxx"
|
||||||
|
if { $isResDirectory == true && [lsearch $aResFileList $aHeaderFileName] == -1 } {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
# generate
|
||||||
|
set aContent {}
|
||||||
|
lappend aContent "// This file has been automatically generated from resource file src/${aResourceDirectory}/${aResFileIter}"
|
||||||
|
lappend aContent ""
|
||||||
|
|
||||||
|
# generate necessary structures
|
||||||
|
set aLineList {}
|
||||||
|
if {[file exists "${path}/src/${aResourceDirectory}/${aResFileIter}"]} {
|
||||||
|
set anInputFile [open "${path}/src/${aResourceDirectory}/${aResFileIter}" rb]
|
||||||
|
fconfigure $anInputFile -translation crlf
|
||||||
|
set aLineList [split [read $anInputFile] "\n"]
|
||||||
|
close $anInputFile
|
||||||
|
}
|
||||||
|
|
||||||
|
# drop empty trailing line
|
||||||
|
set anEndOfFile ""
|
||||||
|
if { [lindex $aLineList end] == "" } {
|
||||||
|
set aLineList [lreplace $aLineList end end]
|
||||||
|
set anEndOfFile "\\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
lappend aContent "static const char ${aResourceDirectory}_${aResFileName}\[\] ="
|
||||||
|
set aNbLines [llength $aLineList]
|
||||||
|
set aLastLine [expr $aNbLines - 1]
|
||||||
|
for {set aLineIter 0} {$aLineIter < $aNbLines} {incr aLineIter} {
|
||||||
|
set aLine [lindex $aLineList $aLineIter]
|
||||||
|
regsub -all {\"} "${aLine}" {\\"} aLine
|
||||||
|
if { $aLineIter == $aLastLine } {
|
||||||
|
lappend aContent " \"${aLine}${anEndOfFile}\";"
|
||||||
|
} else {
|
||||||
|
lappend aContent " \"${aLine}\\n\""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Save generated content to header file
|
||||||
|
set aHeaderFilePath "${path}/src/${aResourceDirectory}/${aHeaderFileName}"
|
||||||
|
if { [osutils:writeTextFile $aHeaderFilePath $aContent] == true } {
|
||||||
|
puts "Generating header file from resource file: ${path}/src/${aResourceDirectory}/${aResFileIter}"
|
||||||
|
} else {
|
||||||
|
#puts "Header file from resource ${path}/src/${aResourceDirectory}/${aResFileIter} is up-to-date"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function re-generating header files for all text resources
|
||||||
|
proc genAllResources {} {
|
||||||
|
global path
|
||||||
|
set aCasRoot [file normalize $path]
|
||||||
|
if {![file exists "$aCasRoot/adm/RESOURCES"]} {
|
||||||
|
puts "OCCT directory is not defined correctly: $aCasRoot"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
set aFileResources [open "$aCasRoot/adm/RESOURCES" rb]
|
||||||
|
set anAdmResources [split [read $aFileResources] "\r\n"]
|
||||||
|
close $aFileResources
|
||||||
|
set anAdmResources [lsearch -inline -all -not -exact $anAdmResources ""]
|
||||||
|
|
||||||
|
foreach line $anAdmResources {
|
||||||
|
genResources "${line}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Wrapper-function to generate VS project files
|
# Wrapper-function to generate VS project files
|
||||||
proc genproj {theIDE args} {
|
proc genproj {theFormat args} {
|
||||||
set aSupportedIDEs { "vc7" "vc8" "vc9" "vc10" "vc11" "vc12" "vc14" "cbp" "xcd" }
|
set aSupportedFormats { "vc7" "vc8" "vc9" "vc10" "vc11" "vc12" "vc14" "vc141" "cbp" "xcd"}
|
||||||
set aSupportedPlatforms { "wnt" "lin" "mac" "ios" "qnx" }
|
set aSupportedPlatforms { "wnt" "uwp" "lin" "mac" "ios" "qnx" }
|
||||||
set isHelpRequire false
|
set isHelpRequire false
|
||||||
|
|
||||||
# check IDE argument
|
# check format argument
|
||||||
if { $theIDE == "-h" || $theIDE == "-help" || $theIDE == "--help" } {
|
if { $theFormat == "-h" || $theFormat == "-help" || $theFormat == "--help" } {
|
||||||
set isHelpRequire true
|
set isHelpRequire true
|
||||||
} elseif { [lsearch -exact $aSupportedIDEs $theIDE] < 0 } {
|
} elseif { [lsearch -exact $aSupportedFormats $theFormat] < 0 } {
|
||||||
puts "Error: genproj: unrecognized IDE \"$theIDE\""
|
puts "Error: genproj: unrecognized project format \"$theFormat\""
|
||||||
set isHelpRequire true
|
set isHelpRequire true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,9 +272,9 @@ proc genproj {theIDE args} {
|
|||||||
set aCmpl "gcc"
|
set aCmpl "gcc"
|
||||||
|
|
||||||
# Determine default platform: wnt for vc*, mac for xcd, current for cbp
|
# Determine default platform: wnt for vc*, mac for xcd, current for cbp
|
||||||
if { [regexp "^vc" $theIDE] } {
|
if { [regexp "^vc" $theFormat] } {
|
||||||
set aPlatform "wnt"
|
set aPlatform "wnt"
|
||||||
} elseif { $theIDE == "xcd" || $::tcl_platform(os) == "Darwin" } {
|
} elseif { $theFormat == "xcd" || $::tcl_platform(os) == "Darwin" } {
|
||||||
set aPlatform "mac"
|
set aPlatform "mac"
|
||||||
} elseif { $::tcl_platform(platform) == "windows" } {
|
} elseif { $::tcl_platform(platform) == "windows" } {
|
||||||
set aPlatform "wnt"
|
set aPlatform "wnt"
|
||||||
@@ -156,20 +302,22 @@ proc genproj {theIDE args} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if { $isHelpRequire == true } {
|
if { $isHelpRequire == true } {
|
||||||
puts "usage: genproj IDE \[Platform\] \[-static\] \[-h|-help|--help\]
|
puts "usage: genproj Format \[Platform\] \[-static\] \[-h|-help|--help\]
|
||||||
|
|
||||||
IDE must be one of:
|
Format must be one of:
|
||||||
vc8 - Visual Studio 2005
|
vc8 - Visual Studio 2005
|
||||||
vc9 - Visual Studio 2008
|
vc9 - Visual Studio 2008
|
||||||
vc10 - Visual Studio 2010
|
vc10 - Visual Studio 2010
|
||||||
vc11 - Visual Studio 2012
|
vc11 - Visual Studio 2012
|
||||||
vc12 - Visual Studio 2013
|
vc12 - Visual Studio 2013
|
||||||
vc14 - Visual Studio 2015
|
vc14 - Visual Studio 2015
|
||||||
cbp - CodeBlocks
|
vc141 - Visual Studio 2017
|
||||||
xcd - XCode
|
cbp - CodeBlocks
|
||||||
|
xcd - XCode
|
||||||
|
|
||||||
Platform (optional, only for CodeBlocks and XCode):
|
Platform (optional):
|
||||||
wnt - Windows
|
wnt - Windows Desktop
|
||||||
|
uwp - Universal Windows Platform
|
||||||
lin - Linux
|
lin - Linux
|
||||||
mac - OS X
|
mac - OS X
|
||||||
ios - iOS
|
ios - iOS
|
||||||
@@ -185,23 +333,24 @@ proc genproj {theIDE args} {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
puts "Preparing to generate $theIDE projects for $aPlatform platform..."
|
puts "Preparing to generate $theFormat projects for $aPlatform platform..."
|
||||||
|
|
||||||
# path to where to generate projects, hardcoded from current dir
|
# base path to where to generate projects, hardcoded from current dir
|
||||||
set anAdmPath [file normalize "${::path}/adm"]
|
set anAdmPath [file normalize "${::path}/adm"]
|
||||||
|
|
||||||
OS:MKPRC "$anAdmPath" "$theIDE" "$aLibType" "$aPlatform" "$aCmpl"
|
OS:MKPRC "$anAdmPath" "$theFormat" "$aLibType" "$aPlatform" "$aCmpl"
|
||||||
|
|
||||||
genprojbat "$theIDE" $aPlatform
|
genprojbat "$theFormat" "$aPlatform"
|
||||||
|
genAllResources
|
||||||
}
|
}
|
||||||
|
|
||||||
proc genprojbat {theIDE thePlatform} {
|
proc genprojbat {theFormat thePlatform} {
|
||||||
set aTargetPlatformExt sh
|
set aTargetPlatformExt sh
|
||||||
if { $thePlatform == "wnt" } {
|
if { $thePlatform == "wnt" || $thePlatform == "uwp" } {
|
||||||
set aTargetPlatformExt bat
|
set aTargetPlatformExt bat
|
||||||
}
|
}
|
||||||
|
|
||||||
if {"$theIDE" != "cmake"} {
|
if {"$theFormat" != "cmake"} {
|
||||||
# copy env.bat/sh only if not yet present
|
# copy env.bat/sh only if not yet present
|
||||||
if { ! [file exists "$::path/env.${aTargetPlatformExt}"] } {
|
if { ! [file exists "$::path/env.${aTargetPlatformExt}"] } {
|
||||||
set anEnvTmplFile [open "$::THE_CASROOT/adm/templates/env.${aTargetPlatformExt}" "r"]
|
set anEnvTmplFile [open "$::THE_CASROOT/adm/templates/env.${aTargetPlatformExt}" "r"]
|
||||||
@@ -223,10 +372,10 @@ proc genprojbat {theIDE thePlatform} {
|
|||||||
file copy -force -- "$::THE_CASROOT/adm/templates/draw.${aTargetPlatformExt}" "$::path/draw.${aTargetPlatformExt}"
|
file copy -force -- "$::THE_CASROOT/adm/templates/draw.${aTargetPlatformExt}" "$::path/draw.${aTargetPlatformExt}"
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[regexp {(vc)[0-9]*$} $theIDE] == 1} {
|
if { [regexp {^vc} $theFormat] } {
|
||||||
file copy -force -- "$::THE_CASROOT/adm/templates/msvc.bat" "$::path/msvc.bat"
|
file copy -force -- "$::THE_CASROOT/adm/templates/msvc.bat" "$::path/msvc.bat"
|
||||||
} else {
|
} else {
|
||||||
switch -exact -- "$theIDE" {
|
switch -exact -- "$theFormat" {
|
||||||
"cbp" {
|
"cbp" {
|
||||||
file copy -force -- "$::THE_CASROOT/adm/templates/codeblocks.sh" "$::path/codeblocks.sh"
|
file copy -force -- "$::THE_CASROOT/adm/templates/codeblocks.sh" "$::path/codeblocks.sh"
|
||||||
file copy -force -- "$::THE_CASROOT/adm/templates/codeblocks.bat" "$::path/codeblocks.bat"
|
file copy -force -- "$::THE_CASROOT/adm/templates/codeblocks.bat" "$::path/codeblocks.bat"
|
||||||
@@ -251,13 +400,13 @@ proc removeAllOccurrencesOf { theObject theList } {
|
|||||||
set aTKNullKey "TKNull"
|
set aTKNullKey "TKNull"
|
||||||
set THE_GUIDS_LIST($aTKNullKey) "{00000000-0000-0000-0000-000000000000}"
|
set THE_GUIDS_LIST($aTKNullKey) "{00000000-0000-0000-0000-000000000000}"
|
||||||
|
|
||||||
# Entry function to generate project files and solutions for IDE
|
# Entry function to generate project files
|
||||||
# @param theOutDir Root directory for project files
|
# @param theOutDir Root directory for project files
|
||||||
# @param theIDE IDE code name (vc10 for Visual Studio 2010, cbp for Code::Blocks, xcd for XCode)
|
# @param theFormat Project format name (vc.. for Visual Studio projects, cbp for Code::Blocks, xcd for XCode)
|
||||||
# @param theLibType Library type - dynamic or static
|
# @param theLibType Library type - dynamic or static
|
||||||
# @param thePlatform Optional target platform for cross-compiling, e.g. ios for iOS
|
# @param thePlatform Optional target platform for cross-compiling, e.g. ios for iOS
|
||||||
# @param theCmpl Compiler option (msvc or gcc)
|
# @param theCmpl Compiler option (msvc or gcc)
|
||||||
proc OS:MKPRC { theOutDir theIDE theLibType thePlatform theCmpl } {
|
proc OS:MKPRC { theOutDir theFormat theLibType thePlatform theCmpl } {
|
||||||
global path
|
global path
|
||||||
set anOutRoot $theOutDir
|
set anOutRoot $theOutDir
|
||||||
if { $anOutRoot == "" } {
|
if { $anOutRoot == "" } {
|
||||||
@@ -266,14 +415,19 @@ proc OS:MKPRC { theOutDir theIDE theLibType thePlatform theCmpl } {
|
|||||||
|
|
||||||
# Create output directory
|
# Create output directory
|
||||||
set aWokStation "$thePlatform"
|
set aWokStation "$thePlatform"
|
||||||
if { [lsearch -exact {vc7 vc8 vc9 vc10 vc11 vc12 vc14} $theIDE] != -1 } {
|
if { [regexp {^vc} $theFormat] } {
|
||||||
set aWokStation "msvc"
|
set aWokStation "msvc"
|
||||||
}
|
}
|
||||||
|
set aSuffix ""
|
||||||
set anOutDir "${anOutRoot}/${aWokStation}/${theIDE}"
|
set isUWP 0
|
||||||
|
if { $thePlatform == "uwp" } {
|
||||||
|
set aSuffix "-uwp"
|
||||||
|
set isUWP 1
|
||||||
|
}
|
||||||
|
set anOutDir "${anOutRoot}/${aWokStation}/${theFormat}${aSuffix}"
|
||||||
|
|
||||||
# read map of already generated GUIDs
|
# read map of already generated GUIDs
|
||||||
set aGuidsFilePath [file join $anOutDir "wok_${theIDE}_guids.txt"]
|
set aGuidsFilePath [file join $anOutDir "wok_${theFormat}_guids.txt"]
|
||||||
if [file exists "$aGuidsFilePath"] {
|
if [file exists "$aGuidsFilePath"] {
|
||||||
set aFileIn [open "$aGuidsFilePath" r]
|
set aFileIn [open "$aGuidsFilePath" r]
|
||||||
set aFileDataRaw [read $aFileIn]
|
set aFileDataRaw [read $aFileIn]
|
||||||
@@ -294,6 +448,14 @@ proc OS:MKPRC { theOutDir theIDE theLibType thePlatform theCmpl } {
|
|||||||
set aModules [osutils:juststation $goaway $aModules]
|
set aModules [osutils:juststation $goaway $aModules]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Draw module is turned off due to it is not supported on UWP
|
||||||
|
if { $isUWP } {
|
||||||
|
set aDrawIndex [lsearch -exact ${aModules} "Draw"]
|
||||||
|
if { ${aDrawIndex} != -1 } {
|
||||||
|
set aModules [lreplace ${aModules} ${aDrawIndex} ${aDrawIndex}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# generate one solution for all projects if complete OS or VAS is processed
|
# generate one solution for all projects if complete OS or VAS is processed
|
||||||
set anAllSolution "OCCT"
|
set anAllSolution "OCCT"
|
||||||
|
|
||||||
@@ -313,17 +475,18 @@ proc OS:MKPRC { theOutDir theIDE theLibType thePlatform theCmpl } {
|
|||||||
puts "Collecting required header files into $path/inc ..."
|
puts "Collecting required header files into $path/inc ..."
|
||||||
osutils:collectinc $aModules $path/inc
|
osutils:collectinc $aModules $path/inc
|
||||||
|
|
||||||
# Generating project files for the selected IDE
|
# Generating project files for the selected format
|
||||||
switch -exact -- "$theIDE" {
|
switch -exact -- "$theFormat" {
|
||||||
"vc7" -
|
"vc7" -
|
||||||
"vc8" -
|
"vc8" -
|
||||||
"vc9" -
|
"vc9" -
|
||||||
"vc10" -
|
"vc10" -
|
||||||
"vc11" -
|
"vc11" -
|
||||||
"vc12" -
|
"vc12" -
|
||||||
"vc14" { OS:MKVC $anOutDir $aModules $anAllSolution $theIDE }
|
"vc14" -
|
||||||
"cbp" { OS:MKCBP $anOutDir $aModules $anAllSolution $thePlatform $theCmpl }
|
"vc141" { OS:MKVC $anOutDir $aModules $anAllSolution $theFormat $isUWP}
|
||||||
"xcd" {
|
"cbp" { OS:MKCBP $anOutDir $aModules $anAllSolution $thePlatform $theCmpl }
|
||||||
|
"xcd" {
|
||||||
set ::THE_GUIDS_LIST($::aTKNullKey) "000000000000000000000000"
|
set ::THE_GUIDS_LIST($::aTKNullKey) "000000000000000000000000"
|
||||||
OS:MKXCD $anOutDir $aModules $anAllSolution $theLibType $thePlatform
|
OS:MKXCD $anOutDir $aModules $anAllSolution $theLibType $thePlatform
|
||||||
}
|
}
|
||||||
@@ -340,14 +503,14 @@ proc OS:MKPRC { theOutDir theIDE theLibType thePlatform theCmpl } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Function to generate Visual Studio solution and project files
|
# Function to generate Visual Studio solution and project files
|
||||||
proc OS:MKVC { theOutDir {theModules {}} {theAllSolution ""} {theVcVer "vc8"} } {
|
proc OS:MKVC { theOutDir theModules theAllSolution theVcVer isUWP } {
|
||||||
|
|
||||||
puts stderr "Generating VS project files for $theVcVer"
|
puts stderr "Generating VS project files for $theVcVer"
|
||||||
|
|
||||||
# generate projects for toolkits and separate solution for each module
|
# generate projects for toolkits and separate solution for each module
|
||||||
foreach aModule $theModules {
|
foreach aModule $theModules {
|
||||||
OS:vcsolution $theVcVer $aModule $aModule $theOutDir ::THE_GUIDS_LIST
|
OS:vcsolution $theVcVer $aModule $aModule $theOutDir ::THE_GUIDS_LIST
|
||||||
OS:vcproj $theVcVer $aModule $theOutDir ::THE_GUIDS_LIST
|
OS:vcproj $theVcVer $isUWP $aModule $theOutDir ::THE_GUIDS_LIST
|
||||||
}
|
}
|
||||||
|
|
||||||
# generate single solution "OCCT" containing projects from all modules
|
# generate single solution "OCCT" containing projects from all modules
|
||||||
@@ -592,8 +755,8 @@ proc LocateRecur {theName} {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
proc OS:genGUID { {theIDE "vc"} } {
|
proc OS:genGUID { {theFormat "vc"} } {
|
||||||
if { "$theIDE" == "vc" } {
|
if { "$theFormat" == "vc" } {
|
||||||
set p1 "[format %07X [expr { int(rand() * 268435456) }]][format %X [expr { int(rand() * 16) }]]"
|
set p1 "[format %07X [expr { int(rand() * 268435456) }]][format %X [expr { int(rand() * 16) }]]"
|
||||||
set p2 "[format %04X [expr { int(rand() * 6536) }]]"
|
set p2 "[format %04X [expr { int(rand() * 6536) }]]"
|
||||||
set p3 "[format %04X [expr { int(rand() * 6536) }]]"
|
set p3 "[format %04X [expr { int(rand() * 6536) }]]"
|
||||||
@@ -659,6 +822,7 @@ proc osutils:collectinc {theModules theIncPath} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set allHeaderFiles {}
|
||||||
if { $aCopyType == "shortcut" } {
|
if { $aCopyType == "shortcut" } {
|
||||||
# template preparation
|
# template preparation
|
||||||
if { ![file exists $::THE_CASROOT/adm/templates/header.in] } {
|
if { ![file exists $::THE_CASROOT/adm/templates/header.in] } {
|
||||||
@@ -672,11 +836,14 @@ proc osutils:collectinc {theModules theIncPath} {
|
|||||||
|
|
||||||
# create and copy short-cut header files
|
# create and copy short-cut header files
|
||||||
foreach anUnit $anUnits {
|
foreach anUnit $anUnits {
|
||||||
set aHFiles [glob -nocomplain -dir $aCasRoot/src/$anUnit "*.h"]
|
osutils:checksrcfiles ${anUnit}
|
||||||
foreach aHeaderFile [concat [glob -nocomplain -dir $aCasRoot/src/$anUnit "*.\[hgl\]xx"] $aHFiles] {
|
|
||||||
set aHeaderFileName [file tail $aHeaderFile]
|
|
||||||
|
|
||||||
regsub -all -- {@OCCT_HEADER_FILE@} $aHeaderTmpl "$aFromBuildIncToSrcPath/$anUnit/$aHeaderFileName" aShortCutHeaderFileContent
|
set aHFiles [_get_used_files ${anUnit} true false]
|
||||||
|
foreach aHeaderFile ${aHFiles} {
|
||||||
|
set aHeaderFileName [lindex ${aHeaderFile} 1]
|
||||||
|
lappend allHeaderFiles "${aHeaderFileName}"
|
||||||
|
|
||||||
|
regsub -all -- {@OCCT_HEADER_FILE_CONTENT@} $aHeaderTmpl "#include \"$aFromBuildIncToSrcPath/$anUnit/$aHeaderFileName\"" aShortCutHeaderFileContent
|
||||||
|
|
||||||
if {[file exists "$theIncPath/$aHeaderFileName"] && [file readable "$theIncPath/$aHeaderFileName"]} {
|
if {[file exists "$theIncPath/$aHeaderFileName"] && [file readable "$theIncPath/$aHeaderFileName"]} {
|
||||||
set fp [open "$theIncPath/$aHeaderFileName" r]
|
set fp [open "$theIncPath/$aHeaderFileName" r]
|
||||||
@@ -706,12 +873,15 @@ proc osutils:collectinc {theModules theIncPath} {
|
|||||||
} else {
|
} else {
|
||||||
set nbcopied 0
|
set nbcopied 0
|
||||||
foreach anUnit $anUnits {
|
foreach anUnit $anUnits {
|
||||||
set aHFiles [glob -nocomplain -dir $aCasRoot/src/$anUnit "*.h"]
|
osutils:checksrcfiles ${anUnit}
|
||||||
foreach aHeaderFile [concat [glob -nocomplain -dir $aCasRoot/src/$anUnit "*.\[hgl\]xx"] $aHFiles] {
|
|
||||||
set aHeaderFileName [file tail $aHeaderFile]
|
set aHFiles [_get_used_files ${anUnit} true false]
|
||||||
|
foreach aHeaderFile ${aHFiles} {
|
||||||
|
set aHeaderFileName [lindex ${aHeaderFile} 1]
|
||||||
|
lappend allHeaderFiles "${aHeaderFileName}"
|
||||||
|
|
||||||
# copy file only if target does not exist or is older than original
|
# copy file only if target does not exist or is older than original
|
||||||
set torig [file mtime $aHeaderFile]
|
set torig [file mtime $aCasRoot/src/$anUnit/$aHeaderFileName]
|
||||||
set tcopy 0
|
set tcopy 0
|
||||||
if { [file isfile $anIncPath/$aHeaderFileName] } {
|
if { [file isfile $anIncPath/$aHeaderFileName] } {
|
||||||
set tcopy [file mtime $anIncPath/$aHeaderFileName]
|
set tcopy [file mtime $anIncPath/$aHeaderFileName]
|
||||||
@@ -722,17 +892,26 @@ proc osutils:collectinc {theModules theIncPath} {
|
|||||||
if { $tcopy != 0 } {
|
if { $tcopy != 0 } {
|
||||||
file delete -force "$theIncPath/$aHeaderFileName"
|
file delete -force "$theIncPath/$aHeaderFileName"
|
||||||
}
|
}
|
||||||
file link -hard $anIncPath/$aHeaderFileName $aHeaderFile
|
file link -hard $anIncPath/$aHeaderFileName $aCasRoot/src/$anUnit/$aHeaderFileName
|
||||||
} else {
|
} else {
|
||||||
file copy -force $aHeaderFile $anIncPath/$aHeaderFileName
|
file copy -force $aCasRoot/src/$anUnit/$aHeaderFileName $anIncPath/$aHeaderFileName
|
||||||
}
|
}
|
||||||
} elseif { $tcopy != $torig } {
|
} elseif { $tcopy != $torig } {
|
||||||
puts "Warning: file $anIncPath/$aHeaderFileName is newer than $aHeaderFile, not changed!"
|
puts "Warning: file $anIncPath/$aHeaderFileName is newer than $aCasRoot/src/$anUnit/$aHeaderFileName, not changed!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
puts "Info: $nbcopied files updated"
|
puts "Info: $nbcopied files updated"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# remove header files not listed in FILES
|
||||||
|
set anIncFiles [glob -tails -nocomplain -dir ${anIncPath} "*"]
|
||||||
|
foreach anIncFile ${anIncFiles} {
|
||||||
|
if { [lsearch -exact ${allHeaderFiles} ${anIncFile}] == -1 } {
|
||||||
|
puts "Warning: file ${anIncPath}/${anIncFile} is not presented in the sources and will be removed from ${theIncPath}!"
|
||||||
|
file delete -force "${theIncPath}/${anIncFile}"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate header for VS solution file
|
# Generate header for VS solution file
|
||||||
@@ -758,9 +937,9 @@ proc osutils:vcsolution:header { vcversion } {
|
|||||||
"# Visual Studio 2012\n"
|
"# Visual Studio 2012\n"
|
||||||
} elseif { "$vcversion" == "vc12" } {
|
} elseif { "$vcversion" == "vc12" } {
|
||||||
append var \
|
append var \
|
||||||
"Microsoft Visual Studio Solution File, Format Version 13.00\n" \
|
"Microsoft Visual Studio Solution File, Format Version 12.00\n" \
|
||||||
"# Visual Studio 2013\n"
|
"# Visual Studio 2013\n"
|
||||||
} elseif { "$vcversion" == "vc14" } {
|
} elseif { "$vcversion" == "vc14" || "$vcversion" == "vc141"} {
|
||||||
append var \
|
append var \
|
||||||
"Microsoft Visual Studio Solution File, Format Version 12.00\n" \
|
"Microsoft Visual Studio Solution File, Format Version 12.00\n" \
|
||||||
"# Visual Studio 14\n"
|
"# Visual Studio 14\n"
|
||||||
@@ -969,47 +1148,84 @@ proc OS:vcsolution { theVcVer theSolName theModules theOutDir theGuidsMap } {
|
|||||||
}
|
}
|
||||||
# Generate Visual Studio projects for specified version
|
# Generate Visual Studio projects for specified version
|
||||||
|
|
||||||
proc OS:vcproj { theVcVer theModules theOutDir theGuidsMap } {
|
proc OS:vcproj { theVcVer isUWP theModules theOutDir theGuidsMap } {
|
||||||
upvar $theGuidsMap aGuidsMap
|
upvar $theGuidsMap aGuidsMap
|
||||||
|
|
||||||
set aProjectFiles {}
|
set aProjectFiles {}
|
||||||
|
|
||||||
foreach aModule $theModules {
|
foreach aModule $theModules {
|
||||||
foreach aToolKit [${aModule}:toolkits] {
|
foreach aToolKit [${aModule}:toolkits] {
|
||||||
lappend aProjectFiles [osutils:vcproj $theVcVer $theOutDir $aToolKit aGuidsMap]
|
lappend aProjectFiles [osutils:vcproj $theVcVer $isUWP $theOutDir $aToolKit aGuidsMap]
|
||||||
}
|
}
|
||||||
foreach anExecutable [OS:executable ${aModule}] {
|
foreach anExecutable [OS:executable ${aModule}] {
|
||||||
lappend aProjectFiles [osutils:vcprojx $theVcVer $theOutDir $anExecutable aGuidsMap]
|
lappend aProjectFiles [osutils:vcprojx $theVcVer $isUWP $theOutDir $anExecutable aGuidsMap]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $aProjectFiles
|
return $aProjectFiles
|
||||||
}
|
}
|
||||||
# generate template name and load it for given version of Visual Studio and platform
|
# generate template name and load it for given version of Visual Studio and platform
|
||||||
|
|
||||||
proc osutils:vcproj:readtemplate {theVcVer isexec} {
|
proc osutils:vcproj:readtemplate {theVcVer isUWP isExec} {
|
||||||
set anExt $theVcVer
|
set anExt $theVcVer
|
||||||
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
||||||
set anExt vc10
|
set anExt vc10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# determine versions of runtime and toolset
|
||||||
|
set aVCRTVer $theVcVer
|
||||||
|
set aToolset "v[string range $theVcVer 2 3]0"
|
||||||
|
if { $theVcVer == "vc141" } {
|
||||||
|
set aVCRTVer "vc14"
|
||||||
|
set aToolset "v141"
|
||||||
|
}
|
||||||
|
|
||||||
set what "$theVcVer"
|
set what "$theVcVer"
|
||||||
set aVerExt [string range $theVcVer 2 end]
|
|
||||||
set aVerExt "v${aVerExt}0"
|
|
||||||
set aCmpl32 ""
|
set aCmpl32 ""
|
||||||
set aCmpl64 ""
|
set aCmpl64 ""
|
||||||
if { $isexec } {
|
set aCharSet "Unicode"
|
||||||
|
if { $isExec } {
|
||||||
set anExt "${anExt}x"
|
set anExt "${anExt}x"
|
||||||
set what "$what executable"
|
set what "$what executable"
|
||||||
}
|
}
|
||||||
if { "$theVcVer" == "vc10" } {
|
if { "$theVcVer" == "vc10" } {
|
||||||
# SSE2 is enabled by default in vc11+, but not in vc10 for 32-bit target
|
# SSE2 is enabled by default in vc11+, but not in vc10 for 32-bit target
|
||||||
set aCmpl32 "\n <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>"
|
set aCmpl32 "<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>"
|
||||||
}
|
}
|
||||||
set aTmpl [osutils:readtemplate $anExt "MS VC++ project ($what)"]
|
set aTmpl [osutils:readtemplate $anExt "MS VC++ project ($what)"]
|
||||||
regsub -all -- {__VCVER__} $aTmpl $theVcVer aTmpl
|
|
||||||
regsub -all -- {__VCVEREXT__} $aTmpl $aVerExt aTmpl
|
if { $isUWP } {
|
||||||
regsub -all -- {__VCMPL32__} $aTmpl $aCmpl32 aTmpl
|
set UwpWinRt "<CompileAsWinRT>false</CompileAsWinRT>"
|
||||||
regsub -all -- {__VCMPL64__} $aTmpl $aCmpl64 aTmpl
|
foreach bitness {32 64} {
|
||||||
|
set indent ""
|
||||||
|
if {"[set aCmpl${bitness}]" != ""} {
|
||||||
|
set indent "\n "
|
||||||
|
}
|
||||||
|
set aCmpl${bitness} "[set aCmpl${bitness}]${indent}${UwpWinRt}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set format_template "\[\\r\\n\\s\]*"
|
||||||
|
foreach bitness {32 64} {
|
||||||
|
set format_templateloc ""
|
||||||
|
if {"[set aCmpl${bitness}]" == ""} {
|
||||||
|
set format_templateloc "$format_template"
|
||||||
|
}
|
||||||
|
regsub -all -- "${format_templateloc}__VCMPL${bitness}__" $aTmpl "[set aCmpl${bitness}]" aTmpl
|
||||||
|
}
|
||||||
|
|
||||||
|
set aDebugInfo "no"
|
||||||
|
set aReleaseLnk ""
|
||||||
|
if { "$::HAVE_RelWithDebInfo" == "true" } {
|
||||||
|
set aDebugInfo "true"
|
||||||
|
set aReleaseLnk "\n <OptimizeReferences>true</OptimizeReferences>\n <EnableCOMDATFolding>true</EnableCOMDATFolding>"
|
||||||
|
}
|
||||||
|
|
||||||
|
regsub -all -- {__VCVER__} $aTmpl $aVCRTVer aTmpl
|
||||||
|
regsub -all -- {__VCVEREXT__} $aTmpl $aToolset aTmpl
|
||||||
|
regsub -all -- {__VCCHARSET__} $aTmpl $aCharSet aTmpl
|
||||||
|
regsub -all -- {__VCReleasePDB__} $aTmpl $aDebugInfo aTmpl
|
||||||
|
regsub -all -- "${format_template}__VCLNKREL__" $aTmpl "${aReleaseLnk}" aTmpl
|
||||||
|
|
||||||
return $aTmpl
|
return $aTmpl
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1081,6 +1297,9 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } {
|
|||||||
set aLibsMap(CSF_FreeImagePlus) "freeimage"
|
set aLibsMap(CSF_FreeImagePlus) "freeimage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if { "$::HAVE_FFMPEG" == "true" } {
|
||||||
|
set aLibsMap(CSF_FFmpeg) "avcodec avformat swscale avutil"
|
||||||
|
}
|
||||||
if { "$::HAVE_GL2PS" == "true" } {
|
if { "$::HAVE_GL2PS" == "true" } {
|
||||||
set aLibsMap(CSF_GL2PS) "gl2ps"
|
set aLibsMap(CSF_GL2PS) "gl2ps"
|
||||||
}
|
}
|
||||||
@@ -1094,6 +1313,12 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } {
|
|||||||
set aLibsMap(CSF_VTK) [osutils:vtkCsf "unix"]
|
set aLibsMap(CSF_VTK) [osutils:vtkCsf "unix"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if { "$::HAVE_ZLIB" == "true" } {
|
||||||
|
set aLibsMap(CSF_ZLIB) "zlib"
|
||||||
|
}
|
||||||
|
if { "$::HAVE_LIBLZMA" == "true" } {
|
||||||
|
set aLibsMap(CSF_LIBLZMA) "liblzma"
|
||||||
|
}
|
||||||
|
|
||||||
if { "$theOS" == "wnt" } {
|
if { "$theOS" == "wnt" } {
|
||||||
# WinAPI libraries
|
# WinAPI libraries
|
||||||
@@ -1104,7 +1329,6 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } {
|
|||||||
set aLibsMap(CSF_opengl32) "opengl32"
|
set aLibsMap(CSF_opengl32) "opengl32"
|
||||||
set aLibsMap(CSF_wsock32) "wsock32"
|
set aLibsMap(CSF_wsock32) "wsock32"
|
||||||
set aLibsMap(CSF_netapi32) "netapi32"
|
set aLibsMap(CSF_netapi32) "netapi32"
|
||||||
set aLibsMap(CSF_AviLibs) "ws2_32 vfw32"
|
|
||||||
set aLibsMap(CSF_OpenGlLibs) "opengl32"
|
set aLibsMap(CSF_OpenGlLibs) "opengl32"
|
||||||
if { "$::HAVE_GLES2" == "true" } {
|
if { "$::HAVE_GLES2" == "true" } {
|
||||||
set aLibsMap(CSF_OpenGlLibs) "libEGL libGLESv2"
|
set aLibsMap(CSF_OpenGlLibs) "libEGL libGLESv2"
|
||||||
@@ -1315,7 +1539,7 @@ proc wokUtils:FILES:wtail { f n } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Generate entry for one source file in Visual Studio 10 project file
|
# Generate entry for one source file in Visual Studio 10 project file
|
||||||
proc osutils:vcxproj:file { vcversion file params } {
|
proc osutils:vcxproj:file { file params } {
|
||||||
append text " <ClCompile Include=\"..\\..\\..\\[wokUtils:EASY:bs1 [wokUtils:FILES:wtail $file 3]]\">\n"
|
append text " <ClCompile Include=\"..\\..\\..\\[wokUtils:EASY:bs1 [wokUtils:FILES:wtail $file 3]]\">\n"
|
||||||
if { $params != "" } {
|
if { $params != "" } {
|
||||||
append text " <AdditionalOptions Condition=\"\'\$(Configuration)|\$(Platform)\'==\'Debug|Win32\'\">[string trim ${params}] %(AdditionalOptions)</AdditionalOptions>\n"
|
append text " <AdditionalOptions Condition=\"\'\$(Configuration)|\$(Platform)\'==\'Debug|Win32\'\">[string trim ${params}] %(AdditionalOptions)</AdditionalOptions>\n"
|
||||||
@@ -1441,8 +1665,8 @@ proc osutils:readtemplate:rc {theOutDir theToolKit} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Generate Visual Studio project file for ToolKit
|
# Generate Visual Studio project file for ToolKit
|
||||||
proc osutils:vcproj { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {} } } {
|
proc osutils:vcproj { theVcVer isUWP theOutDir theToolKit theGuidsMap } {
|
||||||
if { $theProjTmpl == {} } {set theProjTmpl [osutils:vcproj:readtemplate $theVcVer 0]}
|
set theProjTmpl [osutils:vcproj:readtemplate $theVcVer $isUWP 0]
|
||||||
|
|
||||||
set l_compilable [osutils:compilable wnt]
|
set l_compilable [osutils:compilable wnt]
|
||||||
regsub -all -- {__TKNAM__} $theProjTmpl $theToolKit theProjTmpl
|
regsub -all -- {__TKNAM__} $theProjTmpl $theToolKit theProjTmpl
|
||||||
@@ -1453,7 +1677,14 @@ proc osutils:vcproj { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
}
|
}
|
||||||
regsub -all -- {__PROJECT_GUID__} $theProjTmpl $aGuidsMap($theToolKit) theProjTmpl
|
regsub -all -- {__PROJECT_GUID__} $theProjTmpl $aGuidsMap($theToolKit) theProjTmpl
|
||||||
|
|
||||||
|
set theProjTmpl [osutils:uwp:proj $isUWP ${theProjTmpl}]
|
||||||
|
|
||||||
set aUsedLibs [list]
|
set aUsedLibs [list]
|
||||||
|
|
||||||
|
if { $isUWP } {
|
||||||
|
lappend aUsedLibs "WindowsApp.lib"
|
||||||
|
}
|
||||||
|
|
||||||
foreach tkx [osutils:commonUsedTK $theToolKit] {
|
foreach tkx [osutils:commonUsedTK $theToolKit] {
|
||||||
lappend aUsedLibs "${tkx}.lib"
|
lappend aUsedLibs "${tkx}.lib"
|
||||||
}
|
}
|
||||||
@@ -1465,7 +1696,8 @@ proc osutils:vcproj { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
|
|
||||||
# correct names of referred third-party libraries that are named with suffix
|
# correct names of referred third-party libraries that are named with suffix
|
||||||
# depending on VC version
|
# depending on VC version
|
||||||
regsub -all -- {vc[0-9]+} $aUsedLibs $theVcVer aUsedLibs
|
set aVCRTVer [string range $theVcVer 0 3]
|
||||||
|
regsub -all -- {vc[0-9]+} $aUsedLibs $aVCRTVer aUsedLibs
|
||||||
|
|
||||||
# and put this list to project file
|
# and put this list to project file
|
||||||
#puts "$theToolKit requires $aUsedLibs"
|
#puts "$theToolKit requires $aUsedLibs"
|
||||||
@@ -1519,7 +1751,7 @@ proc osutils:vcproj { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
foreach aSrcFile [lsort $aSrcFiles] {
|
foreach aSrcFile [lsort $aSrcFiles] {
|
||||||
if { ![info exists written([file tail $aSrcFile])] } {
|
if { ![info exists written([file tail $aSrcFile])] } {
|
||||||
set written([file tail $aSrcFile]) 1
|
set written([file tail $aSrcFile]) 1
|
||||||
append aFilesSection [osutils:vcxproj:file $theVcVer $aSrcFile $needparam]
|
append aFilesSection [osutils:vcxproj:file $aSrcFile $needparam]
|
||||||
} else {
|
} else {
|
||||||
puts "Warning : in vcproj more than one occurences for [file tail $aSrcFile]"
|
puts "Warning : in vcproj more than one occurences for [file tail $aSrcFile]"
|
||||||
}
|
}
|
||||||
@@ -1638,14 +1870,11 @@ proc osutils:tk:files { tkloc thePlatform } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Generate Visual Studio project file for executable
|
# Generate Visual Studio project file for executable
|
||||||
proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {} } } {
|
proc osutils:vcprojx { theVcVer isUWP theOutDir theToolKit theGuidsMap } {
|
||||||
set aVcFiles {}
|
set aVcFiles {}
|
||||||
foreach f [osutils:tk:files $theToolKit wnt] {
|
foreach f [osutils:tk:files $theToolKit wnt] {
|
||||||
if { $theProjTmpl == {} } {
|
set aProjTmpl [osutils:vcproj:readtemplate $theVcVer $isUWP 1]
|
||||||
set aProjTmpl [osutils:vcproj:readtemplate $theVcVer 1]
|
|
||||||
} else {
|
|
||||||
set aProjTmpl $theProjTmpl
|
|
||||||
}
|
|
||||||
set aProjName [file rootname [file tail $f]]
|
set aProjName [file rootname [file tail $f]]
|
||||||
set l_compilable [osutils:compilable wnt]
|
set l_compilable [osutils:compilable wnt]
|
||||||
regsub -all -- {__XQTNAM__} $aProjTmpl $aProjName aProjTmpl
|
regsub -all -- {__XQTNAM__} $aProjTmpl $aProjName aProjTmpl
|
||||||
@@ -1668,7 +1897,8 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
|
|
||||||
# correct names of referred third-party libraries that are named with suffix
|
# correct names of referred third-party libraries that are named with suffix
|
||||||
# depending on VC version
|
# depending on VC version
|
||||||
regsub -all -- {vc[0-9]+} $aUsedLibs $theVcVer aUsedLibs
|
set aVCRTVer [string range $theVcVer 0 3]
|
||||||
|
regsub -all -- {vc[0-9]+} $aUsedLibs $aVCRTVer aUsedLibs
|
||||||
|
|
||||||
# puts "$aProjName requires $aUsedLibs"
|
# puts "$aProjName requires $aUsedLibs"
|
||||||
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
||||||
@@ -1683,7 +1913,7 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
set written([file tail $f]) 1
|
set written([file tail $f]) 1
|
||||||
|
|
||||||
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
if { "$theVcVer" != "vc7" && "$theVcVer" != "vc8" && "$theVcVer" != "vc9" } {
|
||||||
append aFilesSection [osutils:vcxproj:file $theVcVer $f ""]
|
append aFilesSection [osutils:vcxproj:file $f ""]
|
||||||
if { ! [info exists aVcFilesX($theToolKit)] } { lappend aVcFilesX(units) $theToolKit }
|
if { ! [info exists aVcFilesX($theToolKit)] } { lappend aVcFilesX(units) $theToolKit }
|
||||||
lappend aVcFilesX($theToolKit) $f
|
lappend aVcFilesX($theToolKit) $f
|
||||||
} else {
|
} else {
|
||||||
@@ -1728,7 +1958,7 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
|
|||||||
set aCommonSettingsFileTmpl [wokUtils:FILES:FileToString "$::THE_CASROOT/adm/templates/vcxproj.user.vc10x"]
|
set aCommonSettingsFileTmpl [wokUtils:FILES:FileToString "$::THE_CASROOT/adm/templates/vcxproj.user.vc10x"]
|
||||||
}
|
}
|
||||||
if { "$aCommonSettingsFileTmpl" != "" } {
|
if { "$aCommonSettingsFileTmpl" != "" } {
|
||||||
regsub -all -- {__VCVER__} $aCommonSettingsFileTmpl $theVcVer aCommonSettingsFileTmpl
|
regsub -all -- {__VCVER__} $aCommonSettingsFileTmpl $aVCRTVer aCommonSettingsFileTmpl
|
||||||
|
|
||||||
set aFile [open [set aVcFilePath "$aCommonSettingsFile"] w]
|
set aFile [open [set aVcFilePath "$aCommonSettingsFile"] w]
|
||||||
fconfigure $aFile -translation crlf
|
fconfigure $aFile -translation crlf
|
||||||
@@ -1893,7 +2123,7 @@ proc osutils:cbptk { theCmpl theOutDir theToolKit thePlatform} {
|
|||||||
set listloc $theToolKit
|
set listloc $theToolKit
|
||||||
}
|
}
|
||||||
|
|
||||||
if { $thePlatform == "wnt" } {
|
if { $thePlatform == "wnt" || $thePlatform == "uwp" } {
|
||||||
set resultloc [osutils:justwnt $listloc]
|
set resultloc [osutils:justwnt $listloc]
|
||||||
} else {
|
} else {
|
||||||
set resultloc [osutils:justunix $listloc]
|
set resultloc [osutils:justunix $listloc]
|
||||||
@@ -1912,7 +2142,7 @@ proc osutils:cbptk { theCmpl theOutDir theToolKit thePlatform} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# macros for correct DLL exports
|
# macros for correct DLL exports
|
||||||
if { $thePlatform == "wnt" } {
|
if { $thePlatform == "wnt" || $thePlatform == "uwp" } {
|
||||||
lappend aTKDefines "__${xlo}_DLL"
|
lappend aTKDefines "__${xlo}_DLL"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2031,7 +2261,7 @@ proc osutils:cbpx { theCmpl theOutDir theToolKit thePlatform } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# macros for correct DLL exports
|
# macros for correct DLL exports
|
||||||
if { $thePlatform == "wnt" } {
|
if { $thePlatform == "wnt" || $thePlatform == "uwp" } {
|
||||||
lappend aTKDefines "__${theToolKit}_DLL"
|
lappend aTKDefines "__${theToolKit}_DLL"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2055,7 +2285,6 @@ proc osutils:cbpx { theCmpl theOutDir theToolKit thePlatform } {
|
|||||||
# @param theDefines - compiler macro definitions
|
# @param theDefines - compiler macro definitions
|
||||||
# @param theIsExe - flag to indicate executable / library target
|
# @param theIsExe - flag to indicate executable / library target
|
||||||
proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibsList theFrameworks theIncPaths theDefines {theIsExe "false"} } {
|
proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibsList theFrameworks theIncPaths theDefines {theIsExe "false"} } {
|
||||||
set aWokStation $thePlatform
|
|
||||||
set aWokArch "$::env(ARCH)"
|
set aWokArch "$::env(ARCH)"
|
||||||
|
|
||||||
set aCmplCbp "gcc"
|
set aCmplCbp "gcc"
|
||||||
@@ -2064,7 +2293,7 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
set aCmplFlagsDebug [list]
|
set aCmplFlagsDebug [list]
|
||||||
set toPassArgsByFile 0
|
set toPassArgsByFile 0
|
||||||
set aLibPrefix "lib"
|
set aLibPrefix "lib"
|
||||||
if { "$aWokStation" == "wnt" || "$aWokStation" == "qnx" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" || "$thePlatform" == "qnx" } {
|
||||||
set toPassArgsByFile 1
|
set toPassArgsByFile 1
|
||||||
}
|
}
|
||||||
if { "$theCmpl" == "msvc" } {
|
if { "$theCmpl" == "msvc" } {
|
||||||
@@ -2079,12 +2308,12 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
lappend aCmplFlags "-D_CRT_SECURE_NO_WARNINGS"
|
lappend aCmplFlags "-D_CRT_SECURE_NO_WARNINGS"
|
||||||
lappend aCmplFlags "-D_CRT_NONSTDC_NO_DEPRECATE"
|
lappend aCmplFlags "-D_CRT_NONSTDC_NO_DEPRECATE"
|
||||||
} elseif { "$theCmpl" == "gcc" } {
|
} elseif { "$theCmpl" == "gcc" } {
|
||||||
if { "$aWokStation" != "qnx" } {
|
if { "$thePlatform" != "qnx" } {
|
||||||
set aCmplFlags "-mmmx -msse -msse2 -mfpmath=sse"
|
set aCmplFlags "-mmmx -msse -msse2 -mfpmath=sse"
|
||||||
}
|
}
|
||||||
set aCmplFlagsRelease "-O2"
|
set aCmplFlagsRelease "-O2"
|
||||||
set aCmplFlagsDebug "-O0 -g"
|
set aCmplFlagsDebug "-O0 -g"
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
lappend aCmplFlags "-std=gnu++0x"
|
lappend aCmplFlags "-std=gnu++0x"
|
||||||
lappend aCmplFlags "-D_WIN32_WINNT=0x0501"
|
lappend aCmplFlags "-D_WIN32_WINNT=0x0501"
|
||||||
} else {
|
} else {
|
||||||
@@ -2098,7 +2327,7 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
lappend aCmplFlagsRelease "-DNDEBUG"
|
lappend aCmplFlagsRelease "-DNDEBUG"
|
||||||
lappend aCmplFlagsRelease "-DNo_Exception"
|
lappend aCmplFlagsRelease "-DNo_Exception"
|
||||||
lappend aCmplFlagsDebug "-D_DEBUG"
|
lappend aCmplFlagsDebug "-D_DEBUG"
|
||||||
if { "$aWokStation" == "qnx" } {
|
if { "$thePlatform" == "qnx" } {
|
||||||
lappend aCmplFlags "-D_QNX_SOURCE"
|
lappend aCmplFlags "-D_QNX_SOURCE"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2120,20 +2349,20 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
# Release target configuration
|
# Release target configuration
|
||||||
puts $aFile "\t\t\t<Target title=\"Release\">"
|
puts $aFile "\t\t\t<Target title=\"Release\">"
|
||||||
if { "$theIsExe" == "true" } {
|
if { "$theIsExe" == "true" } {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/bin/${theProjName}\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/bin/${theProjName}\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
||||||
puts $aFile "\t\t\t\t<Option type=\"1\" />"
|
puts $aFile "\t\t\t\t<Option type=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/bin/${aLibPrefix}${theProjName}\" imp_lib=\"../../../${aWokStation}/cbp/lib/\$(TARGET_OUTPUT_BASENAME)\" prefix_auto=\"1\" extension_auto=\"1\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/bin/${aLibPrefix}${theProjName}\" imp_lib=\"../../../${thePlatform}/cbp/lib/\$(TARGET_OUTPUT_BASENAME)\" prefix_auto=\"1\" extension_auto=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/lib/lib${theProjName}.so\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/lib/lib${theProjName}.so\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t<Option type=\"3\" />"
|
puts $aFile "\t\t\t\t<Option type=\"3\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t<Option object_output=\"../../../${aWokStation}/cbp/obj\" />"
|
puts $aFile "\t\t\t\t<Option object_output=\"../../../${thePlatform}/cbp/obj\" />"
|
||||||
puts $aFile "\t\t\t\t<Option compiler=\"$aCmplCbp\" />"
|
puts $aFile "\t\t\t\t<Option compiler=\"$aCmplCbp\" />"
|
||||||
puts $aFile "\t\t\t\t<Option createDefFile=\"0\" />"
|
puts $aFile "\t\t\t\t<Option createDefFile=\"0\" />"
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
puts $aFile "\t\t\t\t<Option createStaticLib=\"1\" />"
|
puts $aFile "\t\t\t\t<Option createStaticLib=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
puts $aFile "\t\t\t\t<Option createStaticLib=\"0\" />"
|
puts $aFile "\t\t\t\t<Option createStaticLib=\"0\" />"
|
||||||
@@ -2153,15 +2382,15 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
if { $toPassArgsByFile == 1 } {
|
if { $toPassArgsByFile == 1 } {
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"\@$aLnkFileName\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"\@$aLnkFileName\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t\t<Add directory=\"../../../${aWokStation}/cbp/lib\" />"
|
puts $aFile "\t\t\t\t\t<Add directory=\"../../../${thePlatform}/cbp/lib\" />"
|
||||||
if { "$aWokStation" == "mac" } {
|
if { "$thePlatform" == "mac" } {
|
||||||
if { [ lsearch $theLibsList X11 ] >= 0} {
|
if { [ lsearch $theLibsList X11 ] >= 0} {
|
||||||
puts $aFile "\t\t\t\t\t<Add directory=\"/usr/X11/lib\" />"
|
puts $aFile "\t\t\t\t\t<Add directory=\"/usr/X11/lib\" />"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"\$(CSF_OPT_LNK${aWokArch})\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"\$(CSF_OPT_LNK${aWokArch})\" />"
|
||||||
if { "$aWokStation" == "lin" } {
|
if { "$thePlatform" == "lin" } {
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"-Wl,-rpath-link=../../../${aWokStation}/cbp/lib\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"-Wl,-rpath-link=../../../${thePlatform}/cbp/lib\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t</Linker>"
|
puts $aFile "\t\t\t\t</Linker>"
|
||||||
|
|
||||||
@@ -2170,20 +2399,20 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
# Debug target configuration
|
# Debug target configuration
|
||||||
puts $aFile "\t\t\t<Target title=\"Debug\">"
|
puts $aFile "\t\t\t<Target title=\"Debug\">"
|
||||||
if { "$theIsExe" == "true" } {
|
if { "$theIsExe" == "true" } {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/bind/${theProjName}\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/bind/${theProjName}\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
||||||
puts $aFile "\t\t\t\t<Option type=\"1\" />"
|
puts $aFile "\t\t\t\t<Option type=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/bind/${aLibPrefix}${theProjName}\" imp_lib=\"../../../${aWokStation}/cbp/libd/\$(TARGET_OUTPUT_BASENAME)\" prefix_auto=\"1\" extension_auto=\"1\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/bind/${aLibPrefix}${theProjName}\" imp_lib=\"../../../${thePlatform}/cbp/libd/\$(TARGET_OUTPUT_BASENAME)\" prefix_auto=\"1\" extension_auto=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
puts $aFile "\t\t\t\t<Option output=\"../../../${aWokStation}/cbp/libd/lib${theProjName}.so\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
puts $aFile "\t\t\t\t<Option output=\"../../../${thePlatform}/cbp/libd/lib${theProjName}.so\" prefix_auto=\"0\" extension_auto=\"0\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t<Option type=\"3\" />"
|
puts $aFile "\t\t\t\t<Option type=\"3\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t<Option object_output=\"../../../${aWokStation}/cbp/objd\" />"
|
puts $aFile "\t\t\t\t<Option object_output=\"../../../${thePlatform}/cbp/objd\" />"
|
||||||
puts $aFile "\t\t\t\t<Option compiler=\"$aCmplCbp\" />"
|
puts $aFile "\t\t\t\t<Option compiler=\"$aCmplCbp\" />"
|
||||||
puts $aFile "\t\t\t\t<Option createDefFile=\"0\" />"
|
puts $aFile "\t\t\t\t<Option createDefFile=\"0\" />"
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
puts $aFile "\t\t\t\t<Option createStaticLib=\"1\" />"
|
puts $aFile "\t\t\t\t<Option createStaticLib=\"1\" />"
|
||||||
} else {
|
} else {
|
||||||
puts $aFile "\t\t\t\t<Option createStaticLib=\"0\" />"
|
puts $aFile "\t\t\t\t<Option createStaticLib=\"0\" />"
|
||||||
@@ -2203,15 +2432,15 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
if { $toPassArgsByFile == 1 } {
|
if { $toPassArgsByFile == 1 } {
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"\@$aLnkDebFileName\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"\@$aLnkDebFileName\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t\t<Add directory=\"../../../${aWokStation}/cbp/libd\" />"
|
puts $aFile "\t\t\t\t\t<Add directory=\"../../../${thePlatform}/cbp/libd\" />"
|
||||||
if { "$aWokStation" == "mac" } {
|
if { "$thePlatform" == "mac" } {
|
||||||
if { [ lsearch $theLibsList X11 ] >= 0} {
|
if { [ lsearch $theLibsList X11 ] >= 0} {
|
||||||
puts $aFile "\t\t\t\t\t<Add directory=\"/usr/X11/lib\" />"
|
puts $aFile "\t\t\t\t\t<Add directory=\"/usr/X11/lib\" />"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"\$(CSF_OPT_LNK${aWokArch}D)\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"\$(CSF_OPT_LNK${aWokArch}D)\" />"
|
||||||
if { "$aWokStation" == "lin" } {
|
if { "$thePlatform" == "lin" } {
|
||||||
puts $aFile "\t\t\t\t\t<Add option=\"-Wl,-rpath-link=../../../${aWokStation}/cbp/libd\" />"
|
puts $aFile "\t\t\t\t\t<Add option=\"-Wl,-rpath-link=../../../${thePlatform}/cbp/libd\" />"
|
||||||
}
|
}
|
||||||
puts $aFile "\t\t\t\t</Linker>"
|
puts $aFile "\t\t\t\t</Linker>"
|
||||||
|
|
||||||
@@ -2232,7 +2461,7 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
|
|
||||||
# COMMON linker options
|
# COMMON linker options
|
||||||
puts $aFile "\t\t<Linker>"
|
puts $aFile "\t\t<Linker>"
|
||||||
if { "$aWokStation" == "wnt" && "$theCmpl" == "gcc" } {
|
if { "$thePlatform" == "wnt" && "$theCmpl" == "gcc" } {
|
||||||
puts $aFile "\t\t\t<Add option=\"-Wl,--export-all-symbols\" />"
|
puts $aFile "\t\t\t<Add option=\"-Wl,--export-all-symbols\" />"
|
||||||
}
|
}
|
||||||
foreach aFrameworkName $theFrameworks {
|
foreach aFrameworkName $theFrameworks {
|
||||||
@@ -2278,8 +2507,8 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
puts $aFile "\t\t\t<Option link=\"0\" />"
|
puts $aFile "\t\t\t<Option link=\"0\" />"
|
||||||
puts $aFile "\t\t</Unit>"
|
puts $aFile "\t\t</Unit>"
|
||||||
|
|
||||||
set aFileObj [string map {.cxx .o} [string map [list "/src/" "/$aWokStation/cbp/obj/src/"] $aSrcFile]]
|
set aFileObj [string map {.cxx .o} [string map [list "/src/" "/$thePlatform/cbp/obj/src/"] $aSrcFile]]
|
||||||
set aFileObjd [string map {.cxx .o} [string map [list "/src/" "/$aWokStation/cbp/objd/src/"] $aSrcFile]]
|
set aFileObjd [string map {.cxx .o} [string map [list "/src/" "/$thePlatform/cbp/objd/src/"] $aSrcFile]]
|
||||||
puts -nonewline $aFileLnkObj "$aFileObj "
|
puts -nonewline $aFileLnkObj "$aFileObj "
|
||||||
puts -nonewline $aFileLnkObjd "$aFileObjd "
|
puts -nonewline $aFileLnkObjd "$aFileObjd "
|
||||||
} else {
|
} else {
|
||||||
@@ -2288,7 +2517,7 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if { "$aWokStation" == "wnt" } {
|
if { "$thePlatform" == "wnt" || "$thePlatform" == "uwp" } {
|
||||||
close $aFileLnkObj
|
close $aFileLnkObj
|
||||||
close $aFileLnkObjd
|
close $aFileLnkObjd
|
||||||
}
|
}
|
||||||
@@ -2852,12 +3081,12 @@ proc osutils:xcdtk { theOutDir theToolKit theGuidsMap theIsStatic thePlatform {t
|
|||||||
if { "$thePlatform" == "ios" } {
|
if { "$thePlatform" == "ios" } {
|
||||||
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphoneos\*\]\" = \"\$(ARCHS_STANDARD)\";";
|
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphoneos\*\]\" = \"\$(ARCHS_STANDARD)\";";
|
||||||
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphonesimulator\*\]\" = \"x86_64\";";
|
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphonesimulator\*\]\" = \"x86_64\";";
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";"
|
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_MODULES = YES;"
|
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_MODULES = YES;"
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;"
|
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;"
|
||||||
}
|
}
|
||||||
puts $aPbxprojFile "\t\t\t\tARCHS = \"\$(ARCHS_STANDARD_64_BIT)\";"
|
puts $aPbxprojFile "\t\t\t\tARCHS = \"\$(ARCHS_STANDARD_64_BIT)\";"
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";"
|
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";"
|
||||||
|
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"c++0x\";"
|
||||||
puts $aPbxprojFile "\t\t\t\tCOPY_PHASE_STRIP = NO;"
|
puts $aPbxprojFile "\t\t\t\tCOPY_PHASE_STRIP = NO;"
|
||||||
puts $aPbxprojFile "\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;"
|
puts $aPbxprojFile "\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;"
|
||||||
puts $aPbxprojFile "\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;"
|
puts $aPbxprojFile "\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;"
|
||||||
@@ -2895,12 +3124,12 @@ proc osutils:xcdtk { theOutDir theToolKit theGuidsMap theIsStatic thePlatform {t
|
|||||||
if { "$thePlatform" == "ios" } {
|
if { "$thePlatform" == "ios" } {
|
||||||
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphoneos\*\]\" = \"\$(ARCHS_STANDARD)\";";
|
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphoneos\*\]\" = \"\$(ARCHS_STANDARD)\";";
|
||||||
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphonesimulator\*\]\" = \"x86_64\";";
|
puts $aPbxprojFile "\t\t\t\t\"ARCHS\[sdk=iphonesimulator\*\]\" = \"x86_64\";";
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";"
|
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_MODULES = YES;"
|
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_MODULES = YES;"
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;"
|
puts $aPbxprojFile "\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;"
|
||||||
}
|
}
|
||||||
puts $aPbxprojFile "\t\t\t\tARCHS = \"\$(ARCHS_STANDARD_64_BIT)\";"
|
puts $aPbxprojFile "\t\t\t\tARCHS = \"\$(ARCHS_STANDARD_64_BIT)\";"
|
||||||
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";"
|
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";"
|
||||||
|
puts $aPbxprojFile "\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"c++0x\";"
|
||||||
puts $aPbxprojFile "\t\t\t\tCOPY_PHASE_STRIP = YES;"
|
puts $aPbxprojFile "\t\t\t\tCOPY_PHASE_STRIP = YES;"
|
||||||
puts $aPbxprojFile "\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;"
|
puts $aPbxprojFile "\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;"
|
||||||
puts $aPbxprojFile "\t\t\t\tGCC_ENABLE_OBJC_EXCEPTIONS = YES;"
|
puts $aPbxprojFile "\t\t\t\tGCC_ENABLE_OBJC_EXCEPTIONS = YES;"
|
||||||
@@ -3080,3 +3309,93 @@ proc osutils:xcdx { theOutDir theExecutable theGuidsMap } {
|
|||||||
puts $aPlistFile $aPlistTmpl
|
puts $aPlistFile $aPlistTmpl
|
||||||
close $aPlistFile
|
close $aPlistFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Returns available Windows SDKs versions
|
||||||
|
proc osutils:sdk { theSdkMajorVer {isQuietMode false} {theSdkDirectories {}} } {
|
||||||
|
if { ![llength ${theSdkDirectories}] } {
|
||||||
|
foreach anEnvVar { "ProgramFiles" "ProgramFiles\(x86\)" "ProgramW6432" } {
|
||||||
|
if {[ info exists ::env(${anEnvVar}) ]} {
|
||||||
|
lappend theSdkDirectories "$::env(${anEnvVar})/Windows Kits/${theSdkMajorVer}/Include"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set sdk_versions {}
|
||||||
|
foreach sdk_dir ${theSdkDirectories} {
|
||||||
|
if { [file isdirectory ${sdk_dir}] } {
|
||||||
|
lappend sdk_versions [glob -tails -directory "${sdk_dir}" -type d *]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if {![llength ${sdk_versions}] && !${isQuietMode}} {
|
||||||
|
error "Error : Could not find Windows SDK ${theSdkMajorVer}"
|
||||||
|
}
|
||||||
|
|
||||||
|
return [join [lsort -unique ${sdk_versions}] " "]
|
||||||
|
}
|
||||||
|
|
||||||
|
# Generate global properties to Visual Studio project file for UWP solution
|
||||||
|
proc osutils:uwp:proj { isUWP theProjTmpl } {
|
||||||
|
|
||||||
|
set uwp_properties ""
|
||||||
|
set uwp_generate_metadata ""
|
||||||
|
set uwp_app_container ""
|
||||||
|
|
||||||
|
set format_template ""
|
||||||
|
|
||||||
|
if { $isUWP } {
|
||||||
|
set sdk_versions [osutils:sdk 10]
|
||||||
|
set sdk_max_ver [lindex ${sdk_versions} end]
|
||||||
|
|
||||||
|
set uwp_properties "<DefaultLanguage>en-US</DefaultLanguage>\n \
|
||||||
|
<ApplicationType>Windows Store</ApplicationType>\n \
|
||||||
|
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>\n \
|
||||||
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\n \
|
||||||
|
<AppContainerApplication>true</AppContainerApplication>\n \
|
||||||
|
<WindowsTargetPlatformVersion>${sdk_max_ver}</WindowsTargetPlatformVersion>\n \
|
||||||
|
<WindowsTargetPlatformMinVersion>${sdk_max_ver}</WindowsTargetPlatformMinVersion>"
|
||||||
|
|
||||||
|
set uwp_generate_metadata "<GenerateWindowsMetadata>false</GenerateWindowsMetadata>"
|
||||||
|
|
||||||
|
regsub -all -- {[\r\n\s]*<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>} ${theProjTmpl} "" theProjTmpl
|
||||||
|
} else {
|
||||||
|
set format_template "\[\\r\\n\\s\]*"
|
||||||
|
}
|
||||||
|
|
||||||
|
regsub -all -- "${format_template}__UWP_PROPERTIES__" ${theProjTmpl} "${uwp_properties}" theProjTmpl
|
||||||
|
regsub -all -- "${format_template}__UWP_GENERATE_METADATA__" ${theProjTmpl} "${uwp_generate_metadata}" theProjTmpl
|
||||||
|
|
||||||
|
return ${theProjTmpl}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Report all files found in package directory but not listed in FILES
|
||||||
|
proc osutils:checksrcfiles { theUnit } {
|
||||||
|
global path
|
||||||
|
set aCasRoot [file normalize ${path}]
|
||||||
|
|
||||||
|
if {![file isdirectory ${aCasRoot}]} {
|
||||||
|
puts "OCCT directory is not defined correctly: ${aCasRoot}"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
set anUnitAbsPath [file normalize "${aCasRoot}/src/${theUnit}"]
|
||||||
|
|
||||||
|
if {[file exists "${anUnitAbsPath}/FILES"]} {
|
||||||
|
set aFilesFile [open "${anUnitAbsPath}/FILES" rb]
|
||||||
|
set aFilesFileList [split [read ${aFilesFile}] "\n"]
|
||||||
|
close ${aFilesFile}
|
||||||
|
|
||||||
|
set aFilesFileList [lsearch -inline -all -not -exact ${aFilesFileList} ""]
|
||||||
|
|
||||||
|
# report all files not listed in FILES
|
||||||
|
set anAllFiles [glob -tails -nocomplain -dir ${anUnitAbsPath} "*"]
|
||||||
|
foreach aFile ${anAllFiles} {
|
||||||
|
if { "${aFile}" == "FILES" } {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if { [lsearch -exact ${aFilesFileList} ${aFile}] == -1 } {
|
||||||
|
puts "Warning: file ${anUnitAbsPath}/${aFile} is not listed in ${anUnitAbsPath}/FILES!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -32,12 +32,12 @@ proc OCCDoc_ParseArguments {arguments} {
|
|||||||
array set args_values {}
|
array set args_values {}
|
||||||
|
|
||||||
foreach arg $arguments {
|
foreach arg $arguments {
|
||||||
if {[regexp {^(-)[a-z]+$} $arg] == 1} {
|
if {[regexp {^(-)[a-z_]+$} $arg] == 1} {
|
||||||
set name [string range $arg 1 [string length $arg]-1]
|
set name [string range $arg 1 [string length $arg]-1]
|
||||||
lappend args_names $name
|
lappend args_names $name
|
||||||
set args_values($name) "NULL"
|
set args_values($name) "NULL"
|
||||||
continue
|
continue
|
||||||
} elseif {[regexp {^(-)[a-z]+=.+$} $arg] == 1} {
|
} elseif {[regexp {^(-)[a-z_]+=.+$} $arg] == 1} {
|
||||||
set equal_symbol_position [string first "=" $arg]
|
set equal_symbol_position [string first "=" $arg]
|
||||||
set name [string range $arg 1 $equal_symbol_position-1]
|
set name [string range $arg 1 $equal_symbol_position-1]
|
||||||
lappend args_names $name
|
lappend args_names $name
|
||||||
@@ -59,8 +59,19 @@ proc OCCDoc_ParseArguments {arguments} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Returns script parent folder
|
# Returns script parent folder
|
||||||
proc OCCDoc_GetDoxDir {} {
|
proc OCCDoc_GetDoxDir { {theProductsPath ""} } {
|
||||||
return [file normalize [file dirname [info script]]/../dox]
|
if { $theProductsPath == "" } {
|
||||||
|
return [file normalize [file dirname [info script]]/../dox]
|
||||||
|
} else {
|
||||||
|
return [file normalize $theProductsPath]/dox
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Returns products root folder
|
||||||
|
proc OCCDoc_GetProdRootDir {} {
|
||||||
|
if {[info exists ::env(PRODROOT)]} {
|
||||||
|
return [file normalize $::env(PRODROOT)]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Returns OCCT root dir
|
# Returns OCCT root dir
|
||||||
@@ -71,7 +82,6 @@ proc OCCDoc_GetOCCTRootDir {} {
|
|||||||
|
|
||||||
# Returns root dir
|
# Returns root dir
|
||||||
proc OCCDoc_GetRootDir { {theProductsPath ""} } {
|
proc OCCDoc_GetRootDir { {theProductsPath ""} } {
|
||||||
|
|
||||||
if { $theProductsPath == "" } {
|
if { $theProductsPath == "" } {
|
||||||
return [OCCDoc_GetOCCTRootDir]
|
return [OCCDoc_GetOCCTRootDir]
|
||||||
} else {
|
} else {
|
||||||
@@ -736,8 +746,7 @@ proc OCCDoc_PostProcessor {outDir} {
|
|||||||
|
|
||||||
# Loads a list of docfiles from file FILES.txt
|
# Loads a list of docfiles from file FILES.txt
|
||||||
proc OCCDoc_LoadFilesList {} {
|
proc OCCDoc_LoadFilesList {} {
|
||||||
|
set INPUTDIR [OCCDoc_GetDoxDir [OCCDoc_GetProdRootDir]]
|
||||||
set INPUTDIR [OCCDoc_GetDoxDir]
|
|
||||||
|
|
||||||
global available_docfiles
|
global available_docfiles
|
||||||
set available_docfiles {}
|
set available_docfiles {}
|
||||||
@@ -799,7 +808,11 @@ proc OCCDoc_MakeRefmanTex {fileName latexDir verboseMode latexFilesList} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Copy template file to latex folder
|
# Copy template file to latex folder
|
||||||
file copy "[OCCDoc_GetDoxDir]/resources/occt_pdf_template.tex" $DOCNAME
|
if { "[OCCDoc_GetProdRootDir]" != "" } {
|
||||||
|
file copy "[OCCDoc_GetDoxDir [OCCDoc_GetProdRootDir]]/resources/prod_pdf_template.tex" $DOCNAME
|
||||||
|
} else {
|
||||||
|
file copy "[OCCDoc_GetDoxDir]/resources/occt_pdf_template.tex" $DOCNAME
|
||||||
|
}
|
||||||
|
|
||||||
# Get templatized data
|
# Get templatized data
|
||||||
set texfile [open $DOCNAME "r"]
|
set texfile [open $DOCNAME "r"]
|
||||||
@@ -808,6 +821,7 @@ proc OCCDoc_MakeRefmanTex {fileName latexDir verboseMode latexFilesList} {
|
|||||||
|
|
||||||
# Replace dummy values
|
# Replace dummy values
|
||||||
set year [clock format [clock seconds] -format {%Y}]
|
set year [clock format [clock seconds] -format {%Y}]
|
||||||
|
set month [clock format [clock seconds] -format {%B}]
|
||||||
set texfile [open $DOCNAME "w"]
|
set texfile [open $DOCNAME "w"]
|
||||||
set casVersion [OCCDoc_DetectCasVersion]
|
set casVersion [OCCDoc_DetectCasVersion]
|
||||||
|
|
||||||
@@ -815,23 +829,23 @@ proc OCCDoc_MakeRefmanTex {fileName latexDir verboseMode latexFilesList} {
|
|||||||
set docLabel ""
|
set docLabel ""
|
||||||
foreach aFileName $latexFilesList {
|
foreach aFileName $latexFilesList {
|
||||||
# Find the file in FILES_PDF.txt
|
# Find the file in FILES_PDF.txt
|
||||||
set parsedFileName [split $aFileName "/" ]
|
set parsedFileName [file rootname [lindex [split $aFileName "/" ] end]]
|
||||||
set newfileName [string range $fileName [expr [string first "__" $fileName] + 2] end]
|
if { [regexp "${parsedFileName}$" $fileName] } {
|
||||||
|
set filepath "[OCCDoc_GetDoxDir [OCCDoc_GetProdRootDir]]/$aFileName"
|
||||||
if { [lsearch -nocase $parsedFileName "$newfileName.md" ] != -1 } {
|
|
||||||
set filepath "[OCCDoc_GetDoxDir]/$aFileName"
|
|
||||||
if { [file exists $filepath] } {
|
if { [file exists $filepath] } {
|
||||||
set MDFile [open $filepath "r"]
|
set MDFile [open $filepath "r"]
|
||||||
set label [split [gets $MDFile] "\{"]
|
set label [split [gets $MDFile] "\{"]
|
||||||
set docLabel [lindex $label 0]
|
set docLabel [lindex $label 0]
|
||||||
close $MDFile
|
close $MDFile
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set texfile_loaded [string map [list DEFDOCLABEL "$docLabel" DEFCASVERSION "$casVersion" DEFFILENAME "$fileName" DEFYEAR "$year"] $texfile_loaded]
|
set occtlogo_path "[OCCDoc_GetDoxDir]/resources/occt_logo.png"
|
||||||
|
set occlogo_path "[OCCDoc_GetDoxDir]/resources/occ_logo.png"
|
||||||
|
set copyright_path "[OCCDoc_GetDoxDir [OCCDoc_GetProdRootDir]]/resources/prod_pdf_template.tex"
|
||||||
|
set texfile_loaded [string map [list DEFDOCLABEL "$docLabel" DEFCASVERSION "$casVersion" DEFFILENAME "$fileName" DEFYEAR "$year" DEFMONTH "$month" DEFCOPYRIGHT "$copyright_path" DEFLOGO "$occtlogo_path" DEFOCCLOGO "$occlogo_path" DEFTITLE ""] $texfile_loaded]
|
||||||
|
|
||||||
# Get data
|
# Get data
|
||||||
puts $texfile $texfile_loaded
|
puts $texfile $texfile_loaded
|
||||||
@@ -885,4 +899,4 @@ proc OCCDoc_ProcessTex {{texFiles {}} {latexDir} verboseMode} {
|
|||||||
file delete -force $TEX
|
file delete -force $TEX
|
||||||
file rename $TMPFILENAME $TEX
|
file rename $TMPFILENAME $TEX
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -2,6 +2,7 @@
|
|||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@X_COMPILER_BITNESS@'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@X_COMPILER_BITNESS@'">
|
||||||
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
||||||
|
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
||||||
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
||||||
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
||||||
@@ -14,6 +15,7 @@ PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|@X_COMPILER_BITNESS@'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|@X_COMPILER_BITNESS@'">
|
||||||
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
||||||
|
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
||||||
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
||||||
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
||||||
@@ -26,6 +28,7 @@ PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@X_COMPILER_BITNESS@'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@X_COMPILER_BITNESS@'">
|
||||||
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
|
||||||
|
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src
|
||||||
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
|
||||||
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
|
||||||
|
8
adm/templates/android.toolchain.config.cmake
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# A toolchain file to configure a Makefile Generators or the Ninja generator to target Android for cross-compiling.
|
||||||
|
# Set CMAKE_ANDROID_NDK variable equal to your Android NDK path.
|
||||||
|
|
||||||
|
set (CMAKE_SYSTEM_NAME Android)
|
||||||
|
set (CMAKE_SYSTEM_VERSION 15) # API level
|
||||||
|
set (CMAKE_ANDROID_ARCH_ABI armeabi-v7a)
|
||||||
|
set (CMAKE_ANDROID_NDK "")
|
||||||
|
set (CMAKE_ANDROID_STL_TYPE gnustl_shared)
|
@@ -2,13 +2,16 @@ echo off
|
|||||||
|
|
||||||
if /I "%VCVER%" == "@COMPILER@" (
|
if /I "%VCVER%" == "@COMPILER@" (
|
||||||
if "%ARCH%" == "@COMPILER_BITNESS@" (
|
if "%ARCH%" == "@COMPILER_BITNESS@" (
|
||||||
|
rem set environment variables used by OCCT
|
||||||
|
set CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
|
|
||||||
set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@"
|
set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@"
|
||||||
set "TK_DIR=@3RDPARTY_TK_DLL_DIR@"
|
set "TK_DIR=@3RDPARTY_TK_DLL_DIR@"
|
||||||
set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@"
|
set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@"
|
||||||
set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIR@"
|
set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIRS@"
|
||||||
set "EGL_DIR=@3RDPARTY_EGL_DLL_DIR@"
|
set "EGL_DIR=@3RDPARTY_EGL_DLL_DIRS@"
|
||||||
set "GLES2_DIR=@3RDPARTY_GLES2_DLL_DIR@"
|
set "GLES2_DIR=@3RDPARTY_GLES2_DLL_DIRS@"
|
||||||
set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIR@"
|
set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIRS@"
|
||||||
set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@"
|
set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@"
|
||||||
set "VTK_DIR=@3RDPARTY_VTK_DLL_DIR@"
|
set "VTK_DIR=@3RDPARTY_VTK_DLL_DIR@"
|
||||||
|
|
||||||
|
@@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
if [ "$1" == "@BIN_LETTER@" ]; then
|
if [ "$1" == "@BIN_LETTER@" ]; then
|
||||||
if [ "$2" == "@COMPILER_BITNESS@" ]; then
|
if [ "$2" == "@COMPILER_BITNESS@" ]; then
|
||||||
|
# set environment variables used by OCCT
|
||||||
|
export CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
|
|
||||||
export TCL_DIR="@3RDPARTY_TCL_LIBRARY_DIR@"
|
export TCL_DIR="@3RDPARTY_TCL_LIBRARY_DIR@"
|
||||||
export TK_DIR="@3RDPARTY_TK_LIBRARY_DIR@"
|
export TK_DIR="@3RDPARTY_TK_LIBRARY_DIR@"
|
||||||
export FREETYPE_DIR="@3RDPARTY_FREETYPE_LIBRARY_DIR@"
|
export FREETYPE_DIR="@3RDPARTY_FREETYPE_LIBRARY_DIR@"
|
||||||
export FREEIMAGE_DIR="@3RDPARTY_FREEIMAGE_LIBRARY_DIR@"
|
export FREEIMAGE_DIR="@3RDPARTY_FREEIMAGE_LIBRARY_DIRS@"
|
||||||
export GL2PS_DIR="@3RDPARTY_GL2PS_LIBRARY_DIR@"
|
export GL2PS_DIR="@3RDPARTY_GL2PS_LIBRARY_DIRS@"
|
||||||
export TBB_DIR="@3RDPARTY_TBB_LIBRARY_DIR@"
|
export TBB_DIR="@3RDPARTY_TBB_LIBRARY_DIR@"
|
||||||
export VTK_DIR="@3RDPARTY_VTK_LIBRARY_DIR@"
|
export VTK_DIR="@3RDPARTY_VTK_LIBRARY_DIR@"
|
||||||
|
|
||||||
|
@@ -4,31 +4,34 @@ rem CASDEB comes as third argument
|
|||||||
|
|
||||||
if /I "%VCVER%" == "@COMPILER@" (
|
if /I "%VCVER%" == "@COMPILER@" (
|
||||||
if "%ARCH%" == "@COMPILER_BITNESS@" (
|
if "%ARCH%" == "@COMPILER_BITNESS@" (
|
||||||
|
rem set environment variables used by OCCT
|
||||||
|
set CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
|
|
||||||
set "TCL_DIR=@USED_3RDPARTY_TCL_DIR@"
|
set "TCL_DIR=@USED_3RDPARTY_TCL_DIR@"
|
||||||
set "TK_DIR=@USED_3RDPARTY_TK_DIR@"
|
set "TK_DIR=@USED_3RDPARTY_TK_DIR@"
|
||||||
set "FREETYPE_DIR=@USED_3RDPARTY_FREETYPE_DIR@"
|
set "FREETYPE_DIR=@USED_3RDPARTY_FREETYPE_DIR@"
|
||||||
set "FREEIMAGE_DIR=@USED_3RDPARTY_FREEIMAGE_DIR@"
|
set "FREEIMAGE_DIR=@USED_3RDPARTY_FREEIMAGE_DIRS@"
|
||||||
set "EGL_DIR=@USED_3RDPARTY_EGL_DIR@"
|
set "EGL_DIR=@USED_3RDPARTY_EGL_DIRS@"
|
||||||
set "GLES2_DIR=@USED_3RDPARTY_GLES2_DIR@"
|
set "GLES2_DIR=@USED_3RDPARTY_GLES2_DIRS@"
|
||||||
set "GL2PS_DIR=@USED_3RDPARTY_GL2PS_DIR@"
|
set "GL2PS_DIR=@USED_3RDPARTY_GL2PS_DIRS@"
|
||||||
set "TBB_DIR=@USED_3RDPARTY_TBB_DIR@"
|
set "TBB_DIR=@USED_3RDPARTY_TBB_DIR@"
|
||||||
set "VTK_DIR=@USED_3RDPARTY_VTK_DIR@"
|
set "VTK_DIR=@USED_3RDPARTY_VTK_DIR@"
|
||||||
|
|
||||||
set "TCL_VERSION_WITH_DOT=@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
set "TCL_VERSION_WITH_DOT=@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
||||||
set "TK_VERSION_WITH_DOT=@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
set "TK_VERSION_WITH_DOT=@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
||||||
|
|
||||||
set "CSF_OCCTBinPath=@INSTALL_DIR@/@INSTALL_DIR_BIN@%3"
|
set "CSF_OCCTBinPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_BIN@%3"
|
||||||
set "CSF_OCCTLibPath=@INSTALL_DIR@/@INSTALL_DIR_LIB@%3"
|
set "CSF_OCCTLibPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_LIB@%3"
|
||||||
|
|
||||||
set "CSF_OCCTIncludePath=@INSTALL_DIR@/@INSTALL_DIR_INCLUDE@"
|
set "CSF_OCCTIncludePath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_INCLUDE@"
|
||||||
set "CSF_OCCTResourcePath=@INSTALL_DIR@/@INSTALL_DIR_RESOURCE@"
|
set "CSF_OCCTResourcePath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_RESOURCE@"
|
||||||
set "CSF_OCCTDataPath=@INSTALL_DIR@/@INSTALL_DIR_DATA@"
|
set "CSF_OCCTDataPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DATA@"
|
||||||
set "CSF_OCCTSamplesPath=@INSTALL_DIR@/@INSTALL_DIR_SAMPLES@"
|
set "CSF_OCCTSamplesPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SAMPLES@"
|
||||||
set "CSF_OCCTTestsPath=@INSTALL_DIR@/@INSTALL_DIR_TESTS@"
|
set "CSF_OCCTTestsPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_TESTS@"
|
||||||
set "CSF_OCCTDocPath=@INSTALL_DIR@/@INSTALL_DIR_DOC@"
|
set "CSF_OCCTDocPath=@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DOC@"
|
||||||
|
|
||||||
rem for compatability with external application using CASROOT
|
rem for compatability with external application using CASROOT
|
||||||
set "CASROOT=@INSTALL_DIR@"
|
set "CASROOT=@INSTALL_DIR_ABSOLUTE@"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -2,28 +2,31 @@
|
|||||||
|
|
||||||
if [ "$1" == "@BIN_LETTER@" ]; then
|
if [ "$1" == "@BIN_LETTER@" ]; then
|
||||||
if [ "$2" == "@COMPILER_BITNESS@" ]; then
|
if [ "$2" == "@COMPILER_BITNESS@" ]; then
|
||||||
|
# set environment variables used by OCCT
|
||||||
|
export CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
||||||
|
|
||||||
export TCL_DIR="@USED_3RDPARTY_TCL_DIR@"
|
export TCL_DIR="@USED_3RDPARTY_TCL_DIR@"
|
||||||
export TK_DIR="@USED_3RDPARTY_TK_DIR@"
|
export TK_DIR="@USED_3RDPARTY_TK_DIR@"
|
||||||
export FREETYPE_DIR="@USED_3RDPARTY_FREETYPE_DIR@"
|
export FREETYPE_DIR="@USED_3RDPARTY_FREETYPE_DIR@"
|
||||||
export FREEIMAGE_DIR="@USED_3RDPARTY_FREEIMAGE_DIR@"
|
export FREEIMAGE_DIR="@USED_3RDPARTY_FREEIMAGE_DIRS@"
|
||||||
export GL2PS_DIR="@USED_3RDPARTY_GL2PS_DIR@"
|
export GL2PS_DIR="@USED_3RDPARTY_GL2PS_DIRS@"
|
||||||
export TBB_DIR="@USED_3RDPARTY_TBB_DIR@"
|
export TBB_DIR="@USED_3RDPARTY_TBB_DIR@"
|
||||||
export VTK_DIR="@USED_3RDPARTY_VTK_DIR@"
|
export VTK_DIR="@USED_3RDPARTY_VTK_DIR@"
|
||||||
|
|
||||||
export TCL_VERSION_WITH_DOT="@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
export TCL_VERSION_WITH_DOT="@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
||||||
export TK_VERSION_WITH_DOT="@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
export TK_VERSION_WITH_DOT="@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
||||||
|
|
||||||
export CSF_OCCTBinPath="@INSTALL_DIR@/@INSTALL_DIR_BIN@"
|
export CSF_OCCTBinPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_BIN@"
|
||||||
export CSF_OCCTLibPath="@INSTALL_DIR@/@INSTALL_DIR_LIB@"
|
export CSF_OCCTLibPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_LIB@"
|
||||||
export CSF_OCCTIncludePath="@INSTALL_DIR@/@INSTALL_DIR_INCLUDE@"
|
export CSF_OCCTIncludePath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_INCLUDE@"
|
||||||
export CSF_OCCTResourcePath="@INSTALL_DIR@/@INSTALL_DIR_RESOURCE@"
|
export CSF_OCCTResourcePath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_RESOURCE@"
|
||||||
export CSF_OCCTDataPath="@INSTALL_DIR@/@INSTALL_DIR_DATA@"
|
export CSF_OCCTDataPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DATA@"
|
||||||
export CSF_OCCTSamplesPath="@INSTALL_DIR@/@INSTALL_DIR_SAMPLES@"
|
export CSF_OCCTSamplesPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SAMPLES@"
|
||||||
export CSF_OCCTTestsPath="@INSTALL_DIR@/@INSTALL_DIR_TESTS@"
|
export CSF_OCCTTestsPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_TESTS@"
|
||||||
export CSF_OCCTDocPath="@INSTALL_DIR@/@INSTALL_DIR_DOC@"
|
export CSF_OCCTDocPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DOC@"
|
||||||
|
|
||||||
# for compatability with external application using CASROOT
|
# for compatability with external application using CASROOT
|
||||||
export CASROOT="@INSTALL_DIR@"
|
export CASROOT="@INSTALL_DIR_ABSOLUTE@"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -18,10 +18,13 @@ set "VCVARS="
|
|||||||
set "HAVE_TBB=false"
|
set "HAVE_TBB=false"
|
||||||
set "HAVE_OPENCL=false"
|
set "HAVE_OPENCL=false"
|
||||||
set "HAVE_FREEIMAGE=false"
|
set "HAVE_FREEIMAGE=false"
|
||||||
|
set "HAVE_FFMPEG=false"
|
||||||
set "HAVE_GL2PS=false"
|
set "HAVE_GL2PS=false"
|
||||||
set "HAVE_VTK=false"
|
set "HAVE_VTK=false"
|
||||||
set "HAVE_GLES2=false"
|
set "HAVE_GLES2=false"
|
||||||
set "HAVE_D3D=false"
|
set "HAVE_D3D=false"
|
||||||
|
set "HAVE_ZLIB=false"
|
||||||
|
set "HAVE_LIBLZMA=false"
|
||||||
set "CSF_OPT_INC="
|
set "CSF_OPT_INC="
|
||||||
set "CSF_OPT_LIB32="
|
set "CSF_OPT_LIB32="
|
||||||
set "CSF_OPT_LIB64="
|
set "CSF_OPT_LIB64="
|
||||||
@@ -46,6 +49,9 @@ if /I ["%3"] == ["d"] set "CASDEB=d"
|
|||||||
if /I ["%3"] == ["i"] set "CASDEB=i"
|
if /I ["%3"] == ["i"] set "CASDEB=i"
|
||||||
if /I ["%3"] == ["relwithdeb"] set "CASDEB=i"
|
if /I ["%3"] == ["relwithdeb"] set "CASDEB=i"
|
||||||
|
|
||||||
|
rem Decode VCVER
|
||||||
|
call "%~dp0adm\vcver.bat"
|
||||||
|
|
||||||
set "CSF_OPT_LIB32D=%CSF_OPT_LIB32%"
|
set "CSF_OPT_LIB32D=%CSF_OPT_LIB32%"
|
||||||
set "CSF_OPT_LIB64D=%CSF_OPT_LIB64%"
|
set "CSF_OPT_LIB64D=%CSF_OPT_LIB64%"
|
||||||
set "CSF_OPT_BIN32D=%CSF_OPT_BIN32%"
|
set "CSF_OPT_BIN32D=%CSF_OPT_BIN32%"
|
||||||
@@ -58,20 +64,16 @@ set "CSF_OPT_BIN64I=%CSF_OPT_BIN64%"
|
|||||||
rem ----- Optional 3rd-parties should be enabled by HAVE macros -----
|
rem ----- Optional 3rd-parties should be enabled by HAVE macros -----
|
||||||
set "CSF_OPT_CMPL="
|
set "CSF_OPT_CMPL="
|
||||||
set "PRODUCTS_DEFINES="
|
set "PRODUCTS_DEFINES="
|
||||||
if ["%HAVE_TBB%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_TBB"
|
if ["%HAVE_TBB%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_TBB" & set "CSF_DEFINES=HAVE_TBB;%CSF_DEFINES%"
|
||||||
if ["%HAVE_OPENCL%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_OPENCL"
|
if ["%HAVE_OPENCL%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_OPENCL" & set "CSF_DEFINES=HAVE_OPENCL;%CSF_DEFINES%"
|
||||||
if ["%HAVE_GL2PS%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_GL2PS"
|
if ["%HAVE_GL2PS%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_GL2PS" & set "CSF_DEFINES=HAVE_GL2PS;%CSF_DEFINES%"
|
||||||
if ["%HAVE_FREEIMAGE%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_FREEIMAGE"
|
if ["%HAVE_FREEIMAGE%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_FREEIMAGE" & set "CSF_DEFINES=HAVE_FREEIMAGE;%CSF_DEFINES%"
|
||||||
if ["%HAVE_VTK%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_VTK"
|
if ["%HAVE_FFMPEG%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_FFMPEG" & set "CSF_DEFINES=HAVE_FFMPEG;%CSF_DEFINES%"
|
||||||
if ["%HAVE_GLES2%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_GLES2"
|
if ["%HAVE_VTK%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_VTK" & set "CSF_DEFINES=HAVE_VTK;%CSF_DEFINES%"
|
||||||
if ["%HAVE_D3D%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_D3D"
|
if ["%HAVE_GLES2%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_GLES2" & set "CSF_DEFINES=HAVE_GLES2;%CSF_DEFINES%"
|
||||||
if ["%HAVE_TBB%"] == ["true"] set "CSF_DEFINES=HAVE_TBB;%CSF_DEFINES%"
|
if ["%HAVE_D3D%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_D3D" & set "CSF_DEFINES=HAVE_D3D;%CSF_DEFINES%"
|
||||||
if ["%HAVE_OPENCL%"] == ["true"] set "CSF_DEFINES=HAVE_OPENCL;%CSF_DEFINES%"
|
if ["%HAVE_ZLIB%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_ZLIB" & set "CSF_DEFINES=HAVE_ZLIB;%CSF_DEFINES%"
|
||||||
if ["%HAVE_GL2PS%"] == ["true"] set "CSF_DEFINES=HAVE_GL2PS;%CSF_DEFINES%"
|
if ["%HAVE_LIBLZMA%"] == ["true"] set "PRODUCTS_DEFINES=%PRODUCTS_DEFINES% -DHAVE_LIBLZMA" & set "CSF_DEFINES=HAVE_LIBLZMA;%CSF_DEFINES%"
|
||||||
if ["%HAVE_FREEIMAGE%"] == ["true"] set "CSF_DEFINES=HAVE_FREEIMAGE;%CSF_DEFINES%"
|
|
||||||
if ["%HAVE_VTK%"] == ["true"] set "CSF_DEFINES=HAVE_VTK;%CSF_DEFINES%"
|
|
||||||
if ["%HAVE_GLES2%"] == ["true"] set "CSF_DEFINES=HAVE_GLES2;%CSF_DEFINES%"
|
|
||||||
if ["%HAVE_D3D%"] == ["true"] set "CSF_DEFINES=HAVE_D3D;%CSF_DEFINES%"
|
|
||||||
|
|
||||||
rem Eliminate VS warning
|
rem Eliminate VS warning
|
||||||
if ["%CSF_DEFINES%"] == [""] set "CSF_DEFINES=;"
|
if ["%CSF_DEFINES%"] == [""] set "CSF_DEFINES=;"
|
||||||
@@ -112,8 +114,8 @@ if "%CSF_OCCTResourcePath%" == "" set "CSF_OCCTResourcePath=%CASROOT%\src"
|
|||||||
if "%CSF_OCCTSamplesPath%" == "" set "CSF_OCCTSamplesPath=%CASROOT%\samples"
|
if "%CSF_OCCTSamplesPath%" == "" set "CSF_OCCTSamplesPath=%CASROOT%\samples"
|
||||||
if "%CSF_OCCTDataPath%" == "" set "CSF_OCCTDataPath=%CASROOT%\data"
|
if "%CSF_OCCTDataPath%" == "" set "CSF_OCCTDataPath=%CASROOT%\data"
|
||||||
if "%CSF_OCCTTestsPath%" == "" set "CSF_OCCTTestsPath=%CASROOT%\tests"
|
if "%CSF_OCCTTestsPath%" == "" set "CSF_OCCTTestsPath=%CASROOT%\tests"
|
||||||
if "%CSF_OCCTBinPath%" == "" set "CSF_OCCTBinPath=%CASROOT%\win%ARCH%\%VCVER%\bin%CASDEB%"
|
if "%CSF_OCCTBinPath%" == "" set "CSF_OCCTBinPath=%CASROOT%\win%ARCH%\%VCLIB%\bin%CASDEB%"
|
||||||
if "%CSF_OCCTLibPath%" == "" set "CSF_OCCTLibPath=%CASROOT%\win%ARCH%\%VCVER%\lib%CASDEB%"
|
if "%CSF_OCCTLibPath%" == "" set "CSF_OCCTLibPath=%CASROOT%\win%ARCH%\%VCLIB%\lib%CASDEB%"
|
||||||
|
|
||||||
rem ----- Set path to 3rd party and OCCT libraries -----
|
rem ----- Set path to 3rd party and OCCT libraries -----
|
||||||
set "PATH=%CSF_OCCTBinPath%;%PATH%"
|
set "PATH=%CSF_OCCTBinPath%;%PATH%"
|
||||||
@@ -137,8 +139,6 @@ set "CSF_PluginDefaults=%CSF_OCCTResourcePath%\StdResource"
|
|||||||
set "CSF_XCAFDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_XCAFDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_TObjDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_TObjDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_StandardLiteDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_StandardLiteDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_UnitsLexicon=%CSF_OCCTResourcePath%\UnitsAPI\Lexi_Expr.dat"
|
|
||||||
set "CSF_UnitsDefinition=%CSF_OCCTResourcePath%\UnitsAPI\Units.dat"
|
|
||||||
set "CSF_IGESDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
set "CSF_IGESDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
||||||
set "CSF_STEPDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
set "CSF_STEPDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
||||||
set "CSF_XmlOcafResource=%CSF_OCCTResourcePath%\XmlOcafResource"
|
set "CSF_XmlOcafResource=%CSF_OCCTResourcePath%\XmlOcafResource"
|
||||||
|
@@ -17,13 +17,94 @@ if /I ["%3"] == ["d"] set "CASDEB=d"
|
|||||||
if /I ["%3"] == ["i"] set "CASDEB=i"
|
if /I ["%3"] == ["i"] set "CASDEB=i"
|
||||||
if /I ["%3"] == ["relwithdeb"] set "CASDEB=i"
|
if /I ["%3"] == ["relwithdeb"] set "CASDEB=i"
|
||||||
|
|
||||||
|
rem ----- Decode VCVER variable and define related ones -----
|
||||||
|
rem
|
||||||
|
rem VCFMT - "vc" followed by full version number of Visual Studio toolset
|
||||||
|
rem (same as VCVER without optional suffix "-uwp")
|
||||||
|
rem VCLIB - name of folder contining binaries
|
||||||
|
rem (same as VCVER except without third version in number)
|
||||||
|
rem VCPROP - name of required Visual Studion Workload (starting with VS 2017)
|
||||||
|
rem
|
||||||
|
rem Note that for VS before 2015 (vc14) always
|
||||||
|
rem VCFMT=VCLIB=VCVER and VCPROP=NativeDesktop
|
||||||
|
|
||||||
|
rem Since VS 2017, environment variables like VS100COMNTOOLS are not defined
|
||||||
|
rem any more, we can only use vswhere.exe tool to find Visual Studio.
|
||||||
|
rem Add path to vswhere.exe
|
||||||
|
set "PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
|
||||||
|
|
||||||
|
rem for vc10-12, interpretation is trivial
|
||||||
|
set VCFMT=%VCVER%
|
||||||
|
set VCLIB=%VCVER:~0,4%
|
||||||
|
set VCPROP=NativeDesktop
|
||||||
|
rem vc14 and later can have optional suffix "-uwp"
|
||||||
|
if "%VCVER:~-4%" == "-uwp" (
|
||||||
|
set VCFMT=%VCVER:~0,-4%
|
||||||
|
set VCLIB=%VCLIB%-uwp
|
||||||
|
set VCPROP=Universal
|
||||||
|
)
|
||||||
|
rem echo VCVER=%VCVER% VCFMT=%VCFMT% VCLIB=%VCLIB% VCPROP=%VCPROP%
|
||||||
|
|
||||||
|
rem ----- Parsing of Visual Studio platform -----
|
||||||
|
set "VisualStudioExpressName=VCExpress"
|
||||||
|
|
||||||
|
if not "%DevEnvDir%" == "" (
|
||||||
|
rem If DevEnvDir is already defined (e.g. in custom.bat), use that value
|
||||||
|
) else if /I "%VCFMT%" == "vc10" (
|
||||||
|
set "DevEnvDir=%VS100COMNTOOLS%..\IDE"
|
||||||
|
) else if /I "%VCFMT%" == "vc11" (
|
||||||
|
set "DevEnvDir=%VS110COMNTOOLS%..\IDE"
|
||||||
|
rem Visual Studio Express starting from VS 2012 is called "for Windows Desktop"
|
||||||
|
rem and has a new name for executable - WDExpress
|
||||||
|
set "VisualStudioExpressName=WDExpress"
|
||||||
|
) else if /I "%VCFMT%" == "vc12" (
|
||||||
|
set "DevEnvDir=%VS120COMNTOOLS%..\IDE"
|
||||||
|
set "VisualStudioExpressName=WDExpress"
|
||||||
|
) else if /I "%VCFMT%" == "vc14" (
|
||||||
|
set "DevEnvDir=%VS140COMNTOOLS%..\IDE"
|
||||||
|
) else if /I "%VCFMT%" == "vc141" (
|
||||||
|
for /f "usebackq delims=" %%i in (`vswhere.exe -version "[15.0,15.99]" -requires Microsoft.VisualStudio.Workload.%VCPROP% -property installationPath`) do (
|
||||||
|
set "DevEnvDir=%%i\Common7\IDE\"
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
echo Error: wrong VS identifier
|
||||||
|
exit /B
|
||||||
|
)
|
||||||
|
|
||||||
|
rem ----- Parsing vcvarsall for qt samples and define PlatformToolset -----
|
||||||
|
if /I "%VCFMT%" == "vc10" (
|
||||||
|
set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
|
set "VCPlatformToolSet=v100"
|
||||||
|
) else if /I "%VCFMT%" == "vc11" (
|
||||||
|
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
|
set "VCPlatformToolSet=v110"
|
||||||
|
) else if /I "%VCFMT%" == "vc12" (
|
||||||
|
set "VCVARS=%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
|
set "VCPlatformToolSet=v120"
|
||||||
|
) else if /I "%VCFMT%" == "vc14" (
|
||||||
|
set "VCVARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
|
set "VCPlatformToolSet=v140"
|
||||||
|
) else if /I "%VCFMT%" == "vc141" (
|
||||||
|
for /f "usebackq delims=" %%i in (`vswhere.exe -version "[15.0,15.99]" -requires Microsoft.VisualStudio.Workload.%VCPROP% -property installationPath`) do (
|
||||||
|
set "VCVARS=%%i\VC\Auxiliary\Build\vcvarsall.bat"
|
||||||
|
)
|
||||||
|
set "VCPlatformToolSet=v141"
|
||||||
|
) else (
|
||||||
|
echo Error: first argument ^(%VCVER%^) should specify supported version of Visual C++,
|
||||||
|
echo one of: vc10 ^(VS 2010 SP3^), vc11 ^(VS 2012 SP3^), vc12 ^(VS 2013^) or vc14 ^(VS 2015^)
|
||||||
|
exit
|
||||||
|
)
|
||||||
|
|
||||||
|
if ["%ARCH%"] == ["32"] set VCARCH=x86
|
||||||
|
if ["%ARCH%"] == ["64"] set VCARCH=amd64
|
||||||
|
|
||||||
|
if /I ["%1"] == ["vc141"] set "VCVER=vc14"
|
||||||
if exist "%~dp0custom.bat" (
|
if exist "%~dp0custom.bat" (
|
||||||
call "%~dp0custom.bat" %VCVER% %ARCH% %CASDEB%
|
call "%~dp0custom.bat" %VCVER% %ARCH% %CASDEB%
|
||||||
)
|
)
|
||||||
|
|
||||||
rem for compatability with external application using CASROOT
|
rem for compatability with external application using CASROOT
|
||||||
if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
|
if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
|
||||||
set "PRODROOT="
|
|
||||||
|
|
||||||
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
||||||
if not ["%TK_DIR%"] == [""] set "PATH=%TK_DIR%;%PATH%"
|
if not ["%TK_DIR%"] == [""] set "PATH=%TK_DIR%;%PATH%"
|
||||||
@@ -58,8 +139,6 @@ set "CSF_PluginDefaults=%CSF_OCCTResourcePath%\StdResource"
|
|||||||
set "CSF_XCAFDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_XCAFDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_TObjDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_TObjDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_StandardLiteDefaults=%CSF_OCCTResourcePath%\StdResource"
|
set "CSF_StandardLiteDefaults=%CSF_OCCTResourcePath%\StdResource"
|
||||||
set "CSF_UnitsLexicon=%CSF_OCCTResourcePath%\UnitsAPI\Lexi_Expr.dat"
|
|
||||||
set "CSF_UnitsDefinition=%CSF_OCCTResourcePath%\UnitsAPI\Units.dat"
|
|
||||||
set "CSF_IGESDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
set "CSF_IGESDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
||||||
set "CSF_STEPDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
set "CSF_STEPDefaults=%CSF_OCCTResourcePath%\XSTEPResource"
|
||||||
set "CSF_XmlOcafResource=%CSF_OCCTResourcePath%\XmlOcafResource"
|
set "CSF_XmlOcafResource=%CSF_OCCTResourcePath%\XmlOcafResource"
|
||||||
|
@@ -4,8 +4,8 @@ if exist "%~dp0custom.bat" (
|
|||||||
call "%~dp0custom.bat" %1 %2 %3
|
call "%~dp0custom.bat" %1 %2 %3
|
||||||
)
|
)
|
||||||
|
|
||||||
call "@INSTALL_DIR@\@INSTALL_DIR_SCRIPT@\env.bat" %1 %2 %3
|
call "@INSTALL_DIR_ABSOLUTE@\@INSTALL_DIR_SCRIPT@\env.bat" %1 %2 %3
|
||||||
|
if /I ["%1"] == ["vc141"] set "VCVER=vc141"
|
||||||
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
||||||
set "LIB_DIR=win%ARCH%\%VCVER%\libd"
|
set "LIB_DIR=win%ARCH%\%VCVER%\libd"
|
||||||
|
|
||||||
|
@@ -6,8 +6,8 @@ if [ -e "custom.sh" ]; then
|
|||||||
source "custom.sh";
|
source "custom.sh";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "@INSTALL_DIR@/@INSTALL_DIR_SCRIPT@/env.sh" ]; then
|
if [ -e "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh" ]; then
|
||||||
source "@INSTALL_DIR@/@INSTALL_DIR_SCRIPT@/env.sh";
|
source "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${QTDIR}" == ""; then
|
if test "${QTDIR}" == ""; then
|
||||||
|
@@ -10,9 +10,12 @@ export TARGET="";
|
|||||||
export HAVE_TBB="false";
|
export HAVE_TBB="false";
|
||||||
export HAVE_OPENCL="false";
|
export HAVE_OPENCL="false";
|
||||||
export HAVE_FREEIMAGE="false";
|
export HAVE_FREEIMAGE="false";
|
||||||
|
export HAVE_FFMPEG="false";
|
||||||
export HAVE_GL2PS="false";
|
export HAVE_GL2PS="false";
|
||||||
export HAVE_VTK="false";
|
export HAVE_VTK="false";
|
||||||
export HAVE_GLES2="false";
|
export HAVE_GLES2="false";
|
||||||
|
export HAVE_ZLIB="false";
|
||||||
|
export HAVE_LIBLZMA="false";
|
||||||
export MACOSX_USE_GLX="false";
|
export MACOSX_USE_GLX="false";
|
||||||
export CSF_OPT_INC=""
|
export CSF_OPT_INC=""
|
||||||
export CSF_OPT_LIB32=""
|
export CSF_OPT_LIB32=""
|
||||||
@@ -91,28 +94,17 @@ fi
|
|||||||
export CSF_OPT_CMPL=""
|
export CSF_OPT_CMPL=""
|
||||||
|
|
||||||
# Optiona 3rd-parties should be enabled by HAVE macros
|
# Optiona 3rd-parties should be enabled by HAVE macros
|
||||||
if [ "$HAVE_TBB" == "true" ]; then
|
if [ "$HAVE_TBB" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_TBB"; fi
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_TBB"
|
if [ "$HAVE_OPENCL" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_OPENCL"; fi
|
||||||
fi
|
if [ "$HAVE_FREEIMAGE" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_FREEIMAGE"; fi
|
||||||
if [ "$HAVE_OPENCL" == "true" ]; then
|
if [ "$HAVE_FFMPEG" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_FFMPEG"; fi
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_OPENCL"
|
if [ "$HAVE_GL2PS" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_GL2PS"; fi
|
||||||
fi
|
if [ "$HAVE_GLES2" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_GLES2"; fi
|
||||||
if [ "$HAVE_FREEIMAGE" == "true" ]; then
|
if [ "$HAVE_VTK" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_VTK"; fi
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_FREEIMAGE"
|
if [ "$HAVE_ZLIB" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_ZLIB"; fi
|
||||||
fi
|
if [ "$HAVE_LIBLZMA" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_LIBLZMA"; fi
|
||||||
if [ "$HAVE_GL2PS" == "true" ]; then
|
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_GL2PS"
|
|
||||||
fi
|
|
||||||
if [ "$HAVE_GLES2" == "true" ]; then
|
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_GLES2"
|
|
||||||
fi
|
|
||||||
if [ "$HAVE_VTK" == "true" ]; then
|
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DHAVE_VTK"
|
|
||||||
fi
|
|
||||||
# Option to compile OCCT with X11 libs on Mac OS X
|
# Option to compile OCCT with X11 libs on Mac OS X
|
||||||
if [ "$MACOSX_USE_GLX" == "true" ]; then
|
if [ "$MACOSX_USE_GLX" == "true" ]; then export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DMACOSX_USE_GLX"; fi
|
||||||
export CSF_OPT_CMPL="${CSF_OPT_CMPL} -DMACOSX_USE_GLX"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# To split string into array
|
# To split string into array
|
||||||
aDelimBack=$IFS
|
aDelimBack=$IFS
|
||||||
@@ -217,8 +209,6 @@ export CSF_PluginDefaults="${CASROOT}/src/StdResource"
|
|||||||
export CSF_XCAFDefaults="${CASROOT}/src/StdResource"
|
export CSF_XCAFDefaults="${CASROOT}/src/StdResource"
|
||||||
export CSF_TObjDefaults="${CASROOT}/src/StdResource"
|
export CSF_TObjDefaults="${CASROOT}/src/StdResource"
|
||||||
export CSF_StandardLiteDefaults="${CASROOT}/src/StdResource"
|
export CSF_StandardLiteDefaults="${CASROOT}/src/StdResource"
|
||||||
export CSF_UnitsLexicon="${CASROOT}/src/UnitsAPI/Lexi_Expr.dat"
|
|
||||||
export CSF_UnitsDefinition="${CASROOT}/src/UnitsAPI/Units.dat"
|
|
||||||
export CSF_IGESDefaults="${CASROOT}/src/XSTEPResource"
|
export CSF_IGESDefaults="${CASROOT}/src/XSTEPResource"
|
||||||
export CSF_STEPDefaults="${CASROOT}/src/XSTEPResource"
|
export CSF_STEPDefaults="${CASROOT}/src/XSTEPResource"
|
||||||
export CSF_XmlOcafResource="${CASROOT}/src/XmlOcafResource"
|
export CSF_XmlOcafResource="${CASROOT}/src/XmlOcafResource"
|
||||||
|
@@ -114,8 +114,6 @@ export CSF_PluginDefaults="${CSF_OCCTResourcePath}/StdResource"
|
|||||||
export CSF_XCAFDefaults="${CSF_OCCTResourcePath}/StdResource"
|
export CSF_XCAFDefaults="${CSF_OCCTResourcePath}/StdResource"
|
||||||
export CSF_TObjDefaults="${CSF_OCCTResourcePath}/StdResource"
|
export CSF_TObjDefaults="${CSF_OCCTResourcePath}/StdResource"
|
||||||
export CSF_StandardLiteDefaults="${CSF_OCCTResourcePath}/StdResource"
|
export CSF_StandardLiteDefaults="${CSF_OCCTResourcePath}/StdResource"
|
||||||
export CSF_UnitsLexicon="${CSF_OCCTResourcePath}/UnitsAPI/Lexi_Expr.dat"
|
|
||||||
export CSF_UnitsDefinition="${CSF_OCCTResourcePath}/UnitsAPI/Units.dat"
|
|
||||||
export CSF_IGESDefaults="${CSF_OCCTResourcePath}/XSTEPResource"
|
export CSF_IGESDefaults="${CSF_OCCTResourcePath}/XSTEPResource"
|
||||||
export CSF_STEPDefaults="${CSF_OCCTResourcePath}/XSTEPResource"
|
export CSF_STEPDefaults="${CSF_OCCTResourcePath}/XSTEPResource"
|
||||||
export CSF_XmlOcafResource="${CSF_OCCTResourcePath}/XmlOcafResource"
|
export CSF_XmlOcafResource="${CSF_OCCTResourcePath}/XmlOcafResource"
|
||||||
|
@@ -1 +1 @@
|
|||||||
#include "@OCCT_HEADER_FILE@"
|
@OCCT_HEADER_FILE_CONTENT@
|
||||||
|
@@ -12,22 +12,28 @@ if not "%4" == "" (
|
|||||||
|
|
||||||
set "VisualStudioExpressName=VCExpress"
|
set "VisualStudioExpressName=VCExpress"
|
||||||
|
|
||||||
if /I "%VCVER%" == "vc8" (
|
if not "%DevEnvDir%" == "" (
|
||||||
|
rem If DevEnvDir is already defined (e.g. in custom.bat), use that value
|
||||||
|
) else if /I "%VCFMT%" == "vc8" (
|
||||||
set "DevEnvDir=%VS80COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS80COMNTOOLS%..\IDE"
|
||||||
) else if /I "%VCVER%" == "vc9" (
|
) else if /I "%VCFMT%" == "vc9" (
|
||||||
set "DevEnvDir=%VS90COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS90COMNTOOLS%..\IDE"
|
||||||
) else if /I "%VCVER%" == "vc10" (
|
) else if /I "%VCFMT%" == "vc10" (
|
||||||
set "DevEnvDir=%VS100COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS100COMNTOOLS%..\IDE"
|
||||||
) else if /I "%VCVER%" == "vc11" (
|
) else if /I "%VCFMT%" == "vc11" (
|
||||||
set "DevEnvDir=%VS110COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS110COMNTOOLS%..\IDE"
|
||||||
rem Visual Studio Express starting from VS 2012 is called "for Windows Desktop"
|
rem Visual Studio Express starting from VS 2012 is called "for Windows Desktop"
|
||||||
rem and has a new name for executable - WDExpress
|
rem and has a new name for executable - WDExpress
|
||||||
set "VisualStudioExpressName=WDExpress"
|
set "VisualStudioExpressName=WDExpress"
|
||||||
) else if /I "%VCVER%" == "vc12" (
|
) else if /I "%VCFMT%" == "vc12" (
|
||||||
set "DevEnvDir=%VS120COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS120COMNTOOLS%..\IDE"
|
||||||
set "VisualStudioExpressName=WDExpress"
|
set "VisualStudioExpressName=WDExpress"
|
||||||
) else if /I "%VCVER%" == "vc14" (
|
) else if /I "%VCFMT%" == "vc14" (
|
||||||
set "DevEnvDir=%VS140COMNTOOLS%..\IDE"
|
set "DevEnvDir=%VS140COMNTOOLS%..\IDE"
|
||||||
|
) else if /I "%VCFMT%" == "vc141" (
|
||||||
|
for /f "usebackq delims=" %%i in (`vswhere.exe -version "[15.0,15.99]" -requires Microsoft.VisualStudio.Workload.%VCPROP% -property installationPath`) do (
|
||||||
|
set DevEnvDir=%%i\Common7\IDE
|
||||||
|
)
|
||||||
) else (
|
) else (
|
||||||
echo Error: wrong VS identifier
|
echo Error: wrong VS identifier
|
||||||
exit /B
|
exit /B
|
||||||
@@ -40,5 +46,5 @@ if exist "%DevEnvDir%\devenv.exe" (
|
|||||||
start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
|
start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
|
||||||
) else (
|
) else (
|
||||||
echo Error: Could not find MS Visual Studio ^(%VCVER%^)
|
echo Error: Could not find MS Visual Studio ^(%VCVER%^)
|
||||||
echo Check relevant environment variable ^(e.g. VS80COMNTOOLS for vc8^)
|
echo For VS 2010-2015, check relevant environment variable ^(e.g. VS100COMNTOOLS^)
|
||||||
)
|
)
|
||||||
|
@@ -20,23 +20,28 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>__PROJECT_GUID__</ProjectGuid>
|
<ProjectGuid>__PROJECT_GUID__</ProjectGuid>
|
||||||
|
__UWP_PROPERTIES__
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
||||||
|
<CharacterSet>__VCCHARSET__</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
||||||
|
<CharacterSet>__VCCHARSET__</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
||||||
|
<CharacterSet>__VCCHARSET__</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
<PlatformToolset>__VCVEREXT__</PlatformToolset>
|
||||||
|
<CharacterSet>__VCCHARSET__</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
@@ -96,21 +101,25 @@
|
|||||||
<WarningLevel>Level4</WarningLevel>
|
<WarningLevel>Level4</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<FloatingPointModel>Precise</FloatingPointModel>__VCMPL32__
|
<FloatingPointModel>Precise</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
__VCMPL32__
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>NDEBUG;No_Exception;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;No_Exception;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>__TKDEP__;ws2_32.lib;vfw32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\..\..\..\win32\__VCVER__\bin\__TKNAM__.dll</OutputFile>
|
<OutputFile>.\..\..\..\win32\__VCVER__\bin\__TKNAM__.dll</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
<GenerateDebugInformation>__VCReleasePDB__</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\..\..\..\win32\__VCVER__\bin\__TKNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\..\..\..\win32\__VCVER__\bin\__TKNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win32\__VCVER__\lib\__TKNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win32\__VCVER__\lib\__TKNAM__.lib</ImportLibrary>
|
||||||
|
__VCLNKREL__
|
||||||
|
__UWP_GENERATE_METADATA__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
@@ -141,14 +150,16 @@
|
|||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
<FloatingPointModel>Precise</FloatingPointModel>__VCMPL32__
|
<FloatingPointModel>Precise</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
__VCMPL32__
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>_DEBUG;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>__TKDEP__;ws2_32.lib;vfw32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\..\..\..\win32\__VCVER__\bind\__TKNAM__.dll</OutputFile>
|
<OutputFile>.\..\..\..\win32\__VCVER__\bind\__TKNAM__.dll</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\libd;$(CSF_OPT_LIB32D);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\libd;$(CSF_OPT_LIB32D);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
@@ -156,6 +167,7 @@
|
|||||||
<ProgramDatabaseFile>..\..\..\win32\__VCVER__\bind\__TKNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>..\..\..\win32\__VCVER__\bind\__TKNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win32\__VCVER__\libd\__TKNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win32\__VCVER__\libd\__TKNAM__.lib</ImportLibrary>
|
||||||
|
__UWP_GENERATE_METADATA__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
@@ -185,21 +197,25 @@
|
|||||||
<WarningLevel>Level4</WarningLevel>
|
<WarningLevel>Level4</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<FloatingPointModel>Precise</FloatingPointModel>__VCMPL64__
|
<FloatingPointModel>Precise</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
__VCMPL64__
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>NDEBUG;No_Exception;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;No_Exception;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>__TKDEP__;ws2_32.lib;vfw32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\..\..\..\win64\__VCVER__\bin\__TKNAM__.dll</OutputFile>
|
<OutputFile>.\..\..\..\win64\__VCVER__\bin\__TKNAM__.dll</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
<GenerateDebugInformation>__VCReleasePDB__</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\..\..\..\win64\__VCVER__\bin\__TKNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\..\..\..\win64\__VCVER__\bin\__TKNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win64\__VCVER__\lib\__TKNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win64\__VCVER__\lib\__TKNAM__.lib</ImportLibrary>
|
||||||
|
__VCLNKREL__
|
||||||
|
__UWP_GENERATE_METADATA__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
@@ -230,14 +246,16 @@
|
|||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
<FloatingPointModel>Precise</FloatingPointModel>__VCMPL64__
|
<FloatingPointModel>Precise</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
__VCMPL64__
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>_DEBUG;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;$(CSF_DEFINES)__TKDEFS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>__TKDEP__;ws2_32.lib;vfw32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\..\..\..\win64\__VCVER__\bind\__TKNAM__.dll</OutputFile>
|
<OutputFile>.\..\..\..\win64\__VCVER__\bind\__TKNAM__.dll</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\libd;$(CSF_OPT_LIB64D);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\libd;$(CSF_OPT_LIB64D);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
@@ -245,6 +263,7 @@
|
|||||||
<ProgramDatabaseFile>..\..\..\win64\__VCVER__\bind\__TKNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>..\..\..\win64\__VCVER__\bind\__TKNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win64\__VCVER__\libd\__TKNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win64\__VCVER__\libd\__TKNAM__.lib</ImportLibrary>
|
||||||
|
__UWP_GENERATE_METADATA__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@@ -106,10 +106,11 @@
|
|||||||
<AdditionalDependencies>__TKDEP__;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
<GenerateDebugInformation>__VCReleasePDB__</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\..\..\..\win32\__VCVER__\bin\__XQTNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\..\..\..\win32\__VCVER__\bin\__XQTNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win32\__VCVER__\lib\__XQTNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win32\__VCVER__\lib\__XQTNAM__.lib</ImportLibrary>
|
||||||
|
__VCLNKREL__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
@@ -193,10 +194,11 @@
|
|||||||
<AdditionalDependencies>__TKDEP__;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>__TKDEP__;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
<GenerateDebugInformation>__VCReleasePDB__</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\..\..\..\win64\__VCVER__\bin\__XQTNAM__.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\..\..\..\win64\__VCVER__\bin\__XQTNAM__.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<ImportLibrary>..\..\..\win64\__VCVER__\lib\__XQTNAM__.lib</ImportLibrary>
|
<ImportLibrary>..\..\..\win64\__VCVER__\lib\__XQTNAM__.lib</ImportLibrary>
|
||||||
|
__VCLNKREL__
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc7\bin\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc7\bin\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc7\bind\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc7\bind\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
|
@@ -78,7 +78,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc8\bin\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc8\bin\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc8\bind\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc8\bind\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win64\vc8\bin\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win64\vc8\bin\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -376,7 +376,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib vfw32.lib odbc32.lib odbccp32.lib"
|
AdditionalDependencies="__TKDEP__ opengl32.lib ws2_32.lib odbc32.lib odbccp32.lib"
|
||||||
OutputFile=".\..\..\..\win64\vc8\bind\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win64\vc8\bind\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
|
@@ -79,7 +79,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ ws2_32.lib vfw32.lib"
|
AdditionalDependencies="__TKDEP__ ws2_32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc9\bin\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc9\bin\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ ws2_32.lib vfw32.lib"
|
AdditionalDependencies="__TKDEP__ ws2_32.lib"
|
||||||
OutputFile=".\..\..\..\win32\vc9\bind\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win32\vc9\bind\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -272,7 +272,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ ws2_32.lib vfw32.lib"
|
AdditionalDependencies="__TKDEP__ ws2_32.lib"
|
||||||
OutputFile=".\..\..\..\win64\vc9\bin\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win64\vc9\bin\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -368,7 +368,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="__TKDEP__ ws2_32.lib vfw32.lib"
|
AdditionalDependencies="__TKDEP__ ws2_32.lib"
|
||||||
OutputFile=".\..\..\..\win64\vc9\bind\__TKNAM__.dll"
|
OutputFile=".\..\..\..\win64\vc9\bind\__TKNAM__.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
BRepExtrema_OverlappedSubShapes BRepExtrema_MapOfIntegerPackedMapOfInteger
|
BRepExtrema_OverlappedSubShapes BRepExtrema_MapOfIntegerPackedMapOfInteger
|
||||||
ShapeConstruct_CompBezierCurves2dToBSplineCurve2d Convert_CompBezierCurves2dToBSplineCurve2d
|
ShapeConstruct_CompBezierCurves2dToBSplineCurve2d Convert_CompBezierCurves2dToBSplineCurve2d
|
||||||
ShapeConstruct_CompBezierCurves2dToBSplineCurve Convert_CompBezierCurves2dToBSplineCurve
|
ShapeConstruct_CompBezierCurves2dToBSplineCurve Convert_CompBezierCurves2dToBSplineCurve
|
||||||
|
Image_PixMap::Img Image_Format_
|
||||||
|
|
||||||
[tcollection]
|
[tcollection]
|
||||||
AdvApp2Var_SequenceOfNode
|
AdvApp2Var_SequenceOfNode
|
||||||
@@ -800,13 +801,6 @@ TDF_LabelSequence
|
|||||||
TDocStd_LabelIDMapDataMap
|
TDocStd_LabelIDMapDataMap
|
||||||
TDocStd_SequenceOfApplicationDelta
|
TDocStd_SequenceOfApplicationDelta
|
||||||
TDocStd_SequenceOfDocument
|
TDocStd_SequenceOfDocument
|
||||||
TestTopOpeDraw_Array1OfDrawableMesure
|
|
||||||
TestTopOpeDraw_Array1OfDrawableP3D
|
|
||||||
TestTopOpeDraw_HArray1OfDrawableMesure
|
|
||||||
TestTopOpeDraw_HArray1OfDrawableP3D
|
|
||||||
TestTopOpeDraw_ListOfPnt2d
|
|
||||||
TestTopOpeTools_Array1OfMesure
|
|
||||||
TestTopOpeTools_HArray1OfMesure
|
|
||||||
TFunction_Array1OfDataMapOfGUIDDriver
|
TFunction_Array1OfDataMapOfGUIDDriver
|
||||||
TFunction_DataMapOfGUIDDriver
|
TFunction_DataMapOfGUIDDriver
|
||||||
TFunction_DataMapOfLabelListOfLabel
|
TFunction_DataMapOfLabelListOfLabel
|
||||||
|
30
adm/vcver.bat
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
@echo off
|
||||||
|
rem Decode VCVER variable and define related ones:
|
||||||
|
rem
|
||||||
|
rem VCFMT - "vc" followed by full version number of Visual Studio toolset
|
||||||
|
rem (same as VCVER without optional suffix "-uwp")
|
||||||
|
rem VCLIB - name of folder contining binaries
|
||||||
|
rem (same as VCVER except without third version in number)
|
||||||
|
rem VCPROP - name of required Visual Studion Workload (starting with VS 2017)
|
||||||
|
rem
|
||||||
|
rem Note that for VS before 2015 (vc14) always
|
||||||
|
rem VCFMT=VCLIB=VCVER and VCPROP=NativeDesktop
|
||||||
|
|
||||||
|
rem Since VS 2017, environment variables like VS100COMNTOOLS are not defined
|
||||||
|
rem any more, we can only use vswhere.exe tool to find Visual Studio.
|
||||||
|
rem Add path to vswhere.exe
|
||||||
|
set "PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
|
||||||
|
|
||||||
|
rem for vc10-12, interpretation is trivial
|
||||||
|
set VCFMT=%VCVER%
|
||||||
|
set VCLIB=%VCVER:~0,4%
|
||||||
|
set VCPROP=NativeDesktop
|
||||||
|
|
||||||
|
rem vc14 and later can have optional suffix "-uwp"
|
||||||
|
if "%VCVER:~-4%" == "-uwp" (
|
||||||
|
set VCFMT=%VCVER:~0,-4%
|
||||||
|
set VCLIB=%VCLIB%-uwp
|
||||||
|
set VCPROP=Universal
|
||||||
|
)
|
||||||
|
|
||||||
|
rem echo VCVER=%VCVER% VCFMT=%VCFMT% VCLIB=%VCLIB% VCPROP=%VCPROP%
|
0
samples/mfc/standard/04_Viewer3d/Data/carrelage1.gif → data/images/carrelage1.gif
Executable file → Normal file
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
0
samples/mfc/standard/04_Viewer3d/Data/chataignier.gif → data/images/chataignier.gif
Executable file → Normal file
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
0
samples/mfc/standard/04_Viewer3d/Data/cookerplate.gif → data/images/cookerplate.gif
Executable file → Normal file
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
0
samples/mfc/standard/04_Viewer3d/Data/plancher.gif → data/images/plancher.gif
Executable file → Normal file
Before Width: | Height: | Size: 188 KiB After Width: | Height: | Size: 188 KiB |
0
samples/mfc/standard/04_Viewer3d/Data/terrain.gif → data/images/terrain.gif
Executable file → Normal file
Before Width: | Height: | Size: 222 KiB After Width: | Height: | Size: 222 KiB |
0
samples/mfc/standard/04_Viewer3d/Data/wallpaper.gif → data/images/wallpaper.gif
Executable file → Normal file
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
1131
data/occ/Ball.brep
Normal file
0
samples/mfc/standard/09_Animation/data/Box.brep → data/occ/Box.brep
Executable file → Normal file
0
samples/mfc/standard/09_Animation/data/MAT.brep → data/occ/MAT.brep
Executable file → Normal file
0
samples/mfc/standard/09_Animation/data/MAT.pnt → data/occ/MAT.pnt
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Chair_1.brep → data/occ/MODERN_Chair_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Cooker_1.brep → data/occ/MODERN_Cooker_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Cooker_1_opened.brep → data/occ/MODERN_Cooker_1_opened.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Exhaust_1.brep → data/occ/MODERN_Exhaust_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_MVCooker_1.brep → data/occ/MODERN_MVCooker_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_MVCooker_1_opened.brep → data/occ/MODERN_MVCooker_1_opened.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Refrigerator_1.brep → data/occ/MODERN_Refrigerator_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Refrigerator_1_opened.brep → data/occ/MODERN_Refrigerator_1_opened.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Sink_1.brep → data/occ/MODERN_Sink_1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Sink_1_opened.brep → data/occ/MODERN_Sink_1_opened.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/MODERN_Table_1.brep → data/occ/MODERN_Table_1.brep
Executable file → Normal file
0
samples/mfc/standard/Data/Pump_Nut.brep → data/occ/Pump_Nut.brep
Executable file → Normal file
0
samples/mfc/standard/Data/Pump_TopCover.brep → data/occ/Pump_TopCover.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/Kitchen/Room.brep → data/occ/Room.brep
Executable file → Normal file
0
samples/mfc/standard/01_Geometry/Data/SurfaceFromPoints/sol1.dat → data/occ/SurfaceFromPoints/sol1.dat
Executable file → Normal file
0
samples/mfc/standard/01_Geometry/Data/SurfaceFromPoints/sol2.dat → data/occ/SurfaceFromPoints/sol2.dat
Executable file → Normal file
0
samples/mfc/standard/09_Animation/data/asahi.brep → data/occ/asahi.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/bottle.brep → data/occ/bottle.brep
Executable file → Normal file
0
samples/mfc/standard/03_Viewer2d/data/Face.BRep → data/occ/face2.brep
Executable file → Normal file
0
samples/mfc/standard/01_Geometry/Data/shell1.brep → data/occ/shell1.brep
Executable file → Normal file
0
samples/mfc/standard/04_Viewer3d/Data/terrain.brep → data/occ/terrain.brep
Executable file → Normal file
0
samples/mfc/standard/Data/wedge_ok.brep → data/occ/wedge_ok.brep
Executable file → Normal file
@@ -35,7 +35,7 @@ endif()
|
|||||||
# configuration file for doxygen
|
# configuration file for doxygen
|
||||||
set (OCCT_CONFIG_FOR_DOXYGEN "${OCCT_GENERATED_DOC_DIR}/occt.cfg")
|
set (OCCT_CONFIG_FOR_DOXYGEN "${OCCT_GENERATED_DOC_DIR}/occt.cfg")
|
||||||
|
|
||||||
set (3RDPARTY_MATHJAX_RELATIVE_PATH "http://cdn.mathjax.org/mathjax/latest")
|
set (3RDPARTY_MATHJAX_RELATIVE_PATH "https://cdn.mathjax.org/mathjax/latest")
|
||||||
|
|
||||||
configure_file ("${OCCT_OVERVIEW_RESOURCE_DIR}/occt_ug_html.doxyfile" "${OCCT_CONFIG_FOR_DOXYGEN}" COPYONLY)
|
configure_file ("${OCCT_OVERVIEW_RESOURCE_DIR}/occt_ug_html.doxyfile" "${OCCT_CONFIG_FOR_DOXYGEN}" COPYONLY)
|
||||||
|
|
||||||
@@ -92,11 +92,22 @@ file (APPEND ${OCCT_CONFIG_FOR_DOXYGEN} "\nMATHJAX_RELPATH = ${3RDPARTY_M
|
|||||||
# Copy index file to provide fast access to HTML documentation
|
# Copy index file to provide fast access to HTML documentation
|
||||||
file(COPY "${OCCT_OVERVIEW_RESOURCE_DIR}/index.html" DESTINATION "${OCCT_GENERATED_OVERVIEW_DIR}")
|
file(COPY "${OCCT_OVERVIEW_RESOURCE_DIR}/index.html" DESTINATION "${OCCT_GENERATED_OVERVIEW_DIR}")
|
||||||
|
|
||||||
add_custom_target (${PROJECT_NAME}
|
# get relative paths to documentation source files
|
||||||
COMMAND ${3RDPARTY_DOXYGEN_EXECUTABLE} ${OCCT_CONFIG_FOR_DOXYGEN}
|
file (GLOB_RECURSE OCCT_OVERVIEW_FILES "${OCCT_OVERVIEW_DIR}/*")
|
||||||
WORKING_DIRECTORY ${OCCT_GENERATED_DOC_DIR}
|
|
||||||
COMMENT "Generating OCCT overview documentation with Doxygen"
|
|
||||||
SOURCES ${OCCT_ARTICLES_ABSPATH}
|
|
||||||
VERBATIM)
|
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT "${OCCT_GENERATED_DOC_DIR}/overview/html/occt_logo.png"
|
||||||
|
COMMAND ${3RDPARTY_DOXYGEN_EXECUTABLE} ${OCCT_CONFIG_FOR_DOXYGEN}
|
||||||
|
DEPENDS ${OCCT_OVERVIEW_FILES}
|
||||||
|
WORKING_DIRECTORY ${OCCT_GENERATED_DOC_DIR}
|
||||||
|
COMMENT "Generating OCCT overview documentation with Doxygen"
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(${PROJECT_NAME} ALL
|
||||||
|
DEPENDS "${OCCT_GENERATED_DOC_DIR}/overview/html/occt_logo.png" ${OCCT_OVERVIEW_FILES}
|
||||||
|
SOURCES ${OCCT_ARTICLES_ABSPATH}
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create Documentation folder in solution view
|
||||||
set_property (TARGET ${PROJECT_NAME} PROPERTY FOLDER "Documentation")
|
set_property (TARGET ${PROJECT_NAME} PROPERTY FOLDER "Documentation")
|
||||||
|
@@ -112,13 +112,11 @@ FreeType is required for text display in a 3D viewer. You can download its sourc
|
|||||||
|
|
||||||
5. If you build FreeType for a 64 bit platform, select in the main menu **Build - Configuration Manager** and add *x64* platform to the solution configuration by copying the settings from Win32 platform:
|
5. If you build FreeType for a 64 bit platform, select in the main menu **Build - Configuration Manager** and add *x64* platform to the solution configuration by copying the settings from Win32 platform:
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image001.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image001.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image001.png
|
|
||||||
|
|
||||||
Update the value of the Output File for x64 configuration:
|
Update the value of the Output File for x64 configuration:
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image003.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image003.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image003.png
|
|
||||||
|
|
||||||
Build the *freetype* project.
|
Build the *freetype* project.
|
||||||
|
|
||||||
@@ -207,24 +205,20 @@ You can download its sources from http://geuz.org/gl2ps/src/.
|
|||||||
|
|
||||||
* Press **Configure** button.
|
* Press **Configure** button.
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image004.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image004.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image004.png
|
|
||||||
|
|
||||||
* Select the generator (the compiler and the target platform -- 32 or 64 bit) in the pop-up window.
|
* Select the generator (the compiler and the target platform -- 32 or 64 bit) in the pop-up window.
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image005.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image005.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image005.png
|
|
||||||
|
|
||||||
* Press **Finish** button to return to the main CMake window.
|
* Press **Finish** button to return to the main CMake window.
|
||||||
Expand the ENABLE group and uncheck ENABLE_PNG and ENABLE_ZLIB check boxes.
|
Expand the ENABLE group and uncheck ENABLE_PNG and ENABLE_ZLIB check boxes.
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image006.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image006.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image006.png
|
|
||||||
|
|
||||||
* Expand the CMAKE group and define *CMAKE_INSTALL_PREFIX* which is the path where you want to install the build results, for example, *c:\\occ3rdparty\\gl2ps-1.3.5*.
|
* Expand the CMAKE group and define *CMAKE_INSTALL_PREFIX* which is the path where you want to install the build results, for example, *c:\\occ3rdparty\\gl2ps-1.3.5*.
|
||||||
|
|
||||||
@image html /dev_guides/building/3rdparty/images/3rdparty_image007.png
|
@figure{/dev_guides/building/3rdparty/images/3rdparty_image007.png}
|
||||||
@image latex /dev_guides/building/3rdparty/images/3rdparty_image007.png
|
|
||||||
|
|
||||||
* Press **Configure** button again, then press **Generate** button to generate Visual Studio projects. After completion, close CMake application.
|
* Press **Configure** button again, then press **Generate** button to generate Visual Studio projects. After completion, close CMake application.
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 130 KiB |
@@ -10,32 +10,40 @@ The steps on Windows and Ubuntu are similar. There is the only one difference: m
|
|||||||
on Windows and native GNU make on Ubuntu.
|
on Windows and native GNU make on Ubuntu.
|
||||||
|
|
||||||
Required tools (download and install if it is required):
|
Required tools (download and install if it is required):
|
||||||
- CMake v3.0+ http://www.cmake.org/cmake/resources/software.html
|
- CMake v3.7+ http://www.cmake.org/cmake/resources/software.html
|
||||||
- Cross-compilation toolchain for CMake https://github.com/taka-no-me/android-cmake
|
|
||||||
- Android NDK rev.10+ https://developer.android.com/tools/sdk/ndk/index.html
|
- Android NDK rev.10+ https://developer.android.com/tools/sdk/ndk/index.html
|
||||||
- GNU Make: MinGW v4.82+ for Windows (http://sourceforge.net/projects/mingw/files/), GNU Make 4.0 for Ubuntu.
|
- GNU Make: MinGW v4.82+ for Windows (http://sourceforge.net/projects/mingw/files/), GNU Make 4.0 for Ubuntu.
|
||||||
|
|
||||||
## Generation of makefiles
|
## Prerequisites
|
||||||
|
|
||||||
|
In toolchain file <i>$CASROOT/adm/templates/android.toolchain.config.cmake</i>:
|
||||||
|
|
||||||
|
- Set CMAKE_ANDROID_NDK variable equal to your Android NDK path.
|
||||||
|
- Set CMAKE_ANDROID_STL_TYPE variable to specify which C++ standard library to use.
|
||||||
|
|
||||||
|
The default value of CMAKE_ANDROID_STL_TYPE is <i>gnustl_shared</i> (GNU libstdc++ Shared)
|
||||||
|
|
||||||
|
@figure{/dev_guides/building/android/images/android_image001.png}
|
||||||
|
|
||||||
|
## Generation of makefiles using CMake GUI tool
|
||||||
Run GUI tool provided by CMake: cmake-gui
|
Run GUI tool provided by CMake: cmake-gui
|
||||||
|
|
||||||
### Tools configuration
|
### Tools configuration
|
||||||
- Specify the root folder of OCCT (<i>$CASROOT</i>, which contains *CMakelists.txt* file) by clicking **Browse Source**.
|
- Specify the root folder of OCCT (<i>$CASROOT</i>, which contains *CMakelists.txt* file) by clicking **Browse Source**.
|
||||||
- Specify the location (build folder) for Cmake generated project files by clicking **Browse Build**.
|
- Specify the location (build folder) for Cmake generated project files by clicking **Browse Build**.
|
||||||
|
|
||||||
@figure{/dev_guides/building/android/images/android_image001.png}
|
@figure{/dev_guides/building/android/images/android_image002.png}
|
||||||
|
|
||||||
Click **Configure** button. It opens the window with a drop-down list of generators supported by CMake project.
|
Click **Configure** button. It opens the window with a drop-down list of generators supported by CMake project.
|
||||||
|
|
||||||
Select "MinGW MakeFiles" item from the list
|
Select "MinGW Makefiles" item from the list
|
||||||
- Choose "Specify toolchain file for cross-compiling"
|
- Choose "Specify toolchain file for cross-compiling"
|
||||||
- Click "Next"
|
- Click "Next"
|
||||||
@figure{/dev_guides/building/android/images/android_image002.png}
|
|
||||||
|
|
||||||
- Specify a toolchain file at the next dialog by android.toolchain.cmake . It is contained by cross-compilation toolchain for CMake
|
|
||||||
- Click "Finish"
|
|
||||||
@figure{/dev_guides/building/android/images/android_image003.png}
|
@figure{/dev_guides/building/android/images/android_image003.png}
|
||||||
|
|
||||||
If ANDROID_NDK environment variable is not defined in current OS, add cache entry ANDROID_NDK (entry type is PATH) -- path to the NDK folder ("Add Entry" button)
|
- Specify a toolchain file at the next dialog by <i>android.toolchain.config.cmake</i> . It is contained by cross-compilation toolchain for CMake
|
||||||
|
- Click "Finish"
|
||||||
@figure{/dev_guides/building/android/images/android_image004.png}
|
@figure{/dev_guides/building/android/images/android_image004.png}
|
||||||
|
|
||||||
If on Windows the message is appeared: "CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles"
|
If on Windows the message is appeared: "CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles"
|
||||||
@@ -46,18 +54,19 @@ specify **CMAKE_MAKE_PROGRAM** to mingw32-make executable.
|
|||||||
### OCCT Configuration
|
### OCCT Configuration
|
||||||
|
|
||||||
How to configure OCCT, see "OCCT Configuration" section of @ref occt_dev_guides__building_cmake "Building with CMake"
|
How to configure OCCT, see "OCCT Configuration" section of @ref occt_dev_guides__building_cmake "Building with CMake"
|
||||||
taking into account the specific configuration variables for android:
|
|
||||||
- ANDROID_ABI = armeabi-v7a
|
|
||||||
- ANDROID_NATIVE_API_LEVEL = 15
|
|
||||||
- ANDROID_NDK_LAYOUT is equal to CMAKE_BUILD_TYPE variable
|
|
||||||
- **BUILD_MODULE_Draw = OFF**
|
|
||||||
|
|
||||||
@figure{/dev_guides/building/android/images/android_image006.png}
|
|
||||||
|
|
||||||
### Generation of makefiles
|
### Generation of makefiles
|
||||||
|
|
||||||
Click **Generate** button and wait until the generation process is finished.
|
Click **Generate** button and wait until the generation process is finished.
|
||||||
Then makefiles will appear in the build folder (e.g. <i> D:/tmp/occt-android </i>).
|
Then makefiles will appear in the build folder (e.g. <i> D:/occt/build-android </i>).
|
||||||
|
|
||||||
|
## Generation of makefiles using CMake from the command line
|
||||||
|
|
||||||
|
Alternatively one may specify the values without a toolchain file:
|
||||||
|
|
||||||
|
> cmake -G "MinGW Makefiles" -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=D:/DevTools/android-ndk-r13b -DCMAKE_ANDROID_STL_TYPE=gnustl_shared -DCMAKE_SYSTEM_VERSION=15 -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_MAKE_PROGRAM=D:/DevTools/MinGW/bin/mingw32-make.exe -D3RDPARTY_DIR=D:/occt-3rdparty D:/occt
|
||||||
|
|
||||||
|
@figure{/dev_guides/building/android/images/android_image006.png}
|
||||||
|
|
||||||
## Building makefiles of OCCT
|
## Building makefiles of OCCT
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 98 KiB |
@@ -5,26 +5,26 @@ Building with CMake {#occt_dev_guides__building_cmake}
|
|||||||
|
|
||||||
@section build_cmake_intro General
|
@section build_cmake_intro General
|
||||||
|
|
||||||
This article describes the **CMake**-based build process which is now suggested as a standard way to produce the binaries of Open CASCADE Technology from sources. *OCCT requires CMake version 2.8.12 or later*.
|
This article describes the **CMake**-based build process, which is now suggested as a standard way to produce the binaries of Open CASCADE Technology from sources. *OCCT requires CMake version 2.8.12 or later*.
|
||||||
|
|
||||||
@note Comparing to the previous (6.x) releases of Open CASCADE Technology, OCCT 7.0 comes with a complete set of CMake scripts and projects, so that there is no need to use WOK anymore. Moreover, CMake gives you a powerful configuration tool which allows to control many aspects of OCCT deployment. At the same time this tool is quite intuitive which is a significant advantage over the legacy WOK utilities.
|
@note Compared to the previous (6.x) releases of Open CASCADE Technology, OCCT 7.x has a complete set of CMake scripts and projects, so that there is no need to use WOK anymore. Moreover, CMake gives you a powerful configuration tool, which allows to control many aspects of OCCT deployment. At the same time this tool is quite intuitive, which is a significant advantage over the legacy WOK utilities.
|
||||||
|
|
||||||
Here we describe the build procedure on example of Windows platform with Visual Studio 2010.
|
Here we describe the build procedure on the example of Windows platform with Visual Studio 2010.
|
||||||
However, CMake is cross-platform and can be used to build OCCT on Linux and OS X in essentially the same way.
|
However, CMake is cross-platform and can be used to build OCCT on Linux and OS X in essentially the same way.
|
||||||
|
|
||||||
@note Before you start, make sure to have installed all the 3-rd party products that you are going to use with OCCT; see @ref occt_dev_guides__building.
|
@note Before you start, make sure to have installed all 3-rd party products that you are going to use with OCCT; see @ref occt_dev_guides__building.
|
||||||
|
|
||||||
@section build_cmake_start Start CMake
|
@section build_cmake_start Start CMake
|
||||||
|
|
||||||
CMake is a tool that generates the actual project files for the selected target build system (e.g. Unix makefiles) or IDE (e.g. Visual Studio 2010).
|
CMake is a tool that generates the actual project files for the selected target build system (e.g. Unix makefiles) or IDE (e.g. Visual Studio 2010).
|
||||||
|
|
||||||
For unexpericnced users we recommend to start with *cmake-gui* -- cross-platform GUI tool provided by CMake on Windows, Mac and Linux.
|
For unexperienced users we recommend to start with *cmake-gui* -- a cross-platform GUI tool provided by CMake on Windows, Mac and Linux.
|
||||||
A command-line alternative, *ccmake* also can be used.
|
A command-line alternative, *ccmake* can also be used.
|
||||||
|
|
||||||
CMake deals with three directories: source, build or binary and install.
|
CMake deals with three directories: source, build or binary and installation.
|
||||||
|
|
||||||
* The source directory is where the sources of OCCT are located in your filesystem
|
* The source directory is where the sources of OCCT are located in your file system;
|
||||||
* The build or binary directory is where all the files created during CMake configuration and generation process will be located. The mentioned process will be described below.
|
* The build or binary directory is where all files created during CMake configuration and generation process will be located. The mentioned process will be described below.
|
||||||
* The installation directory is where binaries will be installed after building the *INSTALL* project that is created by CMake generation process, along with header files and resources required for OCCT use in applications.
|
* The installation directory is where binaries will be installed after building the *INSTALL* project that is created by CMake generation process, along with header files and resources required for OCCT use in applications.
|
||||||
|
|
||||||
The good practice is not to use the source directory as a build one.
|
The good practice is not to use the source directory as a build one.
|
||||||
@@ -48,9 +48,9 @@ If the command-line tool is used, run the tool from the build directory with a s
|
|||||||
|
|
||||||
Press *c* to configure.
|
Press *c* to configure.
|
||||||
|
|
||||||
All required actions in the configuration process will be described with using the GUI tool below.
|
All actions required in the configuration process with the GUI tool will be described below.
|
||||||
|
|
||||||
If the gui-tool is used, run the tool without additional arguments and after that specify the source directory by clicking **Browse Source** and the build (binary) one by clicking **Browse Build**.
|
If the GUI tool is used, run this tool without additional arguments and after that specify the source directory by clicking **Browse Source** and the build (binary) one by clicking **Browse Build**.
|
||||||
|
|
||||||
@figure{/dev_guides/building/cmake/images/cmake_image001.png}
|
@figure{/dev_guides/building/cmake/images/cmake_image001.png}
|
||||||
|
|
||||||
@@ -60,29 +60,31 @@ Once the source and build directories are selected, "Configure" button should be
|
|||||||
|
|
||||||
@figure{/dev_guides/building/cmake/images/cmake_image002.png}
|
@figure{/dev_guides/building/cmake/images/cmake_image002.png}
|
||||||
|
|
||||||
To build OCCT with using Universal Windows Platform (UWP) specify path to toolchain file for cross-compiling <i>d:/occt/adm/templates/uwp.toolchain.config.cmake</i>.
|
To build OCCT for **Universal Windows Platform (UWP)** specify the path to toolchain file for cross-compiling <i>d:/occt/adm/templates/uwp.toolchain.config.cmake</i>.
|
||||||
|
|
||||||
**Note**: Universal Windows Platform (UWP) is supported only on "Visual Studio 14 2015". File <i>d:/occt/samples/xaml/ReadMe.md</i> desribes building procedure of XAML (UWP) sample.
|
Alternatively, if you are using CMake from the command line add options -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 .
|
||||||
|
|
||||||
Once "Finish" button is pressed, the first pass of the configuration process is executed. At the end of the process, CMake outputs the list of environment variables which have to be properly specified for successful configuration.
|
**Note**: Universal Windows Platform (UWP) is supported only on "Visual Studio 14 2015". File <i>d:/occt/samples/xaml/ReadMe.md</i> describes the building procedure of XAML (UWP) sample.
|
||||||
|
|
||||||
|
Once "Finish" button is pressed, the first pass of the configuration process is executed. At the end of the process, CMake outputs the list of environment variables, which have to be properly specified for successful configuration.
|
||||||
|
|
||||||
@figure{/dev_guides/building/cmake/images/cmake_image003.png}
|
@figure{/dev_guides/building/cmake/images/cmake_image003.png}
|
||||||
|
|
||||||
The error message provides an information about these variables. This message will appear after each pass of the process until all required variables are specified correctly.
|
The error message provides some information about these variables. This message will appear after each pass of the process until all required variables are specified correctly.
|
||||||
|
|
||||||
The change of the state of some variables can lead to the appearance of new variables. The new variables appeared after the pass of the configuration process is notified with red color by CMake GUI tool.
|
The change of the state of some variables can lead to the appearance of new variables. The new variables appeared after the pass of the configuration process are highlighted with red color by CMake GUI tool.
|
||||||
|
|
||||||
Note: There is "grouped" option which groups variables with a common prefix.
|
Note: There is "grouped" option, which groups variables with a common prefix.
|
||||||
|
|
||||||
The following table enumerates the full list of environment variables used at configuration stage:
|
The following table gives the full list of environment variables used at the configuration stage:
|
||||||
|
|
||||||
| Variable | Type | Purpose |
|
| Variable | Type | Purpose |
|
||||||
|----------|------|---------|
|
|----------|------|---------|
|
||||||
| CMAKE_BUILD_TYPE | String | Specifies the build type on single-configuration generators (sush as make). Possible values are Debug, Release and RelWithDebInfo |
|
| CMAKE_BUILD_TYPE | String | Specifies the build type on single-configuration generators (such as make). Possible values are Debug, Release and RelWithDebInfo |
|
||||||
| USE_FREEIMAGE | Boolean flag | Indicates whether Freeimage product should be used in OCCT visualization module for support of popular graphics image formats (PNG, BMP etc) |
|
| USE_FREEIMAGE | Boolean flag | Indicates whether FreeImage product should be used in OCCT visualization module for support of popular graphics image formats (PNG, BMP, etc.) |
|
||||||
| USE_GL2PS | Boolean flag | Indicates whether GL2PS product should be used in OCCT visualization module for support of vector image formats (PS, EPS etc) |
|
| USE_GL2PS | Boolean flag | Indicates whether GL2PS product should be used in OCCT visualization module for support of vector image formats (PS, EPS, etc.) |
|
||||||
| USE_TBB | Boolean flag | Indicates whether TBB 3rd party is used or not. TBB stands for Threading Building Blocks, the technology of Intel Corp, which comes with different mechanisms and patterns for injecting parallelism into your application. OCCT remains parallel even without TBB product |
|
| USE_TBB | Boolean flag | Indicates whether TBB 3rd party is used or not. TBB stands for Threading Building Blocks, the technology of Intel Corp, which comes with different mechanisms and patterns for injecting parallelism into your application. OCCT remains parallel even without TBB product |
|
||||||
| USE_VTK | Boolean flag | Indicates whether VTK 3rd party is used or not. VTK stands for Visualization ToolKit, the technology of Kitware Inc intended for general-purpose scientific visualization. OCCT comes with a bridge between CAD data representation and VTK by means of its dedicated VIS component (VTK Integration Services). You may skip this 3rd party unless you are planning to use VTK visualization for OCCT geometry. The official documentation @ref occt_user_guides__vis for the details on VIS |
|
| USE_VTK | Boolean flag | Indicates whether VTK 3rd party is used or not. VTK stands for Visualization ToolKit, the technology of Kitware Inc intended for general-purpose scientific visualization. OCCT comes with a bridge between CAD data representation and VTK by means of its dedicated VIS component (VTK Integration Services). You may skip this 3rd party unless you are planning to use VTK visualization for OCCT geometry. See the official documentation @ref occt_user_guides__vis for the details on VIS |
|
||||||
| 3RDPARTY_DIR | Path | Defines the root directory where all required 3rd party products will be searched. Once you define this path it is very convenient to click "Configure" button in order to let CMake automatically detect all necessary products|
|
| 3RDPARTY_DIR | Path | Defines the root directory where all required 3rd party products will be searched. Once you define this path it is very convenient to click "Configure" button in order to let CMake automatically detect all necessary products|
|
||||||
| 3RDPARTY_FREETYPE_* | Path | Path to Freetype binaries |
|
| 3RDPARTY_FREETYPE_* | Path | Path to Freetype binaries |
|
||||||
| 3RDPARTY_TCL_* 3RDPARTY_TK_* | Path | Path to Tcl/Tk binaries |
|
| 3RDPARTY_TCL_* 3RDPARTY_TK_* | Path | Path to Tcl/Tk binaries |
|
||||||
@@ -91,20 +93,22 @@ The following table enumerates the full list of environment variables used at co
|
|||||||
| 3RDPARTY_TBB* | Path | Path to TBB binaries |
|
| 3RDPARTY_TBB* | Path | Path to TBB binaries |
|
||||||
| 3RDPARTY_VTK_* | Path | Path to VTK binaries |
|
| 3RDPARTY_VTK_* | Path | Path to VTK binaries |
|
||||||
| BUILD_MODULE_<MODULE>| Boolean flag | Indicates whether the corresponding OCCT module should be built or not. It should be noted that some toolkits of a module can be built even if this module is not checked (this happens if some other modules depend on these toolkits). The main modules and their descriptions can be found in @ref user_guides |
|
| BUILD_MODULE_<MODULE>| Boolean flag | Indicates whether the corresponding OCCT module should be built or not. It should be noted that some toolkits of a module can be built even if this module is not checked (this happens if some other modules depend on these toolkits). The main modules and their descriptions can be found in @ref user_guides |
|
||||||
| BUILD_LIBRARY_TYPE | String | Specifies the type of library to be created. "Shared" libraries are linked dynamically and loaded at runtime. "Static" libraries are archives of object files for use when linking other targets |
|
| BUILD_LIBRARY_TYPE | String | Specifies the type of library to be created. "Shared" libraries are linked dynamically and loaded at runtime. "Static" libraries are archives of object files used when linking other targets |
|
||||||
| BUILD_ADDITIONAL_TOOLKITS | String | Semicolon-separated individual toolkits to include into build process. If you want to build some particular libraries (toolkits) only, then you may uncheck all modules in the corresponding *BUILD_MODUE_\<MODULE\>* options and provide the list of necessary libraries here. Of course, all dependencies will be resolved automatically |
|
| BUILD_ADDITIONAL_TOOLKITS | String | Semicolon-separated individual toolkits to include into build process. If you want to build some particular libraries (toolkits) only, then you may uncheck all modules in the corresponding *BUILD_MODUE_\<MODULE\>* options and provide the list of necessary libraries here. Of course, all dependencies will be resolved automatically |
|
||||||
| BUILD_YACCLEX | Boolean flag | Enables Flex/Bison lexical analyzers. OCCT source files relating to STEP reader and ExprIntrp functionality are generated automatically with Flex/Bison. Checking this options leads to automatic search of Flex/Bison binaries and regeneration of the mentioned files |
|
| BUILD_YACCLEX | Boolean flag | Enables Flex/Bison lexical analyzers. OCCT source files relating to STEP reader and ExprIntrp functionality are generated automatically with Flex/Bison. Checking this option leads to automatic search of Flex/Bison binaries and regeneration of the mentioned files |
|
||||||
| BUILD_MODULE_MfcSamples | Boolean flag | Indicates whether MFC samples should be built together with OCCT. This option is only relevant to Windows platforms |
|
| BUILD_MODULE_MfcSamples | Boolean flag | Indicates whether MFC samples should be built together with OCCT. This option is only relevant to Windows platforms |
|
||||||
| BUILD_DOC_Overview | Boolean flag | Indicates whether OCCT overview documentation project should be created together with OCCT. It is not built together with OCCT. Checking this options leads to automatic search of Doxygen binaries. Building of it will be call Doxygen command to generate the documentation in HTML format |
|
| BUILD_DOC_Overview | Boolean flag | Indicates whether OCCT overview documentation project should be created together with OCCT. It is not built together with OCCT. Checking this option leads to automatic search of Doxygen binaries. Its building calls Doxygen command to generate the documentation in HTML format |
|
||||||
| BUILD_PATCH | Path | Points to the directory recognized as a "patch" for OCCT. If specified, the files from this directory take precedence over the corresponding native OCCT sources. This way you are able to introduce patches to Open CASCADE Technology not affecting the original source distribution |
|
| BUILD_PATCH | Path | Points to the directory recognized as a "patch" for OCCT. If specified, the files from this directory take precedence over the corresponding native OCCT sources. This way you are able to introduce patches to Open CASCADE Technology not affecting the original source distribution |
|
||||||
| BUILD_WITH_DEBUG | Boolean flag | Enables extended messages of many OCCT algorithms, usually printed to cout. These include messages on internal errors and special cases encountered, timing etc |
|
| BUILD_WITH_DEBUG | Boolean flag | Enables extended messages of many OCCT algorithms, usually printed to cout. These include messages on internal errors and special cases encountered, timing, etc. |
|
||||||
|
| BUILD_ENABLE_FPE_SIGNAL_HANDLER | Boolean flag | Enable/Disable the floating point exceptions (FPE) during DRAW execution only. Corresponding environment variable (CSF_FPE) can be changed manually in custom.bat/sh scripts without regeneration by CMake. |
|
||||||
| CMAKE_CONFIGURATION_TYPES | String | Semicolon-separated CMake configurations |
|
| CMAKE_CONFIGURATION_TYPES | String | Semicolon-separated CMake configurations |
|
||||||
| INSTALL_DIR | Path | Points to the installation directory. INSTALL_DIR is synonym of CMAKE_INSTALL_PREFIX . User can specify both INSTALL_DIR or CMAKE_INSTALL_PREFIX |
|
| INSTALL_DIR | Path | Points to the installation directory. *INSTALL_DIR* is a synonym of *CMAKE_INSTALL_PREFIX*. The user can specify both *INSTALL_DIR* or *CMAKE_INSTALL_PREFIX* |
|
||||||
| INSTALL_DIR_BIN | Path | Relative path to the binaries installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_BIN}) |
|
| INSTALL_DIR_BIN | Path | Relative path to the binaries installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_BIN}) |
|
||||||
| INSTALL_DIR_SCRIPT | Path | Relative path to the scripts installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}) |
|
| INSTALL_DIR_SCRIPT | Path | Relative path to the scripts installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}) |
|
||||||
| INSTALL_DIR_LIB | Path | Relative path to the libraries installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_LIB}) |
|
| INSTALL_DIR_LIB | Path | Relative path to the libraries installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_LIB}) |
|
||||||
| INSTALL_DIR_INCLUDE | Path | Relative path to the includes installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_INCLUDE}) |
|
| INSTALL_DIR_INCLUDE | Path | Relative path to the includes installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_INCLUDE}) |
|
||||||
| INSTALL_DIR_RESOURCE | Path | Relative path to the resources installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_RESOURCE}) |
|
| INSTALL_DIR_RESOURCE | Path | Relative path to the resources installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_RESOURCE}) |
|
||||||
|
| INSTALL_DIR_LAYOUT | String | Defines the structure of OCCT files (binaries, resources, headers, etc.) for the install directory. Two variants are predefined: for Windows (standard OCCT layout) and for Unix operating systems (standard Linux layout). If needed, the layout can be customized with INSTALL_DIR_* variables |
|
||||||
| INSTALL_DIR_DATA | Path | Relative path to the data files installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_DATA}) |
|
| INSTALL_DIR_DATA | Path | Relative path to the data files installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_DATA}) |
|
||||||
| INSTALL_DIR_SAMPLES | Path | Relative path to the samples installation directory. Note that only "samples/tcl" folder will be installed. (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}) |
|
| INSTALL_DIR_SAMPLES | Path | Relative path to the samples installation directory. Note that only "samples/tcl" folder will be installed. (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}) |
|
||||||
| INSTALL_DIR_TESTS | Path | Relative path to the tests installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_TESTS}) |
|
| INSTALL_DIR_TESTS | Path | Relative path to the tests installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_TESTS}) |
|
||||||
@@ -118,7 +122,7 @@ The following table enumerates the full list of environment variables used at co
|
|||||||
| INSTALL_TEST_CASES | Boolean flag | Indicates whether non-regression OCCT test scripts should be installed into the installation directory |
|
| INSTALL_TEST_CASES | Boolean flag | Indicates whether non-regression OCCT test scripts should be installed into the installation directory |
|
||||||
| INSTALL_DOC_Overview | Boolean flag | Indicates whether OCCT overview documentation should be installed into the installation directory |
|
| INSTALL_DOC_Overview | Boolean flag | Indicates whether OCCT overview documentation should be installed into the installation directory |
|
||||||
|
|
||||||
**Note:** In those CMake options defining paths only the forward slashes ("/") are acceptable.
|
**Note:** Only the forward slashes ("/") are acceptable in the CMake options defining paths.
|
||||||
|
|
||||||
@section build_cmake_3rdparty 3rd party search mechanism
|
@section build_cmake_3rdparty 3rd party search mechanism
|
||||||
|
|
||||||
@@ -126,7 +130,7 @@ If *3RDPARTY_DIR* directory is defined, then required 3rd party binaries are sou
|
|||||||
|
|
||||||
The procedure expects to find binary and header files of each 3rd party product in its own sub-directory: *bin*, *lib* and *include*.
|
The procedure expects to find binary and header files of each 3rd party product in its own sub-directory: *bin*, *lib* and *include*.
|
||||||
|
|
||||||
The results of the search (achived on the next pass of the configuration process) are recorded in the corresponding variables:
|
The results of the search (achieved on the next pass of the configuration process) are recorded in the corresponding variables:
|
||||||
|
|
||||||
* *3RDPARTY_\<PRODUCT\>_DIR* -- path to the 3rdparty directory (with directory name) (e.g. <i>D:/3rdparty/tcltk-86-32</i>)
|
* *3RDPARTY_\<PRODUCT\>_DIR* -- path to the 3rdparty directory (with directory name) (e.g. <i>D:/3rdparty/tcltk-86-32</i>)
|
||||||
* *3RDPARTY_\<PRODUCT\>_LIBRARY_DIR* -- path to the directory containing a library (e.g. <i>D:/3rdparty/tcltk-86-32/lib</i>).
|
* *3RDPARTY_\<PRODUCT\>_LIBRARY_DIR* -- path to the directory containing a library (e.g. <i>D:/3rdparty/tcltk-86-32/lib</i>).
|
||||||
|
@@ -26,7 +26,18 @@ You can also build third-party libraries from their sources, see @ref occt_dev_g
|
|||||||
|
|
||||||
If you have Visual Studio projects already available (pre-installed or generated), you can edit file *custom.bat* manually to adjust the environment:
|
If you have Visual Studio projects already available (pre-installed or generated), you can edit file *custom.bat* manually to adjust the environment:
|
||||||
|
|
||||||
* *VCVER* -- version of Visual Studio (vc10, vc11, vc12, or vc14), and relevant *VCVARS* path
|
* *VCVER* -- specification of format of project files, defining also version of Visual Studio to be used, and default name of the sub-folder for binaries:
|
||||||
|
|
||||||
|
| VCVER | Visual Studio version | Windows Platform | Binaries folder name |
|
||||||
|
|-----------|-----------------------|----------------------------------|----------------------|
|
||||||
|
| vc10 | 2010 (10) | Desktop (Windows API) | vc10 |
|
||||||
|
| vc11 | 2012 (11) | Desktop (Windows API) | vc11 |
|
||||||
|
| vc12 | 2013 (12) | Desktop (Windows API) | vc12 |
|
||||||
|
| vc14 | 2015 (14) | Desktop (Windows API) | vc14 |
|
||||||
|
| vc14-uwp | 2015 (14) | UWP (Universal Windows Platform) | vc14-uwp |
|
||||||
|
| vc141 | 2017 (15) | Desktop (Windows API) | vc14 |
|
||||||
|
| vc141-uwp | 2017 (15) | UWP (Universal Windows Platform) | vc14-uwp |
|
||||||
|
|
||||||
* *ARCH* -- architecture (32 or 64), affects only *PATH* variable for execution
|
* *ARCH* -- architecture (32 or 64), affects only *PATH* variable for execution
|
||||||
* <i>HAVE_*</i> -- flags to enable or disable use of optional third-party products
|
* <i>HAVE_*</i> -- flags to enable or disable use of optional third-party products
|
||||||
* <i>CSF_OPT_*</i> -- paths to search for includes and binaries of all used third-party products
|
* <i>CSF_OPT_*</i> -- paths to search for includes and binaries of all used third-party products
|
||||||
@@ -38,11 +49,12 @@ If you have Visual Studio projects already available (pre-installed or generated
|
|||||||
Alternatively, you can launch **genconf**, a GUI tool allowing to configure build options interactively.
|
Alternatively, you can launch **genconf**, a GUI tool allowing to configure build options interactively.
|
||||||
That tool will analyze your environment and propose you to choose available options:
|
That tool will analyze your environment and propose you to choose available options:
|
||||||
|
|
||||||
* Version of Visual Studio to be used (from the list of installed ones, detected by presence of environment variables like *VS100COMNTOOLS*)
|
* Version of Visual Studio to be used (from the list of installed ones, detected by presence of environment variables like *VS100COMNTOOLS*).
|
||||||
* Method to populate folder *inc* (short-cuts by default).
|
* Method to populate folder *inc* (short-cuts by default).
|
||||||
* Location of third-party libraries (usually downloaded from OCCT web site, see above).
|
* Location of third-party libraries (usually downloaded from OCCT web site, see above).
|
||||||
* Path to common directory where third-party libraries are located (optional)
|
* Path to common directory where third-party libraries are located (optional).
|
||||||
* Paths to headers and binaries of the third-party libraries (found automatically basing on previous options; click button "Reset" to update).
|
* Paths to headers and binaries of the third-party libraries (found automatically basing on previous options; click button "Reset" to update).
|
||||||
|
* Generation of PDB files within Release build ("Release with Debug info", false by default).
|
||||||
|
|
||||||
@figure{/dev_guides/building/3rdparty/images/genconf_windows.png}
|
@figure{/dev_guides/building/3rdparty/images/genconf_windows.png}
|
||||||
|
|
||||||
|
@@ -70,6 +70,8 @@ The following extensions should be used for source files, depending on their typ
|
|||||||
* <i>.hxx</i> -- C++ header files
|
* <i>.hxx</i> -- C++ header files
|
||||||
* <i>.lxx</i> -- additional headers containing definitions of inline methods and auxiliary code
|
* <i>.lxx</i> -- additional headers containing definitions of inline methods and auxiliary code
|
||||||
|
|
||||||
|
Note that .lxx files should be avoided in most cases - inline method should be placed in header file instead.
|
||||||
|
|
||||||
### Prefix for toolkit names [MANDATORY]
|
### Prefix for toolkit names [MANDATORY]
|
||||||
|
|
||||||
Toolkit names are prefixed by *TK*, followed by a meaningful part of the name explaining the domain of functionality covered by the toolkit (e.g. *TKOpenGl*).
|
Toolkit names are prefixed by *TK*, followed by a meaningful part of the name explaining the domain of functionality covered by the toolkit (e.g. *TKOpenGl*).
|
||||||
@@ -248,7 +250,8 @@ Use of tabulation characters for indentation is disallowed.
|
|||||||
Punctuation rules follow the rules of the English language.
|
Punctuation rules follow the rules of the English language.
|
||||||
* C/C++ reserved words, commas, colons and semicolons should be followed by a space character if they are not at the end of a line.
|
* C/C++ reserved words, commas, colons and semicolons should be followed by a space character if they are not at the end of a line.
|
||||||
* There should be no space characters after '(' and before ')'. Closing and opening brackets should be separated by a space character.
|
* There should be no space characters after '(' and before ')'. Closing and opening brackets should be separated by a space character.
|
||||||
* For better readability it is also recommended to surround conventional operators by a space character. See the following examples:
|
* For better readability it is also recommended to surround conventional operators by a space character.
|
||||||
|
Examples:
|
||||||
|
|
||||||
~~~~~{.cpp}
|
~~~~~{.cpp}
|
||||||
while (true) // NOT: while( true ) ...
|
while (true) // NOT: while( true ) ...
|
||||||
@@ -261,6 +264,30 @@ for (anIter = 0; anIter < 10; ++anIter) // NOT: for (anIter=0;anIter<10;++anIter
|
|||||||
}
|
}
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
|
### Declaration of pointers and references
|
||||||
|
|
||||||
|
In declarations of simple pointers and references put asterisk (*) or ampersand (&) right after the type without extra space.
|
||||||
|
|
||||||
|
Since declaration of several variables with mixed pointer types contrudicts this rule, it should be avoided. Instead, declare each variable independently with fully qualified type.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
~~~~~{.cpp}
|
||||||
|
Standard_Integer *theVariable; // not recommended
|
||||||
|
Standard_Integer * theVariable; // not recommended
|
||||||
|
Standard_Integer* theVariable; // this is OK
|
||||||
|
|
||||||
|
Standard_Integer *&theVariable; // not recommended
|
||||||
|
Standard_Integer *& theVariable; // not recommended
|
||||||
|
Standard_Integer*& theVariable; // this is OK
|
||||||
|
|
||||||
|
Standard_Integer **theVariable; // not recommended
|
||||||
|
Standard_Integer ** theVariable; // not recommended
|
||||||
|
Standard_Integer** theVariable; // this is OK
|
||||||
|
|
||||||
|
Standard_Integer *theA, theB, **theC; // not recommended (declare each variable independently)
|
||||||
|
~~~~~
|
||||||
|
|
||||||
### Separate logical blocks
|
### Separate logical blocks
|
||||||
|
|
||||||
Separate logical blocks of code with one blank line and comments.
|
Separate logical blocks of code with one blank line and comments.
|
||||||
@@ -345,6 +372,25 @@ if (!theAlgo.IsNull()) // preferred
|
|||||||
|
|
||||||
Having all code in the same line is less convenient for debugging.
|
Having all code in the same line is less convenient for debugging.
|
||||||
|
|
||||||
|
### Comparison expressions with constants
|
||||||
|
|
||||||
|
In comparisons, put the variable (in the current context) on the left side and constant on the right side of expression.
|
||||||
|
That is, the so called "Yoda style" is to be avoided.
|
||||||
|
|
||||||
|
~~~~~{.cpp}
|
||||||
|
if (NULL != thePointer) // Yoda style, not recommended
|
||||||
|
if (thePointer != NULL) // OK
|
||||||
|
|
||||||
|
if (34 < anIter) // Yoda style, not recommended
|
||||||
|
if (anIter > 34) // OK
|
||||||
|
|
||||||
|
if (theNbValues >= anIter) // bad style (constant function argument vs. local variable)
|
||||||
|
if (anIter <= theNbValues) // OK
|
||||||
|
|
||||||
|
if (THE_LIMIT == theValue) // bad style (global constant vs. variable)
|
||||||
|
if (theValue == THE_LIMIT) // OK
|
||||||
|
~~~~~
|
||||||
|
|
||||||
### Alignment
|
### Alignment
|
||||||
|
|
||||||
Use alignment wherever it enhances the readability. See the following example:
|
Use alignment wherever it enhances the readability. See the following example:
|
||||||
@@ -426,22 +472,29 @@ Spaces at the end of a line are useless and do not affect functionality.
|
|||||||
### Headers order
|
### Headers order
|
||||||
|
|
||||||
Split headers into groups: system headers, headers per each framework, project headers; sort the list of includes alphabetically.
|
Split headers into groups: system headers, headers per each framework, project headers; sort the list of includes alphabetically.
|
||||||
|
Within the class source file, the class header file should be included first.
|
||||||
|
|
||||||
This rule improves readability, allows detecting useless multiple header inclusions and makes 3rd-party dependencies clearly visible.
|
This rule improves readability, allows detecting useless multiple header inclusions and makes 3rd-party dependencies clearly visible.
|
||||||
|
Inclusion of class header on top verifies consistency of the header (e.g. that header file does not use any undefined declarations due to missing includes of dependencies).
|
||||||
|
|
||||||
|
An exception to the rule is ordering system headers generating a macros declaration conflicts (like "windows.h" or "X11/Xlib.h") - these headers should be placed in the way solving the conflict.
|
||||||
|
|
||||||
~~~~~{.cpp}
|
~~~~~{.cpp}
|
||||||
// system headers
|
// the header file of implemented class
|
||||||
#include <iostream>
|
#include <PackageName_ClassName.hxx>
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
// Qt headers
|
|
||||||
#include <QDataStream>
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
// OCCT headers
|
// OCCT headers
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
#include <gp_Vec.hxx>
|
#include <gp_Vec.hxx>
|
||||||
#include <NCollection_List.hxx>
|
#include <NCollection_List.hxx>
|
||||||
|
|
||||||
|
// Qt headers
|
||||||
|
#include <QDataStream>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
// system headers
|
||||||
|
#include <iostream>
|
||||||
|
#include <windows.h>
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
@section occt_coding_rules_4 Documentation rules
|
@section occt_coding_rules_4 Documentation rules
|
||||||
@@ -569,7 +622,6 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
~~~~~{.cpp}
|
|
||||||
class MyPackage_MyClass : public MyPackage_BaseClass
|
class MyPackage_MyClass : public MyPackage_BaseClass
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -35,8 +35,7 @@ According to his access level, the user can participate in the issue handling pr
|
|||||||
@subsection occt_contribution_workflow_general General scheme
|
@subsection occt_contribution_workflow_general General scheme
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
@image html OCCT_ContributionWorkflow_V3_image001.svg "Standard life cycle of an issue"
|
@figure{OCCT_ContributionWorkflow_V3_image001.svg,"Standard life cycle of an issue",360}
|
||||||
@image latex OCCT_ContributionWorkflow_V3_image001.svg "Standard life cycle of an issue"
|
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
@subsection occt_contribution_workflow_issue Issue registration
|
@subsection occt_contribution_workflow_issue Issue registration
|
||||||
@@ -281,8 +280,7 @@ Each change is integrated as a single commit without preserving the history of c
|
|||||||
This is done to have the master branch history plain and clean.
|
This is done to have the master branch history plain and clean.
|
||||||
The following picture illustrates the process:
|
The following picture illustrates the process:
|
||||||
|
|
||||||
@image html OCCT_ContributionWorkflow_V3_image002.png "Integration of several branches" width=\textwidth
|
@figure{OCCT_ContributionWorkflow_V3_image002.png,"Integration of several branches",420}
|
||||||
@image latex OCCT_ContributionWorkflow_V3_image002.png "Integration of several branches" width=\textwidth
|
|
||||||
|
|
||||||
The new integration branch is tested against possible regressions that might appear due to interference between separate changes.
|
The new integration branch is tested against possible regressions that might appear due to interference between separate changes.
|
||||||
When the tests are OK, the integration branch is pushed as the new master to the official repository.
|
When the tests are OK, the integration branch is pushed as the new master to the official repository.
|
||||||
@@ -358,7 +356,7 @@ In some cases review remarks or results of testing require only minor correction
|
|||||||
|
|
||||||
As an exception to general @ref occt_contribution_workflow_fix_git "single-commit rule", it is allowed to put such minor corrections on top of the existing branch as a separate commit, and re-submit it for further processing in the same branch, without squashing.
|
As an exception to general @ref occt_contribution_workflow_fix_git "single-commit rule", it is allowed to put such minor corrections on top of the existing branch as a separate commit, and re-submit it for further processing in the same branch, without squashing.
|
||||||
|
|
||||||
Minor commits should have a single-line message starting with //.
|
Minor commits should have a single-line message starting with #.
|
||||||
These messages will be ignored when the branch is squashed at integration.
|
These messages will be ignored when the branch is squashed at integration.
|
||||||
|
|
||||||
Typical cases of minor corrections are:
|
Typical cases of minor corrections are:
|
||||||
@@ -463,3 +461,4 @@ The category corresponds to the component of OCCT where the issue is found:
|
|||||||
| Suspended | The issue is postponed (for Acknowledged status). |
|
| Suspended | The issue is postponed (for Acknowledged status). |
|
||||||
| Documentation updated | The documentation has been updated to resolve a misunderstanding causing the issue. |
|
| Documentation updated | The documentation has been updated to resolve a misunderstanding causing the issue. |
|
||||||
| Won’t fix | It is decided to keep the existing behavior. |
|
| Won’t fix | It is decided to keep the existing behavior. |
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@ You can use *custom.bat* file to add necessary paths to the *PATH* variable.
|
|||||||
Note that in the process of PDF generation MiKTeX may need some packages not installed by default.
|
Note that in the process of PDF generation MiKTeX may need some packages not installed by default.
|
||||||
We recommend setting option "Install missing packages on-the-fly" to "Ask me first" (default) during MiKTeX installation:
|
We recommend setting option "Install missing packages on-the-fly" to "Ask me first" (default) during MiKTeX installation:
|
||||||
|
|
||||||
@figure{/dev_guides/documentation/images/documentation_miktex.png}
|
@figure{/dev_guides/documentation/images/documentation_miktex.png,"",320}
|
||||||
|
|
||||||
On the first run of **pdflatex** it will open a dialog window prompting for installation of missing packages.
|
On the first run of **pdflatex** it will open a dialog window prompting for installation of missing packages.
|
||||||
Follow the instructions to proceed (define proxy settings if needed, select a mirror site to download from, etc.).
|
Follow the instructions to proceed (define proxy settings if needed, select a mirror site to download from, etc.).
|
||||||
@@ -102,7 +102,7 @@ The MarkDown files have a <i>*.md</i> extension and are based on rules described
|
|||||||
|
|
||||||
@subsection OCCT_DM_SECTION_3_2 Directory Structure
|
@subsection OCCT_DM_SECTION_3_2 Directory Structure
|
||||||
|
|
||||||
@figure{/dev_guides/documentation/images/documentation_folders.png}
|
@figure{/dev_guides/documentation/images/documentation_folders.png,"",160}
|
||||||
|
|
||||||
Each document has its own folder if there are any images used in it. These images are stored in *images* subfolder.
|
Each document has its own folder if there are any images used in it. These images are stored in *images* subfolder.
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ If you want to use the same image for several documents, you can place it in *do
|
|||||||
|
|
||||||
|
|
||||||
@verbatim
|
@verbatim
|
||||||
@figure{/dev_guides/documentation/images/documentation_test_image.svg}
|
@figure{/dev_guides/documentation/images/documentation_test_image.svg,"",420}
|
||||||
@endverbatim
|
@endverbatim
|
||||||
|
|
||||||
|
|
||||||
@@ -140,13 +140,13 @@ dev_guides/svn/svn.md
|
|||||||
|
|
||||||
@section OCCT_DOC_SECTION_5 Additional Resources
|
@section OCCT_DOC_SECTION_5 Additional Resources
|
||||||
|
|
||||||
More information about OCCT can be found at http://www.opencascade.com and http://dev.opencascade.org sites.
|
More information about OCCT can be found at http://www.opencascade.com and <br> http://dev.opencascade.org sites.
|
||||||
|
|
||||||
|
|
||||||
The information on formula syntax can be found at:
|
The information on formula syntax can be found at: <br>
|
||||||
http://en.wikipedia.org/wiki/Help:Displaying_a_formula
|
http://en.wikipedia.org/wiki/Help:Displaying_a_formula
|
||||||
|
|
||||||
More information on MarkDown and Doxygen syntax can be found at:
|
More information on MarkDown and Doxygen syntax can be found at: <br>
|
||||||
http://www.stack.nl/~dimitri/doxygen/manual
|
http://www.stack.nl/~dimitri/doxygen/manual
|
||||||
|
|
||||||
@section OCCT_DM_SECTION_A Appendix 1: Document Syntax
|
@section OCCT_DM_SECTION_A Appendix 1: Document Syntax
|
||||||
@@ -389,7 +389,7 @@ Example:
|
|||||||
|
|
||||||
is rendered as:
|
is rendered as:
|
||||||
|
|
||||||
@figure{/dev_guides/documentation/images/documentation_test_image.svg,"Test SVG image"}
|
@figure{/dev_guides/documentation/images/documentation_test_image.svg,"Test SVG image",320}
|
||||||
|
|
||||||
We recommend using **Inkscape** for creation and edition of vector graphics.
|
We recommend using **Inkscape** for creation and edition of vector graphics.
|
||||||
The graphics created in MS Word Draw and some other vector editors can be copy-pasted to Inkscape and saved as SVG images.
|
The graphics created in MS Word Draw and some other vector editors can be copy-pasted to Inkscape and saved as SVG images.
|
||||||
@@ -399,13 +399,10 @@ Note that the image that will be included in documentation is the whole page of
|
|||||||
Note that the *figure* command is an alias to the standard Doxygen command *image* repeated twice: once for HTML and then for Latex output (used for PDF generation). Thus if HTML and PDF outputs should include different images or captions, command "image" can be used:
|
Note that the *figure* command is an alias to the standard Doxygen command *image* repeated twice: once for HTML and then for Latex output (used for PDF generation). Thus if HTML and PDF outputs should include different images or captions, command "image" can be used:
|
||||||
|
|
||||||
@verbatim
|
@verbatim
|
||||||
@image html /relative/path/to/image/occ_logo.png
|
@image html /relative/path/to/image/occ_logo_for_html.png
|
||||||
@image latex /relative/path/to/image/occ_logo.png "OCC logo"
|
@image latex /relative/path/to/image/occ_logo_for_pdf.png
|
||||||
@endverbatim
|
@endverbatim
|
||||||
|
|
||||||
@image html /resources/occ_logo.png
|
|
||||||
@image latex /resources/occ_logo.png "OCC logo"
|
|
||||||
|
|
||||||
@subsection OCCT_DM_SECTION_A_8 Table Of Contents
|
@subsection OCCT_DM_SECTION_A_8 Table Of Contents
|
||||||
|
|
||||||
Use \@tableofcontents tag to get the table of contents at the beginning of the document.
|
Use \@tableofcontents tag to get the table of contents at the beginning of the document.
|
||||||
@@ -484,4 +481,4 @@ gives the following result:
|
|||||||
@endverbatim
|
@endverbatim
|
||||||
|
|
||||||
that leads to the following result: @f$ \sqrt{3x-1}+(1+x)^2 @f$
|
that leads to the following result: @f$ \sqrt{3x-1}+(1+x)^2 @f$
|
||||||
|
|
||||||
|
@@ -124,8 +124,7 @@ The official repository contains:
|
|||||||
|
|
||||||
TortoiseGit integrates into Windows Explorer, thus it is possible to use context menu in Windows Explorer to access its functionality:
|
TortoiseGit integrates into Windows Explorer, thus it is possible to use context menu in Windows Explorer to access its functionality:
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image005.png
|
@figure{OCCT_GitGuide_V2_image005.png,"",100}
|
||||||
@image latex OCCT_GitGuide_V2_image005.png
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -138,8 +137,7 @@ The official repository contains:
|
|||||||
|
|
||||||
Select Git->Config to add your user name and Email address to the local <i>.gitconfig</i> file
|
Select Git->Config to add your user name and Email address to the local <i>.gitconfig</i> file
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image006.png
|
@figure{OCCT_GitGuide_V2_image006.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image006.png
|
|
||||||
|
|
||||||
@subsection occt_gitguide_2_2 Linux platform
|
@subsection occt_gitguide_2_2 Linux platform
|
||||||
|
|
||||||
@@ -190,8 +188,7 @@ The official repository contains:
|
|||||||
To generate the key with this client, run **Puttygen** (e.g. from Start menu -> TortoiseGit -> Puttygen),
|
To generate the key with this client, run **Puttygen** (e.g. from Start menu -> TortoiseGit -> Puttygen),
|
||||||
then click **Generate** and move mouse cursor over the blank area until the key is generated.
|
then click **Generate** and move mouse cursor over the blank area until the key is generated.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image007.png "Putty key generator"
|
@figure{OCCT_GitGuide_V2_image007.png,"Putty key generator",320}
|
||||||
@image latex OCCT_GitGuide_V2_image007.png "Putty key generator"
|
|
||||||
|
|
||||||
After the key is generated, you will see GUI controls to define the public key comment
|
After the key is generated, you will see GUI controls to define the public key comment
|
||||||
and / or specify the password for the private key protection.
|
and / or specify the password for the private key protection.
|
||||||
@@ -295,8 +292,7 @@ Click **Save** to input the key to the system.
|
|||||||
|
|
||||||
* In TortoiseGit: create a new folder, open it and right-click in the Explorer window, then choose **Git Clone** in the context menu:
|
* In TortoiseGit: create a new folder, open it and right-click in the Explorer window, then choose **Git Clone** in the context menu:
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image009.png
|
@figure{OCCT_GitGuide_V2_image009.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image009.png
|
|
||||||
|
|
||||||
If you have chosen Putty as SSH client during TortoiseGit installation, check the **Load Putty Key** option and specify the location of the private key file saved by PuttyGen (see 3.2.1). This shall be done for the first time only.
|
If you have chosen Putty as SSH client during TortoiseGit installation, check the **Load Putty Key** option and specify the location of the private key file saved by PuttyGen (see 3.2.1). This shall be done for the first time only.
|
||||||
|
|
||||||
@@ -321,8 +317,7 @@ In TortoiseGit:
|
|||||||
* Right-click in the Explorer window, then choose **Git Create Branch**.
|
* Right-click in the Explorer window, then choose **Git Create Branch**.
|
||||||
* Select **Base On** Branch *remotes/origin/master*.
|
* Select **Base On** Branch *remotes/origin/master*.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image012.png
|
@figure{OCCT_GitGuide_V2_image012.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image012.png
|
|
||||||
|
|
||||||
Check option **Switch to new branch** if you are going to start working with the newly created branch immediately.
|
Check option **Switch to new branch** if you are going to start working with the newly created branch immediately.
|
||||||
|
|
||||||
@@ -337,8 +332,7 @@ In TortoiseGit:
|
|||||||
|
|
||||||
In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Switch/Checkout**.
|
In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Switch/Checkout**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image013.png
|
@figure{OCCT_GitGuide_V2_image013.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image013.png
|
|
||||||
|
|
||||||
Note that in order to work with the branch locally you need to set option
|
Note that in order to work with the branch locally you need to set option
|
||||||
**Create new branch** when you checkout the branch from the remote repository for the first time.
|
**Create new branch** when you checkout the branch from the remote repository for the first time.
|
||||||
@@ -372,8 +366,7 @@ In TortoiseGit:
|
|||||||
|
|
||||||
* In TortoiseGit: right-click in the explorer window and select in the context menu <b>Git Commit -> CR…</b>:
|
* In TortoiseGit: right-click in the explorer window and select in the context menu <b>Git Commit -> CR…</b>:
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image014.png
|
@figure{OCCT_GitGuide_V2_image014.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image014.png
|
|
||||||
|
|
||||||
Unstaged files will be shown if you check the option ‘Show Unversioned Files’.
|
Unstaged files will be shown if you check the option ‘Show Unversioned Files’.
|
||||||
Double-click on each modified file to see the changes to be committed (as a difference vs. the base version).
|
Double-click on each modified file to see the changes to be committed (as a difference vs. the base version).
|
||||||
@@ -391,15 +384,13 @@ In TortoiseGit:
|
|||||||
|
|
||||||
* In TortoiseGit: right-click in the explorer window and select in the context menu, TortoiseGit -> **Push**
|
* In TortoiseGit: right-click in the explorer window and select in the context menu, TortoiseGit -> **Push**
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image015.png
|
@figure{OCCT_GitGuide_V2_image015.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image015.png
|
|
||||||
|
|
||||||
Note that Git forbids pushing a branch if the corresponding remote branch already exists and has some changes, which are not in the history of your local branch. This may happen in different situations:
|
Note that Git forbids pushing a branch if the corresponding remote branch already exists and has some changes, which are not in the history of your local branch. This may happen in different situations:
|
||||||
* You have amended the last commit which is already in the remote repository. If you are sure that nobody else uses your branch, push again with **Force** option.
|
* You have amended the last commit which is already in the remote repository. If you are sure that nobody else uses your branch, push again with **Force** option.
|
||||||
* You have rebased your branch, so that now it is completely different from the branch in the remote repository. In this case, push it under a different name (add a suffix):
|
* You have rebased your branch, so that now it is completely different from the branch in the remote repository. In this case, push it under a different name (add a suffix):
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image016.png
|
@figure{OCCT_GitGuide_V2_image016.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image016.png
|
|
||||||
|
|
||||||
Then remove the original remote branch so that other people recognize that it has been replaced by the new one. For that, select TortoiseGit -> **Push** again, select an empty line for your local branch name,
|
Then remove the original remote branch so that other people recognize that it has been replaced by the new one. For that, select TortoiseGit -> **Push** again, select an empty line for your local branch name,
|
||||||
and enter the name of the branch to be removed in **Remote** field:
|
and enter the name of the branch to be removed in **Remote** field:
|
||||||
@@ -419,8 +410,7 @@ Note that Git forbids pushing a branch if the corresponding remote branch alread
|
|||||||
|
|
||||||
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Fetch**. Check in **Prune** check-box.
|
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Fetch**. Check in **Prune** check-box.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image018.png
|
@figure{OCCT_GitGuide_V2_image018.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image018.png
|
|
||||||
|
|
||||||
If the branch you are working with has been changed in the remote repository, use Git command *pull* to get the remote changes and merge them with your local branch.
|
If the branch you are working with has been changed in the remote repository, use Git command *pull* to get the remote changes and merge them with your local branch.
|
||||||
|
|
||||||
@@ -433,8 +423,7 @@ Note that Git forbids pushing a branch if the corresponding remote branch alread
|
|||||||
|
|
||||||
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Pull**.
|
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Pull**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image019.png
|
@figure{OCCT_GitGuide_V2_image019.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image019.png
|
|
||||||
|
|
||||||
Note that the local branches of your repository are the primary place, where your changes are stored until they get integrated to the official version of OCCT (master branch). The branches submitted to official repository are for collaborative work, review, and integration -- that repository should not be used for long-term storage of incomplete changes.
|
Note that the local branches of your repository are the primary place, where your changes are stored until they get integrated to the official version of OCCT (master branch). The branches submitted to official repository are for collaborative work, review, and integration -- that repository should not be used for long-term storage of incomplete changes.
|
||||||
|
|
||||||
@@ -447,8 +436,7 @@ Remove the local branches that you do not need any more. Note that you cannot de
|
|||||||
|
|
||||||
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Git Show Log**.
|
* In TortoiseGit: right-click in the explorer window and select in the context menu **TortoiseGit** -> **Git Show Log**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image020.png
|
@figure{OCCT_GitGuide_V2_image020.png,"",420}
|
||||||
@image latex OCCT_GitGuide_V2_image020.png
|
|
||||||
|
|
||||||
Select **All branches** check-box to view all branches.
|
Select **All branches** check-box to view all branches.
|
||||||
Right-click on the branch you want to delete and select **Delete** item in the context menu.
|
Right-click on the branch you want to delete and select **Delete** item in the context menu.
|
||||||
@@ -462,15 +450,13 @@ If you have a fix made on a previous version of OCCT, perform the following sequ
|
|||||||
* Find a tag or a commit corresponding to this version in the Git history log of the master branch.
|
* Find a tag or a commit corresponding to this version in the Git history log of the master branch.
|
||||||
* Create a branch basing on this tag or commit. In TortoiseGit history log: right-click on the base commit, then select **Create branch at this version**.
|
* Create a branch basing on this tag or commit. In TortoiseGit history log: right-click on the base commit, then select **Create branch at this version**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image021.png
|
@figure{OCCT_GitGuide_V2_image021.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image021.png
|
|
||||||
|
|
||||||
* Check option **Switch to the new branch** to start working within the new branch immediately, or switch to it separately afterwards.
|
* Check option **Switch to the new branch** to start working within the new branch immediately, or switch to it separately afterwards.
|
||||||
* Put your fix in the working copy, build and check that it works, then commit to the branch.
|
* Put your fix in the working copy, build and check that it works, then commit to the branch.
|
||||||
* Rebase the branch on the current master. In TortoiseGit: right-click on the working directory, choose **TortoiseGit** -> **Rebase**, select *remotes/origin/master* as UpStream revision, and click **Start**:
|
* Rebase the branch on the current master. In TortoiseGit: right-click on the working directory, choose **TortoiseGit** -> **Rebase**, select *remotes/origin/master* as UpStream revision, and click **Start**:
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image022.png
|
@figure{OCCT_GitGuide_V2_image022.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image022.png
|
|
||||||
|
|
||||||
Note that you can get some conflicts during rebase. To resolve them, double-click on each conflicted file (highlighted by red in the file list) to open visual merge tool. Switch between conflicting fragments by red arrows, and for each one decide if the code of one or both conflicting versions is to be taken.
|
Note that you can get some conflicts during rebase. To resolve them, double-click on each conflicted file (highlighted by red in the file list) to open visual merge tool. Switch between conflicting fragments by red arrows, and for each one decide if the code of one or both conflicting versions is to be taken.
|
||||||
|
|
||||||
@@ -487,19 +473,16 @@ To rebase your branch into a single commit, you need to do the following:
|
|||||||
* In TortoiseGit history log, select a branch to rebase on <i>(remotes/origin/master)</i> and in the context menu choose **Rebase “CR12345” onto this**.
|
* In TortoiseGit history log, select a branch to rebase on <i>(remotes/origin/master)</i> and in the context menu choose **Rebase “CR12345” onto this**.
|
||||||
* In the **Rebase** dialog, check **Squash All**. You can also change the order of commits and define for each commit whether it should be kept (**Pick**), edited, or just skipped.
|
* In the **Rebase** dialog, check **Squash All**. You can also change the order of commits and define for each commit whether it should be kept (**Pick**), edited, or just skipped.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image023.png
|
@figure{OCCT_GitGuide_V2_image023.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image023.png
|
|
||||||
|
|
||||||
* Click **Start**.
|
* Click **Start**.
|
||||||
* The process will stop if a conflict is detected. In that case, find files with status **Conflicted** in the list (marked by red), and double-click on them to resolve the conflict. When all conflicts are resolved, click **Continue**.
|
* The process will stop if a conflict is detected. In that case, find files with status **Conflicted** in the list (marked by red), and double-click on them to resolve the conflict. When all conflicts are resolved, click **Continue**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image024.png
|
@figure{OCCT_GitGuide_V2_image024.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image024.png
|
|
||||||
|
|
||||||
* At the end of the process, edit the final commit message (it should start from the issue ID and a description from Mantis in the first line, followed by a summary of actual changes), and click **Commit**.
|
* At the end of the process, edit the final commit message (it should start from the issue ID and a description from Mantis in the first line, followed by a summary of actual changes), and click **Commit**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image025.png
|
@figure{OCCT_GitGuide_V2_image025.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image025.png
|
|
||||||
|
|
||||||
@section occt_gitguide_5 Work with repository: Reviewer operations
|
@section occt_gitguide_5 Work with repository: Reviewer operations
|
||||||
|
|
||||||
@@ -525,6 +508,6 @@ To rebase your branch into a single commit, you need to do the following:
|
|||||||
* To review commits one-by-one, select each commit in the log. The list of changed files is shown at the bottom of the window; double-click on the file will open visual compare tool.
|
* To review commits one-by-one, select each commit in the log. The list of changed files is shown at the bottom of the window; double-click on the file will open visual compare tool.
|
||||||
* To review all changes made in the branch at once, or to compare two arbitrary revisions, select the corresponding commits in the log (e.g. the last commit in the branch and the branching point), ight-click for the context menu, and choose **Compare revisions**.
|
* To review all changes made in the branch at once, or to compare two arbitrary revisions, select the corresponding commits in the log (e.g. the last commit in the branch and the branching point), ight-click for the context menu, and choose **Compare revisions**.
|
||||||
|
|
||||||
@image html OCCT_GitGuide_V2_image026.png
|
@figure{OCCT_GitGuide_V2_image026.png,"",320}
|
||||||
@image latex OCCT_GitGuide_V2_image026.png
|
|
||||||
|
|
||||||
|