Skip to content

Commit

Permalink
Merge pull request #47 from NuiCpp/devel
Browse files Browse the repository at this point in the history
Inline SVG Support
  • Loading branch information
5cript authored Jun 26, 2023
2 parents 37db996 + 1725f6c commit f3e4d65
Show file tree
Hide file tree
Showing 431 changed files with 2,149 additions and 219 deletions.
146 changes: 73 additions & 73 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
name: Build_and_Test

on:
push:
branches: ["main", "devel"]
pull_request:
branches: ["main"]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
ubuntu:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: awalsh128/[email protected]
with:
packages: libwebkit2gtk-4.0-dev libcurl4-openssl-dev libcrypto++-dev ninja-build

- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: 1.81.0
# OPTIONAL: Specify a platform version
platform_version: 22.04

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=off -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_FLAGS="-fuse-ld=lld" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=lld -DCMAKE_CXX_STANDARD=20
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

- name: Build
run: cmake --build ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}}

# TODO:
#- name: Test
# working-directory: ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C ${{env.BUILD_TYPE}}

windows-msys2:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: clang64
release: true
install: mingw-w64-clang-x86_64-clang make unzip mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-boost mingw-w64-clang-x86_64-crypto++ libcurl mingw-w64-clang-x86_64-ninja mingw-w64-clang-x86_64-python

- name: Workspace Path Fixup
run: echo "WSPACE=$(cygpath '${{github.workspace}}')" >> $GITHUB_ENV

- name: Configure CMake
run: cmake -B ${{env.WSPACE}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=off -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_FLAGS="-fuse-ld=lld" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=lld -DCMAKE_CXX_STANDARD=20

- name: Build
run: cmake --build ${{env.WSPACE}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}}
name: Build_and_Test

on:
push:
branches: ["main", "devel"]
pull_request:
branches: ["main"]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
ubuntu:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: awalsh128/[email protected]
with:
packages: libwebkit2gtk-4.0-dev libcurl4-openssl-dev libcrypto++-dev ninja-build

- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: 1.81.0
# OPTIONAL: Specify a platform version
platform_version: 22.04

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=off -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_FLAGS="-fuse-ld=lld" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=lld -DCMAKE_CXX_STANDARD=20
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

- name: Build
run: cmake --build ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}}

# TODO:
#- name: Test
# working-directory: ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C ${{env.BUILD_TYPE}}

windows-msys2:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: clang64
release: true
install: mingw-w64-clang-x86_64-clang make unzip mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-boost mingw-w64-clang-x86_64-crypto++ libcurl mingw-w64-clang-x86_64-ninja mingw-w64-clang-x86_64-python

- name: Workspace Path Fixup
run: echo "WSPACE=$(cygpath '${{github.workspace}}')" >> $GITHUB_ENV

- name: Configure CMake
run: cmake -B ${{env.WSPACE}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=off -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_FLAGS="-fuse-ld=lld" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=lld -DCMAKE_CXX_STANDARD=20

- name: Build
run: cmake --build ${{env.WSPACE}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}}
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/accent_height.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(accentHeight, "accent-height")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/accumulate.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(accumulate)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/additive.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(additive)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(alignmentBaseline, "alignment-baseline")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/alphabetic.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(alphabetic)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/amplitude.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(amplitude)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/arabic_form.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(arabicForm, "arabic-form")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/ascent.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(ascent)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/attribute_name.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(attributeName)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/attribute_type.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(attributeType)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/azimuth.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(azimuth)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/base_frequency.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(baseFrequency)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/base_profile.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(baseProfile)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/baseline_shift.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(baselineShift, "baseline-shift")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/bbox.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(bbox)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/begin.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(begin)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/bias.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(bias)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/by.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(by)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/calc_mode.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(calcMode)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/cap_height.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(capHeight, "cap-height")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/class.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(class_, "class")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/clip.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(clip)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/clip_path.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(clipPath, "clip-path")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/clip_path_units.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(clipPathUnits)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/clip_rule.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(clipRule, "clip-rule")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/color.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(color)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(colorInterpolation, "color-interpolation")
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(colorInterpolationFilters, "color-interpolation-filters")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/color_profile.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(colorProfile, "color-profile")
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/color_rendering.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE_RENAME(colorRendering, "color-rendering")
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(contentScriptType)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(contentStyleType)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/crossorigin.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(crossorigin)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/cursor.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(cursor)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/cx.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(cx)
5 changes: 5 additions & 0 deletions nui/include/nui/frontend/attributes/svg/cy.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <nui/frontend/attributes/svg/impl/svg_attribute_factory.hpp>

MAKE_SVG_VALUE_ATTRIBUTE(cy)
Loading

0 comments on commit f3e4d65

Please sign in to comment.