Skip to content

Commit

Permalink
Update tiny process library
Browse files Browse the repository at this point in the history
  • Loading branch information
EIREXE committed Sep 14, 2024
1 parent 516883e commit d1de8c5
Show file tree
Hide file tree
Showing 9 changed files with 668 additions and 597 deletions.
6 changes: 3 additions & 3 deletions modules/hbnative/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ thirdparty_obj = []
thirdparty_sources = []

if env["platform"] in ["linuxbsd", "macos", "android"]:
thirdparty_sources = ["process.cpp", "process_unix.cpp"]
thirdparty_sources = ["tiny_process_lib/process.cpp", "tiny_process_lib/process_unix.cpp"]
elif env["platform"] == "windows":
thirdparty_sources = ["process.cpp", "process_win.cpp"]
thirdparty_sources = ["tiny_process_lib/process.cpp", "tiny_process_lib/process_win.cpp"]

thirdparty_dir = "process/tiny_process_lib/"
thirdparty_dir = "thirdparty/"
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]

env_hbnative.Prepend(CPPPATH=[thirdparty_dir])
Expand Down
2 changes: 1 addition & 1 deletion modules/hbnative/process/process_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ String ProcessWindows::_quote_command_line_argument(const String &p_text) {
Ref<Process> ProcessWindows::create_windows(const String &p_path, const Vector<String> &p_arguments, const String &p_working_dir, bool p_open_stdin) {
Vector<String> final_arguments;
for (int i = 0; i < p_arguments.size(); i++) {
final_arguments.push_back(_quote_command_line_argument(p_arguments[i]));
final_arguments.push_back(p_arguments[i]);
}
return memnew(ProcessTinyProcessLibrary(p_path, final_arguments, p_working_dir, p_open_stdin));
}
Expand Down
59 changes: 0 additions & 59 deletions modules/hbnative/process/tiny_process_lib/process.cpp

This file was deleted.

177 changes: 0 additions & 177 deletions modules/hbnative/process/tiny_process_lib/process.hpp

This file was deleted.

Loading

0 comments on commit d1de8c5

Please sign in to comment.