@pheem49/mint 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +1 -1
- package/Cargo.lock +34 -3
- package/Cargo.toml +2 -2
- package/README.md +20 -6
- package/Release_Note.md +129 -0
- package/assets/Mint_CLI.png +0 -0
- package/bin/mint +0 -0
- package/crates/mint-cli/Cargo.toml +1 -0
- package/crates/mint-cli/src/agent.rs +242 -54
- package/crates/mint-cli/src/main.rs +397 -74
- package/crates/mint-core/src/agent_loop.rs +1 -0
- package/crates/mint-core/src/api_server.rs +64 -2
- package/crates/mint-core/src/browser.rs +456 -0
- package/crates/mint-core/src/channels.rs +1 -0
- package/crates/mint-core/src/chat.rs +3 -0
- package/crates/mint-core/src/config.rs +130 -1
- package/crates/mint-core/src/lib.rs +19 -0
- package/crates/mint-core/src/orchestration.rs +317 -12
- package/crates/mint-core/src/skills.rs +113 -4
- package/crates/mint-core/src/tts.rs +3 -1
- package/crates/mint-core/src/workflows.rs +1 -22
- package/flatpak/com.pheem49.mint.desktop +9 -0
- package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
- package/flatpak/com.pheem49.mint.yaml +52 -0
- package/package.json +1 -1
- package/shared-modules/.github/workflows/ci.yml +120 -0
- package/shared-modules/.github/workflows/update.yaml +28 -0
- package/shared-modules/CODEOWNERS +23 -0
- package/shared-modules/README.md +79 -0
- package/shared-modules/SDL/README.md +3 -0
- package/shared-modules/SDL/SDL-1.2.15.json +51 -0
- package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
- package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
- package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
- package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
- package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
- package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
- package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
- package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
- package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
- package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
- package/shared-modules/SDL/sdl12-compat.json +22 -0
- package/shared-modules/SDL2/SDL2_image.json +27 -0
- package/shared-modules/SDL2/SDL2_ttf.json +29 -0
- package/shared-modules/cld2/CMakeLists.txt +157 -0
- package/shared-modules/cld2/cld2.json +24 -0
- package/shared-modules/clutter/clutter.json +72 -0
- package/shared-modules/dbus-glib/dbus-glib.json +29 -0
- package/shared-modules/glew/glew.json +36 -0
- package/shared-modules/glu/glu-9.json +12 -0
- package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
- package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
- package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
- package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
- package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
- package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
- package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
- package/shared-modules/gtk2/gtk2.json +120 -0
- package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
- package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
- package/shared-modules/gtk2/readme.md +10 -0
- package/shared-modules/intltool/intltool-0.51.json +20 -0
- package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
- package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
- package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
- package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
- package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
- package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
- package/shared-modules/lame/lame-3.99.5.json +32 -0
- package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
- package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
- package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
- package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
- package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
- package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
- package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
- package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
- package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
- package/shared-modules/libcanberra/libcanberra.json +44 -0
- package/shared-modules/libmad/libmad.json +19 -0
- package/shared-modules/libsecret/libsecret.json +23 -0
- package/shared-modules/libsoup/libsoup-2.4.json +14 -0
- package/shared-modules/libusb/libusb.json +27 -0
- package/shared-modules/linux-audio/dssi.json +31 -0
- package/shared-modules/linux-audio/fftw3f-static.json +44 -0
- package/shared-modules/linux-audio/fftw3f.json +42 -0
- package/shared-modules/linux-audio/fluidsynth2-static.json +30 -0
- package/shared-modules/linux-audio/fluidsynth2.json +19 -0
- package/shared-modules/linux-audio/ladspa.json +26 -0
- package/shared-modules/linux-audio/lash.json +35 -0
- package/shared-modules/linux-audio/libinstpatch.json +16 -0
- package/shared-modules/linux-audio/liblo-static.json +22 -0
- package/shared-modules/linux-audio/liblo.json +17 -0
- package/shared-modules/linux-audio/lilv-static.json +94 -0
- package/shared-modules/linux-audio/lilv.json +82 -0
- package/shared-modules/linux-audio/lrdf.json +57 -0
- package/shared-modules/linux-audio/lv2.json +21 -0
- package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
- package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
- package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
- package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
- package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
- package/shared-modules/linux-audio/stk.json +28 -0
- package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
- package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
- package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
- package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
- package/shared-modules/lua5.3/lua.pc.in +8 -0
- package/shared-modules/lua5.3/luaconf.patch +47 -0
- package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
- package/shared-modules/lua5.4/lua-5.4.json +41 -0
- package/shared-modules/lua5.4/lua.pc.in +8 -0
- package/shared-modules/lua5.4/luaconf.patch +34 -0
- package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
- package/shared-modules/luajit/luajit.json +30 -0
- package/shared-modules/lzo/lzo.json +27 -0
- package/shared-modules/mac/mac.json +18 -0
- package/shared-modules/physfs/physfs.json +26 -0
- package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
- package/shared-modules/pygame/cython-fixes.patch +34 -0
- package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
- package/shared-modules/pygame/glib.patch +25 -0
- package/shared-modules/pygame/pygame1-python2.json +157 -0
- package/shared-modules/pygtk/pygtk-c99.patch +15 -0
- package/shared-modules/pygtk/pygtk.json +117 -0
- package/shared-modules/pygtk/pygtk.patch +39 -0
- package/shared-modules/python2.7/python-2.7.json +48 -0
- package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
- package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
- package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
- package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
- package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
- package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
- package/shared-modules/update-checker.sh +50 -0
- package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
- package/shared-modules/vorbisgain/0002-errno.patch +33 -0
- package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
- package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
- package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
- package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
- package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
- package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
- package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
- package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
- package/shared-modules/vorbisgain/README.md +23 -0
- package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
- package/src/renderer/shared/agentProgress.ts +145 -0
- package/src/renderer/shared/calculator.ts +52 -0
- package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
- package/src/renderer/shared/components/AgentActivityTable.tsx +66 -0
- package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
- package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
- package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
- package/src/renderer/shared/constants/models.ts +91 -0
- package/src/renderer/shared/platform.ts +82 -0
- package/src/renderer/shared/types.ts +140 -0
- package/src/renderer/shared/utils/agentActivity.ts +187 -0
- package/src/renderer/shared/utils/approval.ts +1 -0
- package/src/renderer/shared/utils/approval.tsx +64 -0
- package/src/renderer/shared/utils/markdown.tsx +347 -0
- package/src/renderer/shared/utils/providers.ts +36 -0
- package/src/renderer/shared/utils/speech.ts +216 -0
- package/src/renderer/shared/utils/ui.ts +147 -0
- package/src/renderer/src/agentProgress.ts +11 -39
- package/src/renderer/src/calculator.ts +3 -46
- package/src/renderer/src/components/ChatPanel.tsx +230 -1202
- package/src/renderer/src/components/ImageStudioPanel.tsx +11 -1
- package/src/renderer/src/components/MintDashboard.tsx +63 -171
- package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
- package/src/renderer/src/components/Settings/AgentsTab.tsx +362 -0
- package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src/components/Settings/PluginsTab.tsx +221 -41
- package/src/renderer/src/components/SettingsWindow.tsx +54 -12
- package/src/renderer/src/components/WorkspacePanel.tsx +66 -9
- package/src/renderer/src/css/image-studio.css +6 -0
- package/src/renderer/src/css/styles.css +148 -11
- package/src/renderer/src/index.css +12 -1
- package/src/renderer/src/tauri.ts +169 -143
- package/src/renderer/src-web/agentProgress.ts +11 -39
- package/src/renderer/src-web/calculator.ts +3 -46
- package/src/renderer/src-web/components/ChatPanel.tsx +223 -1199
- package/src/renderer/src-web/components/ImageStudioPanel.tsx +11 -1
- package/src/renderer/src-web/components/MintDashboard.tsx +31 -172
- package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
- package/src/renderer/src-web/components/Settings/AgentsTab.tsx +362 -0
- package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src-web/components/Settings/PluginsTab.tsx +221 -41
- package/src/renderer/src-web/components/SettingsWindow.tsx +54 -12
- package/src/renderer/src-web/css/image-studio.css +6 -0
- package/src/renderer/src-web/css/styles.css +184 -12
- package/src/renderer/src-web/index.css +12 -1
- package/src/renderer/src-web/tauri.ts +204 -104
- package/src-tauri/src/browser.rs +1 -141
- package/src-tauri/src/headless.rs +3 -2
- package/src-tauri/src/lib.rs +254 -59
- package/src-tauri/src/webhooks.rs +1 -0
- package/src-tauri/src/workflows.rs +57 -4
- package/src-tauri/tauri.conf.json +1 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
https://github.com/libsdl-org/SDL-1.2/pull/869
|
|
2
|
+
https://github.com/libsdl-org/SDL-1.2/commit/ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe
|
|
3
|
+
https://github.com/libsdl-org/SDL-1.2/commit/e738cfffced8a006094d55337d917386582ada47
|
|
4
|
+
|
|
5
|
+
From ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe Mon Sep 17 00:00:00 2001
|
|
6
|
+
From: orbea <orbea@riseup.net>
|
|
7
|
+
Date: Sat, 15 Oct 2022 14:35:38 -0700
|
|
8
|
+
Subject: [PATCH 1/2] Xxf86vm: Fix function definitions without a prototype
|
|
9
|
+
|
|
10
|
+
This is not supported with the upcoming clang 16.
|
|
11
|
+
|
|
12
|
+
error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
|
|
13
|
+
|
|
14
|
+
reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
|
|
15
|
+
---
|
|
16
|
+
src/video/Xext/Xxf86vm/XF86VMode.c | 128 +++++++++++++++--------------
|
|
17
|
+
1 file changed, 65 insertions(+), 63 deletions(-)
|
|
18
|
+
|
|
19
|
+
diff --git a/src/video/Xext/Xxf86vm/XF86VMode.c b/src/video/Xext/Xxf86vm/XF86VMode.c
|
|
20
|
+
index 5cb21905a..c3bd26716 100644
|
|
21
|
+
--- a/src/video/Xext/Xxf86vm/XF86VMode.c
|
|
22
|
+
+++ b/src/video/Xext/Xxf86vm/XF86VMode.c
|
|
23
|
+
@@ -102,9 +102,11 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86vidmode_info)
|
|
24
|
+
*****************************************************************************/
|
|
25
|
+
|
|
26
|
+
Bool
|
|
27
|
+
-SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep)
|
|
28
|
+
- Display *dpy;
|
|
29
|
+
- int *event_basep, *error_basep;
|
|
30
|
+
+SDL_NAME(XF86VidModeQueryExtension)(
|
|
31
|
+
+ Display *dpy,
|
|
32
|
+
+ int *event_basep,
|
|
33
|
+
+ int *error_basep
|
|
34
|
+
+)
|
|
35
|
+
{
|
|
36
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
37
|
+
|
|
38
|
+
@@ -118,10 +120,11 @@ SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
Bool
|
|
42
|
+
-SDL_NAME(XF86VidModeQueryVersion)(dpy, majorVersion, minorVersion)
|
|
43
|
+
- Display* dpy;
|
|
44
|
+
- int* majorVersion;
|
|
45
|
+
- int* minorVersion;
|
|
46
|
+
+SDL_NAME(XF86VidModeQueryVersion)(
|
|
47
|
+
+ Display *dpy,
|
|
48
|
+
+ int *majorVersion,
|
|
49
|
+
+ int *minorVersion
|
|
50
|
+
+)
|
|
51
|
+
{
|
|
52
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
53
|
+
xXF86VidModeQueryVersionReply rep;
|
|
54
|
+
@@ -215,11 +218,12 @@ SDL_NAME(XF86VidModeGetGamma)(Display *dpy, int screen, SDL_NAME(XF86VidModeGamm
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Bool
|
|
58
|
+
-SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline)
|
|
59
|
+
- Display* dpy;
|
|
60
|
+
- int screen;
|
|
61
|
+
- int* dotclock;
|
|
62
|
+
- SDL_NAME(XF86VidModeModeLine)* modeline;
|
|
63
|
+
+SDL_NAME(XF86VidModeGetModeLine)(
|
|
64
|
+
+ Display *dpy,
|
|
65
|
+
+ int screen,
|
|
66
|
+
+ int *dotclock,
|
|
67
|
+
+ SDL_NAME(XF86VidModeModeLine) *modeline
|
|
68
|
+
+)
|
|
69
|
+
{
|
|
70
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
71
|
+
xXF86VidModeGetModeLineReply rep;
|
|
72
|
+
@@ -292,11 +296,12 @@ SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
Bool
|
|
76
|
+
-SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr)
|
|
77
|
+
- Display* dpy;
|
|
78
|
+
- int screen;
|
|
79
|
+
- int* modecount;
|
|
80
|
+
- SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr;
|
|
81
|
+
+SDL_NAME(XF86VidModeGetAllModeLines)(
|
|
82
|
+
+ Display *dpy,
|
|
83
|
+
+ int screen,
|
|
84
|
+
+ int *modecount,
|
|
85
|
+
+ SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr
|
|
86
|
+
+)
|
|
87
|
+
{
|
|
88
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
89
|
+
xXF86VidModeGetAllModeLinesReply rep;
|
|
90
|
+
@@ -456,11 +461,12 @@ SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr)
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
Bool
|
|
94
|
+
-SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline)
|
|
95
|
+
- Display *dpy;
|
|
96
|
+
- int screen;
|
|
97
|
+
- SDL_NAME(XF86VidModeModeInfo)* newmodeline;
|
|
98
|
+
- SDL_NAME(XF86VidModeModeInfo)* aftermodeline;
|
|
99
|
+
+SDL_NAME(XF86VidModeAddModeLine)(
|
|
100
|
+
+ Display *dpy,
|
|
101
|
+
+ int screen,
|
|
102
|
+
+ SDL_NAME(XF86VidModeModeInfo) *newmodeline,
|
|
103
|
+
+ SDL_NAME(XF86VidModeModeInfo) *aftermodeline
|
|
104
|
+
+)
|
|
105
|
+
{
|
|
106
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
107
|
+
xXF86VidModeAddModeLineReq *req;
|
|
108
|
+
@@ -569,10 +575,11 @@ SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
Bool
|
|
112
|
+
-SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline)
|
|
113
|
+
- Display *dpy;
|
|
114
|
+
- int screen;
|
|
115
|
+
- SDL_NAME(XF86VidModeModeInfo)* modeline;
|
|
116
|
+
+SDL_NAME(XF86VidModeDeleteModeLine)(
|
|
117
|
+
+ Display *dpy,
|
|
118
|
+
+ int screen,
|
|
119
|
+
+ SDL_NAME(XF86VidModeModeInfo) *modeline
|
|
120
|
+
+)
|
|
121
|
+
{
|
|
122
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
123
|
+
xXF86VidModeDeleteModeLineReq *req;
|
|
124
|
+
@@ -633,10 +640,11 @@ SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
Bool
|
|
128
|
+
-SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline)
|
|
129
|
+
- Display *dpy;
|
|
130
|
+
- int screen;
|
|
131
|
+
- SDL_NAME(XF86VidModeModeLine)* modeline;
|
|
132
|
+
+SDL_NAME(XF86VidModeModModeLine)(
|
|
133
|
+
+ Display *dpy,
|
|
134
|
+
+ int screen,
|
|
135
|
+
+ SDL_NAME(XF86VidModeModeLine) *modeline
|
|
136
|
+
+)
|
|
137
|
+
{
|
|
138
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
139
|
+
xXF86VidModeModModeLineReq *req;
|
|
140
|
+
@@ -695,10 +703,11 @@ SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
Status
|
|
144
|
+
-SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline)
|
|
145
|
+
- Display *dpy;
|
|
146
|
+
- int screen;
|
|
147
|
+
- SDL_NAME(XF86VidModeModeInfo)* modeline;
|
|
148
|
+
+SDL_NAME(XF86VidModeValidateModeLine)(
|
|
149
|
+
+ Display *dpy,
|
|
150
|
+
+ int screen,
|
|
151
|
+
+ SDL_NAME(XF86VidModeModeInfo) *modeline
|
|
152
|
+
+)
|
|
153
|
+
{
|
|
154
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
155
|
+
xXF86VidModeValidateModeLineReq *req;
|
|
156
|
+
@@ -766,10 +775,7 @@ SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
Bool
|
|
160
|
+
-SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom)
|
|
161
|
+
- Display* dpy;
|
|
162
|
+
- int screen;
|
|
163
|
+
- int zoom;
|
|
164
|
+
+SDL_NAME(XF86VidModeSwitchMode)(Display *dpy, int screen, int zoom)
|
|
165
|
+
{
|
|
166
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
167
|
+
xXF86VidModeSwitchModeReq *req;
|
|
168
|
+
@@ -788,10 +794,11 @@ SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
Bool
|
|
172
|
+
-SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline)
|
|
173
|
+
- Display* dpy;
|
|
174
|
+
- int screen;
|
|
175
|
+
- SDL_NAME(XF86VidModeModeInfo)* modeline;
|
|
176
|
+
+SDL_NAME(XF86VidModeSwitchToMode)(
|
|
177
|
+
+ Display *dpy,
|
|
178
|
+
+ int screen,
|
|
179
|
+
+ SDL_NAME(XF86VidModeModeInfo) *modeline
|
|
180
|
+
+)
|
|
181
|
+
{
|
|
182
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
183
|
+
xXF86VidModeSwitchToModeReq *req;
|
|
184
|
+
@@ -877,10 +884,7 @@ SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline)
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
Bool
|
|
188
|
+
-SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock)
|
|
189
|
+
- Display* dpy;
|
|
190
|
+
- int screen;
|
|
191
|
+
- int lock;
|
|
192
|
+
+SDL_NAME(XF86VidModeLockModeSwitch)(Display *dpy, int screen, int lock)
|
|
193
|
+
{
|
|
194
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
195
|
+
xXF86VidModeLockModeSwitchReq *req;
|
|
196
|
+
@@ -899,10 +903,11 @@ SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
Bool
|
|
200
|
+
-SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor)
|
|
201
|
+
- Display* dpy;
|
|
202
|
+
- int screen;
|
|
203
|
+
- SDL_NAME(XF86VidModeMonitor)* monitor;
|
|
204
|
+
+SDL_NAME(XF86VidModeGetMonitor)(
|
|
205
|
+
+ Display *dpy,
|
|
206
|
+
+ int screen,
|
|
207
|
+
+ SDL_NAME(XF86VidModeMonitor) *monitor
|
|
208
|
+
+)
|
|
209
|
+
{
|
|
210
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
211
|
+
xXF86VidModeGetMonitorReply rep;
|
|
212
|
+
@@ -1000,10 +1005,7 @@ SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor)
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
Bool
|
|
216
|
+
-SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y)
|
|
217
|
+
- Display* dpy;
|
|
218
|
+
- int screen;
|
|
219
|
+
- int *x, *y;
|
|
220
|
+
+SDL_NAME(XF86VidModeGetViewPort)(Display *dpy, int screen, int *x, int *y)
|
|
221
|
+
{
|
|
222
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
223
|
+
xXF86VidModeGetViewPortReply rep;
|
|
224
|
+
@@ -1053,10 +1055,7 @@ SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
Bool
|
|
228
|
+
-SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y)
|
|
229
|
+
- Display* dpy;
|
|
230
|
+
- int screen;
|
|
231
|
+
- int x, y;
|
|
232
|
+
+SDL_NAME(XF86VidModeSetViewPort)(Display *dpy, int screen, int x, int y)
|
|
233
|
+
{
|
|
234
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
235
|
+
xXF86VidModeSetViewPortReq *req;
|
|
236
|
+
@@ -1077,11 +1076,14 @@ SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y)
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
Bool
|
|
240
|
+
-SDL_NAME(XF86VidModeGetDotClocks)(dpy, screen,
|
|
241
|
+
- flagsPtr, numclocksPtr, maxclocksPtr, clocksPtr)
|
|
242
|
+
- Display* dpy;
|
|
243
|
+
- int screen;
|
|
244
|
+
- int *flagsPtr, *numclocksPtr, *maxclocksPtr, *clocksPtr[];
|
|
245
|
+
+SDL_NAME(XF86VidModeGetDotClocks)(
|
|
246
|
+
+ Display *dpy,
|
|
247
|
+
+ int screen,
|
|
248
|
+
+ int *flagsPtr,
|
|
249
|
+
+ int *numclocksPtr,
|
|
250
|
+
+ int *maxclocksPtr,
|
|
251
|
+
+ int *clocksPtr[]
|
|
252
|
+
+)
|
|
253
|
+
{
|
|
254
|
+
XExtDisplayInfo *info = find_display (dpy);
|
|
255
|
+
xXF86VidModeGetDotClocksReply rep;
|
|
256
|
+
|
|
257
|
+
From e738cfffced8a006094d55337d917386582ada47 Mon Sep 17 00:00:00 2001
|
|
258
|
+
From: orbea <orbea@riseup.net>
|
|
259
|
+
Date: Sat, 15 Oct 2022 15:10:48 -0700
|
|
260
|
+
Subject: [PATCH 2/2] Xext: Fix function declarations without a prototype
|
|
261
|
+
|
|
262
|
+
This is not supported with the upcoming clang 16.
|
|
263
|
+
|
|
264
|
+
error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Werror,-Wdeprecated-non-prototype]
|
|
265
|
+
|
|
266
|
+
reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
|
|
267
|
+
---
|
|
268
|
+
src/video/Xext/XME/xme.c | 2 +-
|
|
269
|
+
src/video/Xext/Xinerama/Xinerama.c | 3 ++-
|
|
270
|
+
src/video/Xext/Xv/Xv.c | 6 +++---
|
|
271
|
+
3 files changed, 6 insertions(+), 5 deletions(-)
|
|
272
|
+
|
|
273
|
+
diff --git a/src/video/Xext/XME/xme.c b/src/video/Xext/XME/xme.c
|
|
274
|
+
index 2cead35ad..bb8d04d48 100644
|
|
275
|
+
--- a/src/video/Xext/XME/xme.c
|
|
276
|
+
+++ b/src/video/Xext/XME/xme.c
|
|
277
|
+
@@ -206,7 +206,7 @@ static char *xigmisc_extension_name = XIGMISC_PROTOCOL_NAME;
|
|
278
|
+
/*
|
|
279
|
+
* find_display - locate the display info block
|
|
280
|
+
*/
|
|
281
|
+
-static int XiGMiscCloseDisplay();
|
|
282
|
+
+static int XiGMiscCloseDisplay(Display*, XExtCodes*);
|
|
283
|
+
|
|
284
|
+
static XExtensionHooks xigmisc_extension_hooks = {
|
|
285
|
+
NULL, /* create_gc */
|
|
286
|
+
diff --git a/src/video/Xext/Xinerama/Xinerama.c b/src/video/Xext/Xinerama/Xinerama.c
|
|
287
|
+
index 4ff42ebfe..57f64b9c3 100644
|
|
288
|
+
--- a/src/video/Xext/Xinerama/Xinerama.c
|
|
289
|
+
+++ b/src/video/Xext/Xinerama/Xinerama.c
|
|
290
|
+
@@ -50,7 +50,8 @@ static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME;
|
|
291
|
+
#define PanoramiXSimpleCheckExtension(dpy,i) \
|
|
292
|
+
XextSimpleCheckExtension (dpy, i, panoramiX_extension_name)
|
|
293
|
+
|
|
294
|
+
-static int close_display();
|
|
295
|
+
+static int close_display(Display*, XExtCodes*);
|
|
296
|
+
+
|
|
297
|
+
static /* const */ XExtensionHooks panoramiX_extension_hooks = {
|
|
298
|
+
NULL, /* create_gc */
|
|
299
|
+
NULL, /* copy_gc */
|
|
300
|
+
diff --git a/src/video/Xext/Xv/Xv.c b/src/video/Xext/Xv/Xv.c
|
|
301
|
+
index 7147b9e8c..c254a1dc2 100644
|
|
302
|
+
--- a/src/video/Xext/Xv/Xv.c
|
|
303
|
+
+++ b/src/video/Xext/Xv/Xv.c
|
|
304
|
+
@@ -63,9 +63,9 @@ static char *xv_extension_name = XvName;
|
|
305
|
+
#define XvCheckExtension(dpy, i, val) \
|
|
306
|
+
XextCheckExtension(dpy, i, xv_extension_name, val)
|
|
307
|
+
|
|
308
|
+
-static char *xv_error_string();
|
|
309
|
+
-static int xv_close_display();
|
|
310
|
+
-static Bool xv_wire_to_event();
|
|
311
|
+
+static char *xv_error_string(Display*, int, XExtCodes*, char*, int);
|
|
312
|
+
+static int xv_close_display(Display*, XExtCodes*);
|
|
313
|
+
+static Bool xv_wire_to_event(Display*, XEvent*, xEvent*);
|
|
314
|
+
|
|
315
|
+
static XExtensionHooks xv_extension_hooks = {
|
|
316
|
+
NULL, /* create_gc */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Description: Do not harness backing store by default
|
|
2
|
+
xorg-server 1.15 enables backing store if composite extension is enabled
|
|
3
|
+
(default settings). Harnessing backing store through compositor leads to
|
|
4
|
+
tearing effect.
|
|
5
|
+
This patch reverts default harnessing backing store to conditional use if
|
|
6
|
+
SDL_VIDEO_X11_BACKINGSTORE environment variable exists.
|
|
7
|
+
Origin: https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/1280665/comments/1
|
|
8
|
+
Bug: https://bugzilla.libsdl.org/show_bug.cgi?id=2383
|
|
9
|
+
Bug-Debian: https://bugs.debian.org/747168
|
|
10
|
+
|
|
11
|
+
--- a/src/video/x11/SDL_x11video.c
|
|
12
|
+
+++ b/src/video/x11/SDL_x11video.c
|
|
13
|
+
@@ -1088,10 +1088,8 @@
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
-#if 0 /* This is an experiment - are the graphics faster now? - nope. */
|
|
18
|
+
if ( SDL_getenv("SDL_VIDEO_X11_BACKINGSTORE") )
|
|
19
|
+
-#endif
|
|
20
|
+
- /* Cache the window in the server, when possible */
|
|
21
|
+
+ /* Cache the window in the server when possible, on request */
|
|
22
|
+
{
|
|
23
|
+
Screen *xscreen;
|
|
24
|
+
XSetWindowAttributes a;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
# HG changeset patch
|
|
3
|
+
# User Azamat H. Hackimov <azamat.hackimov@gmail.com>
|
|
4
|
+
# Date 1370184533 -21600
|
|
5
|
+
# Node ID 91ad7b43317a6387e115ecdf63a49137f47e42c8
|
|
6
|
+
# Parent f7fd5c3951b9ed922fdf696f7182e71b58a13268
|
|
7
|
+
Fix compilation with libX11 >= 1.5.99.902.
|
|
8
|
+
|
|
9
|
+
These changes fixes bug #1769 for SDL 1.2
|
|
10
|
+
(http://bugzilla.libsdl.org/show_bug.cgi?id=1769).
|
|
11
|
+
|
|
12
|
+
diff -r f7fd5c3951b9 -r 91ad7b43317a configure.in
|
|
13
|
+
--- a/configure.in Wed Apr 17 00:56:53 2013 -0700
|
|
14
|
+
+++ b/configure.in Sun Jun 02 20:48:53 2013 +0600
|
|
15
|
+
@@ -1169,6 +1169,17 @@
|
|
16
|
+
if test x$definitely_enable_video_x11_xrandr = xyes; then
|
|
17
|
+
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
|
|
18
|
+
fi
|
|
19
|
+
+ AC_MSG_CHECKING(for const parameter to _XData32)
|
|
20
|
+
+ have_const_param_xdata32=no
|
|
21
|
+
+ AC_TRY_COMPILE([
|
|
22
|
+
+ #include <X11/Xlibint.h>
|
|
23
|
+
+ extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
|
|
24
|
+
+ ],[
|
|
25
|
+
+ ],[
|
|
26
|
+
+ have_const_param_xdata32=yes
|
|
27
|
+
+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32)
|
|
28
|
+
+ ])
|
|
29
|
+
+ AC_MSG_RESULT($have_const_param_xdata32)
|
|
30
|
+
fi
|
|
31
|
+
fi
|
|
32
|
+
}
|
|
33
|
+
diff -r f7fd5c3951b9 -r 91ad7b43317a include/SDL_config.h.in
|
|
34
|
+
--- a/include/SDL_config.h.in Wed Apr 17 00:56:53 2013 -0700
|
|
35
|
+
+++ b/include/SDL_config.h.in Sun Jun 02 20:48:53 2013 +0600
|
|
36
|
+
@@ -283,6 +283,7 @@
|
|
37
|
+
#undef SDL_VIDEO_DRIVER_WINDIB
|
|
38
|
+
#undef SDL_VIDEO_DRIVER_WSCONS
|
|
39
|
+
#undef SDL_VIDEO_DRIVER_X11
|
|
40
|
+
+#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
|
|
41
|
+
#undef SDL_VIDEO_DRIVER_X11_DGAMOUSE
|
|
42
|
+
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
|
|
43
|
+
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
|
44
|
+
diff -r f7fd5c3951b9 -r 91ad7b43317a src/video/x11/SDL_x11sym.h
|
|
45
|
+
--- a/src/video/x11/SDL_x11sym.h Wed Apr 17 00:56:53 2013 -0700
|
|
46
|
+
+++ b/src/video/x11/SDL_x11sym.h Sun Jun 02 20:48:53 2013 +0600
|
|
47
|
+
@@ -165,7 +165,11 @@
|
|
48
|
+
*/
|
|
49
|
+
#ifdef LONG64
|
|
50
|
+
SDL_X11_MODULE(IO_32BIT)
|
|
51
|
+
+#if SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
|
|
52
|
+
+SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
|
|
53
|
+
+#else
|
|
54
|
+
SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
|
|
55
|
+
+#endif
|
|
56
|
+
SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
|
|
57
|
+
#endif
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Origin: https://github.com/libsdl-org/SDL-1.2/commit/447ec3d2c360902aa648bec44b612a040248871e
|
|
2
|
+
From: Ozkan Sezer <sezeroz@gmail.com>
|
|
3
|
+
Description: loadso, dlsym, SDL_LoadFunction: cleanup the underscored name path.
|
|
4
|
+
- strlcpy was passed a wrong buffer length parameter. has worked so
|
|
5
|
+
far by luck.
|
|
6
|
+
- use memcpy instead of strlcpy for simplicity.
|
|
7
|
+
- 'append' has been a typo: should be 'prepend'.
|
|
8
|
+
diff --git a/src/loadso/dlopen/SDL_sysloadso.c b/src/loadso/dlopen/SDL_sysloadso.c
|
|
9
|
+
index 7985ee7f9..56331a1f0 100644
|
|
10
|
+
--- a/src/loadso/dlopen/SDL_sysloadso.c
|
|
11
|
+
+++ b/src/loadso/dlopen/SDL_sysloadso.c
|
|
12
|
+
@@ -45,11 +45,11 @@ void *SDL_LoadFunction(void *handle, const char *name)
|
|
13
|
+
{
|
|
14
|
+
void *symbol = dlsym(handle, name);
|
|
15
|
+
if ( symbol == NULL ) {
|
|
16
|
+
- /* append an underscore for platforms that need that. */
|
|
17
|
+
- size_t len = 1+SDL_strlen(name)+1;
|
|
18
|
+
- char *_name = SDL_stack_alloc(char, len);
|
|
19
|
+
+ /* prepend an underscore for platforms that need that. */
|
|
20
|
+
+ size_t len = SDL_strlen(name)+1;
|
|
21
|
+
+ char *_name = SDL_stack_alloc(char, len+1);
|
|
22
|
+
_name[0] = '_';
|
|
23
|
+
- SDL_strlcpy(&_name[1], name, len);
|
|
24
|
+
+ SDL_memcpy(&_name[1], name, len);
|
|
25
|
+
symbol = dlsym(handle, _name);
|
|
26
|
+
SDL_stack_free(_name);
|
|
27
|
+
if ( symbol == NULL ) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sdl12-compat",
|
|
3
|
+
"buildsystem": "cmake-ninja",
|
|
4
|
+
"builddir": true,
|
|
5
|
+
"cleanup": [
|
|
6
|
+
"/bin/sdl-config",
|
|
7
|
+
"/include",
|
|
8
|
+
"/lib/pkgconfig",
|
|
9
|
+
"/share/aclocal",
|
|
10
|
+
"*.a"
|
|
11
|
+
],
|
|
12
|
+
"sources": [
|
|
13
|
+
{
|
|
14
|
+
"type": "archive",
|
|
15
|
+
"url": "https://github.com/libsdl-org/sdl12-compat/releases/download/release-1.2.74/sdl12-compat-1.2.74.tar.gz",
|
|
16
|
+
"sha256": "86b6cb20387209eb487273834c41424a42c56637635ca6c58722e1031b04bee0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"modules": [
|
|
20
|
+
"../glu/glu-9.json"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL2_image",
|
|
3
|
+
"config-opts": [
|
|
4
|
+
"-DSDL2IMAGE_DEPS_SHARED=OFF",
|
|
5
|
+
"-DSDL2IMAGE_STRICT=ON"
|
|
6
|
+
],
|
|
7
|
+
"cleanup": [
|
|
8
|
+
"/include",
|
|
9
|
+
"/lib/cmake",
|
|
10
|
+
"/lib/pkgconfig"
|
|
11
|
+
],
|
|
12
|
+
"buildsystem": "cmake-ninja",
|
|
13
|
+
"builddir": true,
|
|
14
|
+
"sources": [
|
|
15
|
+
{
|
|
16
|
+
"type": "archive",
|
|
17
|
+
"url": "https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.12/SDL2_image-2.8.12.tar.gz",
|
|
18
|
+
"sha256": "393f5efb50536ec13ca4f4affb69cc9966d3c3f969e6c5e701faddf9f9785381",
|
|
19
|
+
"x-checker-data": {
|
|
20
|
+
"type": "anitya",
|
|
21
|
+
"project-id": 382729,
|
|
22
|
+
"stable-only": true,
|
|
23
|
+
"url-template": "https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-$version.tar.gz"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SDL2_ttf",
|
|
3
|
+
"config-opts": [
|
|
4
|
+
"-DSDL2TTF_HARFBUZZ=ON"
|
|
5
|
+
],
|
|
6
|
+
"cleanup": [
|
|
7
|
+
"/include",
|
|
8
|
+
"/lib/cmake",
|
|
9
|
+
"/lib/pkgconfig"
|
|
10
|
+
],
|
|
11
|
+
"buildsystem": "cmake-ninja",
|
|
12
|
+
"builddir": true,
|
|
13
|
+
"sources": [
|
|
14
|
+
{
|
|
15
|
+
"type": "archive",
|
|
16
|
+
"url": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.24.0/SDL2_ttf-2.24.0.tar.gz",
|
|
17
|
+
"sha256": "0b2bf1e7b6568adbdbc9bb924643f79d9dedafe061fa1ed687d1d9ac4e453bfd",
|
|
18
|
+
"x-checker-data": {
|
|
19
|
+
"type": "anitya",
|
|
20
|
+
"project-id": 4784,
|
|
21
|
+
"stable-only": true,
|
|
22
|
+
"versions": {
|
|
23
|
+
"<": "3.0.0"
|
|
24
|
+
},
|
|
25
|
+
"url-template": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-$version/SDL2_ttf-$version.tar.gz"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 2.8)
|
|
2
|
+
project (cld2)
|
|
3
|
+
enable_language(CXX)
|
|
4
|
+
|
|
5
|
+
include(GNUInstallDirs)
|
|
6
|
+
|
|
7
|
+
set (VERSION "0.0.197")
|
|
8
|
+
set (common_SOURCE_FILES
|
|
9
|
+
internal/cldutil.cc
|
|
10
|
+
internal/cldutil_shared.cc
|
|
11
|
+
internal/compact_lang_det.cc
|
|
12
|
+
internal/compact_lang_det_hint_code.cc
|
|
13
|
+
internal/compact_lang_det_impl.cc
|
|
14
|
+
internal/debug.cc
|
|
15
|
+
internal/fixunicodevalue.cc
|
|
16
|
+
internal/generated_entities.cc
|
|
17
|
+
internal/generated_language.cc
|
|
18
|
+
internal/generated_ulscript.cc
|
|
19
|
+
internal/getonescriptspan.cc
|
|
20
|
+
internal/lang_script.cc
|
|
21
|
+
internal/offsetmap.cc
|
|
22
|
+
internal/scoreonescriptspan.cc
|
|
23
|
+
internal/tote.cc
|
|
24
|
+
internal/utf8statetable.cc
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
set (cld2_SOURCE_FILES
|
|
28
|
+
internal/generated_distinct_bi_0.cc
|
|
29
|
+
internal/cld_generated_cjk_uni_prop_80.cc
|
|
30
|
+
internal/cld2_generated_cjk_compatible.cc
|
|
31
|
+
internal/cld_generated_cjk_delta_bi_4.cc
|
|
32
|
+
internal/cld2_generated_quadchrome_2.cc
|
|
33
|
+
internal/cld2_generated_deltaoctachrome.cc
|
|
34
|
+
internal/cld2_generated_distinctoctachrome.cc
|
|
35
|
+
internal/cld_generated_score_quad_octa_2.cc
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
set (cld2_full_SOURCE_FILES
|
|
39
|
+
internal/generated_distinct_bi_0.cc
|
|
40
|
+
internal/cld_generated_cjk_uni_prop_80.cc
|
|
41
|
+
internal/cld2_generated_cjk_compatible.cc
|
|
42
|
+
internal/cld_generated_cjk_delta_bi_32.cc
|
|
43
|
+
internal/cld2_generated_quad0122.cc
|
|
44
|
+
internal/cld2_generated_deltaocta0122.cc
|
|
45
|
+
internal/cld2_generated_distinctocta0122.cc
|
|
46
|
+
internal/cld_generated_score_quad_octa_0122.cc
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
set (cld2_dynamic_SOURCE_FILES
|
|
50
|
+
internal/cld2_dynamic_data.cc
|
|
51
|
+
internal/cld2_dynamic_data_loader.cc
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
add_library(cld2 SHARED ${common_SOURCE_FILES} ${cld2_SOURCE_FILES})
|
|
55
|
+
set_target_properties(cld2 PROPERTIES
|
|
56
|
+
ENABLE_EXPORTS On
|
|
57
|
+
OUTPUT_NAME cld2
|
|
58
|
+
VERSION ${VERSION}
|
|
59
|
+
SOVERSION 0
|
|
60
|
+
)
|
|
61
|
+
add_library(cld2_full SHARED ${cld2_full_SOURCE_FILES})
|
|
62
|
+
set_target_properties(cld2_full PROPERTIES
|
|
63
|
+
ENABLE_EXPORTS On
|
|
64
|
+
OUTPUT_NAME cld2_full
|
|
65
|
+
VERSION ${VERSION}
|
|
66
|
+
SOVERSION 0
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
add_library(cld2_dynamic SHARED ${cld2_dynamic_SOURCE_FILES})
|
|
70
|
+
set_target_properties(cld2_dynamic PROPERTIES
|
|
71
|
+
ENABLE_EXPORTS On
|
|
72
|
+
OUTPUT_NAME cld2_dynamic
|
|
73
|
+
VERSION ${VERSION}
|
|
74
|
+
SOVERSION 0
|
|
75
|
+
COMPILE_FLAGS "-DCLD2_DYNAMIC_MODE"
|
|
76
|
+
)
|
|
77
|
+
install(TARGETS cld2 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
78
|
+
install(TARGETS cld2_full LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
79
|
+
install(TARGETS cld2_dynamic LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
80
|
+
|
|
81
|
+
set (cld2_internal_HEADERS
|
|
82
|
+
internal/cld2_dynamic_compat.h
|
|
83
|
+
internal/cld2_dynamic_data_extractor.h
|
|
84
|
+
internal/cld2_dynamic_data.h
|
|
85
|
+
internal/cld2_dynamic_data_loader.h
|
|
86
|
+
internal/cld2tablesummary.h
|
|
87
|
+
internal/cldutil.h
|
|
88
|
+
internal/cldutil_offline.h
|
|
89
|
+
internal/cldutil_shared.h
|
|
90
|
+
internal/compact_lang_det_hint_code.h
|
|
91
|
+
internal/compact_lang_det_impl.h
|
|
92
|
+
internal/debug.h
|
|
93
|
+
internal/fixunicodevalue.h
|
|
94
|
+
internal/generated_language.h
|
|
95
|
+
internal/generated_ulscript.h
|
|
96
|
+
internal/getonescriptspan.h
|
|
97
|
+
internal/integral_types.h
|
|
98
|
+
internal/lang_script.h
|
|
99
|
+
internal/langspan.h
|
|
100
|
+
internal/offsetmap.h
|
|
101
|
+
internal/port.h
|
|
102
|
+
internal/scoreonescriptspan.h
|
|
103
|
+
internal/stringpiece.h
|
|
104
|
+
internal/tote.h
|
|
105
|
+
internal/unittest_data.h
|
|
106
|
+
internal/utf8acceptinterchange.h
|
|
107
|
+
internal/utf8prop_lettermarkscriptnum.h
|
|
108
|
+
internal/utf8repl_lettermarklower.h
|
|
109
|
+
internal/utf8scannot_lettermarkspecial.h
|
|
110
|
+
internal/utf8statetable.h
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
install(FILES ${cld2_internal_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cld2/internal)
|
|
114
|
+
set (cld2_public_HEADERS
|
|
115
|
+
public/compact_lang_det.h
|
|
116
|
+
public/encodings.h
|
|
117
|
+
)
|
|
118
|
+
install(FILES ${cld2_public_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cld2/public)
|
|
119
|
+
|
|
120
|
+
set (full_SOURCE_FILES
|
|
121
|
+
internal/cld_generated_cjk_uni_prop_80.cc
|
|
122
|
+
internal/cld2_generated_cjk_compatible.cc
|
|
123
|
+
internal/cld_generated_cjk_delta_bi_32.cc
|
|
124
|
+
internal/generated_distinct_bi_0.cc
|
|
125
|
+
internal/cld2_generated_quad0122.cc
|
|
126
|
+
internal/cld2_generated_deltaocta0122.cc
|
|
127
|
+
internal/cld2_generated_distinctocta0122.cc
|
|
128
|
+
internal/cld_generated_score_quad_octa_0122.cc
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
add_executable(compact_lang_det_test_full ${full_SOURCE_FILES} internal/compact_lang_det_test.cc)
|
|
132
|
+
add_executable(cld2_unittest_full ${full_SOURCE_FILES} internal/cld2_unittest_full.cc)
|
|
133
|
+
add_executable(cld2_unittest_full_avoid ${full_SOURCE_FILES} internal/cld2_unittest_full.cc)
|
|
134
|
+
set_target_properties(cld2_unittest_full_avoid PROPERTIES COMPILE_FLAGS "-Davoid_utf8_string_constants")
|
|
135
|
+
|
|
136
|
+
add_executable(cld2_dynamic_data_tool internal/cld2_dynamic_data_extractor.cc internal/cld2_dynamic_data_tool.cc)
|
|
137
|
+
add_executable(compact_lang_det_dynamic_test_chrome ${common_SOURCE_FILES} internal/cld2_dynamic_data_extractor.cc internal/compact_lang_det_test.cc)
|
|
138
|
+
add_executable(cld2_dynamic_unittest ${common_SOURCE_FILES} internal/cld2_unittest.cc)
|
|
139
|
+
set_target_properties(compact_lang_det_dynamic_test_chrome PROPERTIES COMPILE_FLAGS "-DCLD2_DYNAMIC_MODE")
|
|
140
|
+
set_target_properties(cld2_dynamic_unittest PROPERTIES COMPILE_FLAGS "-DCLD2_DYNAMIC_MODE")
|
|
141
|
+
|
|
142
|
+
add_executable(compact_lang_det_test_chrome_2 internal/compact_lang_det_test.cc)
|
|
143
|
+
add_executable(compact_lang_det_test_chrome_16 internal/compact_lang_det_test.cc)
|
|
144
|
+
add_executable(cld2_unittest_chrome_2 internal/cld2_unittest.cc)
|
|
145
|
+
add_executable(cld2_unittest_avoid_chrome_2 internal/cld2_unittest.cc)
|
|
146
|
+
set_target_properties(cld2_unittest_avoid_chrome_2 PROPERTIES COMPILE_FLAGS "-Davoid_utf8_string_constants")
|
|
147
|
+
|
|
148
|
+
target_link_libraries(compact_lang_det_test_full cld2)
|
|
149
|
+
target_link_libraries(cld2_unittest_full cld2)
|
|
150
|
+
target_link_libraries(cld2_unittest_full_avoid cld2)
|
|
151
|
+
target_link_libraries(cld2_dynamic_data_tool cld2 cld2_dynamic)
|
|
152
|
+
target_link_libraries(compact_lang_det_dynamic_test_chrome cld2_dynamic)
|
|
153
|
+
target_link_libraries(cld2_dynamic_unittest cld2_dynamic)
|
|
154
|
+
target_link_libraries(compact_lang_det_test_chrome_2 cld2)
|
|
155
|
+
target_link_libraries(compact_lang_det_test_chrome_16 cld2)
|
|
156
|
+
target_link_libraries(cld2_unittest_chrome_2 cld2)
|
|
157
|
+
target_link_libraries(cld2_unittest_avoid_chrome_2 cld2)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cld2",
|
|
3
|
+
"buildsystem": "simple",
|
|
4
|
+
"build-options": {
|
|
5
|
+
"cxxflags": "-std=c++98"
|
|
6
|
+
},
|
|
7
|
+
"build-commands": [
|
|
8
|
+
"cp CMakeLists.txt ./cld2",
|
|
9
|
+
"cmake -B _flatpak_build -S cld2 -G Ninja -DCMAKE_INSTALL_PREFIX=/app -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_POLICY_VERSION_MINIMUM=3.5",
|
|
10
|
+
"ninja -C _flatpak_build && ninja -C _flatpak_build install"
|
|
11
|
+
],
|
|
12
|
+
"sources":[
|
|
13
|
+
{
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/CLD2Owners/cld2.git",
|
|
16
|
+
"commit": "84b58a5d7690ebf05a91406f371ce00c3daf31c0",
|
|
17
|
+
"dest": "cld2"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "file",
|
|
21
|
+
"path": "CMakeLists.txt"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|