@@ -120,6 +120,23 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
120
120
COMMAND ${CMAKE_COMMAND} -E make_directory ${CLASS_LIBRARY_DEST}
121
121
)
122
122
123
+ set (RUNTIME_CLASS_LIBRARY_NAME "UnityFbxExporter.dll" )
124
+ fbxexporters_compile_csharp (OUTPUT ${CLASS_LIBRARY_DEST} /${RUNTIME_CLASS_LIBRARY_NAME}
125
+ EXTRA_ARGS
126
+ "/target:library"
127
+ SOURCES
128
+ "${CMAKE_SOURCE_DIR} /Assets/FbxExporters/FbxPrefab.cs"
129
+ REFERENCES
130
+ "${CSHARP_MSCORLIB_LIBRARY} "
131
+ "${CSHARP_SYSTEM_CORE_LIBRARY} "
132
+ "${CSHARP_SYSTEM_LIBRARY} "
133
+ "${CSHARP_UNITYEDITOR_LIBRARY} "
134
+ "${CSHARP_UNITYENGINE_LIBRARY} "
135
+ DEPENDS
136
+ "${CLASS_LIBRARY_DEST} "
137
+ )
138
+ add_custom_target (UnityFbxExporterRuntimeDLL ALL DEPENDS ${CLASS_LIBRARY_DEST} /${RUNTIME_CLASS_LIBRARY_NAME} )
139
+
123
140
set (EDITOR_CLASS_LIBRARY_NAME "UnityFbxExporterEditor.dll" )
124
141
fbxexporters_compile_csharp (OUTPUT ${CLASS_LIBRARY_DEST} /${EDITOR_CLASS_LIBRARY_NAME}
125
142
EXTRA_ARGS
@@ -128,16 +145,19 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
128
145
"${CMAKE_SOURCE_DIR} /Assets/FbxExporters/Editor/FbxExporter.cs"
129
146
"${CMAKE_SOURCE_DIR} /Assets/FbxExporters/Editor/FbxExportSettings.cs"
130
147
"${CMAKE_SOURCE_DIR} /Assets/FbxExporters/Editor/InstallIntegration.cs"
148
+ "${CMAKE_SOURCE_DIR} /Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs"
131
149
REFERENCES
132
150
"${CSHARP_MSCORLIB_LIBRARY} "
133
151
"${CSHARP_SYSTEM_CORE_LIBRARY} "
134
152
"${CSHARP_SYSTEM_LIBRARY} "
135
153
"${CSHARP_UNITYEDITOR_LIBRARY} "
136
154
"${CSHARP_UNITYENGINE_LIBRARY} "
137
155
"${CMAKE_SOURCE_DIR} /Assets/FbxExporters/Editor/FbxSdk/Plugins/UnityFbxSdk.dll"
156
+ ${CLASS_LIBRARY_DEST} /${RUNTIME_CLASS_LIBRARY_NAME}
138
157
DEPENDS
139
158
"${CLASS_LIBRARY_DEST} "
140
159
${FBXSDK_PACKAGE_TARGET}
160
+ UnityFbxExporterRuntimeDLL
141
161
)
142
162
add_custom_target (UnityFbxExporterEditorDLL ALL DEPENDS ${CLASS_LIBRARY_DEST} /${EDITOR_CLASS_LIBRARY_NAME} )
143
163
@@ -175,12 +195,15 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
175
195
DESTINATION .
176
196
PATTERN "Editor/UnitTests" EXCLUDE
177
197
PATTERN "FbxTurnTableBase.cs" EXCLUDE
198
+ PATTERN "FbxPrefab.cs" EXCLUDE
178
199
PATTERN "Editor/FbxExporter.cs" EXCLUDE
179
200
PATTERN "Editor/FbxExportSettings.cs" EXCLUDE
180
201
PATTERN "Editor/InstallIntegration.cs" EXCLUDE
181
202
PATTERN "Editor/ReviewLastSavedModel.cs" EXCLUDE
182
- PATTERN "Editor/EditorRotate.cs" EXCLUDE )
203
+ PATTERN "Editor/EditorRotate.cs" EXCLUDE
204
+ PATTERN "Editor/FbxPrefabAutoUpdater.cs" EXCLUDE )
183
205
install (FILES ${CLASS_LIBRARY_DEST} /${EDITOR_CLASS_LIBRARY_NAME} DESTINATION FbxExporters/Editor )
206
+ install (FILES ${CLASS_LIBRARY_DEST} /${RUNTIME_CLASS_LIBRARY_NAME} DESTINATION FbxExporters )
184
207
else ()
185
208
install (DIRECTORY ${CMAKE_SOURCE_DIR} /Assets/FbxExporters
186
209
DESTINATION . )
0 commit comments