diff --git a/Makefile b/Makefile index 0d040fb..96717c8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ APP_DIR := ./app -OUTPUT := uxr +OUTPUT := ./uxr TAGS := xreal noaudio drm drm_leasing drm_disable_input .PHONY: all build clean @@ -7,7 +7,7 @@ TAGS := xreal noaudio drm drm_leasing drm_disable_input all: build build: - go build -v -tags '$(TAGS)' -o $(OUTPUT) $(APP_DIR) + cd $(APP_DIR) && go build -v -tags '$(TAGS)' -o ../$(OUTPUT) . clean: rm -f $(OUTPUT) diff --git a/app/LICENSE b/app/LICENSE new file mode 100644 index 0000000..ea08705 --- /dev/null +++ b/app/LICENSE @@ -0,0 +1,11 @@ +Copyright (c) 2025 imterah. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/go.mod b/app/go.mod similarity index 74% rename from go.mod rename to app/go.mod index e631900..73ed20d 100644 --- a/go.mod +++ b/app/go.mod @@ -1,20 +1,25 @@ -module git.terah.dev/UnrealXR/unrealxr +module git.terah.dev/UnrealXR/unrealxr/app go 1.24.3 +replace git.terah.dev/UnrealXR/unrealxr/ardriver => ../ardriver + +replace git.terah.dev/UnrealXR/unrealxr/edidpatcher => ../edidpatcher + require ( git.terah.dev/UnrealXR/raylib-go/raylib v0.55.2-0.20250623002739-1468af2636e1 + git.terah.dev/UnrealXR/unrealxr/ardriver v0.0.0-00010101000000-000000000000 + git.terah.dev/UnrealXR/unrealxr/edidpatcher v0.0.0-00010101000000-000000000000 + git.terah.dev/imterah/goevdi/libevdi v0.1.0-evdi1.14.10 github.com/anoopengineer/edidparser v0.0.0-20240602223913-86ca9ed3d2b0 github.com/charmbracelet/log v0.4.2 github.com/goccy/go-yaml v1.18.0 - github.com/google/uuid v1.6.0 github.com/kirsle/configdir v0.0.0-20170128060238-e45d2f54772f github.com/tebeka/atexit v0.3.0 github.com/urfave/cli/v3 v3.3.8 ) require ( - git.terah.dev/imterah/goevdi/libevdi v0.1.0-evdi1.14.10 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect github.com/charmbracelet/lipgloss v1.1.0 // indirect @@ -23,6 +28,7 @@ require ( github.com/charmbracelet/x/term v0.2.1 // indirect github.com/ebitengine/purego v0.8.4 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect diff --git a/go.sum b/app/go.sum similarity index 96% rename from go.sum rename to app/go.sum index a5b5c74..4bee4dd 100644 --- a/go.sum +++ b/app/go.sum @@ -1,7 +1,5 @@ git.terah.dev/UnrealXR/raylib-go/raylib v0.55.2-0.20250623002739-1468af2636e1 h1:cO/veKc8mon3Zlueq1sEc047B04fk/hoBJSn+btMLDI= git.terah.dev/UnrealXR/raylib-go/raylib v0.55.2-0.20250623002739-1468af2636e1/go.mod h1:ZRirF2UuVWSbl2ux7oyHwXcinni9msejCvtIsXbT8yY= -git.terah.dev/imterah/goevdi v1.14.11-0.20250626004148-bdbef2a68ff9 h1:TYcPZ62CR3keYf/dE9KyV5X5krh+riDyZ3fnhkeSRyA= -git.terah.dev/imterah/goevdi v1.14.11-0.20250626004148-bdbef2a68ff9/go.mod h1:4scjAuFakx/2gTRSeCtTNHnj1v9FdF3XiOMmWsz4FDs= git.terah.dev/imterah/goevdi/libevdi v0.1.0-evdi1.14.10 h1:M+Wja0b6Ks3mZXMGoBs3KZXsKRRWolUelITLQ/kaIFw= git.terah.dev/imterah/goevdi/libevdi v0.1.0-evdi1.14.10/go.mod h1:7zdodqq+tECNHTljD5l7x0PvcGglLCa+mD2eQj0vkEg= github.com/anoopengineer/edidparser v0.0.0-20240602223913-86ca9ed3d2b0 h1:rTfysyBCL7LPbq9GFpQbllvKT8vEI93lQUwksMMxHMI= diff --git a/LICENSE b/ardriver/LICENSE similarity index 100% rename from LICENSE rename to ardriver/LICENSE diff --git a/ardriver/go.mod b/ardriver/go.mod new file mode 100644 index 0000000..efd8c49 --- /dev/null +++ b/ardriver/go.mod @@ -0,0 +1,3 @@ +module git.terah.dev/UnrealXR/unrealxr/ardriver + +go 1.24.3 diff --git a/edidpatcher/LICENSE b/edidpatcher/LICENSE new file mode 100644 index 0000000..ea08705 --- /dev/null +++ b/edidpatcher/LICENSE @@ -0,0 +1,11 @@ +Copyright (c) 2025 imterah. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/edidpatcher/edidpatcher.go b/edidpatcher/edidpatcher.go index a56b386..097b59a 100644 --- a/edidpatcher/edidpatcher.go +++ b/edidpatcher/edidpatcher.go @@ -3,7 +3,6 @@ package edidpatcher import ( "fmt" - "github.com/charmbracelet/log" "github.com/google/uuid" ) @@ -38,7 +37,7 @@ func PatchEDIDToBeSpecialized(edid []byte) ([]byte, error) { } if newEDID[currentExtensionPosition+1] != 0x03 { - log.Warn("Incompatible version detected for ANSI CTA data section in EDID") + fmt.Println("WARN: Incompatible version detected for ANSI CTA data section in EDID") } foundExtensionBase = currentExtensionPosition diff --git a/edidpatcher/go.mod b/edidpatcher/go.mod new file mode 100644 index 0000000..1774e05 --- /dev/null +++ b/edidpatcher/go.mod @@ -0,0 +1,5 @@ +module git.terah.dev/UnrealXR/unrealxr/edidpatcher + +go 1.24.3 + +require github.com/google/uuid v1.6.0 diff --git a/edidpatcher/go.sum b/edidpatcher/go.sum new file mode 100644 index 0000000..7790d7c --- /dev/null +++ b/edidpatcher/go.sum @@ -0,0 +1,2 @@ +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=