Skip to content

Commit

Permalink
Starting build script
Browse files Browse the repository at this point in the history
  • Loading branch information
grf14003 committed Feb 27, 2020
1 parent 20a0390 commit e8fa40e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
15 changes: 15 additions & 0 deletions bfs/scripts/buildbfs.py
Original file line number Diff line number Diff line change
@@ -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)
24 changes: 24 additions & 0 deletions bfs/scripts/log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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...
1 change: 1 addition & 0 deletions bfs/src/comms/DataSyncThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void DataSyncThread::threadRuntime()
break;

// Storing the attrib update
printf("Storing attrib update...\n");
addIncomingAttribute(*new Attribute(bAttr, value));

}
Expand Down

0 comments on commit e8fa40e

Please sign in to comment.