diff --git a/examples/QuickJS/build.sh b/examples/QuickJS/build.sh deleted file mode 100755 index d0bb0e47..00000000 --- a/examples/QuickJS/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -set -ex -mono ../../build/vs2015/lib/Debug_x64/CppSharp.CLI.exe -gen=qjs -module=test -prefix=js_ test-native.h -../../build/premake5-osx --file=premake5.lua gmake -make clean -make - -cp gen/bin/release/libtest.dylib . -../../deps/QuickJS/qjs test.js \ No newline at end of file diff --git a/examples/QuickJS/premake5.lua b/examples/QuickJS/premake5.lua deleted file mode 100644 index e1fb66f0..00000000 --- a/examples/QuickJS/premake5.lua +++ /dev/null @@ -1,15 +0,0 @@ -qjs_inc_dir = path.getabsolute("../../deps/QuickJS") -qjs_lib_dir = path.getabsolute("../../deps/QuickJS") - -workspace "qjs" - configurations { "release" } - - project "test-native" - kind "StaticLib" - files { "*-native.cpp" } - - include "gen/js_premake5.lua" - - project "test" - includedirs { "." } - links { "test-native" } \ No newline at end of file diff --git a/examples/QuickJS/test-native.cpp b/examples/QuickJS/test-native.cpp deleted file mode 100644 index 38d407b7..00000000 --- a/examples/QuickJS/test-native.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include "test-native.h" - -extern "C" int plus(int a, int b) -{ - return a + b; -} \ No newline at end of file diff --git a/examples/QuickJS/test-native.h b/examples/QuickJS/test-native.h deleted file mode 100644 index 83d8d38e..00000000 --- a/examples/QuickJS/test-native.h +++ /dev/null @@ -1 +0,0 @@ -extern "C" int plus(int a, int b); \ No newline at end of file diff --git a/examples/QuickJS/test.js b/examples/QuickJS/test.js deleted file mode 100644 index 6475caed..00000000 --- a/examples/QuickJS/test.js +++ /dev/null @@ -1,2 +0,0 @@ -import { plus } from './libtest.dylib' -console.log(plus(1, 2)) \ No newline at end of file