Premake refactor

This commit is contained in:
balhau@balhau.net 2021-12-25 10:15:30 +00:00
parent 37326a5526
commit e4c2e711db
No known key found for this signature in database
GPG key ID: 1E666F326A121830
13 changed files with 55 additions and 25 deletions

Binary file not shown.

View file

@ -1,5 +0,0 @@
#include <stdio.h>
int main(int argc,char **argv){
printf("Hello world\n");
}

View file

@ -1,7 +0,0 @@
#include <stdio.h>
int hijackMethod(){
printf("This should never be called");
printf("Neither this...");
return 0;
}

42
premake5.lua Normal file
View file

@ -0,0 +1,42 @@
workspace "CppLib"
configurations {"Debug", "Release" }
system "linux"
project "HelloWorld"
kind "ConsoleApp"
language "c++"
targetdir "bin/%{cfg.buildcfg}"
files {"**.hpp","**.cpp"}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter { "system:linux" }
links {
"wx_gtk3u_xrc-3.0",
"wx_gtk3u_html-3.0",
"wx_gtk3u_adv-3.0",
"wx_gtk3u_core-3.0" ,
"wx_baseu_xml-3.0",
"wx_baseu_net-3.0",
"wx_baseu-3.0",
"glfw3"
}
includedirs {
"/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0" ,
"/usr/include/wx-3.0"
}
defines {
"_FILE_OFFSET_BITS=64",
"WXUSINGDLL",
"__WXGTK__"
}

View file

@ -1,4 +1,4 @@
#include "../../include/bmath/complex.hpp"
#include "complex.hpp"
/**
* Constructor implementation

View file

@ -1,5 +1,5 @@
#include <iostream>
#include "../../../include/bmath/complex.hpp"
#include "../complex.hpp"
using BMath::Complex;

View file

@ -1,4 +1,4 @@
#include "../../../include/bmath/math.hpp"
#include "../math.hpp"
#include <iostream>
using namespace BMath;

View file

@ -1,4 +1,4 @@
#include "../../include/bmath/math.hpp"
#include "math.hpp"
//http://graphics.stanford.edu/~seander/bithacks.html
//https://hbfs.wordpress.com/2008/08/05/branchless-equivalents-of-simple-functions/

View file

@ -1,4 +1,4 @@
#include "../../include/cpu/avx2.hpp"
#include "avx2.hpp"
#include <iostream>
#include <string>

View file

@ -1,7 +1,7 @@
#include <iostream>
#include "../../../include/cpu/utils.hpp"
#include "../../../include/cpu/sse.hpp"
#include "../../../include/cpu/naive.hpp"
#include "../utils.hpp"
#include "../sse.hpp"
#include "../naive.hpp"
#include <sys/time.h>
using namespace cpu;

View file

@ -1,5 +1,5 @@
#include "../../include/cpu/naive.hpp"
#include "../../include/cpu/types.hpp"
#include "naive.hpp"
#include "types.hpp"
#include <iostream>
void cpu::Naive::sum_128_long(UInt *a,UInt *b){

View file

@ -1,4 +1,4 @@
#include "../../include/cpu/sse.hpp"
#include "sse.hpp"
#include <iostream>
//X86 Assembly to add two 128 bit numbers in the form of packed integers 32bit

View file

@ -1,5 +1,5 @@
#include "../../../include/misc/memory/model.h"
#include "../../../include/misc/util/debug.h"
#include "model.h"
#include "../util/debug.h"
#include <memory>
#include <atomic>