diff --git a/bfs/CMakeLists.txt b/bfs/CMakeLists.txt index 260514b..36c1fe9 100644 --- a/bfs/CMakeLists.txt +++ b/bfs/CMakeLists.txt @@ -128,7 +128,7 @@ foreach(IMPL IN LISTS IMPLEMENTAIONS) foreach(DLL IN ITEMS ${DLLS}) get_filename_component(DLL_N ${DLL} NAME) message("Adding DLL ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DLL_N}") - configure_file(${DLL} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DLL_N} COPYONLY) + file(COPY ${DLL} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endforeach() foreach(LIB IN ITEMS ${LIBS}) diff --git a/bfs/scripts/buildbfs.py b/bfs/scripts/buildbfs.py new file mode 100644 index 0000000..fa901d0 --- /dev/null +++ b/bfs/scripts/buildbfs.py @@ -0,0 +1,15 @@ + +import os +os.chdir(os.path.dirname(os.path.abspath(__file__))) + +cmake_installation = "C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\\2019\\COMMUNITY\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\CMAKE\\CMake\\bin\\cmake.exe" + +compile_command = 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\\2019\\COMMUNITY\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\CMAKE\\CMake\\bin\\cmake.exe -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:/Users/Greg/Documents/git/bfs/breadcrumbs/install/basic_build" -DCMAKE_INSTALL_PREFIX:PATH="C:/Users/Greg/Documents/git/bfs/breadcrumbs/install/basic_build" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\\2019\\COMMUNITY\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\CMAKE\\Ninja\\ninja.exe" "C:\\Users\\Greg\\Documents\\git\\bfs\\bfs" 2>&1' +test_command = "C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\\2019\\COMMUNITY\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\CMAKE\\CMake\\bin\\cmake.exe -G \"Ninja\" -DCMAKE_INSTALL_PREFIX:PATH=\"C:/Users/Greg/Documents/git/bfs/breadcrumbs/install/basic_build\" -DCMAKE_INSTALL_PREFIX:PATH=\"C:/Users/Greg/Documents/git/bfs/breadcrumbs/install/basic_build\" -DCMAKE_CXX_COMPILER:FILEPATH=\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64/cl.exe\" -DCMAKE_C_COMPILER:FILEPATH=\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64/cl.exe\"" + +def start_program(program): + if not isinstance(program, str): + raise ValueError("Argument passed to start_program_sync() should be a string") + return os.system("START /wait \""+ program +"\" CMD /c " + program) + +start_program(test_command) diff --git a/bfs/scripts/log.txt b/bfs/scripts/log.txt index a2ae8fd..50b3eda 100644 --- a/bfs/scripts/log.txt +++ b/bfs/scripts/log.txt @@ -12,3 +12,27 @@ Could not acquire mutex to add new client thread Listening for clients... Hello new client! Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... +Could not acquire mutex to add new client thread +Listening for clients... +Hello new client! +Listening for clients... diff --git a/bfs/src/comms/DataSyncThread.cpp b/bfs/src/comms/DataSyncThread.cpp index a999136..2261bfa 100644 --- a/bfs/src/comms/DataSyncThread.cpp +++ b/bfs/src/comms/DataSyncThread.cpp @@ -43,6 +43,7 @@ void DataSyncThread::threadRuntime() break; // Storing the attrib update + printf("Storing attrib update...\n"); addIncomingAttribute(*new Attribute(bAttr, value)); }