Switching to premake. Probably with disasterous consequences.
This commit is contained in:
46
src/xenia/base/debug_visualizers.natvis
Normal file
46
src/xenia/base/debug_visualizers.natvis
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
|
||||
<!-- Automatically convert endianness for xe::be -->
|
||||
<Type Name="xe::be<unsigned int>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF000000) >> 24) |
|
||||
((value & 0x00FF0000) >> 8) |
|
||||
((value & 0x0000FF00) << 8) |
|
||||
((value & 0x000000FF) << 24))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
<Type Name="xe::be<int>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF000000) >> 24) |
|
||||
((value & 0x00FF0000) >> 8) |
|
||||
((value & 0x0000FF00) << 8) |
|
||||
((value & 0x000000FF) << 24))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="xe::be<unsigned short>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF00) >> 8) |
|
||||
((value & 0x00FF) << 8))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
<Type Name="xe::be<short>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF00) >> 8) |
|
||||
((value & 0x00FF) << 8))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="xe::be<unsigned char>">
|
||||
<DisplayString>
|
||||
{value}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
<Type Name="xe::be<char>">
|
||||
<DisplayString>
|
||||
{value}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
|
||||
</AutoVisualizer>
|
||||
@@ -49,7 +49,7 @@ void AttachConsole() {
|
||||
} // namespace xe
|
||||
|
||||
// Used in console mode apps; automatically picked based on subsystem.
|
||||
int wmain(int argc, wchar_t* argv[]) {
|
||||
int main(int argc, wchar_t* argv[]) {
|
||||
auto entry_info = xe::GetEntryInfo();
|
||||
|
||||
google::SetUsageMessage(std::string("usage: ") +
|
||||
@@ -102,7 +102,7 @@ int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR command_line, int) {
|
||||
}
|
||||
|
||||
// Run normal entry point.
|
||||
int result = wmain(argc, argv);
|
||||
int result = main(argc, argv);
|
||||
|
||||
LocalFree(argv);
|
||||
return result;
|
||||
|
||||
19
src/xenia/base/memory_test.cc
Normal file
19
src/xenia/base/memory_test.cc
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "third_party/catch/include/catch.hpp"
|
||||
#include "xenia/base/memory.h"
|
||||
|
||||
using namespace xe;
|
||||
using namespace xe::memory;
|
||||
|
||||
TEST_CASE("copy_and_swap_16_aligned", "Copy and Swap") {
|
||||
// TODO(benvanik): tests.
|
||||
REQUIRE(true == true);
|
||||
}
|
||||
24
src/xenia/base/premake5.lua
Normal file
24
src/xenia/base/premake5.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
project_root = "../../.."
|
||||
include(project_root.."/build_tools")
|
||||
|
||||
project("xenia-base")
|
||||
uuid("aeadaf22-2b20-4941-b05f-a802d5679c11")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
})
|
||||
local_platform_files()
|
||||
removefiles({"main_*.cc"})
|
||||
files({
|
||||
"debug_visualizers.natvis",
|
||||
})
|
||||
|
||||
test_suite("xenia-base-tests", project_root, ".", {
|
||||
includedirs = {
|
||||
},
|
||||
links = {
|
||||
"xenia-base",
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user