summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/SCsub1
-rw-r--r--drivers/pe_bliss/SCsub5
-rw-r--r--drivers/register_driver_types.cpp4
-rw-r--r--platform/windows/export/export.cpp220
-rw-r--r--platform/windows/export/export.h1
-rw-r--r--tools/SCsub1
-rw-r--r--tools/pe_bliss/README (renamed from drivers/pe_bliss/README)0
-rw-r--r--tools/pe_bliss/SCsub5
-rw-r--r--tools/pe_bliss/entropy.cpp (renamed from drivers/pe_bliss/entropy.cpp)0
-rw-r--r--tools/pe_bliss/entropy.h (renamed from drivers/pe_bliss/entropy.h)0
-rw-r--r--tools/pe_bliss/file_version_info.cpp (renamed from drivers/pe_bliss/file_version_info.cpp)0
-rw-r--r--tools/pe_bliss/file_version_info.h (renamed from drivers/pe_bliss/file_version_info.h)0
-rw-r--r--tools/pe_bliss/message_table.cpp (renamed from drivers/pe_bliss/message_table.cpp)0
-rw-r--r--tools/pe_bliss/message_table.h (renamed from drivers/pe_bliss/message_table.h)0
-rw-r--r--tools/pe_bliss/pe_base.cpp (renamed from drivers/pe_bliss/pe_base.cpp)0
-rw-r--r--tools/pe_bliss/pe_base.h (renamed from drivers/pe_bliss/pe_base.h)0
-rw-r--r--tools/pe_bliss/pe_bliss.h (renamed from drivers/pe_bliss/pe_bliss.h)0
-rw-r--r--tools/pe_bliss/pe_bliss_godot.cpp (renamed from drivers/pe_bliss/pe_bliss_godot.cpp)0
-rw-r--r--tools/pe_bliss/pe_bliss_godot.h (renamed from drivers/pe_bliss/pe_bliss_godot.h)0
-rw-r--r--tools/pe_bliss/pe_bliss_resources.h (renamed from drivers/pe_bliss/pe_bliss_resources.h)0
-rw-r--r--tools/pe_bliss/pe_bound_import.cpp (renamed from drivers/pe_bliss/pe_bound_import.cpp)0
-rw-r--r--tools/pe_bliss/pe_bound_import.h (renamed from drivers/pe_bliss/pe_bound_import.h)0
-rw-r--r--tools/pe_bliss/pe_checksum.cpp (renamed from drivers/pe_bliss/pe_checksum.cpp)0
-rw-r--r--tools/pe_bliss/pe_checksum.h (renamed from drivers/pe_bliss/pe_checksum.h)0
-rw-r--r--tools/pe_bliss/pe_debug.cpp (renamed from drivers/pe_bliss/pe_debug.cpp)0
-rw-r--r--tools/pe_bliss/pe_debug.h (renamed from drivers/pe_bliss/pe_debug.h)0
-rw-r--r--tools/pe_bliss/pe_directory.cpp (renamed from drivers/pe_bliss/pe_directory.cpp)0
-rw-r--r--tools/pe_bliss/pe_directory.h (renamed from drivers/pe_bliss/pe_directory.h)0
-rw-r--r--tools/pe_bliss/pe_dotnet.cpp (renamed from drivers/pe_bliss/pe_dotnet.cpp)0
-rw-r--r--tools/pe_bliss/pe_dotnet.h (renamed from drivers/pe_bliss/pe_dotnet.h)0
-rw-r--r--tools/pe_bliss/pe_exception.cpp (renamed from drivers/pe_bliss/pe_exception.cpp)0
-rw-r--r--tools/pe_bliss/pe_exception.h (renamed from drivers/pe_bliss/pe_exception.h)0
-rw-r--r--tools/pe_bliss/pe_exception_directory.cpp (renamed from drivers/pe_bliss/pe_exception_directory.cpp)0
-rw-r--r--tools/pe_bliss/pe_exception_directory.h (renamed from drivers/pe_bliss/pe_exception_directory.h)0
-rw-r--r--tools/pe_bliss/pe_exports.cpp (renamed from drivers/pe_bliss/pe_exports.cpp)0
-rw-r--r--tools/pe_bliss/pe_exports.h (renamed from drivers/pe_bliss/pe_exports.h)0
-rw-r--r--tools/pe_bliss/pe_factory.cpp (renamed from drivers/pe_bliss/pe_factory.cpp)0
-rw-r--r--tools/pe_bliss/pe_factory.h (renamed from drivers/pe_bliss/pe_factory.h)0
-rw-r--r--tools/pe_bliss/pe_imports.cpp (renamed from drivers/pe_bliss/pe_imports.cpp)0
-rw-r--r--tools/pe_bliss/pe_imports.h (renamed from drivers/pe_bliss/pe_imports.h)0
-rw-r--r--tools/pe_bliss/pe_load_config.cpp (renamed from drivers/pe_bliss/pe_load_config.cpp)0
-rw-r--r--tools/pe_bliss/pe_load_config.h (renamed from drivers/pe_bliss/pe_load_config.h)0
-rw-r--r--tools/pe_bliss/pe_properties.cpp (renamed from drivers/pe_bliss/pe_properties.cpp)0
-rw-r--r--tools/pe_bliss/pe_properties.h (renamed from drivers/pe_bliss/pe_properties.h)0
-rw-r--r--tools/pe_bliss/pe_properties_generic.cpp (renamed from drivers/pe_bliss/pe_properties_generic.cpp)0
-rw-r--r--tools/pe_bliss/pe_properties_generic.h (renamed from drivers/pe_bliss/pe_properties_generic.h)0
-rw-r--r--tools/pe_bliss/pe_rebuilder.cpp (renamed from drivers/pe_bliss/pe_rebuilder.cpp)0
-rw-r--r--tools/pe_bliss/pe_rebuilder.h (renamed from drivers/pe_bliss/pe_rebuilder.h)0
-rw-r--r--tools/pe_bliss/pe_relocations.cpp (renamed from drivers/pe_bliss/pe_relocations.cpp)0
-rw-r--r--tools/pe_bliss/pe_relocations.h (renamed from drivers/pe_bliss/pe_relocations.h)0
-rw-r--r--tools/pe_bliss/pe_resource_manager.cpp (renamed from drivers/pe_bliss/pe_resource_manager.cpp)0
-rw-r--r--tools/pe_bliss/pe_resource_manager.h (renamed from drivers/pe_bliss/pe_resource_manager.h)0
-rw-r--r--tools/pe_bliss/pe_resource_viewer.cpp (renamed from drivers/pe_bliss/pe_resource_viewer.cpp)0
-rw-r--r--tools/pe_bliss/pe_resource_viewer.h (renamed from drivers/pe_bliss/pe_resource_viewer.h)0
-rw-r--r--tools/pe_bliss/pe_resources.cpp (renamed from drivers/pe_bliss/pe_resources.cpp)0
-rw-r--r--tools/pe_bliss/pe_resources.h (renamed from drivers/pe_bliss/pe_resources.h)0
-rw-r--r--tools/pe_bliss/pe_rich_data.cpp (renamed from drivers/pe_bliss/pe_rich_data.cpp)0
-rw-r--r--tools/pe_bliss/pe_rich_data.h (renamed from drivers/pe_bliss/pe_rich_data.h)0
-rw-r--r--tools/pe_bliss/pe_section.cpp (renamed from drivers/pe_bliss/pe_section.cpp)0
-rw-r--r--tools/pe_bliss/pe_section.h (renamed from drivers/pe_bliss/pe_section.h)0
-rw-r--r--tools/pe_bliss/pe_structures.h (renamed from drivers/pe_bliss/pe_structures.h)0
-rw-r--r--tools/pe_bliss/pe_tls.cpp (renamed from drivers/pe_bliss/pe_tls.cpp)0
-rw-r--r--tools/pe_bliss/pe_tls.h (renamed from drivers/pe_bliss/pe_tls.h)0
-rw-r--r--tools/pe_bliss/resource_bitmap_reader.cpp (renamed from drivers/pe_bliss/resource_bitmap_reader.cpp)0
-rw-r--r--tools/pe_bliss/resource_bitmap_reader.h (renamed from drivers/pe_bliss/resource_bitmap_reader.h)0
-rw-r--r--tools/pe_bliss/resource_bitmap_writer.cpp (renamed from drivers/pe_bliss/resource_bitmap_writer.cpp)0
-rw-r--r--tools/pe_bliss/resource_bitmap_writer.h (renamed from drivers/pe_bliss/resource_bitmap_writer.h)0
-rw-r--r--tools/pe_bliss/resource_cursor_icon_reader.cpp (renamed from drivers/pe_bliss/resource_cursor_icon_reader.cpp)0
-rw-r--r--tools/pe_bliss/resource_cursor_icon_reader.h (renamed from drivers/pe_bliss/resource_cursor_icon_reader.h)0
-rw-r--r--tools/pe_bliss/resource_cursor_icon_writer.cpp (renamed from drivers/pe_bliss/resource_cursor_icon_writer.cpp)0
-rw-r--r--tools/pe_bliss/resource_cursor_icon_writer.h (renamed from drivers/pe_bliss/resource_cursor_icon_writer.h)0
-rw-r--r--tools/pe_bliss/resource_data_info.cpp (renamed from drivers/pe_bliss/resource_data_info.cpp)0
-rw-r--r--tools/pe_bliss/resource_data_info.h (renamed from drivers/pe_bliss/resource_data_info.h)0
-rw-r--r--tools/pe_bliss/resource_internal.h (renamed from drivers/pe_bliss/resource_internal.h)0
-rw-r--r--tools/pe_bliss/resource_message_list_reader.cpp (renamed from drivers/pe_bliss/resource_message_list_reader.cpp)0
-rw-r--r--tools/pe_bliss/resource_message_list_reader.h (renamed from drivers/pe_bliss/resource_message_list_reader.h)0
-rw-r--r--tools/pe_bliss/resource_string_table_reader.cpp (renamed from drivers/pe_bliss/resource_string_table_reader.cpp)0
-rw-r--r--tools/pe_bliss/resource_string_table_reader.h (renamed from drivers/pe_bliss/resource_string_table_reader.h)0
-rw-r--r--tools/pe_bliss/resource_version_info_reader.cpp (renamed from drivers/pe_bliss/resource_version_info_reader.cpp)0
-rw-r--r--tools/pe_bliss/resource_version_info_reader.h (renamed from drivers/pe_bliss/resource_version_info_reader.h)0
-rw-r--r--tools/pe_bliss/resource_version_info_writer.cpp (renamed from drivers/pe_bliss/resource_version_info_writer.cpp)0
-rw-r--r--tools/pe_bliss/resource_version_info_writer.h (renamed from drivers/pe_bliss/resource_version_info_writer.h)0
-rw-r--r--tools/pe_bliss/stdint_defs.h (renamed from drivers/pe_bliss/stdint_defs.h)0
-rw-r--r--tools/pe_bliss/utils.cpp (renamed from drivers/pe_bliss/utils.cpp)0
-rw-r--r--tools/pe_bliss/utils.h (renamed from drivers/pe_bliss/utils.h)0
-rw-r--r--tools/pe_bliss/version_info_editor.cpp (renamed from drivers/pe_bliss/version_info_editor.cpp)0
-rw-r--r--tools/pe_bliss/version_info_editor.h (renamed from drivers/pe_bliss/version_info_editor.h)0
-rw-r--r--tools/pe_bliss/version_info_types.h (renamed from drivers/pe_bliss/version_info_types.h)0
-rw-r--r--tools/pe_bliss/version_info_viewer.cpp (renamed from drivers/pe_bliss/version_info_viewer.cpp)0
-rw-r--r--tools/pe_bliss/version_info_viewer.h (renamed from drivers/pe_bliss/version_info_viewer.h)0
90 files changed, 113 insertions, 124 deletions
diff --git a/drivers/SCsub b/drivers/SCsub
index a7ed29e8e9..bc46bf2cec 100644
--- a/drivers/SCsub
+++ b/drivers/SCsub
@@ -39,7 +39,6 @@ if (env["opus"]=="yes"):
SConscript('opus/SCsub');
if (env["tools"]=="yes"):
SConscript("convex_decomp/SCsub");
- SConscript('pe_bliss/SCsub');
#if env["theora"]=="yes":
# SConscript("theoraplayer/SCsub")
diff --git a/drivers/pe_bliss/SCsub b/drivers/pe_bliss/SCsub
deleted file mode 100644
index 9fbb467baa..0000000000
--- a/drivers/pe_bliss/SCsub
+++ /dev/null
@@ -1,5 +0,0 @@
-Import('env')
-
-env.add_source_files(env.drivers_sources,"*.cpp")
-
-Export('env')
diff --git a/drivers/register_driver_types.cpp b/drivers/register_driver_types.cpp
index d832b2c1f5..c4ab54d102 100644
--- a/drivers/register_driver_types.cpp
+++ b/drivers/register_driver_types.cpp
@@ -252,10 +252,6 @@ void register_driver_types() {
_register_etc1_compress_func();
#endif
-#ifdef TOOLS_ENABLED
- EditorExportPlatformWindows::_add_resrc_func=pe_bliss_add_resrc;
-#endif
-
initialize_chibi();
}
diff --git a/platform/windows/export/export.cpp b/platform/windows/export/export.cpp
index 47daf21de4..d09152234a 100644
--- a/platform/windows/export/export.cpp
+++ b/platform/windows/export/export.cpp
@@ -32,13 +32,12 @@
#include "os/os.h"
#include "globals.h"
#include "tools/editor/editor_node.h"
+#include "tools/pe_bliss/pe_bliss_godot.h"
/**
@author Masoud BaniHashemian <masoudbh3@gmail.com>
*/
-String (*EditorExportPlatformWindows::_add_resrc_func)(const char* ,int ,int ,String& ,
- String& ,String& ,String& , String& ,String& , DVector<uint8_t>& )=NULL;
void EditorExportPlatformWindows::store_16(DVector<uint8_t>& vector, uint16_t value) {
const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&value);
@@ -205,123 +204,118 @@ Error EditorExportPlatformWindows::export_project(const String& p_path, bool p_d
{
return err;
}
- if(!_add_resrc_func) {
- return err;
- } else {
- EditorProgress ep("editexe","Edit EXE File",102);
- ep.step("Create ico file..",0);
-
- DVector<uint8_t> icon_content;
- if (this->icon_ico!="" && this->icon_ico.ends_with(".ico")) {
- FileAccess *f = FileAccess::open(this->icon_ico,FileAccess::READ);
- if (f) {
- icon_content.resize(f->get_len());
- DVector<uint8_t>::Write write = icon_content.write();
- f->get_buffer(write.ptr(),icon_content.size());
- f->close();
- memdelete(f);
+ EditorProgress ep("editexe","Edit EXE File",102);
+ ep.step("Create ico file..",0);
+
+ DVector<uint8_t> icon_content;
+ if (this->icon_ico!="" && this->icon_ico.ends_with(".ico")) {
+ FileAccess *f = FileAccess::open(this->icon_ico,FileAccess::READ);
+ if (f) {
+ icon_content.resize(f->get_len());
+ DVector<uint8_t>::Write write = icon_content.write();
+ f->get_buffer(write.ptr(),icon_content.size());
+ f->close();
+ memdelete(f);
+ }
+ } else if (this->icon_png!="" && this->icon_png.ends_with(".png") && (icon16 || icon32 || icon48 || icon64 || icon128 || icon256)) {
+ #ifdef PNG_ENABLED
+ Vector<Image> pngs;
+ Image png;
+ Error err_png = png.load(this->icon_png);
+ if (err_png==OK && !png.empty()) {
+ if(icon256) {
+ Image icon_256(png);
+ if(!(png.get_height()==256 && png.get_width()==256)) icon_256.resize(256,256);
+ pngs.push_back(icon_256);
}
- } else if (this->icon_png!="" && this->icon_png.ends_with(".png") && (icon16 || icon32 || icon48 || icon64 || icon128 || icon256)) {
- #ifdef PNG_ENABLED
- Vector<Image> pngs;
- Image png;
- Error err_png = png.load(this->icon_png);
- if (err_png==OK && !png.empty()) {
- if(icon256) {
- Image icon_256(png);
- if(!(png.get_height()==256 && png.get_width()==256)) icon_256.resize(256,256);
- pngs.push_back(icon_256);
- }
- if(icon128) {
- Image icon_128(png);
- if(!(png.get_height()==128 && png.get_width()==128)) icon_128.resize(128,128);
- pngs.push_back(icon_128);
- }
- if(icon64) {
- Image icon_64(png);
- if(!(png.get_height()==64 && png.get_width()==64)) icon_64.resize(64,64);
- pngs.push_back(icon_64);
- }
- if(icon48) {
- Image icon_48(png);
- if(!(png.get_height()==48 && png.get_width()==48)) icon_48.resize(48,48);
- pngs.push_back(icon_48);
- }
- if(icon32) {
- Image icon_32(png);
- if(!(png.get_height()==32 && png.get_width()==32)) icon_32.resize(32,32);
- pngs.push_back(icon_32);
- }
- if(icon16) {
- Image icon_16(png);
- if(!(png.get_height()==16 && png.get_width()==16)) icon_16.resize(16,16);
- pngs.push_back(icon_16);
- }
- // create icon according to https://www.daubnet.com/en/file-format-ico
- store_16(icon_content,0); //Reserved
- store_16(icon_content,1); //Type
- store_16(icon_content,pngs.size()); //Count
- int offset = 6+pngs.size()*16;
- //List of bitmaps
- for(int i=0;i<pngs.size();i++) {
- int w = pngs[i].get_width();
- int h = pngs[i].get_height();
- icon_content.push_back(w<256?w:0); //width
- icon_content.push_back(h<256?h:0); //height
- icon_content.push_back(0); //ColorCount = 0
- icon_content.push_back(0); //Reserved
- store_16(icon_content,1); //Planes
- store_16(icon_content,32); //BitCount (bit per pixel)
- int size = 40 + (w * h * 4) + (w * h / 8);
- store_32(icon_content,size); //Size of (InfoHeader + ANDbitmap + XORbitmap)
- store_32(icon_content,offset); //FileOffset
- offset += size;
- }
- //Write bmp files.
- for(int i=0;i<pngs.size();i++) {
- int w = pngs[i].get_width();
- int h = pngs[i].get_height();
- store_32(icon_content,40); //Size of InfoHeader structure = 40
- store_32(icon_content,w); //Width
- store_32(icon_content,h*2); //Height
- store_16(icon_content,1); //Planes
- store_16(icon_content,32); //BitCount
- store_32(icon_content,0); //Compression
- store_32(icon_content,w*h*4); //ImageSize = Size of Image in Bytes
- store_32(icon_content,0); //unused = 0
- store_32(icon_content,0); //unused = 0
- store_32(icon_content,0); //unused = 0
- store_32(icon_content,0); //unused = 0
- //XORBitmap
- for(int y=h-1;y>=0;y--) {
- for(int x=0;x<w;x++) {
- store_32(icon_content,pngs[i].get_pixel(x,y).to_32());
- }
+ if(icon128) {
+ Image icon_128(png);
+ if(!(png.get_height()==128 && png.get_width()==128)) icon_128.resize(128,128);
+ pngs.push_back(icon_128);
+ }
+ if(icon64) {
+ Image icon_64(png);
+ if(!(png.get_height()==64 && png.get_width()==64)) icon_64.resize(64,64);
+ pngs.push_back(icon_64);
+ }
+ if(icon48) {
+ Image icon_48(png);
+ if(!(png.get_height()==48 && png.get_width()==48)) icon_48.resize(48,48);
+ pngs.push_back(icon_48);
+ }
+ if(icon32) {
+ Image icon_32(png);
+ if(!(png.get_height()==32 && png.get_width()==32)) icon_32.resize(32,32);
+ pngs.push_back(icon_32);
+ }
+ if(icon16) {
+ Image icon_16(png);
+ if(!(png.get_height()==16 && png.get_width()==16)) icon_16.resize(16,16);
+ pngs.push_back(icon_16);
+ }
+ // create icon according to https://www.daubnet.com/en/file-format-ico
+ store_16(icon_content,0); //Reserved
+ store_16(icon_content,1); //Type
+ store_16(icon_content,pngs.size()); //Count
+ int offset = 6+pngs.size()*16;
+ //List of bitmaps
+ for(int i=0;i<pngs.size();i++) {
+ int w = pngs[i].get_width();
+ int h = pngs[i].get_height();
+ icon_content.push_back(w<256?w:0); //width
+ icon_content.push_back(h<256?h:0); //height
+ icon_content.push_back(0); //ColorCount = 0
+ icon_content.push_back(0); //Reserved
+ store_16(icon_content,1); //Planes
+ store_16(icon_content,32); //BitCount (bit per pixel)
+ int size = 40 + (w * h * 4) + (w * h / 8);
+ store_32(icon_content,size); //Size of (InfoHeader + ANDbitmap + XORbitmap)
+ store_32(icon_content,offset); //FileOffset
+ offset += size;
+ }
+ //Write bmp files.
+ for(int i=0;i<pngs.size();i++) {
+ int w = pngs[i].get_width();
+ int h = pngs[i].get_height();
+ store_32(icon_content,40); //Size of InfoHeader structure = 40
+ store_32(icon_content,w); //Width
+ store_32(icon_content,h*2); //Height
+ store_16(icon_content,1); //Planes
+ store_16(icon_content,32); //BitCount
+ store_32(icon_content,0); //Compression
+ store_32(icon_content,w*h*4); //ImageSize = Size of Image in Bytes
+ store_32(icon_content,0); //unused = 0
+ store_32(icon_content,0); //unused = 0
+ store_32(icon_content,0); //unused = 0
+ store_32(icon_content,0); //unused = 0
+ //XORBitmap
+ for(int y=h-1;y>=0;y--) {
+ for(int x=0;x<w;x++) {
+ store_32(icon_content,pngs[i].get_pixel(x,y).to_32());
}
- //ANDBitmap
- for(int m=0;m<(w * h / 8);m+=4) store_32(icon_content,0x00000000); // Add empty ANDBitmap , TODO create full ANDBitmap Structure if need.
}
+ //ANDBitmap
+ for(int m=0;m<(w * h / 8);m+=4) store_32(icon_content,0x00000000); // Add empty ANDBitmap , TODO create full ANDBitmap Structure if need.
}
- #endif
- }
-
- ep.step("Add rsrc..",50);
-
- String basename = Globals::get_singleton()->get("application/name");
- product_name=product_name.replace("$genname",basename);
- String godot_version;
- if(set_godot_version) godot_version = String( VERSION_MKSTRING );
- String ret = EditorExportPlatformWindows::_add_resrc_func(p_path.utf8(), version_major, version_minor,
- company_name, file_description, legal_copyright, version_text,
- product_name, godot_version, icon_content);
- if (ret.empty()) {
- return OK;
- } else {
- EditorNode::add_io_error(ret);
- return ERR_FILE_CANT_WRITE;
}
- }
+ #endif
+ }
+
+ ep.step("Add rsrc..",50);
+ String basename = Globals::get_singleton()->get("application/name");
+ product_name=product_name.replace("$genname",basename);
+ String godot_version;
+ if(set_godot_version) godot_version = String( VERSION_MKSTRING );
+ String ret = pe_bliss_add_resrc(p_path.utf8(), version_major, version_minor,
+ company_name, file_description, legal_copyright, version_text,
+ product_name, godot_version, icon_content);
+ if (ret.empty()) {
+ return OK;
+ } else {
+ EditorNode::add_io_error(ret);
+ return ERR_FILE_CANT_WRITE;
+ }
}
EditorExportPlatformWindows::EditorExportPlatformWindows() {
diff --git a/platform/windows/export/export.h b/platform/windows/export/export.h
index af1e2838df..702acc04b2 100644
--- a/platform/windows/export/export.h
+++ b/platform/windows/export/export.h
@@ -29,7 +29,6 @@ protected:
void _get_property_list( List<PropertyInfo> *p_list) const;
public:
- static String (*_add_resrc_func)(const char*,int,int,String&,String&,String&,String&,String&,String&,DVector<uint8_t>&);
Error export_project(const String& p_path, bool p_debug, bool p_dumb=false, bool p_remote_debug=false);
EditorExportPlatformWindows();
};
diff --git a/tools/SCsub b/tools/SCsub
index ce7df2c35b..741887e9f1 100644
--- a/tools/SCsub
+++ b/tools/SCsub
@@ -11,6 +11,7 @@ if (env["tools"]!="no"):
SConscript('collada/SCsub');
SConscript('docdump/SCsub');
SConscript('freetype/SCsub');
+ SConscript('pe_bliss/SCsub');
SConscript('doc/SCsub')
SConscript('pck/SCsub')
diff --git a/drivers/pe_bliss/README b/tools/pe_bliss/README
index 8a8c0b4df9..8a8c0b4df9 100644
--- a/drivers/pe_bliss/README
+++ b/tools/pe_bliss/README
diff --git a/tools/pe_bliss/SCsub b/tools/pe_bliss/SCsub
new file mode 100644
index 0000000000..34524f10ef
--- /dev/null
+++ b/tools/pe_bliss/SCsub
@@ -0,0 +1,5 @@
+Import('env')
+
+env.add_source_files(env.tool_sources,"*.cpp")
+
+Export('env')
diff --git a/drivers/pe_bliss/entropy.cpp b/tools/pe_bliss/entropy.cpp
index cdd8efb8a9..cdd8efb8a9 100644
--- a/drivers/pe_bliss/entropy.cpp
+++ b/tools/pe_bliss/entropy.cpp
diff --git a/drivers/pe_bliss/entropy.h b/tools/pe_bliss/entropy.h
index d49d0f7e9b..d49d0f7e9b 100644
--- a/drivers/pe_bliss/entropy.h
+++ b/tools/pe_bliss/entropy.h
diff --git a/drivers/pe_bliss/file_version_info.cpp b/tools/pe_bliss/file_version_info.cpp
index 50a02f8908..50a02f8908 100644
--- a/drivers/pe_bliss/file_version_info.cpp
+++ b/tools/pe_bliss/file_version_info.cpp
diff --git a/drivers/pe_bliss/file_version_info.h b/tools/pe_bliss/file_version_info.h
index 8a469dbb8d..8a469dbb8d 100644
--- a/drivers/pe_bliss/file_version_info.h
+++ b/tools/pe_bliss/file_version_info.h
diff --git a/drivers/pe_bliss/message_table.cpp b/tools/pe_bliss/message_table.cpp
index 940387dd28..940387dd28 100644
--- a/drivers/pe_bliss/message_table.cpp
+++ b/tools/pe_bliss/message_table.cpp
diff --git a/drivers/pe_bliss/message_table.h b/tools/pe_bliss/message_table.h
index d437f511b2..d437f511b2 100644
--- a/drivers/pe_bliss/message_table.h
+++ b/tools/pe_bliss/message_table.h
diff --git a/drivers/pe_bliss/pe_base.cpp b/tools/pe_bliss/pe_base.cpp
index bdce0977cb..bdce0977cb 100644
--- a/drivers/pe_bliss/pe_base.cpp
+++ b/tools/pe_bliss/pe_base.cpp
diff --git a/drivers/pe_bliss/pe_base.h b/tools/pe_bliss/pe_base.h
index a84faf547c..a84faf547c 100644
--- a/drivers/pe_bliss/pe_base.h
+++ b/tools/pe_bliss/pe_base.h
diff --git a/drivers/pe_bliss/pe_bliss.h b/tools/pe_bliss/pe_bliss.h
index 82dfd67cf5..82dfd67cf5 100644
--- a/drivers/pe_bliss/pe_bliss.h
+++ b/tools/pe_bliss/pe_bliss.h
diff --git a/drivers/pe_bliss/pe_bliss_godot.cpp b/tools/pe_bliss/pe_bliss_godot.cpp
index 8297aa1045..8297aa1045 100644
--- a/drivers/pe_bliss/pe_bliss_godot.cpp
+++ b/tools/pe_bliss/pe_bliss_godot.cpp
diff --git a/drivers/pe_bliss/pe_bliss_godot.h b/tools/pe_bliss/pe_bliss_godot.h
index 0365ca9eaf..0365ca9eaf 100644
--- a/drivers/pe_bliss/pe_bliss_godot.h
+++ b/tools/pe_bliss/pe_bliss_godot.h
diff --git a/drivers/pe_bliss/pe_bliss_resources.h b/tools/pe_bliss/pe_bliss_resources.h
index 7c07b7c4bb..7c07b7c4bb 100644
--- a/drivers/pe_bliss/pe_bliss_resources.h
+++ b/tools/pe_bliss/pe_bliss_resources.h
diff --git a/drivers/pe_bliss/pe_bound_import.cpp b/tools/pe_bliss/pe_bound_import.cpp
index 605cf229b4..605cf229b4 100644
--- a/drivers/pe_bliss/pe_bound_import.cpp
+++ b/tools/pe_bliss/pe_bound_import.cpp
diff --git a/drivers/pe_bliss/pe_bound_import.h b/tools/pe_bliss/pe_bound_import.h
index 5c27eba06b..5c27eba06b 100644
--- a/drivers/pe_bliss/pe_bound_import.h
+++ b/tools/pe_bliss/pe_bound_import.h
diff --git a/drivers/pe_bliss/pe_checksum.cpp b/tools/pe_bliss/pe_checksum.cpp
index f6d23f0e10..f6d23f0e10 100644
--- a/drivers/pe_bliss/pe_checksum.cpp
+++ b/tools/pe_bliss/pe_checksum.cpp
diff --git a/drivers/pe_bliss/pe_checksum.h b/tools/pe_bliss/pe_checksum.h
index 892a2854ba..892a2854ba 100644
--- a/drivers/pe_bliss/pe_checksum.h
+++ b/tools/pe_bliss/pe_checksum.h
diff --git a/drivers/pe_bliss/pe_debug.cpp b/tools/pe_bliss/pe_debug.cpp
index f077f29fb8..f077f29fb8 100644
--- a/drivers/pe_bliss/pe_debug.cpp
+++ b/tools/pe_bliss/pe_debug.cpp
diff --git a/drivers/pe_bliss/pe_debug.h b/tools/pe_bliss/pe_debug.h
index 13fef663c3..13fef663c3 100644
--- a/drivers/pe_bliss/pe_debug.h
+++ b/tools/pe_bliss/pe_debug.h
diff --git a/drivers/pe_bliss/pe_directory.cpp b/tools/pe_bliss/pe_directory.cpp
index 57ea2212a6..57ea2212a6 100644
--- a/drivers/pe_bliss/pe_directory.cpp
+++ b/tools/pe_bliss/pe_directory.cpp
diff --git a/drivers/pe_bliss/pe_directory.h b/tools/pe_bliss/pe_directory.h
index 77567f9488..77567f9488 100644
--- a/drivers/pe_bliss/pe_directory.h
+++ b/tools/pe_bliss/pe_directory.h
diff --git a/drivers/pe_bliss/pe_dotnet.cpp b/tools/pe_bliss/pe_dotnet.cpp
index 5d9e483e3f..5d9e483e3f 100644
--- a/drivers/pe_bliss/pe_dotnet.cpp
+++ b/tools/pe_bliss/pe_dotnet.cpp
diff --git a/drivers/pe_bliss/pe_dotnet.h b/tools/pe_bliss/pe_dotnet.h
index e0dad3a721..e0dad3a721 100644
--- a/drivers/pe_bliss/pe_dotnet.h
+++ b/tools/pe_bliss/pe_dotnet.h
diff --git a/drivers/pe_bliss/pe_exception.cpp b/tools/pe_bliss/pe_exception.cpp
index eb76f28a35..eb76f28a35 100644
--- a/drivers/pe_bliss/pe_exception.cpp
+++ b/tools/pe_bliss/pe_exception.cpp
diff --git a/drivers/pe_bliss/pe_exception.h b/tools/pe_bliss/pe_exception.h
index a51eba7d73..a51eba7d73 100644
--- a/drivers/pe_bliss/pe_exception.h
+++ b/tools/pe_bliss/pe_exception.h
diff --git a/drivers/pe_bliss/pe_exception_directory.cpp b/tools/pe_bliss/pe_exception_directory.cpp
index 3447e5bd7a..3447e5bd7a 100644
--- a/drivers/pe_bliss/pe_exception_directory.cpp
+++ b/tools/pe_bliss/pe_exception_directory.cpp
diff --git a/drivers/pe_bliss/pe_exception_directory.h b/tools/pe_bliss/pe_exception_directory.h
index 9f9ee14cae..9f9ee14cae 100644
--- a/drivers/pe_bliss/pe_exception_directory.h
+++ b/tools/pe_bliss/pe_exception_directory.h
diff --git a/drivers/pe_bliss/pe_exports.cpp b/tools/pe_bliss/pe_exports.cpp
index 4a1bc1d82f..4a1bc1d82f 100644
--- a/drivers/pe_bliss/pe_exports.cpp
+++ b/tools/pe_bliss/pe_exports.cpp
diff --git a/drivers/pe_bliss/pe_exports.h b/tools/pe_bliss/pe_exports.h
index 7e2d64813d..7e2d64813d 100644
--- a/drivers/pe_bliss/pe_exports.h
+++ b/tools/pe_bliss/pe_exports.h
diff --git a/drivers/pe_bliss/pe_factory.cpp b/tools/pe_bliss/pe_factory.cpp
index 677503ef03..677503ef03 100644
--- a/drivers/pe_bliss/pe_factory.cpp
+++ b/tools/pe_bliss/pe_factory.cpp
diff --git a/drivers/pe_bliss/pe_factory.h b/tools/pe_bliss/pe_factory.h
index ac0332e5ba..ac0332e5ba 100644
--- a/drivers/pe_bliss/pe_factory.h
+++ b/tools/pe_bliss/pe_factory.h
diff --git a/drivers/pe_bliss/pe_imports.cpp b/tools/pe_bliss/pe_imports.cpp
index 704d5fca99..704d5fca99 100644
--- a/drivers/pe_bliss/pe_imports.cpp
+++ b/tools/pe_bliss/pe_imports.cpp
diff --git a/drivers/pe_bliss/pe_imports.h b/tools/pe_bliss/pe_imports.h
index 713be13e42..713be13e42 100644
--- a/drivers/pe_bliss/pe_imports.h
+++ b/tools/pe_bliss/pe_imports.h
diff --git a/drivers/pe_bliss/pe_load_config.cpp b/tools/pe_bliss/pe_load_config.cpp
index dedb2a61a1..dedb2a61a1 100644
--- a/drivers/pe_bliss/pe_load_config.cpp
+++ b/tools/pe_bliss/pe_load_config.cpp
diff --git a/drivers/pe_bliss/pe_load_config.h b/tools/pe_bliss/pe_load_config.h
index 6e1aab25ad..6e1aab25ad 100644
--- a/drivers/pe_bliss/pe_load_config.h
+++ b/tools/pe_bliss/pe_load_config.h
diff --git a/drivers/pe_bliss/pe_properties.cpp b/tools/pe_bliss/pe_properties.cpp
index 134bf29caf..134bf29caf 100644
--- a/drivers/pe_bliss/pe_properties.cpp
+++ b/tools/pe_bliss/pe_properties.cpp
diff --git a/drivers/pe_bliss/pe_properties.h b/tools/pe_bliss/pe_properties.h
index b10d803b92..b10d803b92 100644
--- a/drivers/pe_bliss/pe_properties.h
+++ b/tools/pe_bliss/pe_properties.h
diff --git a/drivers/pe_bliss/pe_properties_generic.cpp b/tools/pe_bliss/pe_properties_generic.cpp
index 3b1dadd0f9..3b1dadd0f9 100644
--- a/drivers/pe_bliss/pe_properties_generic.cpp
+++ b/tools/pe_bliss/pe_properties_generic.cpp
diff --git a/drivers/pe_bliss/pe_properties_generic.h b/tools/pe_bliss/pe_properties_generic.h
index 2b4a0e3c2e..2b4a0e3c2e 100644
--- a/drivers/pe_bliss/pe_properties_generic.h
+++ b/tools/pe_bliss/pe_properties_generic.h
diff --git a/drivers/pe_bliss/pe_rebuilder.cpp b/tools/pe_bliss/pe_rebuilder.cpp
index 4d7a94fe3b..4d7a94fe3b 100644
--- a/drivers/pe_bliss/pe_rebuilder.cpp
+++ b/tools/pe_bliss/pe_rebuilder.cpp
diff --git a/drivers/pe_bliss/pe_rebuilder.h b/tools/pe_bliss/pe_rebuilder.h
index 1cd10299d1..1cd10299d1 100644
--- a/drivers/pe_bliss/pe_rebuilder.h
+++ b/tools/pe_bliss/pe_rebuilder.h
diff --git a/drivers/pe_bliss/pe_relocations.cpp b/tools/pe_bliss/pe_relocations.cpp
index 2d674e1346..2d674e1346 100644
--- a/drivers/pe_bliss/pe_relocations.cpp
+++ b/tools/pe_bliss/pe_relocations.cpp
diff --git a/drivers/pe_bliss/pe_relocations.h b/tools/pe_bliss/pe_relocations.h
index d4c7b19230..d4c7b19230 100644
--- a/drivers/pe_bliss/pe_relocations.h
+++ b/tools/pe_bliss/pe_relocations.h
diff --git a/drivers/pe_bliss/pe_resource_manager.cpp b/tools/pe_bliss/pe_resource_manager.cpp
index 1db952efcb..1db952efcb 100644
--- a/drivers/pe_bliss/pe_resource_manager.cpp
+++ b/tools/pe_bliss/pe_resource_manager.cpp
diff --git a/drivers/pe_bliss/pe_resource_manager.h b/tools/pe_bliss/pe_resource_manager.h
index a12f140cfe..a12f140cfe 100644
--- a/drivers/pe_bliss/pe_resource_manager.h
+++ b/tools/pe_bliss/pe_resource_manager.h
diff --git a/drivers/pe_bliss/pe_resource_viewer.cpp b/tools/pe_bliss/pe_resource_viewer.cpp
index 1414c33fed..1414c33fed 100644
--- a/drivers/pe_bliss/pe_resource_viewer.cpp
+++ b/tools/pe_bliss/pe_resource_viewer.cpp
diff --git a/drivers/pe_bliss/pe_resource_viewer.h b/tools/pe_bliss/pe_resource_viewer.h
index f469d59143..f469d59143 100644
--- a/drivers/pe_bliss/pe_resource_viewer.h
+++ b/tools/pe_bliss/pe_resource_viewer.h
diff --git a/drivers/pe_bliss/pe_resources.cpp b/tools/pe_bliss/pe_resources.cpp
index a819c7bb71..a819c7bb71 100644
--- a/drivers/pe_bliss/pe_resources.cpp
+++ b/tools/pe_bliss/pe_resources.cpp
diff --git a/drivers/pe_bliss/pe_resources.h b/tools/pe_bliss/pe_resources.h
index 0f7f32768d..0f7f32768d 100644
--- a/drivers/pe_bliss/pe_resources.h
+++ b/tools/pe_bliss/pe_resources.h
diff --git a/drivers/pe_bliss/pe_rich_data.cpp b/tools/pe_bliss/pe_rich_data.cpp
index 0497fa6469..0497fa6469 100644
--- a/drivers/pe_bliss/pe_rich_data.cpp
+++ b/tools/pe_bliss/pe_rich_data.cpp
diff --git a/drivers/pe_bliss/pe_rich_data.h b/tools/pe_bliss/pe_rich_data.h
index 3d7622c680..3d7622c680 100644
--- a/drivers/pe_bliss/pe_rich_data.h
+++ b/tools/pe_bliss/pe_rich_data.h
diff --git a/drivers/pe_bliss/pe_section.cpp b/tools/pe_bliss/pe_section.cpp
index e7def185cb..e7def185cb 100644
--- a/drivers/pe_bliss/pe_section.cpp
+++ b/tools/pe_bliss/pe_section.cpp
diff --git a/drivers/pe_bliss/pe_section.h b/tools/pe_bliss/pe_section.h
index 8d8e2371ee..8d8e2371ee 100644
--- a/drivers/pe_bliss/pe_section.h
+++ b/tools/pe_bliss/pe_section.h
diff --git a/drivers/pe_bliss/pe_structures.h b/tools/pe_bliss/pe_structures.h
index 9008536ab1..9008536ab1 100644
--- a/drivers/pe_bliss/pe_structures.h
+++ b/tools/pe_bliss/pe_structures.h
diff --git a/drivers/pe_bliss/pe_tls.cpp b/tools/pe_bliss/pe_tls.cpp
index 182859f1bf..182859f1bf 100644
--- a/drivers/pe_bliss/pe_tls.cpp
+++ b/tools/pe_bliss/pe_tls.cpp
diff --git a/drivers/pe_bliss/pe_tls.h b/tools/pe_bliss/pe_tls.h
index 8740de83ec..8740de83ec 100644
--- a/drivers/pe_bliss/pe_tls.h
+++ b/tools/pe_bliss/pe_tls.h
diff --git a/drivers/pe_bliss/resource_bitmap_reader.cpp b/tools/pe_bliss/resource_bitmap_reader.cpp
index 29eff549db..29eff549db 100644
--- a/drivers/pe_bliss/resource_bitmap_reader.cpp
+++ b/tools/pe_bliss/resource_bitmap_reader.cpp
diff --git a/drivers/pe_bliss/resource_bitmap_reader.h b/tools/pe_bliss/resource_bitmap_reader.h
index 2e99571cab..2e99571cab 100644
--- a/drivers/pe_bliss/resource_bitmap_reader.h
+++ b/tools/pe_bliss/resource_bitmap_reader.h
diff --git a/drivers/pe_bliss/resource_bitmap_writer.cpp b/tools/pe_bliss/resource_bitmap_writer.cpp
index 2a28ff6e68..2a28ff6e68 100644
--- a/drivers/pe_bliss/resource_bitmap_writer.cpp
+++ b/tools/pe_bliss/resource_bitmap_writer.cpp
diff --git a/drivers/pe_bliss/resource_bitmap_writer.h b/tools/pe_bliss/resource_bitmap_writer.h
index a5a2a4abd4..a5a2a4abd4 100644
--- a/drivers/pe_bliss/resource_bitmap_writer.h
+++ b/tools/pe_bliss/resource_bitmap_writer.h
diff --git a/drivers/pe_bliss/resource_cursor_icon_reader.cpp b/tools/pe_bliss/resource_cursor_icon_reader.cpp
index 514e288c22..514e288c22 100644
--- a/drivers/pe_bliss/resource_cursor_icon_reader.cpp
+++ b/tools/pe_bliss/resource_cursor_icon_reader.cpp
diff --git a/drivers/pe_bliss/resource_cursor_icon_reader.h b/tools/pe_bliss/resource_cursor_icon_reader.h
index 25a59baa27..25a59baa27 100644
--- a/drivers/pe_bliss/resource_cursor_icon_reader.h
+++ b/tools/pe_bliss/resource_cursor_icon_reader.h
diff --git a/drivers/pe_bliss/resource_cursor_icon_writer.cpp b/tools/pe_bliss/resource_cursor_icon_writer.cpp
index ce52c6cbdf..ce52c6cbdf 100644
--- a/drivers/pe_bliss/resource_cursor_icon_writer.cpp
+++ b/tools/pe_bliss/resource_cursor_icon_writer.cpp
diff --git a/drivers/pe_bliss/resource_cursor_icon_writer.h b/tools/pe_bliss/resource_cursor_icon_writer.h
index 2503dd7d0e..2503dd7d0e 100644
--- a/drivers/pe_bliss/resource_cursor_icon_writer.h
+++ b/tools/pe_bliss/resource_cursor_icon_writer.h
diff --git a/drivers/pe_bliss/resource_data_info.cpp b/tools/pe_bliss/resource_data_info.cpp
index bc7b3abd7d..bc7b3abd7d 100644
--- a/drivers/pe_bliss/resource_data_info.cpp
+++ b/tools/pe_bliss/resource_data_info.cpp
diff --git a/drivers/pe_bliss/resource_data_info.h b/tools/pe_bliss/resource_data_info.h
index 65953e708e..65953e708e 100644
--- a/drivers/pe_bliss/resource_data_info.h
+++ b/tools/pe_bliss/resource_data_info.h
diff --git a/drivers/pe_bliss/resource_internal.h b/tools/pe_bliss/resource_internal.h
index fd5ff95248..fd5ff95248 100644
--- a/drivers/pe_bliss/resource_internal.h
+++ b/tools/pe_bliss/resource_internal.h
diff --git a/drivers/pe_bliss/resource_message_list_reader.cpp b/tools/pe_bliss/resource_message_list_reader.cpp
index ff9a5dd861..ff9a5dd861 100644
--- a/drivers/pe_bliss/resource_message_list_reader.cpp
+++ b/tools/pe_bliss/resource_message_list_reader.cpp
diff --git a/drivers/pe_bliss/resource_message_list_reader.h b/tools/pe_bliss/resource_message_list_reader.h
index aacd738cc2..aacd738cc2 100644
--- a/drivers/pe_bliss/resource_message_list_reader.h
+++ b/tools/pe_bliss/resource_message_list_reader.h
diff --git a/drivers/pe_bliss/resource_string_table_reader.cpp b/tools/pe_bliss/resource_string_table_reader.cpp
index 33eace1935..33eace1935 100644
--- a/drivers/pe_bliss/resource_string_table_reader.cpp
+++ b/tools/pe_bliss/resource_string_table_reader.cpp
diff --git a/drivers/pe_bliss/resource_string_table_reader.h b/tools/pe_bliss/resource_string_table_reader.h
index 34628ec71c..34628ec71c 100644
--- a/drivers/pe_bliss/resource_string_table_reader.h
+++ b/tools/pe_bliss/resource_string_table_reader.h
diff --git a/drivers/pe_bliss/resource_version_info_reader.cpp b/tools/pe_bliss/resource_version_info_reader.cpp
index 4a8a2723e6..4a8a2723e6 100644
--- a/drivers/pe_bliss/resource_version_info_reader.cpp
+++ b/tools/pe_bliss/resource_version_info_reader.cpp
diff --git a/drivers/pe_bliss/resource_version_info_reader.h b/tools/pe_bliss/resource_version_info_reader.h
index 4a14ddc4a5..4a14ddc4a5 100644
--- a/drivers/pe_bliss/resource_version_info_reader.h
+++ b/tools/pe_bliss/resource_version_info_reader.h
diff --git a/drivers/pe_bliss/resource_version_info_writer.cpp b/tools/pe_bliss/resource_version_info_writer.cpp
index 34f21c4a37..34f21c4a37 100644
--- a/drivers/pe_bliss/resource_version_info_writer.cpp
+++ b/tools/pe_bliss/resource_version_info_writer.cpp
diff --git a/drivers/pe_bliss/resource_version_info_writer.h b/tools/pe_bliss/resource_version_info_writer.h
index cab7e925ee..cab7e925ee 100644
--- a/drivers/pe_bliss/resource_version_info_writer.h
+++ b/tools/pe_bliss/resource_version_info_writer.h
diff --git a/drivers/pe_bliss/stdint_defs.h b/tools/pe_bliss/stdint_defs.h
index 309cf3d762..309cf3d762 100644
--- a/drivers/pe_bliss/stdint_defs.h
+++ b/tools/pe_bliss/stdint_defs.h
diff --git a/drivers/pe_bliss/utils.cpp b/tools/pe_bliss/utils.cpp
index 69f013098f..69f013098f 100644
--- a/drivers/pe_bliss/utils.cpp
+++ b/tools/pe_bliss/utils.cpp
diff --git a/drivers/pe_bliss/utils.h b/tools/pe_bliss/utils.h
index c090121595..c090121595 100644
--- a/drivers/pe_bliss/utils.h
+++ b/tools/pe_bliss/utils.h
diff --git a/drivers/pe_bliss/version_info_editor.cpp b/tools/pe_bliss/version_info_editor.cpp
index 9e5c9b7a1c..9e5c9b7a1c 100644
--- a/drivers/pe_bliss/version_info_editor.cpp
+++ b/tools/pe_bliss/version_info_editor.cpp
diff --git a/drivers/pe_bliss/version_info_editor.h b/tools/pe_bliss/version_info_editor.h
index 9bef6a01b8..9bef6a01b8 100644
--- a/drivers/pe_bliss/version_info_editor.h
+++ b/tools/pe_bliss/version_info_editor.h
diff --git a/drivers/pe_bliss/version_info_types.h b/tools/pe_bliss/version_info_types.h
index e289f40663..e289f40663 100644
--- a/drivers/pe_bliss/version_info_types.h
+++ b/tools/pe_bliss/version_info_types.h
diff --git a/drivers/pe_bliss/version_info_viewer.cpp b/tools/pe_bliss/version_info_viewer.cpp
index 7881c4b96d..7881c4b96d 100644
--- a/drivers/pe_bliss/version_info_viewer.cpp
+++ b/tools/pe_bliss/version_info_viewer.cpp
diff --git a/drivers/pe_bliss/version_info_viewer.h b/tools/pe_bliss/version_info_viewer.h
index a4a757bc32..a4a757bc32 100644
--- a/drivers/pe_bliss/version_info_viewer.h
+++ b/tools/pe_bliss/version_info_viewer.h