|
|
@@ -11,7 +11,19 @@ add_executable(JSBind ${SOURCE_FILES})
|
|
|
|
|
|
target_link_libraries(JSBind ${ATOMIC_LINK_LIBRARIES})
|
|
|
|
|
|
+if (MSVC)
|
|
|
+ # pre-Windows 8 can't count on D3DCompiler_47.dll being on system
|
|
|
+ # TODO: Remove this dependency
|
|
|
+ add_custom_command (TARGET JSBind POST_BUILD
|
|
|
+ COMMAND ${CMAKE_COMMAND}
|
|
|
+ ARGS -E copy \"${D3DCOMPILER_47_DLL}\" \"$<TARGET_FILE_DIR:JSBind>/D3DCompiler_47.dll\")
|
|
|
+endif()
|
|
|
+
|
|
|
#TODO: finer grained dependencies
|
|
|
add_custom_command(TARGET JSBind POST_BUILD
|
|
|
COMMAND $<TARGET_FILE:JSBind> "\"${CMAKE_SOURCE_DIR}\"" "${JAVASCRIPT_BINDINGS_PLATFORM}"
|
|
|
- COMMENT "Generating Javascript Bindings")
|
|
|
+ COMMENT "Generating Javascript Bindings")
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|