-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove newton background threads. alsoe remove the
also remove use define thread, the bug is no in newton it is with unreal checking that no unreal code run on a thread that is no own but unreal core. the newton worker thread are children that run concurrent with the main but unreal just crash them
- Loading branch information
1 parent
bac8c1f
commit 5a402ac
Showing
24 changed files
with
589 additions
and
190 deletions.
There are no files selected for viewing
Binary file modified
BIN
-2 KB
(100%)
...AndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.dll
Binary file not shown.
Binary file modified
BIN
+8 KB
(100%)
.../newtonUnreal/newton/Source/ThirdParty/newtonLibrary/ExampleLibrary/x64/Release/vc143.pdb
Binary file not shown.
72 changes: 72 additions & 0 deletions
72
...pers/newtonUnreal/newton/Source/ThirdParty/newtonLibrary/Public/dCollision/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright (c) <2014-2017> <Newton Game Dynamics> | ||
# | ||
# This software is provided 'as-is', without any express or implied | ||
# warranty. In no event will the authors be held liable for any damages | ||
# arising from the use of this software. | ||
# | ||
# Permission is granted to anyone to use this software for any purpose, | ||
# including commercial applications, and to alter it and redistribute it | ||
# freely. | ||
|
||
cmake_minimum_required(VERSION 3.9.0 FATAL_ERROR) | ||
|
||
set (projectName "ndCollision") | ||
message (${projectName}) | ||
|
||
#source and header files | ||
file(GLOB CPP_SOURCE *.h *.cpp) | ||
file(GLOB HEADERS *.h) | ||
|
||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/" FILES ${CPP_SOURCE}) | ||
|
||
include_directories(../dCore/) | ||
include_directories(../dTinyxml/) | ||
include_directories(../dProfiler/) | ||
|
||
if (MSVC) | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /fp:fast") | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /fp:fast") | ||
endif(MSVC) | ||
|
||
if(NEWTON_BUILD_SHARED_LIBS) | ||
add_definitions(-D_D_COLLISION_EXPORT_DLL) | ||
add_library(${projectName} SHARED ${CPP_SOURCE}) | ||
|
||
if(MSVC OR MINGW) | ||
target_link_options(${projectName} PUBLIC "/DEBUG") | ||
endif() | ||
else() | ||
add_library(${projectName} STATIC ${CPP_SOURCE}) | ||
endif() | ||
|
||
if (MSVC) | ||
if(CMAKE_VS_MSBUILD_COMMAND OR CMAKE_VS_DEVENV_COMMAND) | ||
set_target_properties(${projectName} PROPERTIES COMPILE_FLAGS "/YundCollisionStdafx.h") | ||
set_source_files_properties(ndCollisionStdafx.cpp PROPERTIES COMPILE_FLAGS "/YcndCollisionStdafx.h") | ||
endif() | ||
|
||
if (NEWTON_BUILD_TEST AND NEWTON_BUILD_SHARED_LIBS) | ||
add_custom_command( | ||
TARGET ${projectName} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} | ||
ARGS -E copy $<TARGET_FILE:${projectName}> ${PROJECT_BINARY_DIR}/applications/ndTest/${CMAKE_CFG_INTDIR}/$<TARGET_FILE_NAME:${projectName}>) | ||
endif () | ||
|
||
if (NEWTON_BUILD_SANDBOX_DEMOS AND NEWTON_BUILD_SHARED_LIBS) | ||
add_custom_command( | ||
TARGET ${projectName} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} | ||
ARGS -E copy $<TARGET_FILE:${projectName}> ${PROJECT_BINARY_DIR}/applications/ndSandbox/${CMAKE_CFG_INTDIR}/$<TARGET_FILE_NAME:${projectName}>) | ||
endif () | ||
|
||
endif(MSVC) | ||
|
||
target_link_libraries(${projectName} ndCore ndTinyxml) | ||
|
||
install(TARGETS ${projectName} | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
RUNTIME DESTINATION bin) | ||
|
||
install(FILES ${HEADERS} DESTINATION include/${projectName}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...ndWrapers/newtonUnreal/newton/Source/ThirdParty/newtonLibrary/Public/dCore/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright (c) <2014-2017> <Newton Game Dynamics> | ||
# | ||
# This software is provided 'as-is', without any express or implied | ||
# warranty. In no event will the authors be held liable for any damages | ||
# arising from the use of this software. | ||
# | ||
# Permission is granted to anyone to use this software for any purpose, | ||
# including commercial applications, and to alter it and redistribute it | ||
# freely. | ||
|
||
cmake_minimum_required(VERSION 3.9.0 FATAL_ERROR) | ||
|
||
set (projectName "ndCore") | ||
message (${projectName}) | ||
|
||
# source and header files | ||
file(GLOB CPP_SOURCE *.h *.cpp) | ||
file(GLOB HEADERS *.h) | ||
|
||
include_directories(../dTinyxml/) | ||
include_directories(../dProfiler/) | ||
|
||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/" FILES ${CPP_SOURCE}) | ||
|
||
if(NEWTON_BUILD_SHARED_LIBS STREQUAL "ON") | ||
add_definitions(-D_D_CORE_EXPORT_DLL) | ||
add_library(${projectName} SHARED ${CPP_SOURCE}) | ||
|
||
if(MSVC OR MINGW) | ||
target_link_options(${projectName} PUBLIC "/DEBUG") | ||
endif() | ||
|
||
else() | ||
add_library(${projectName} STATIC ${CPP_SOURCE}) | ||
endif() | ||
|
||
if (MSVC) | ||
if(CMAKE_VS_MSBUILD_COMMAND OR CMAKE_VS_DEVENV_COMMAND) | ||
set_target_properties(${projectName} PROPERTIES COMPILE_FLAGS "/YundCoreStdafx.h") | ||
set_source_files_properties(ndCoreStdAfx.cpp PROPERTIES COMPILE_FLAGS "/YcndCoreStdafx.h") | ||
endif() | ||
|
||
if (NEWTON_BUILD_TEST AND NEWTON_BUILD_SHARED_LIBS) | ||
add_custom_command( | ||
TARGET ${projectName} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} | ||
ARGS -E copy $<TARGET_FILE:${projectName}> ${PROJECT_BINARY_DIR}/applications/ndTest/${CMAKE_CFG_INTDIR}/$<TARGET_FILE_NAME:${projectName}>) | ||
endif () | ||
|
||
if (NEWTON_BUILD_SANDBOX_DEMOS AND NEWTON_BUILD_SHARED_LIBS) | ||
add_custom_command( | ||
TARGET ${projectName} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} | ||
ARGS -E copy $<TARGET_FILE:${projectName}> ${PROJECT_BINARY_DIR}/applications/ndSandbox/${CMAKE_CFG_INTDIR}/$<TARGET_FILE_NAME:${projectName}>) | ||
endif () | ||
|
||
endif(MSVC) | ||
|
||
target_include_directories(${projectName} PUBLIC .) | ||
|
||
if (NEWTON_BUILD_PROFILER) | ||
target_link_libraries (${projectName} dProfiler) | ||
endif() | ||
|
||
target_link_libraries (${projectName} ndTinyxml) | ||
|
||
install(TARGETS ${projectName} | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
RUNTIME DESTINATION bin) | ||
|
||
install(FILES ${HEADERS} DESTINATION include/${projectName}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.