cmake_minimum_required(VERSION 3.3) project(fsclient) include_directories( ./vendor/tclap-1.2.1/include ) include_directories( ./vendor/p4api-15.1/macosx105x86_64/include ) link_directories( ./vendor/p4api-15.1/macosx105x86_64/lib ) # The P4API depends upon Cocoa FIND_LIBRARY(COCOA_LIBRARY Cocoa) set(CFLAGS_OSXFUSE "-DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 ${CFLAGS_OSXFUSE}") set(SOURCE_FILES Workspace.cpp Workspace.h DirHandle.h main.cpp ) add_executable(fsclient ${SOURCE_FILES}) target_include_directories(fsclient PUBLIC /usr/local/include/osxfuse/fuse) target_link_libraries(fsclient osxfuse client rpc supp ssl crypto ${COCOA_LIBRARY}) link_directories(/usr/local/lib)
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16236 | tjuricek |
Revise FUSE-client to call p4 reconcile intelligently. This uses the main FUSE callbacks like a loopback with a notification mechanism. After no real disk access after a short period of time (like 500ms) we'll trigger a call to p4 reconcile. The "interface" to this application is currently just a file handle: /.status - Lists "ok" if there's no errors, otherwise, outputs a list of messages |
||
#1 | 16129 | tjuricek |
Rename/move files again... this time to the hyphenated-approach. |
||
//guest/tjuricek/file_system_client/main/CMakeLists.txt | |||||
#1 | 16119 | tjuricek | Rename/move to meet workshop project conventions. | ||
//guest/tjuricek/fsclient/CMakeLists.txt | |||||
#1 | 16118 | tjuricek |
FSClient initial version: handles add, edit This is a proof-of-concept app that mirrors an existing Perforce workspace to handle running commands like "p4 add" and "p4 edit" automatically when your apps add and write files. See the readme for more information. |