Skip to content

Commit

Permalink
Folding build_tools back into the main repo for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Dec 31, 2015
1 parent 214532a commit 952d359
Show file tree
Hide file tree
Showing 47 changed files with 6,903 additions and 82 deletions.
26 changes: 10 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,20 @@ node_modules/**/build/
node_modules/.bin/

# coverage/etc
scratch/
/scratch/

.anvil-cache
.build-cache/
build/
build-out/
build-gen/
build-bin/
build-test/
/build/

# ==============================================================================
# Local-only paths
# ==============================================================================

.vagrant
attic/
content/
third_party/binutils/binutils-2.24.tar.gz
third_party/binutils/bin/
third_party/binutils/powerpc-none-elf/
third_party/binutils/share/
third_party/binutils/binutils*
third_party/vasm/
/attic/
/content/
/third_party/binutils/binutils-2.24.tar.gz
/third_party/binutils/bin/
/third_party/binutils/powerpc-none-elf/
/third_party/binutils/share/
/third_party/binutils/binutils*
/third_party/vasm/
12 changes: 9 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
[submodule "third_party/capstone"]
path = third_party/capstone
url = https://github.com/xenia-project/capstone.git
[submodule "build_tools"]
path = build_tools
url = https://github.com/xenia-project/build-tools.git
[submodule "third_party/libav"]
path = third_party/libav
url = https://github.com/xenia-project/libav.git
Expand All @@ -22,3 +19,12 @@
[submodule "third_party/spirv-tools"]
path = third_party/spirv-tools
url = https://github.com/xenia-project/SPIRV-Tools.git
[submodule "third_party/catch"]
path = third_party/catch
url = https://github.com/philsquared/Catch.git
[submodule "third_party/gflags"]
path = third_party/gflags
url = https://github.com/benvanik/gflags.git
[submodule "third_party/premake-core"]
path = third_party/premake-core
url = https://github.com/premake/premake-core.git
1 change: 0 additions & 1 deletion build_tools
Submodule build_tools deleted from 8b40c4
4 changes: 2 additions & 2 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include("build_tools")
include("tools/build")

location(build_root)
targetdir(build_bin)
Expand Down Expand Up @@ -159,13 +159,13 @@ solution("xenia")

-- Include third party files first so they don't have to deal with gflags.
include("third_party/capstone.lua")
include("third_party/gflags.lua")
include("third_party/glew.lua")
include("third_party/imgui.lua")
include("third_party/libav.lua")
include("third_party/spirv-tools.lua")
include("third_party/xxhash.lua")
include("third_party/zlib.lua")
include("build_tools/third_party/gflags.lua")

include("src/xenia")
include("src/xenia/app")
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/app/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-app")
Expand Down Expand Up @@ -32,7 +32,7 @@ project("xenia-app")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
files({
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/apu/nop/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-apu-nop")
Expand All @@ -13,6 +13,6 @@ project("xenia-apu-nop")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
4 changes: 2 additions & 2 deletions src/xenia/apu/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-apu")
Expand All @@ -14,7 +14,7 @@ project("xenia-apu")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
project_root.."/third_party/libav/",
})
local_platform_files()
4 changes: 2 additions & 2 deletions src/xenia/apu/xaudio2/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-apu-xaudio2")
Expand All @@ -13,6 +13,6 @@ project("xenia-apu-xaudio2")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
6 changes: 3 additions & 3 deletions src/xenia/base/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

project("xenia-base")
uuid("aeadaf22-2b20-4941-b05f-a802d5679c11")
Expand All @@ -8,7 +8,7 @@ project("xenia-base")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
removefiles({"main_*.cc"})
Expand All @@ -18,7 +18,7 @@ project("xenia-base")

test_suite("xenia-base-tests", project_root, ".", {
includedirs = {
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
},
links = {
"xenia-base",
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/cpu/backend/x64/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-cpu-backend-x64")
Expand All @@ -21,6 +21,6 @@ project("xenia-cpu-backend-x64")
})
includedirs({
project_root.."/third_party/capstone/include",
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
2 changes: 1 addition & 1 deletion src/xenia/cpu/ppc/testing/instr_divdu.s
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ test_divdu_11:
#_ REGISTER_IN r3 0xFFFFFFFF
divdu. r0, r0, r3
blr
#_ REGISTER_OUT r0 0xFFFFFFFF
#_ REGISTER_OUT r0 0
#_ REGISTER_OUT r3 0xFFFFFFFF
#_ REGISTER_OUT cr 0x0000000020000000
4 changes: 2 additions & 2 deletions src/xenia/cpu/ppc/testing/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("tests")
project("xenia-cpu-ppc-tests")
Expand All @@ -25,7 +25,7 @@ project("xenia-cpu-ppc-tests")
"*.s",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
filter("files:*.s")
flags({"ExcludeFromBuild"})
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/cpu/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-cpu")
Expand All @@ -11,7 +11,7 @@ project("xenia-cpu")
})
includedirs({
project_root.."/third_party/llvm/include",
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
local_platform_files("backend")
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/cpu/testing/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

test_suite("xenia-cpu-tests", project_root, ".", {
includedirs = {
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
},
links = {
"xenia-base",
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/debug/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-debug")
Expand All @@ -13,6 +13,6 @@ project("xenia-debug")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
4 changes: 2 additions & 2 deletions src/xenia/debug/ui/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-debug-ui")
Expand All @@ -20,6 +20,6 @@ project("xenia-debug-ui")
"GLEW_MX=1",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
8 changes: 4 additions & 4 deletions src/xenia/gpu/gl4/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-gpu-gl4")
Expand All @@ -19,7 +19,7 @@ project("xenia-gpu-gl4")
"GLEW_MX=1",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()

Expand Down Expand Up @@ -59,7 +59,7 @@ project("xenia-gpu-gl4-trace-viewer")
"GLEW_MX=1",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
files({
"gl4_trace_viewer_main.cc",
Expand Down Expand Up @@ -110,7 +110,7 @@ project("xenia-gpu-gl4-trace-dump")
"GLEW_MX=1",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
files({
"gl4_trace_dump_main.cc",
Expand Down
6 changes: 3 additions & 3 deletions src/xenia/gpu/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-gpu")
Expand All @@ -18,7 +18,7 @@ project("xenia-gpu")
})
includedirs({
project_root.."/third_party/spirv-tools/external/include",
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()

Expand All @@ -37,7 +37,7 @@ project("xenia-gpu-shader-compiler")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
files({
"shader_compiler_main.cc",
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/hid/nop/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-hid-nop")
Expand All @@ -13,6 +13,6 @@ project("xenia-hid-nop")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
6 changes: 3 additions & 3 deletions src/xenia/hid/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-hid")
Expand All @@ -12,7 +12,7 @@ project("xenia-hid")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
removefiles({"*_demo.cc"})
Expand Down Expand Up @@ -40,7 +40,7 @@ project("xenia-hid-demo")
"GLEW_MX=1",
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
files({
"hid_demo.cc",
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/hid/winkey/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-hid-winkey")
Expand All @@ -14,6 +14,6 @@ project("xenia-hid-winkey")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
4 changes: 2 additions & 2 deletions src/xenia/hid/xinput/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_root = "../../../.."
include(project_root.."/build_tools")
include(project_root.."/tools/build")

group("src")
project("xenia-hid-xinput")
Expand All @@ -13,6 +13,6 @@ project("xenia-hid-xinput")
defines({
})
includedirs({
project_root.."/build_tools/third_party/gflags/src",
project_root.."/third_party/gflags/src",
})
local_platform_files()
Loading

0 comments on commit 952d359

Please sign in to comment.