Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e6298cd
Linux build working in Ubuntu 18.04. See instructions in Wiki
cboulay Mar 2, 2019
fd405a8
Starting work on using vcpkg to manage dependencies.
cboulay Mar 3, 2019
1219e3a
Removed submodules replaced by vcpkg
cboulay Mar 4, 2019
6eadb02
Slow progress in build system refactor.
cboulay Mar 4, 2019
897e783
Updated libstem_gamepad fork to new location in psmoveservice org.
cboulay Mar 6, 2019
1b5158e
A step toward better Linux build compatibility... but iit will need a…
cboulay Mar 6, 2019
2225924
incrementing on build system
cboulay Mar 6, 2019
3330bc5
Build working in Ubuntu again.
cboulay Mar 7, 2019
ece7e22
Ignore CLion files
cboulay Mar 7, 2019
92c850f
IDE whitespace touchups + declare variable for debugging.
cboulay Mar 7, 2019
df405a2
configtool renderer - new ImGui API: Create/DestroyContext()
cboulay Mar 7, 2019
f232b1d
Added .DS_Store to .gitignore
cboulay Mar 10, 2019
36893fc
Builds in MacOS
cboulay Mar 10, 2019
a401e7a
Building in Windows again.
cboulay Mar 11, 2019
c2f2418
BUILD_MACOS.md
cboulay Mar 11, 2019
b932a00
Fixed PS3Eye usage in Linux - Required option to enable webcams.
cboulay Mar 11, 2019
467de04
PS3Eye - fixed calculation of bytes per pixel.
cboulay Mar 11, 2019
3bcbce4
PS3EyeTracker - clang_tidy
cboulay Mar 11, 2019
855c9d5
ImGui renderer - Updated to match examples.
cboulay Mar 11, 2019
c840225
ConfigTool Renderer - Fix issue when update called twice without SDL
cboulay Mar 12, 2019
99f13eb
auto-indent
cboulay Mar 12, 2019
393e2c8
BUILD_WIN doc update.
cboulay Mar 12, 2019
90e1e2a
Linux - get host address (TODO: Error handling).
cboulay Mar 12, 2019
88a6917
Linux - stubs for PlatformDeviceAPILinux
cboulay Mar 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# IDE Generated files
*.suo
.vs/
CMakeSettings.json
.idea
cmake-build-debug/

# Compiled Object files
*.slo
Expand Down Expand Up @@ -56,3 +60,5 @@ SetBuildVars_X64.bat
!src/openvr_plugin/resources/*.obj

*.kdev4

.DS_Store
14 changes: 1 addition & 13 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "thirdparty/libusb"]
path = thirdparty/libusb
url = https://github.com/libusb/libusb.git
[submodule "thirdparty/hidapi"]
path = thirdparty/hidapi
url = https://github.com/signal11/hidapi.git
Expand All @@ -18,24 +15,15 @@
[submodule "thirdparty/protobuf"]
path = thirdparty/protobuf
url = https://github.com/google/protobuf.git
[submodule "thirdparty/imgui"]
path = thirdparty/imgui
url = https://github.com/ocornut/imgui.git
[submodule "thirdparty/stb"]
path = thirdparty/stb
url = https://github.com/nothings/stb.git
[submodule "thirdparty/SDL2"]
path = thirdparty/SDL2
url = https://github.com/spurious/SDL-mirror.git
[submodule "thirdparty/eigen"]
path = thirdparty/eigen
url = https://github.com/libigl/eigen.git
[submodule "thirdparty/kalman"]
path = thirdparty/kalman
url = https://github.com/mherb/kalman.git
[submodule "thirdparty/libstem_gamepad"]
path = thirdparty/libstem_gamepad
url = https://github.com/cboulay/libstem_gamepad.git
url = https://github.com/psmoveservice/libstem_gamepad.git
[submodule "thirdparty/lockfreequeue"]
path = thirdparty/lockfreequeue
url = https://github.com/cameron314/readerwriterqueue.git
34 changes: 17 additions & 17 deletions cmake/Environment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ endif()
#links against static runtime, so we need our apps to link
#against the static runtime too.
#https://cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F
IF(MSVC)
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
#IF(MSVC)
# SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
# SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")

set(CompilerFlags
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
)
foreach(CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach()
ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch")
ENDIF(MSVC)
# set(CompilerFlags
# CMAKE_CXX_FLAGS
# CMAKE_CXX_FLAGS_DEBUG
# CMAKE_CXX_FLAGS_RELEASE
# CMAKE_C_FLAGS
# CMAKE_C_FLAGS_DEBUG
# CMAKE_C_FLAGS_RELEASE
# )
# foreach(CompilerFlag ${CompilerFlags})
# string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
# endforeach()
#ELSE()
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch")
#ENDIF(MSVC)
163 changes: 0 additions & 163 deletions cmake/FindSDL2.cmake

This file was deleted.

74 changes: 9 additions & 65 deletions cmake/FindUSB1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,79 +21,23 @@ IF (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
set(LIBUSB_FOUND TRUE)

ELSE (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
set(LIBUSB_ROOT ${CMAKE_CURRENT_LIST_DIR}/../thirdparty/libusb)
# Because we want to use the static library,
# look locally only.

find_path(LIBUSB_INCLUDE_DIR
NAMES
libusb.h
PATHS
${LIBUSB_ROOT}/libusb
${LIBUSB_ROOT}/libusb-1.0
HINTS
/usr/local/include
PATH_SUFFIXES
libusb-1.0
)
# There are 4 platform-specific ways we might get the libraries.
# 1 - Windows MSVC, download the source, compile with MSVC
# 2 - Windows MSVC, download pre-compiled binaries <- Do not use; wrong CRT library
# 3 - Windows MinGW, download pre-compiled binaries
# 4 - OSX, download the source, build, but do not install
# 5 - OSX, homebrew OR download the source, build, and install
# Each of these puts the compiled library into a different folder
# and that is also architecture-specific.

set(LIBUSB_LIB_SEARCH_PATH_RELEASE ${LIBUSB_ROOT})
set(LIBUSB_LIB_SEARCH_PATH_DEBUG ${LIBUSB_ROOT})
IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
IF(MINGW)
set(LIBUSB_PLATFORM_PREFIX MinGW) # Does this get used?
#TODO: Add self-compiled folder for MinGW
IF (${CMAKE_C_SIZEOF_DATA_PTR} EQUAL 8)
list(APPEND LIBUSB_LIB_SEARCH_PATH_RELEASE
${LIBUSB_ROOT}/MinGW64/static)
list(APPEND LIBUSB_LIB_SEARCH_PATH_DEBUG
${LIBUSB_ROOT}/MinGW64/static)
ELSE()
list(APPEND LIBUSB_LIB_SEARCH_PATH_RELEASE
${LIBUSB_ROOT}/MinGW32/static)
list(APPEND LIBUSB_LIB_SEARCH_PATH_DEBUG
${LIBUSB_ROOT}/MinGW32/static)
ENDIF()
ELSE() # MSVC?
set(LIBUSB_PLATFORM_PREFIX MS) # Does this get used?
IF (${CMAKE_C_SIZEOF_DATA_PTR} EQUAL 8)
list(APPEND LIBUSB_LIB_SEARCH_PATH_RELEASE
${LIBUSB_ROOT}/x64/Release/lib)
list(APPEND LIBUSB_LIB_SEARCH_PATH_DEBUG
${LIBUSB_ROOT}/x64/Debug/lib)
ELSE()
list(APPEND LIBUSB_LIB_SEARCH_PATH_RELEASE
${LIBUSB_ROOT}/Win32/Release/lib)
list(APPEND LIBUSB_LIB_SEARCH_PATH_DEBUG
${LIBUSB_ROOT}/Win32/Debug/lib)
ENDIF()
ENDIF()
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
list(APPEND LIBUSB_LIB_SEARCH_PATH_RELEASE
${LIBUSB_ROOT}/libusb/.libs
/usr/local/lib)
list(APPEND LIBUSB_LIB_SEARCH_PATH_DEBUG
${LIBUSB_ROOT}/libusb/.libs
/usr/local/lib)
ENDIF()

FIND_LIBRARY(LIBUSB_LIBRARY_RELEASE
NAMES libusb-1.0.a libusb-1.0.lib libusb-1.0 usb-1.0 usb
PATHS ${LIBUSB_LIB_SEARCH_PATH_RELEASE})
FIND_LIBRARY(LIBUSB_LIBRARY_DEBUG
FIND_LIBRARY(LIBUSB_LIBRARIES
NAMES libusb-1.0.a libusb-1.0.lib libusb-1.0 usb-1.0 usb
PATHS ${LIBUSB_LIB_SEARCH_PATH_DEBUG})
SET(LIBUSB_LIBRARIES
debug ${LIBUSB_LIBRARY_DEBUG}
optimized ${LIBUSB_LIBRARY_RELEASE})
PATHS /usr/local/lib)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)

MARK_AS_ADVANCED(LIBUSB_INCLUDE_DIR LIBUSB_LIBRARIES)
MARK_AS_ADVANCED(LIBUSB_INCLUDE_DIR LIBUSB_LIBRARIES)

ENDIF (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
Loading