Initial meson build support.

Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I700334cad9de1b633b3882fc8a2df6d7832832b2
diff --git a/sim/hei_sim_main.cpp b/sim/hei_sim_main.cpp
index bfce2d0..b3f26d2 100644
--- a/sim/hei_sim_main.cpp
+++ b/sim/hei_sim_main.cpp
@@ -1,9 +1,6 @@
 
 #include "../hei_isolator.hpp"
 
-namespace HEI_SIM
-{
-
 int main()
 {
     HEI::Isolator iso;
@@ -14,5 +11,3 @@
 
     return 0;
 }
-
-}; // end namespace HEI_SIM
diff --git a/sim/hei_user_defines.hpp b/sim/hei_user_defines.hpp
new file mode 100644
index 0000000..ebb2a8e
--- /dev/null
+++ b/sim/hei_user_defines.hpp
@@ -0,0 +1,3 @@
+#include <stdio.h>
+
+#define HEI_TRAC(...) printf( __VA_ARGS__ ); printf( "\n" );
diff --git a/sim/meson.build b/sim/meson.build
new file mode 100644
index 0000000..3693e81
--- /dev/null
+++ b/sim/meson.build
@@ -0,0 +1,8 @@
+tests = ['openpower-libhei-sim']
+
+sim_sources = ['hei_sim_main.cpp',
+                '../hei_isolator.cpp']
+
+foreach t : tests
+  test(t, executable(t.underscorify(), sim_sources, include_directories : incdir))
+endforeach