mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Finally finish with MinGW building (linking still has some issues shush)
This commit is contained in:
parent
ad07988f5b
commit
854f39b4ab
32 changed files with 104 additions and 19 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#ifndef MOZILLA_GFX_EXTENDINPUTEFFECTD2D1_H_
|
||||
#define MOZILLA_GFX_EXTENDINPUTEFFECTD2D1_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <d2d1_1.h>
|
||||
#include <d2d1effectauthor.h>
|
||||
#include <d2d1effecthelpers.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef mozilla_gfx_NativeFontResourceDWrite_h
|
||||
#define mozilla_gfx_NativeFontResourceDWrite_h
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <dwrite.h>
|
||||
|
||||
#include "2D.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef mozilla_gfx_NativeFontResourceGDI_h
|
||||
#define mozilla_gfx_NativeFontResourceGDI_h
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "2D.h"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "PathD2D.h"
|
||||
#include "HelpersD2D.h"
|
||||
#include <math.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef MOZILLA_GFX_PATHD2D_H_
|
||||
#define MOZILLA_GFX_PATHD2D_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <d2d1.h>
|
||||
|
||||
#include "2D.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef MOZILLA_GFX_RADIALGRADIENTEFFECTD2D1_H_
|
||||
#define MOZILLA_GFX_RADIALGRADIENTEFFECTD2D1_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <d2d1_1.h>
|
||||
#include <d2d1effectauthor.h>
|
||||
#include <d2d1effecthelpers.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef MOZILLA_GFX_SOURCESURFACED2D1_H_
|
||||
#define MOZILLA_GFX_SOURCESURFACED2D1_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "2D.h"
|
||||
#include "HelpersD2D.h"
|
||||
#include <vector>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#ifndef MOZILLA_GFX_SOURCESURFACESKIA_H_
|
||||
#define MOZILLA_GFX_SOURCESURFACESKIA_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "2D.h"
|
||||
#include <vector>
|
||||
#include "skia/include/core/SkCanvas.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
#
|
||||
# WARNING WARNING WARNING
|
||||
#
|
||||
DISABLE_STL_WRAPPING = True
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'src/common/angleutils.cpp',
|
||||
'src/common/debug.cpp',
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
#
|
||||
# WARNING WARNING WARNING
|
||||
#
|
||||
DISABLE_STL_WRAPPING = True
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'../common/angleutils.cpp',
|
||||
'../common/debug.cpp',
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
#
|
||||
# WARNING WARNING WARNING
|
||||
#
|
||||
DISABLE_STL_WRAPPING = True
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'entry_points_egl.cpp',
|
||||
'entry_points_egl_ext.cpp',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,15 @@
|
|||
#include <intrin.h>
|
||||
static void cpuid (uint32_t abcd[4]) { __cpuid ((int*)abcd, 1); }
|
||||
static void cpuid7(uint32_t abcd[4]) { __cpuidex((int*)abcd, 7, 0); }
|
||||
static uint64_t xgetbv(uint32_t xcr) { return _xgetbv(xcr); }
|
||||
static uint64_t xgetbv(uint32_t xcr) {
|
||||
#if defined(__MINGW32__)
|
||||
uint32_t eax, edx;
|
||||
__asm__ __volatile__ ("xgetbv" : "=a"(eax), "=d"(edx) : "c"(xcr));
|
||||
return (uint64_t)(edx) << 32 | eax;
|
||||
#else
|
||||
return _xgetbv(xcr);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#include <cpuid.h>
|
||||
#if !defined(__cpuid_count) // Old Mac Clang doesn't have this defined.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
* 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/. */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "nsMathUtils.h"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
* XXX to get CAIRO_HAS_D2D_SURFACE, CAIRO_HAS_DWRITE_FONT
|
||||
* and cairo_win32_scaled_font_select_font
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include "cairo-win32.h"
|
||||
|
||||
#include "gfxFontUtils.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue