Compare commits

..

44 Commits

Author SHA256 Message Date
Ana Guerrero
09f019436d Accepting request 1228587 from games:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1228587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=16
2024-12-06 13:26:06 +00:00
Ana Guerrero
3c07eaac52 Accepting request 1152055 from games:tools
OBS-URL: https://build.opensuse.org/request/show/1152055
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=15
2024-02-27 21:48:31 +00:00
b64f29d212 Accepting request 1151542 from home:dimstar:rpm4.20:s
Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1151542
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=42
2024-02-27 08:43:16 +00:00
Dominique Leuenberger
12d57aa343 Accepting request 900156 from games:tools
OBS-URL: https://build.opensuse.org/request/show/900156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=14
2021-06-15 14:38:17 +00:00
69efd317af Accepting request 900154 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Refresh patch to fix build on aarch64:
  * disable_sse.patch

OBS-URL: https://build.opensuse.org/request/show/900154
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=40
2021-06-15 12:34:27 +00:00
Dominique Leuenberger
1f4476fbe4 Accepting request 898377 from games:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/898377
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=13
2021-06-09 19:52:34 +00:00
6b2e562f5a - Update to release 3.1.13
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=38
2021-06-01 11:28:55 +00:00
Dominique Leuenberger
f87cec418c Accepting request 889323 from games:tools
- Update to 3.1.12a

OBS-URL: https://build.opensuse.org/request/show/889323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=12
2021-04-29 20:46:46 +00:00
bfb30791b2 Accepting request 889271 from home:susnux:branches:games
Update to 3.1.12a

OBS-URL: https://build.opensuse.org/request/show/889271
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=36
2021-04-29 11:59:55 +00:00
Dominique Leuenberger
c870977e9f Accepting request 841069 from games:tools
- Disable Lua bindings as those fail to build

OBS-URL: https://build.opensuse.org/request/show/841069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=11
2020-10-12 11:59:08 +00:00
cb5ae8c171 OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=34 2020-10-11 17:33:02 +00:00
adcda23619 - Disable Lua bindings as those fail to build
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=33
2020-10-11 09:19:07 +00:00
e667f8f2e6 OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=32 2020-07-02 16:31:32 +00:00
efdbda33eb OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=31 2020-06-22 22:05:07 +00:00
7c047ec165 - Add lzma.diff to use system-provided clzma library.
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=30
2020-06-22 20:16:48 +00:00
Dominique Leuenberger
ecdef87a70 Accepting request 810774 from games:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/810774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=10
2020-06-02 12:42:43 +00:00
82e18c4122 - Update to release 3.1.12
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=28
2020-05-26 09:40:07 +00:00
Dominique Leuenberger
ee4199546e Accepting request 798915 from games:tools
OBS-URL: https://build.opensuse.org/request/show/798915
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=9
2020-04-29 18:53:35 +00:00
Dirk Stoecker
306c9ea093 Accepting request 798913 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Refresh disable_sse.patch

OBS-URL: https://build.opensuse.org/request/show/798913
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=26
2020-04-29 12:58:29 +00:00
Dominique Leuenberger
ef623c87ef Accepting request 795413 from games:tools
- Update to release 3.1.11

OBS-URL: https://build.opensuse.org/request/show/795413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=8
2020-04-22 18:50:40 +00:00
b3be311f63 add meta to wx.diff
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=24
2020-04-18 18:44:32 +00:00
d32f84845e OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=23 2020-04-18 18:36:56 +00:00
96e6d724a6 - Update to release 3.1.11
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=22
2020-04-18 18:36:37 +00:00
Dominique Leuenberger
120e9cdab8 Accepting request 619219 from games:tools
OBS-URL: https://build.opensuse.org/request/show/619219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=7
2018-06-27 08:23:06 +00:00
Marguerite Su
afb52dd57c Accepting request 619148 from home:bmwiedemann:branches:games:tools
Add reproducible.patch to not store extra timestamps in zip to make build reproducible

this broke when 7z was replaced with zip again in the commit before

OBS-URL: https://build.opensuse.org/request/show/619148
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=20
2018-06-26 23:30:49 +00:00
Yuchen Lin
b0583ffd76 Accepting request 616318 from games:tools
- Fix build failure... slade wants zip, not p7zip.
- Wrap %desktop_* into a 42.x/13.x guard.

OBS-URL: https://build.opensuse.org/request/show/616318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=6
2018-06-19 09:56:24 +00:00
12df2d1011 - Fix build failure... slade wants zip, not p7zip.
- Wrap %desktop_* into a 42.x/13.x guard.

OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=18
2018-06-12 12:50:02 +00:00
Dominique Leuenberger
ca5d742492 Accepting request 598020 from games:tools
OBS-URL: https://build.opensuse.org/request/show/598020
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=5
2018-04-20 15:30:25 +00:00
e9c08bbc54 Accepting request 597812 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Disable SSE with disable_sse.patch on non x86* archs

OBS-URL: https://build.opensuse.org/request/show/597812
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=16
2018-04-19 07:14:00 +00:00
Dominique Leuenberger
c9afb9f57a Accepting request 506596 from games:tools
1

OBS-URL: https://build.opensuse.org/request/show/506596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=4
2017-06-28 08:37:54 +00:00
Luke Jones
319893fffa Accepting request 506595 from home:luke_nukem:branches:games:tools
OBS-URL: https://build.opensuse.org/request/show/506595
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=14
2017-06-27 23:27:18 +00:00
Dominique Leuenberger
4cf1f79197 Accepting request 493393 from games:tools
1

OBS-URL: https://build.opensuse.org/request/show/493393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=3
2017-05-08 17:04:34 +00:00
Luke Jones
47f4474bee Accepting request 493377 from home:bmwiedemann:branches:games:tools
use p7zip for deterministic archive file order
and strip-nondeterminism to have fully reproducible builds
use convert -strip to make build more reproducible

OBS-URL: https://build.opensuse.org/request/show/493377
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=12
2017-05-08 07:54:42 +00:00
Dominique Leuenberger
e89d43a0b7 Accepting request 455986 from games:tools
- Update to 3.1.1.5

OBS-URL: https://build.opensuse.org/request/show/455986
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=2
2017-02-21 12:38:35 +00:00
91c40918c8 fix squatty trailing whitespace
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=10
2017-02-10 10:32:56 +00:00
4d5b24e0e9 Wrap description at 66 as per wiki guidelines
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=9
2017-02-10 10:24:13 +00:00
Luke Jones
4915f8f1bb OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=8 2017-02-10 02:39:47 +00:00
Luke Jones
5ddb05e433 Accepting request 455869 from home:luke_nukem:branches:games:tools
OBS-URL: https://build.opensuse.org/request/show/455869
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=7
2017-02-10 01:56:43 +00:00
Dominique Leuenberger
a4826e0b25 Accepting request 448099 from games:tools
OBS-URL: https://build.opensuse.org/request/show/448099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=1
2017-01-25 22:24:01 +00:00
0e3e47ff3b fixup source URL
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=5
2016-12-28 23:18:58 +00:00
ec598c90c4 - Restore basepk3.diff for proper search order
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=4
2016-12-28 19:58:31 +00:00
8e90feb93d Accepting request 447101 from home:luke_nukem:branches:games:tools
Fixes icon, incorrect license spec.

OBS-URL: https://build.opensuse.org/request/show/447101
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=3
2016-12-20 00:06:00 +00:00
09f5d2a9ce Accepting request 447091 from home:luke_nukem:branches:games:tools
Everything fixed up as suggested. Hope this is satisfactory.

OBS-URL: https://build.opensuse.org/request/show/447091
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=2
2016-12-19 21:41:58 +00:00
Matthias Mailänder
de9773f5a1 Accepting request 411423 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/411423
OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=1
2016-07-17 09:51:12 +00:00
2 changed files with 0 additions and 234 deletions

View File

@ -1,231 +0,0 @@
From a54f12b4c29e949458949d5bede2f74b1aa8a34a Mon Sep 17 00:00:00 2001
From: jengelh <jengelh@inai.de>
Date: Mon, 29 Jun 2020 03:43:01 +0200
Subject: [PATCH] build: add cmake option to skip Lua components (#1175)
sol.hpp has a lot of templates which, when building with -g
-fsanitize=address -fsanitize=undefined, incur long compile time and
high memory usage (~8500MB) [applies to Scripting/Export/Archive.cpp
and Scripting/Export/Graphics.cpp].
Add a cmake option so I can skip building some parts and focus on
the rest.
Co-authored-by: Simon Judd <sirjuddington@gmail.com>
---
src/Application/App.cpp | 8 ++++++++
src/CMakeLists.txt | 11 ++++++++++-
src/MainEditor/UI/ArchivePanel.cpp | 10 ++++++++++
src/MainEditor/UI/MainWindow.cpp | 2 ++
src/MapEditor/UI/MapEditorWindow.cpp | 6 ++++++
5 files changed, 36 insertions(+), 1 deletion(-)
Index: SLADE-3.1.12/src/Application/App.cpp
===================================================================
--- SLADE-3.1.12.orig/src/Application/App.cpp
+++ SLADE-3.1.12/src/Application/App.cpp
@@ -450,8 +450,10 @@ bool App::init(vector<string>& args, dou
SAction::setBaseWxId(26000);
SAction::initActions();
+#ifdef USE_LUA
// Init lua
Lua::init();
+#endif
// Init UI
UI::init(ui_scale);
@@ -515,8 +517,10 @@ bool App::init(vector<string>& args, dou
Log::info("Loading game configurations");
Game::init();
+#ifdef USE_LUA
// Init script manager
ScriptManager::init();
+#endif
// Show the main window
MainEditor::windowWx()->Show(true);
@@ -644,8 +648,10 @@ void App::exit(bool save_config)
// Save custom special presets
Game::saveCustomSpecialPresets();
+#ifdef USE_LUA
// Save custom scripts
ScriptManager::saveUserScripts();
+#endif
}
// Close all open archives
@@ -666,8 +672,10 @@ void App::exit(bool save_config)
files = temp.GetNext(&filename);
}
+#ifdef USE_LUA
// Close lua
Lua::close();
+#endif
// Close DUMB
dumb_exit();
Index: SLADE-3.1.12/src/CMakeLists.txt
===================================================================
--- SLADE-3.1.12.orig/src/CMakeLists.txt
+++ SLADE-3.1.12/src/CMakeLists.txt
@@ -105,6 +105,9 @@ find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(Freetype REQUIRED)
find_package(CURL REQUIRED)
+if (NOT NO_LUA)
+ find_package(Lua REQUIRED)
+endif()
include_directories(
${FREEIMAGE_INCLUDE_DIR}
${SFML_INCLUDE_DIR}
@@ -133,6 +136,7 @@ endif ()
set(SLADE_SOURCES
)
+set(SLADE_SCRIPTING_SOURCES)
# Don't include external libraries here as they should be compiled separately
file(GLOB_RECURSE SLADE_SOURCES
Application/*.cpp
@@ -147,9 +151,14 @@ file(GLOB_RECURSE SLADE_SOURCES
OpenGL/*.cpp
UI/*.cpp
Utility/*.cpp
- Scripting/*.cpp
TextEditor/*.cpp
)
+if (NOT NO_LUA)
+ file(GLOB_RECURSE SLADE_SCRIPTING_SOURCES Scripting/*.cpp)
+ set(SLADE_SOURCES ${SLADE_SOURCES} ${SLADE_SCRIPTING_SOURCES})
+ ADD_DEFINITIONS(-DUSE_LUA)
+else ()
+endif ()
set(SLADE_HEADERS
)
file(GLOB_RECURSE SLADE_HEADERS *.h *.hpp)
Index: SLADE-3.1.12/src/MainEditor/UI/ArchivePanel.cpp
===================================================================
--- SLADE-3.1.12.orig/src/MainEditor/UI/ArchivePanel.cpp
+++ SLADE-3.1.12/src/MainEditor/UI/ArchivePanel.cpp
@@ -522,7 +522,9 @@ void ArchivePanel::addMenus()
SAction::fromId("arch_replace_maps")->addToMenu(menu_clean);
menu_archive->AppendSubMenu(menu_clean, "&Maintenance");
auto menu_scripts = new wxMenu();
+#ifdef USE_LUA
ScriptManager::populateEditorScriptMenu(menu_scripts, ScriptManager::ScriptType::Archive, "arch_script");
+#endif
menu_archive->AppendSubMenu(menu_scripts, "&Run Script");
}
if (!menu_entry)
@@ -546,7 +548,9 @@ void ArchivePanel::addMenus()
menu_entry->AppendSeparator();
SAction::fromId("arch_entry_bookmark")->addToMenu(menu_entry);
auto menu_scripts = new wxMenu();
+#ifdef USE_LUA
ScriptManager::populateEditorScriptMenu(menu_scripts, ScriptManager::ScriptType::Entry, "arch_entry_script");
+#endif
menu_entry->AppendSubMenu(menu_scripts, "&Run Script");
}
@@ -3189,9 +3193,11 @@ bool ArchivePanel::handleAction(string i
dlg.ShowModal();
}
+#ifdef USE_LUA
// Archive->Scripts->...
else if (id == "arch_script")
ScriptManager::runArchiveScript(archive_, wx_id_offset);
+#endif
// ------------------------------------------------------------------------
@@ -3269,9 +3275,11 @@ bool ArchivePanel::handleAction(string i
else if (id == "arch_entry_openext")
openEntryExternal();
+#ifdef USE_LUA
// Entry->Run Script
else if (id == "arch_entry_script")
ScriptManager::runEntryScript(entry_list_->getSelectedEntries(), wx_id_offset, MainEditor::windowWx());
+#endif
// Context menu actions
@@ -3785,6 +3793,7 @@ void ArchivePanel::onEntryListRightClick
#endif
}
+#ifdef USE_LUA
// Entry scripts
if (!ScriptManager::editorScripts(ScriptManager::ScriptType::Entry).empty())
{
@@ -3793,6 +3802,7 @@ void ArchivePanel::onEntryListRightClick
context.AppendSeparator();
context.AppendSubMenu(menu_scripts, "Run &Script");
}
+#endif
// Popup the context menu
PopupMenu(&context);
Index: SLADE-3.1.12/src/MainEditor/UI/MainWindow.cpp
===================================================================
--- SLADE-3.1.12.orig/src/MainEditor/UI/MainWindow.cpp
+++ SLADE-3.1.12/src/MainEditor/UI/MainWindow.cpp
@@ -661,12 +661,14 @@ bool MainWindow::handleAction(string id)
if (id == "main_showstartpage")
openStartPageTab();
+#ifdef USE_LUA
// Tools->Run Script
if (id == "main_runscript")
{
ScriptManager::open();
return true;
}
+#endif
// Help->About
if (id == "main_about")
Index: SLADE-3.1.12/src/MapEditor/UI/MapEditorWindow.cpp
===================================================================
--- SLADE-3.1.12.orig/src/MapEditor/UI/MapEditorWindow.cpp
+++ SLADE-3.1.12/src/MapEditor/UI/MapEditorWindow.cpp
@@ -269,7 +269,9 @@ void MapEditorWindow::setupMenu()
// Tools menu
wxMenu* menu_tools = new wxMenu("");
menu_scripts_ = new wxMenu();
+#ifdef USE_LUA
ScriptManager::populateEditorScriptMenu(menu_scripts_, ScriptManager::ScriptType::Map, "mapw_script");
+#endif
menu_tools->AppendSubMenu(menu_scripts_, "Run Script");
SAction::fromId("mapw_runscript")->addToMenu(menu_tools);
menu->Append(menu_tools, "&Tools");
@@ -1136,7 +1138,9 @@ void MapEditorWindow::reloadScriptsMenu(
while (menu_scripts_->FindItemByPosition(0))
menu_scripts_->Delete(menu_scripts_->FindItemByPosition(0));
+#ifdef USE_LUA
ScriptManager::populateEditorScriptMenu(menu_scripts_, ScriptManager::ScriptType::Map, "mapw_script");
+#endif
}
// ----------------------------------------------------------------------------
@@ -1436,6 +1440,7 @@ bool MapEditorWindow::handleAction(strin
return true;
}
+#ifdef USE_LUA
// Tools->Run Script
else if (id == "mapw_script")
{
@@ -1449,6 +1454,7 @@ bool MapEditorWindow::handleAction(strin
ScriptManager::open();
return true;
}
+#endif
return false;
}

BIN
3.1.13.tar.gz (Stored with Git LFS)

Binary file not shown.