Skip to content
This repository was archived by the owner on Nov 17, 2019. It is now read-only.

Commit c61c7da

Browse files
committed
Initial commit
0 parents  commit c61c7da

File tree

105 files changed

+16421
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+16421
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Visual Studio cache/options directory
2+
.vs/
3+
4+
# CMake output/build directory
5+
out/*

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "CWTCore"]
2+
path = CWTCore
3+
url = https://github.com/CWTesseract/CWTCore
4+
[submodule "wil"]
5+
path = wil
6+
url = https://github.com/microsoft/wil

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cmake_minimum_required (VERSION 3.8)
2+
3+
project(cwapy_root)
4+
5+
add_subdirectory ("CWTCore")
6+
add_subdirectory ("LiveCubReload")

CMakeSettings.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "x64-Clang-Release",
5+
"generator": "Ninja",
6+
"configurationType": "RelWithDebInfo",
7+
"buildRoot": "${projectDir}\\out\\build\\${name}",
8+
"installRoot": "${projectDir}\\out\\install\\${name}",
9+
"cmakeCommandArgs": "",
10+
"buildCommandArgs": "-v",
11+
"ctestCommandArgs": "",
12+
"inheritEnvironments": [ "clang_cl_x64" ],
13+
"variables": []
14+
}
15+
]
16+
}

CWTCore

Submodule CWTCore added at 19cddd1

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Andrew Gutekanst
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LiveCubReload/CMakeLists.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cmake_minimum_required (VERSION 3.8)
2+
project(LiveCubReload)
3+
4+
add_subdirectory(efsw)
5+
6+
# Create our library.
7+
add_library (LiveCubReload SHARED "src/main.cpp")
8+
9+
# Link CWTCore.
10+
option(STATIC_LIB "" ON)
11+
target_link_libraries (LiveCubReload PRIVATE efsw)
12+
target_link_libraries (LiveCubReload LINK_PUBLIC CWTCore)
13+
14+
# Add the CWTCore includes.
15+
target_include_directories (LiveCubReload PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
16+
target_include_directories (LiveCubReload PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../CWTCore/include)
17+
target_include_directories (LiveCubReload PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/efsw/include)
18+
19+
20+

LiveCubReload/efsw/.hg_archival.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repo: 78c2ea8c48b213ee0078d6326a1dd719d0844764
2+
node: e6afbec564e249771046c714b0c7f2154e4c7fef
3+
branch: default
4+
latesttag: 1.0.0
5+
latesttagdistance: 12
6+
changessincelatesttag: 12

LiveCubReload/efsw/.hgignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
syntax: glob
2+
bin/*
3+
obj/*
4+
make/*
5+
lib/*
6+
*.DS_Store*
7+
project/qtcreator-osx/efsw.creator.user.2.6pre1
8+
project/qtcreator-osx/efsw.creator.user.4bdfc43

LiveCubReload/efsw/.hgtags

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
854e6d23258ed18984c1dcf0396050a66e5b13fb 1.0.0

LiveCubReload/efsw/CMakeLists.txt

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
project (efsw)
2+
3+
cmake_minimum_required(VERSION 2.8)
4+
5+
option (VERBOSE "Build efsw with verbose mode.")
6+
option (STATIC_LIB "Build efsw as a static library")
7+
option (BUILD_TEST_APP "Build the test app")
8+
9+
if (VERBOSE)
10+
add_definitions(-DEFSW_VERBOSE)
11+
endif()
12+
13+
set(SRCS
14+
src/efsw/Debug.cpp
15+
src/efsw/DirectorySnapshot.cpp
16+
src/efsw/DirectorySnapshotDiff.cpp
17+
src/efsw/DirWatcherGeneric.cpp
18+
src/efsw/FileInfo.cpp
19+
src/efsw/FileSystem.cpp
20+
src/efsw/FileWatcher.cpp
21+
src/efsw/FileWatcherCWrapper.cpp
22+
src/efsw/FileWatcherFSEvents.cpp
23+
src/efsw/FileWatcherGeneric.cpp
24+
src/efsw/FileWatcherImpl.cpp
25+
src/efsw/FileWatcherInotify.cpp
26+
src/efsw/FileWatcherKqueue.cpp
27+
src/efsw/FileWatcherWin32.cpp
28+
src/efsw/Log.cpp
29+
src/efsw/Mutex.cpp
30+
src/efsw/String.cpp
31+
src/efsw/System.cpp
32+
src/efsw/Thread.cpp
33+
src/efsw/Watcher.cpp
34+
src/efsw/WatcherFSEvents.cpp
35+
src/efsw/WatcherGeneric.cpp
36+
src/efsw/WatcherInotify.cpp
37+
src/efsw/WatcherKqueue.cpp
38+
src/efsw/WatcherWin32.cpp)
39+
40+
include_directories(include src)
41+
42+
if (WIN32)
43+
list (APPEND SRCS
44+
src/efsw/platform/win/FileSystemImpl.cpp
45+
src/efsw/platform/win/MutexImpl.cpp
46+
src/efsw/platform/win/SystemImpl.cpp
47+
src/efsw/platform/win/ThreadImpl.cpp)
48+
else ()
49+
list (APPEND SRCS
50+
src/efsw/platform/posix/FileSystemImpl.cpp
51+
src/efsw/platform/posix/MutexImpl.cpp
52+
src/efsw/platform/posix/SystemImpl.cpp
53+
src/efsw/platform/posix/ThreadImpl.cpp)
54+
endif()
55+
56+
if (APPLE)
57+
list (REMOVE_ITEM SRCS
58+
"src/efsw/WatcherInotify.cpp"
59+
"src/efsw/WatcherWin32.cpp"
60+
"src/efsw/FileWatcherInotify.cpp"
61+
"src/efsw/FileWatcherWin32.cpp")
62+
63+
exec_program(uname ARGS -v OUTPUT_VARIABLE OSX_VERSION)
64+
string(REGEX MATCH "[0-9]+" OSX_VERSION ${OSX_VERSION})
65+
if (NOT OSX_VERSION GREATER 9)
66+
add_definitions(-DEFSW_FSEVENTS_NOT_SUPPORTED)
67+
endif()
68+
elseif (WIN32)
69+
list (REMOVE_ITEM SRCS
70+
"src/efsw/WatcherKqueue.cpp"
71+
"src/efsw/WatcherFSEvents.cpp"
72+
"src/efsw/WatcherInotify.cpp"
73+
"src/efsw/FileWatcherKqueue.cpp"
74+
"src/efsw/FileWatcherInotify.cpp"
75+
"src/efsw/FileWatcherFSEvents.cpp")
76+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
77+
list (REMOVE_ITEM SRCS
78+
"src/efsw/WatcherKqueue.cpp"
79+
"src/efsw/WatcherFSEvents.cpp"
80+
"src/efsw/WatcherWin32.cpp"
81+
"src/efsw/FileWatcherKqueue.cpp"
82+
"src/efsw/FileWatcherWin32.cpp"
83+
"src/efsw/FileWatcherFSEvents.cpp")
84+
85+
if (NOT EXISTS "/usr/include/sys/inotify.h" AND NOT EXISTS "/usr/local/include/sys/inotify.h")
86+
add_definitions(-DEFSW_INOTIFY_NOSYS)
87+
endif()
88+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
89+
list (REMOVE_ITEM SRCS
90+
"src/efsw/WatcherInotify.cpp"
91+
"src/efsw/WatcherWin32.cpp"
92+
"src/efsw/WatcherFSEvents.cpp"
93+
"src/efsw/FileWatcherInotify.cpp"
94+
"src/efsw/FileWatcherWin32.cpp"
95+
"src/efsw/FileWatcherFSEvents.cpp")
96+
endif()
97+
98+
if (MSVC)
99+
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
100+
else ()
101+
add_definitions(-Wall -Wno-long-long)
102+
endif()
103+
104+
if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
105+
add_definitions(-DDEBUG)
106+
elseif (${CMAKE_BUILD_TYPE} MATCHES "Release")
107+
add_definitions(-DNDEBUG)
108+
endif()
109+
110+
if (STATIC_LIB)
111+
add_library(efsw STATIC ${SRCS})
112+
else()
113+
add_library(efsw SHARED ${SRCS})
114+
endif()
115+
116+
if (APPLE)
117+
set(MAC_LIBS "-framework CoreFoundation" "-framework CoreServices")
118+
target_link_libraries(efsw ${MAC_LIBS})
119+
elseif (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Haiku") AND NOT WIN32)
120+
target_link_libraries(efsw pthread)
121+
endif()
122+
123+
set(LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
124+
install(TARGETS efsw LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
125+
file (GLOB HDRS "include/efsw/*.h" "include/efsw/*.hpp")
126+
install (FILES ${HDRS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/efsw)
127+
128+
if (BUILD_TEST_APP)
129+
add_executable(efsw-test src/test/efsw-test.cpp)
130+
target_link_libraries(efsw-test efsw)
131+
endif()

LiveCubReload/efsw/LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2012 Martín Lucas Golini
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
20+
21+
This software is a fork of the "simplefilewatcher" by James Wynn ([email protected])
22+
http://code.google.com/p/simplefilewatcher/ also MIT licensed.

0 commit comments

Comments
 (0)