chore: Seperate Go modules into seperate directories

This is done to help potential dependents reduce download sizes and only
download what they need.
This commit is contained in:
Tera << 8 2025-06-26 18:57:29 -04:00
parent eb33ec116e
commit 77792a82a6
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
10 changed files with 44 additions and 9 deletions

View file

@ -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)

11
app/LICENSE Normal file
View file

@ -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.

View file

@ -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

View file

@ -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=

3
ardriver/go.mod Normal file
View file

@ -0,0 +1,3 @@
module git.terah.dev/UnrealXR/unrealxr/ardriver
go 1.24.3

11
edidpatcher/LICENSE Normal file
View file

@ -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.

View file

@ -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

5
edidpatcher/go.mod Normal file
View file

@ -0,0 +1,5 @@
module git.terah.dev/UnrealXR/unrealxr/edidpatcher
go 1.24.3
require github.com/google/uuid v1.6.0

2
edidpatcher/go.sum Normal file
View file

@ -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=