mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
finally fix gcc building fully
This commit is contained in:
parent
c90243e4ee
commit
7917e6bed3
12 changed files with 60 additions and 13 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -6,7 +6,8 @@
|
||||||
"Test-Path": true,
|
"Test-Path": true,
|
||||||
"mkdir": true,
|
"mkdir": true,
|
||||||
"cp": true,
|
"cp": true,
|
||||||
"hdiutil": true
|
"hdiutil": true,
|
||||||
|
"&": true
|
||||||
},
|
},
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"limits.h": "c"
|
"limits.h": "c"
|
||||||
|
|
|
||||||
|
|
@ -843,9 +843,11 @@ WebGLContext::ThrowEvent_WebGLContextCreationError(const nsACString& text)
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
WebGLContext::InitializeWithDrawTarget(nsIDocShell*,
|
WebGLContext::InitializeWithDrawTarget(nsIDocShell* aDocShell,
|
||||||
NotNull<gfx::DrawTarget*>)
|
NotNull<gfx::DrawTarget*> aTarget)
|
||||||
{
|
{
|
||||||
|
(void)aDocShell;
|
||||||
|
(void)aTarget;
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
30
dom/canvas/WebGLContext_mingw_compat.cpp
Normal file
30
dom/canvas/WebGLContext_mingw_compat.cpp
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#if defined(__MINGW32__) && defined(__i386__)
|
||||||
|
|
||||||
|
#include "WebGLContext.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
|
||||||
|
extern "C" nsresult __attribute__((stdcall))
|
||||||
|
WebGLContext_InitializeWithDrawTarget_stdcall(
|
||||||
|
WebGLContext* self,
|
||||||
|
nsIDocShell* aDocShell,
|
||||||
|
NotNull<gfx::DrawTarget*> aDrawTarget)
|
||||||
|
__asm__("__ZN7mozilla12WebGLContext24InitializeWithDrawTargetEP11nsIDocShellNS_7NotNullIPNS_3gfx10DrawTargetEEE@12");
|
||||||
|
|
||||||
|
extern "C" nsresult __attribute__((stdcall))
|
||||||
|
WebGLContext_InitializeWithDrawTarget_stdcall(
|
||||||
|
WebGLContext* self,
|
||||||
|
nsIDocShell* aDocShell,
|
||||||
|
NotNull<gfx::DrawTarget*> aDrawTarget)
|
||||||
|
{
|
||||||
|
return self->WebGLContext::InitializeWithDrawTarget(aDocShell, aDrawTarget);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -57,6 +57,11 @@ SOURCES += [
|
||||||
'ImageUtils.cpp',
|
'ImageUtils.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if CONFIG['GNU_CC'] and CONFIG['CPU_ARCH'] == 'x86' and CONFIG['OS_ARCH'] == 'WINNT':
|
||||||
|
SOURCES += [
|
||||||
|
'WebGLContext_mingw_compat.cpp',
|
||||||
|
]
|
||||||
|
|
||||||
# WebGL Sources
|
# WebGL Sources
|
||||||
UNIFIED_SOURCES += [
|
UNIFIED_SOURCES += [
|
||||||
'TexUnpackBlob.cpp',
|
'TexUnpackBlob.cpp',
|
||||||
|
|
@ -79,7 +84,6 @@ UNIFIED_SOURCES += [
|
||||||
'WebGL2ContextVertices.cpp',
|
'WebGL2ContextVertices.cpp',
|
||||||
'WebGLActiveInfo.cpp',
|
'WebGLActiveInfo.cpp',
|
||||||
'WebGLBuffer.cpp',
|
'WebGLBuffer.cpp',
|
||||||
'WebGLContext.cpp',
|
|
||||||
'WebGLContextBuffers.cpp',
|
'WebGLContextBuffers.cpp',
|
||||||
'WebGLContextDraw.cpp',
|
'WebGLContextDraw.cpp',
|
||||||
'WebGLContextExtensions.cpp',
|
'WebGLContextExtensions.cpp',
|
||||||
|
|
@ -151,6 +155,7 @@ UNIFIED_SOURCES += [
|
||||||
|
|
||||||
SOURCES += [
|
SOURCES += [
|
||||||
'MurmurHash3.cpp',
|
'MurmurHash3.cpp',
|
||||||
|
'WebGLContext.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Suppress warnings from third-party code.
|
# Suppress warnings from third-party code.
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ SOURCES += [
|
||||||
'utf_info.cxx',
|
'utf_info.cxx',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
DISABLE_STL_WRAPPING = True
|
||||||
|
|
||||||
DEFINES['BUILDING_LIBHUNSPELL'] = True
|
DEFINES['BUILDING_LIBHUNSPELL'] = True
|
||||||
|
|
||||||
# Hunspell must be built into libxul on SunOS. See UXP Issue #2290.
|
# Hunspell must be built into libxul on SunOS. See UXP Issue #2290.
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
||||||
# We allow warnings for third-party code that can be updated from upstream.
|
# We allow warnings for third-party code that can be updated from upstream.
|
||||||
ALLOW_COMPILER_WARNINGS = True
|
ALLOW_COMPILER_WARNINGS = True
|
||||||
|
|
||||||
|
DISABLE_STL_WRAPPING = True
|
||||||
|
|
||||||
FINAL_LIBRARY = 'gkmedias'
|
FINAL_LIBRARY = 'gkmedias'
|
||||||
|
|
||||||
DEFINES['PACKAGE_VERSION'] = '"moz"'
|
DEFINES['PACKAGE_VERSION'] = '"moz"'
|
||||||
|
|
|
||||||
|
|
@ -1034,8 +1034,10 @@ case "${OS_TARGET}" in
|
||||||
WINNT|Darwin|Android)
|
WINNT|Darwin|Android)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
STL_FLAGS="-I${DIST}/stl_wrappers"
|
if test -z "$GNU_CC"; then
|
||||||
WRAP_STL_INCLUDES=1
|
STL_FLAGS="-I${DIST}/stl_wrappers"
|
||||||
|
WRAP_STL_INCLUDES=1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,8 @@ EXPORTS.jxl += [
|
||||||
DEFINES["JPEGXL_ENABLE_BOXES"] = "0"
|
DEFINES["JPEGXL_ENABLE_BOXES"] = "0"
|
||||||
DEFINES["JPEGXL_ENABLE_TRANSCODE_JPEG"] = "0"
|
DEFINES["JPEGXL_ENABLE_TRANSCODE_JPEG"] = "0"
|
||||||
|
|
||||||
|
DISABLE_STL_WRAPPING = True
|
||||||
|
|
||||||
FINAL_LIBRARY = "gkmedias"
|
FINAL_LIBRARY = "gkmedias"
|
||||||
|
|
||||||
# We allow warnings for third-party code that can be updated from upstream.
|
# We allow warnings for third-party code that can be updated from upstream.
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,7 @@
|
||||||
* Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
|
* Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
|
||||||
* use that annotation there.
|
* use that annotation there.
|
||||||
*/
|
*/
|
||||||
#if defined(__MINGW32__)
|
#define MOZALLOC_ABORT_API MFBT_API
|
||||||
# define MOZALLOC_ABORT_API
|
|
||||||
#else
|
|
||||||
# define MOZALLOC_ABORT_API MFBT_API
|
|
||||||
#endif
|
|
||||||
|
|
||||||
MOZALLOC_ABORT_API
|
MOZALLOC_ABORT_API
|
||||||
#if !defined(__arm__)
|
#if !defined(__arm__)
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,6 @@ LOCAL_INCLUDES += [
|
||||||
# We allow warnings for third-party code that can be updated from upstream.
|
# We allow warnings for third-party code that can be updated from upstream.
|
||||||
ALLOW_COMPILER_WARNINGS = True
|
ALLOW_COMPILER_WARNINGS = True
|
||||||
|
|
||||||
|
DISABLE_STL_WRAPPING = True
|
||||||
|
|
||||||
Library('woff2')
|
Library('woff2')
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ EXPORTS
|
||||||
_wcsdup=wrap_wcsdup
|
_wcsdup=wrap_wcsdup
|
||||||
jemalloc_stats
|
jemalloc_stats
|
||||||
jemalloc_free_dirty_pages
|
jemalloc_free_dirty_pages
|
||||||
|
_Z14mozalloc_abortPKc
|
||||||
; A hack to work around the CRT (see giant comment in Makefile.in)
|
; A hack to work around the CRT (see giant comment in Makefile.in)
|
||||||
frex=dumb_free_thunk
|
frex=dumb_free_thunk
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1230,8 +1230,10 @@ case "${OS_TARGET}" in
|
||||||
Darwin)
|
Darwin)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
STL_FLAGS="-I${DIST}/stl_wrappers"
|
if test -z "$GNU_CC"; then
|
||||||
WRAP_STL_INCLUDES=1
|
STL_FLAGS="-I${DIST}/stl_wrappers"
|
||||||
|
WRAP_STL_INCLUDES=1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue