From 03e03952d20d84f6c23155e24f5c8ca909d732ba Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 9 May 2024 09:45:26 +0200 Subject: [PATCH] Remove v8 --- README.md | 11 ----- armorforge/Plugins/Sources/plugins.cpp | 4 +- armorlab/Plugins/Sources/plugins.cpp | 5 -- armorlab/README.md | 1 - armorpaint/Plugins/Sources/plugins.cpp | 3 -- armorpaint/README.md | 2 - armorsculpt/Plugins/Sources/plugins.cpp | 4 +- base/Assets/licenses/license_v8.md | 62 ------------------------- misc/pad/README.md | 1 - 9 files changed, 2 insertions(+), 91 deletions(-) delete mode 100644 base/Assets/licenses/license_v8.md diff --git a/README.md b/README.md index 60380edf..a1abb793 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,3 @@ export ARM_LOCALE= ./armorcore/Kinc/make --from base/Tools --kfile extract_locales.js # Generates a `base/Assets/locale/.json` file ``` - -**Release builds** *Optional, used for best performance* -```bash -# Compile krom.js using the closure compiler -https://developers.google.com/closure/compiler -# Generate a v8 snapshot file -export ARM_SNAPSHOT=1 -../armorcore/Kinc/make --from ../armorcore -g api -./ArmorPaint . --snapshot -# Generates a `krom.bin` file from `krom.js` file -``` diff --git a/armorforge/Plugins/Sources/plugins.cpp b/armorforge/Plugins/Sources/plugins.cpp index 998e9300..f65c5faf 100644 --- a/armorforge/Plugins/Sources/plugins.cpp +++ b/armorforge/Plugins/Sources/plugins.cpp @@ -1,6 +1,4 @@ -#include - -void plugin_embed(v8::Isolate *_isolate, v8::Local global) { +void plugin_embed() { } diff --git a/armorlab/Plugins/Sources/plugins.cpp b/armorlab/Plugins/Sources/plugins.cpp index 2a3dc7f0..75561ea2 100644 --- a/armorlab/Plugins/Sources/plugins.cpp +++ b/armorlab/Plugins/Sources/plugins.cpp @@ -1,11 +1,6 @@ -#include #include -using namespace v8; - -static Isolate *isolate; - extern "C" { void texsynth_inpaint(int w, int h, void *output_ptr, void *image_ptr, void *mask_ptr, bool tiling); } diff --git a/armorlab/README.md b/armorlab/README.md index 5d70d056..6fa8b7dc 100644 --- a/armorlab/README.md +++ b/armorlab/README.md @@ -18,7 +18,6 @@ git clone https://github.com/armory3d/onnx_bin onnx **Windows** ```bash -# Unpack `..\armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB) ..\armorcore\Kinc\make --from ..\armorcore -g direct3d11 # Open generated Visual Studio project at `build\ArmorLab.sln` # Build and run for x64 & release diff --git a/armorpaint/Plugins/Sources/plugins.cpp b/armorpaint/Plugins/Sources/plugins.cpp index adf8e9ee..c0afc239 100644 --- a/armorpaint/Plugins/Sources/plugins.cpp +++ b/armorpaint/Plugins/Sources/plugins.cpp @@ -1,9 +1,6 @@ -#include #include -using namespace v8; - static Isolate *isolate; extern "C" { diff --git a/armorpaint/README.md b/armorpaint/README.md index aef08951..f6efd5c8 100644 --- a/armorpaint/README.md +++ b/armorpaint/README.md @@ -16,7 +16,6 @@ cd armortools/armorpaint **Windows** ```bash -# Unpack `..\armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB) ..\armorcore\Kinc\make --from ..\armorcore -g direct3d11 # Open generated Visual Studio project at `build\ArmorPaint.sln` # Build and run for x64 & release @@ -72,7 +71,6 @@ cp -a build/krom/ ../armorcore/Deployment **Windows DXR** *wip* ```bash -# Unpack `..\armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB) cd ..\armorcore git apply Patches/d3d12_raytrace.diff --directory=Kinc cd ..\armorpaint diff --git a/armorsculpt/Plugins/Sources/plugins.cpp b/armorsculpt/Plugins/Sources/plugins.cpp index 998e9300..f65c5faf 100644 --- a/armorsculpt/Plugins/Sources/plugins.cpp +++ b/armorsculpt/Plugins/Sources/plugins.cpp @@ -1,6 +1,4 @@ -#include - -void plugin_embed(v8::Isolate *_isolate, v8::Local global) { +void plugin_embed() { } diff --git a/base/Assets/licenses/license_v8.md b/base/Assets/licenses/license_v8.md deleted file mode 100644 index 53d9c47e..00000000 --- a/base/Assets/licenses/license_v8.md +++ /dev/null @@ -1,62 +0,0 @@ -This license applies to all parts of V8 that are not externally -maintained libraries. The externally maintained libraries used by V8 -are: - - - PCRE test suite, located in - test/mjsunit/third_party/regexp-pcre/regexp-pcre.js. This is based on the - test suite from PCRE-7.3, which is copyrighted by the University - of Cambridge and Google, Inc. The copyright notice and license - are embedded in regexp-pcre.js. - - - Layout tests, located in test/mjsunit/third_party/object-keys. These are - based on layout tests from webkit.org which are copyrighted by - Apple Computer, Inc. and released under a 3-clause BSD license. - - - Strongtalk assembler, the basis of the files assembler-arm-inl.h, - assembler-arm.cc, assembler-arm.h, assembler-ia32-inl.h, - assembler-ia32.cc, assembler-ia32.h, assembler-x64-inl.h, - assembler-x64.cc, assembler-x64.h, assembler-mips-inl.h, - assembler-mips.cc, assembler-mips.h, assembler.cc and assembler.h. - This code is copyrighted by Sun Microsystems Inc. and released - under a 3-clause BSD license. - - - Valgrind client API header, located at src/third_party/valgrind/valgrind.h - This is released under the BSD license. - - - The Wasm C/C++ API headers, located at third_party/wasm-api/wasm.{h,hh} - This is released under the Apache license. The API's upstream prototype - implementation also formed the basis of V8's implementation in - src/wasm/c-api.cc. - -These libraries have their own licenses; we recommend you read them, -as their terms may differ from the terms below. - -Further license information can be found in LICENSE files located in -sub-directories. - -Copyright 2014, the V8 project authors. All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/misc/pad/README.md b/misc/pad/README.md index 1e1ee7f2..8f1f8f69 100644 --- a/misc/pad/README.md +++ b/misc/pad/README.md @@ -13,7 +13,6 @@ cd armortools/misc/armorpad **Windows** ```bash -# Unpack `..\..\armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB) ..\..\armorcore\Kinc\make --from ..\..\armorcore -g direct3d11 --run ```