Skip to content

Commit 9c04b67

Browse files
authored
Merge pull request #164 from Unity-Technologies/UNI-26859-delete-pyc-files
UNI-26859 make sure pyc files get removed before packaging
2 parents 24a714d + 42ca361 commit 9c04b67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,21 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
136136
"${CMAKE_SOURCE_DIR}/Assets/FbxExporters/FbxSdk/Plugins/UnityFbxSdk.dll"
137137
DEPENDS
138138
"${CLASS_LIBRARY_DEST}"
139+
${FBXSDK_PACKAGE_TARGET}
139140
)
140141
add_custom_target(UnityFbxExporterEditorDLL ALL DEPENDS ${CLASS_LIBRARY_DEST}/${EDITOR_CLASS_LIBRARY_NAME})
141142

142143
endif()
143144

144145
###########################################################################
145146
# Add target for creating a package
147+
148+
# remove .pyc files that we don't want to ship
149+
file(GLOB PYC_FILES "${CMAKE_SOURCE_DIR}/Assets/FbxExporters/Integrations/Autodesk/maya/scripts/unityOneClick/*.pyc")
150+
IF( PYC_FILES )
151+
file(REMOVE ${PYC_FILES})
152+
ENDIF()
153+
146154
add_custom_command(
147155
OUTPUT ${PACKAGE_PATH}
148156
COMMAND "${CMAKE_COMMAND}" --build . --target install --config Release

0 commit comments

Comments
 (0)