mirror of
https://github.com/Relintai/webp.git
synced 2025-03-12 18:29:02 +01:00
Now the module works.
This commit is contained in:
parent
c5151fc383
commit
5083fcb045
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.import
|
||||||
|
*.d
|
||||||
|
*.o
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.pyc
|
||||||
|
*.bc
|
||||||
|
*.os
|
20
SCsub
20
SCsub
@ -9,9 +9,8 @@ env_webp = env_modules.Clone()
|
|||||||
|
|
||||||
thirdparty_obj = []
|
thirdparty_obj = []
|
||||||
|
|
||||||
if env["builtin_libwebp"]:
|
thirdparty_dir = "./thirdparty/libwebp/"
|
||||||
thirdparty_dir = "#thirdparty/libwebp/"
|
thirdparty_sources = [
|
||||||
thirdparty_sources = [
|
|
||||||
"sharpyuv/sharpyuv.c",
|
"sharpyuv/sharpyuv.c",
|
||||||
"sharpyuv/sharpyuv_csp.c",
|
"sharpyuv/sharpyuv_csp.c",
|
||||||
"sharpyuv/sharpyuv_dsp.c",
|
"sharpyuv/sharpyuv_dsp.c",
|
||||||
@ -133,15 +132,16 @@ if env["builtin_libwebp"]:
|
|||||||
"src/utils/rescaler_utils.c",
|
"src/utils/rescaler_utils.c",
|
||||||
"src/utils/thread_utils.c",
|
"src/utils/thread_utils.c",
|
||||||
"src/utils/utils.c",
|
"src/utils/utils.c",
|
||||||
]
|
]
|
||||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
|
||||||
|
|
||||||
env_webp.Prepend(CPPPATH=[thirdparty_dir, thirdparty_dir + "src/"])
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||||
|
|
||||||
env_thirdparty = env_webp.Clone()
|
env_webp.Prepend(CPPPATH=[thirdparty_dir, thirdparty_dir + "src/"])
|
||||||
env_thirdparty.disable_warnings()
|
|
||||||
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
|
env_thirdparty = env_webp.Clone()
|
||||||
env.modules_sources += thirdparty_obj
|
env_thirdparty.disable_warnings()
|
||||||
|
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
|
||||||
|
env.modules_sources += thirdparty_obj
|
||||||
|
|
||||||
|
|
||||||
# Godot source files
|
# Godot source files
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
|
|
||||||
#include "core/io/marshalls.h"
|
#include "core/io/marshalls.h"
|
||||||
#include "core/os/os.h"
|
#include "core/os/os.h"
|
||||||
#include "core/print_string.h"
|
#include "core/string/print_string.h"
|
||||||
#include "core/project_settings.h"
|
#include "core/config/project_settings.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <webp/decode.h>
|
#include <webp/decode.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user