Skip to content

Commit 1d38758

Browse files
committed
update CMakeLists
- remove python related code
1 parent 92debe2 commit 1d38758

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

CMakeLists.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,6 @@ add_custom_target(
9494

9595
###########################################################################
9696
# Add target to replace the unity package version number in files
97-
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
98-
set(VERSION_AS_STRING "\\'${PACKAGE_VERSION}\\'")
99-
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
100-
set(VERSION_AS_STRING "'${PACKAGE_VERSION}'")
101-
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
102-
set(VERSION_AS_STRING "\\'${PACKAGE_VERSION}\\'")
103-
endif()
104-
10597
set(README_TARGET readme_replace)
10698
add_custom_target(
10799
${README_TARGET}
@@ -110,11 +102,6 @@ add_custom_target(
110102
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/README.txt"
111103
".*VERSION.*:.*"
112104
"VERSION: ${PACKAGE_VERSION}"
113-
COMMAND ${PYTHON_EXECUTABLE}
114-
"${CMAKE_SOURCE_DIR}/scripts/file-search-replace.py"
115-
"${CMAKE_SOURCE_DIR}/Assets/Integrations/Autodesk/maya/scripts/UnityFbxForMaya/version.py"
116-
".*VERSION.*=.*"
117-
"VERSION = ${VERSION_AS_STRING}"
118105
DEPENDS "${CMAKE_SOURCE_DIR}/scripts/file-search-replace.py"
119106
COMMENT "Replacing version number in files with ${PACKAGE_VERSION}"
120107
)
@@ -131,12 +118,6 @@ set(MAX_INTEGRATION_ZIP_NAME "UnityFbxForMax.zip")
131118
file(REMOVE "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME}")
132119
file(REMOVE "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAX_INTEGRATION_ZIP_NAME}")
133120

134-
# remove .pyc files that we don't want to ship
135-
file(GLOB PYC_FILES "${CMAKE_SOURCE_DIR}/Assets/Integrations/Autodesk/maya/scripts/unityOneClick/*.pyc")
136-
IF( PYC_FILES )
137-
file(REMOVE ${PYC_FILES})
138-
ENDIF()
139-
140121
# remove .meta files from Integrations
141122
file(GLOB_RECURSE META_FILES "${CMAKE_SOURCE_DIR}/Assets/Integrations/*.meta")
142123

@@ -146,7 +127,6 @@ add_custom_command(OUTPUT ${MAYA_INTEGRATION_ZIP_NAME}
146127
ENDIF
147128
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
148129
"${CMAKE_SOURCE_DIR}/Assets/Integrations/Autodesk/maya"
149-
"${CMAKE_SOURCE_DIR}/Assets/Integrations/.gitignore"
150130
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Assets
151131
COMMENT "Zipping Maya Integration folder"
152132
DEPENDS ${README_TARGET}

0 commit comments

Comments
 (0)