Switching to premake. Probably with disasterous consequences.

This commit is contained in:
Ben Vanik
2015-07-18 16:00:01 -07:00
parent 6c5d230f67
commit e0eb85bbbc
208 changed files with 1112 additions and 4162 deletions

View 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&lt;unsigned int&gt;">
<DisplayString>
{(((value &amp; 0xFF000000) &gt;&gt; 24) |
((value &amp; 0x00FF0000) &gt;&gt; 8) |
((value &amp; 0x0000FF00) &lt;&lt; 8) |
((value &amp; 0x000000FF) &lt;&lt; 24))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;int&gt;">
<DisplayString>
{(((value &amp; 0xFF000000) &gt;&gt; 24) |
((value &amp; 0x00FF0000) &gt;&gt; 8) |
((value &amp; 0x0000FF00) &lt;&lt; 8) |
((value &amp; 0x000000FF) &lt;&lt; 24))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;unsigned short&gt;">
<DisplayString>
{(((value &amp; 0xFF00) &gt;&gt; 8) |
((value &amp; 0x00FF) &lt;&lt; 8))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;short&gt;">
<DisplayString>
{(((value &amp; 0xFF00) &gt;&gt; 8) |
((value &amp; 0x00FF) &lt;&lt; 8))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;unsigned char&gt;">
<DisplayString>
{value}
</DisplayString>
</Type>
<Type Name="xe::be&lt;char&gt;">
<DisplayString>
{value}
</DisplayString>
</Type>
</AutoVisualizer>

View File

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

View 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);
}

View 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",
},
})