Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
4418876
stuff
igagis Aug 21, 2025
b593758
stuff
igagis Aug 24, 2025
01230e8
native_window
igagis Aug 24, 2025
806aef8
gsu
igagis Aug 24, 2025
f729aed
stuff
igagis Aug 25, 2025
54665e2
stuff
igagis Aug 25, 2025
5cbf10a
stuff
igagis Aug 25, 2025
d86196c
stuff
igagis Aug 25, 2025
5553013
huge refactoring
igagis Aug 27, 2025
eba636d
stuff
igagis Aug 27, 2025
6cb3977
stuff
igagis Aug 27, 2025
fc35102
stuff
igagis Aug 27, 2025
89ea1dc
stuff
igagis Aug 27, 2025
0ef1dab
stuff
igagis Aug 27, 2025
b0a14b1
stuff
igagis Aug 27, 2025
900a1d4
stuff
igagis Aug 27, 2025
2173413
stuff
igagis Aug 27, 2025
49cf305
stuff
igagis Aug 27, 2025
870dd6a
test app
igagis Aug 28, 2025
defa0db
stuff
igagis Aug 28, 2025
4b579e8
stuff
igagis Aug 28, 2025
92910a0
stuff
igagis Aug 28, 2025
3744fe7
stuff
igagis Aug 30, 2025
d9985e6
stuff
igagis Aug 30, 2025
c5ff2f0
context checking
igagis Aug 30, 2025
ada4ce8
stuff
igagis Sep 1, 2025
8a84e01
stuff
igagis Sep 5, 2025
0d8057d
stuff
igagis Sep 7, 2025
d91d638
stuff
igagis Sep 18, 2025
c72d7b9
stuff
igagis Sep 19, 2025
545d8b9
pull
igagis Sep 19, 2025
f0b5122
stuff
igagis Sep 22, 2025
da84b23
stuff
igagis Sep 24, 2025
971267d
merge main
igagis Sep 25, 2025
5e0d52e
gsu
igagis Sep 25, 2025
2381f68
stuff
igagis Oct 1, 2025
13438f2
prints
igagis Oct 2, 2025
ffb5c1d
stuff
igagis Oct 2, 2025
c20454d
android ln -s
igagis Oct 3, 2025
01051e4
stuff
igagis Oct 3, 2025
8516daf
git modules no remote
igagis Oct 4, 2025
fa0d70a
Merge branch 'multiwindow' of github.com:cppfw/ruis into multiwindow
igagis Oct 4, 2025
f130117
stuff
igagis Oct 4, 2025
c730d79
tests update
igagis Oct 4, 2025
6f0d2e6
stuff
igagis Oct 4, 2025
53a0b46
gsu
igagis Oct 4, 2025
b4473d8
gsu
igagis Oct 4, 2025
26e5849
gsu
igagis Oct 4, 2025
723f6eb
stuff
igagis Oct 4, 2025
697ce36
gsu
igagis Oct 4, 2025
7d4ba3e
stuff
igagis Oct 4, 2025
c8fa4d3
gsu
igagis Oct 4, 2025
ebd2a7b
stuff
igagis Oct 4, 2025
57e437e
stuff
igagis Oct 4, 2025
708f8e8
conan: stuff
igagis Oct 4, 2025
300014e
stuff
igagis Oct 4, 2025
39a0c92
stuff
igagis Oct 4, 2025
c7d95dd
stuff
igagis Oct 4, 2025
2002f4b
stuff
igagis Oct 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[submodule "tests/harness/modules/ruisapp"]
path = tests/harness/modules/ruisapp
url = ../ruisapp
branch = main
branch = multiwindow # main
[submodule "tests/harness/modules/ruis-render-opengl"]
path = tests/harness/modules/ruis-render-opengl
url = ../ruis-render-opengl
branch = main
branch = multiwindow # main
[submodule "tests/harness/modules/ruis-render-opengles"]
path = tests/harness/modules/ruis-render-opengles
url = ../ruis-render-opengles
branch = main
[submodule "tool-configs"]
path = tool-configs
url = ../tool-configs
branch = main
branch = multiwindow # main
[submodule "tests/harness/modules/ruis-render-null"]
path = tests/harness/modules/ruis-render-null
url = ../ruis-render-null
branch = multiwindow # main
[submodule "tool-configs"]
path = tool-configs
url = ../tool-configs
branch = main
60 changes: 57 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) app",
"name": "(gdb) app-xorg",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/app/out/dev/tests",
Expand All @@ -15,7 +15,11 @@
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "../../src/out/dev:../harness/modules/ruisapp/src/out/rel_no_install/opengl-xorg:../harness/modules/ruis-render-opengl/src/out/rel_no_install"
"value": "../../src/out/dev:../harness/modules/ruisapp/src/out/dev/opengl-xorg:../harness/modules/ruis-render-opengl/src/out/dev"
},
{
"name": "DYLD_LIBRARY_PATH",
"value": "../../src/out/dev:../harness/modules/ruisapp/src/out/dev/opengl:../harness/modules/ruis-render-opengl/src/out/dev"
}
],
"externalConsole": false,
Expand All @@ -27,7 +31,57 @@
"ignoreFailures": true
}
],
"preLaunchTask": "build-dev"
// "preLaunchTask": "build-dev"
},
{
"name": "(gdb) app-wayland",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/app/out/dev/tests",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/tests/app",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "../../src/out/dev:../harness/modules/ruisapp/src/out/dev/opengles-wayland:../harness/modules/ruis-render-opengles/src/out/dev"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
// "preLaunchTask": "build-dev"
},
{
"name": "(gdb) app-sdl",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/app/out/dev/tests",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/tests/app",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "../../src/out/dev:../harness/modules/ruisapp/src/out/dev/opengl-sdl:../harness/modules/ruis-render-opengl/src/out/dev"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
// "preLaunchTask": "build-dev"
},
{
"name": "(gdb) app2",
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@
"problemMatcher": [],
"group": "build"
},
{
"label": "run-app-gl-sdl-dev",
"type": "shell",
"command": "make run-app win=sdl config=dev",
"problemMatcher": [],
"group": "build"
},
{
"label": "run-app-dev",
"type": "shell",
Expand Down
4 changes: 1 addition & 3 deletions build/android/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ file(GLOB_RECURSE srcs

include (${ANDROID_GRADLE_NATIVE_BUNDLE_PLUGIN_MK})

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -DDEBUG")

include_directories(
../../../src
../../../tests/harness/modules/ruisapp/src
../../../tests/harness/modules/ruis-render-opengles/src
)
#link_directories(../ruis/build/intermediates/cmake/release/obj/${ANDROID_ABI})
#link_directories(../ruis/.cxx/Debug/4x66344r/arm64-v8a)

add_library(
# Specifies the name of the library.
Expand Down
2 changes: 1 addition & 1 deletion build/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
// implementation 'io.github.cppfw:png:+'
// implementation 'io.github.cppfw:jpeg:+'
implementation 'io.github.cppfw:freetype:+'
// implementation project(path: ':ruis')
// implementation project(path: ':ruis')
}

task copyResToAssets {
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion build/conan/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def source(self):
# shallow fetch commit
git.fetch_commit(url=sources["url"], commit=sources['commit'])
# shallow clone submodules
git.run("submodule update --init --remote --depth 1")
git.run("submodule update --init --remote")

def build(self):
if self.settings.os == "Emscripten":
Expand Down
2 changes: 1 addition & 1 deletion build/vcpkg/test/vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"kind": "git",
"repository": "https://github.com/cppfw/vcpkg-repo/",
"baseline": "d48205c0ac1f9dec582330ec79d145cdd5905949",
"baseline": "623f683b18c6f49a18104e1c52e7d3c17f38ef92",
"reference": "main",
"packages": [
"myci",
Expand Down
14 changes: 12 additions & 2 deletions config/rel.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
include $(config_dir)base/base.mk

this_cxxflags += -O3

# TODO: compilation with -O3 currently fails with unjustified "maybe used uninitialized" error
# when building with "g++ (Debian 12.2.0-14) 12.2.0",
# have't tried it with clang++. Need to restore -O3 when GCC is fixed.
this_cxxflags += -O1
# have't tried it with clang++. Need to remove this warning suppression when GCC is fixed.
ifeq ($(this_cxx),g++)
ifeq ($(os),macosx)
# On macos, the this_cxx can be set to g++, but it is still clang compiler, becuase
# often, on macos the g++ is symlinked to clang++.
# Thus, on macos do not suppress the warning, because it is not supported by clang.
else
this_cxxflags += -Wno-maybe-uninitialized
endif
endif

# WORKAROUND: on ubuntu jammy dpkg-buildpackage passes -ffat-lto-objects compilation flag
# which is not supported by clang and clang-tidy complains about it:
Expand Down
14 changes: 4 additions & 10 deletions src/ruis/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

using namespace ruis;

context::context(
utki::shared_ref<ruis::style_provider> style_provider,
utki::shared_ref<ruis::updater> updater,
parameters params
) :
context::context(parameters params) :
post_to_ui_thread_function(std::move(params.post_to_ui_thread_function)),
style_provider(std::move(style_provider)),
res_loader(this->style_provider.get().res_loader),
renderer(this->res_loader.get().renderer),
updater(std::move(updater)),
cursor_stack(std::move(params.set_mouse_cursor_function)),
style_provider(std::move(params.style_provider)),
renderer(std::move(params.renderer)),
updater(std::move(params.updater)),
localization(std::move(params.localization)),
units(std::move(params.units))
{
Expand Down
Loading
Loading