-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imporving initial build process on Linux
Removing unused module Have CMake pull the submodules Added Linux CMake installer Removing unused code Partially working auto installer.
- Loading branch information
1 parent
7f2e041
commit 98e05dd
Showing
10 changed files
with
219 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[submodule "OpenVR-SpaceCalibrator/gl3w"] | ||
path = OpenVR-SpaceCalibrator/gl3w | ||
url = https://github.com/skaslev/gl3w.git | ||
[submodule "modules/gl3w"] | ||
path = modules/gl3w | ||
url = https://github.com/skaslev/gl3w.git | ||
[submodule "modules/imgui"] | ||
path = modules/imgui | ||
url = https://github.com/ocornut/imgui.git | ||
[submodule "modules/openvr"] | ||
path = modules/openvr | ||
url = https://github.com/ValveSoftware/openvr.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#cmakedefine DRIVER_LOG_FILE "@DRIVER_LOG_FILE@" | ||
#cmakedefine APP_MANIFEST_PATH "@APP_MANIFEST_PATH@" | ||
#cmakedefine DRIVER_MANIFEST_PATH "@DRIVER_MANIFEST_PATH@" | ||
#cmakedefine DRIVER_INSTALLER_PATH "@DRIVER_INSTALLER_PATH@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/usr/bin/env python3 | ||
import os, sys | ||
import subprocess | ||
import re | ||
import argparse | ||
|
||
#vrpathreg = "/home/zack/.local/share/Steam/steamapps/common/SteamVR/bin/vrpathreg.sh" | ||
|
||
def GetDrivers(vrpathreg): | ||
proc = subprocess.Popen([vrpathreg], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8') | ||
(stdout, _) = proc.communicate() | ||
|
||
lineno = 0 | ||
externalReg = re.compile('.*External Drivers:.*') | ||
lines = stdout.split('\n') | ||
for line in lines: | ||
lineno += 1 | ||
if externalReg.match(line): | ||
break | ||
|
||
lines = [ x.strip().split(':')[1].strip() for x in lines[lineno:] if len(x) > 0] | ||
return lines | ||
|
||
def RemoveDriver(vrpathreg, driver): | ||
cmd = [vrpathreg, 'removedriver', driver] | ||
print(cmd) | ||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8') | ||
(stdout, _) = proc.communicate() | ||
|
||
def AddDriver(vrpathreg, driver): | ||
cmd = [vrpathreg, 'adddriver', driver] | ||
print(cmd) | ||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8') | ||
(stdout, _) = proc.communicate() | ||
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
|
||
parser.add_argument('--toInstall', help="Driver to install (folder path)", required=True) | ||
parser.add_argument('--vrpathreg', help="Path to vrpathreg.sh", required=True) | ||
|
||
args = parser.parse_args() | ||
|
||
fail = False | ||
if not os.path.exists(args.toInstall): | ||
print("Driver path [{args.toInstall}] does not exist") | ||
fail = True | ||
|
||
if not os.path.exists(args.vrpathreg): | ||
print("Path to vrpathreg.sh [{args.toInstall}] does not exist") | ||
fail = True | ||
|
||
if fail: | ||
return | ||
|
||
drivers = GetDrivers(args.vrpathreg) | ||
|
||
spaceCalReg = re.compile('.*01spacecalibrator.*') | ||
|
||
for driver in drivers: | ||
RemoveDriver(args.vrpathreg, driver) | ||
|
||
AddDriver(args.vrpathreg, args.toInstall) | ||
|
||
for driver in drivers[::-1]: | ||
if spaceCalReg.match(driver): | ||
continue | ||
|
||
AddDriver(args.vrpathreg, driver) | ||
|
||
pass | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
|
Submodule gl3w
deleted from
5f8d7f