Jeff Young
902e5df2e8
Report unsupported DXF features on import.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15614
2 years ago
Ian McInerney
a44728bc13
Remove minimum CMake versions from thridparty
New CMake versions warn when support for CMake 3.5 and before is
requested, so since we use a higher CMake minumum, just remove these
version checks in the thridparty code to remove the warnings.
2 years ago
Jon Evans
9973dd3e5d
Fix sentry compile issues on macOS
2 years ago
Jeff Young
9114578004
Improve custom rules syntax help (based on info in docs).
Also turns on table processing in ConvertMarkdown2Html().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15609
2 years ago
Mark Roszko
ca0b103b54
Fix/disable argparse install (again)
2 years ago
Marek Roszko
0e0c267829
Add missing pragma once to compoundfilereader.h
2 years ago
Marek Roszko
bd52ed2054
Upgrade {fmt} to 10.1.1 to fix warnings
2 years ago
Marek Roszko
11de95778b
Unwrap the FROM_UTF8 macro in favor of direct function
The extern just gets annoying to try to export the func later. We also yeet TO_UTF8 to string_utils.h for parity.
2 years ago
Alex Shvartzkop
2c07866fff
NanoSVG: update image size to the actual size after scaling.
2 years ago
jean-pierre charras
ecd8c7e2cc
Fix a compil issue (in sch_altium_plugin.cpp) and compil warnings.
2 years ago
Alex Shvartzkop
c64b44913c
NanoSVG: change preserveAspectRatio default to "xMidYMid meet".
2 years ago
Alex Shvartzkop
2cd7c0636f
NanoSVG: basic support for stylesheets.
Based on https://github.com/memononen/nanosvg/pull/175
2 years ago
Marek Roszko
88a76d4b01
Update argparse to get multiline alignment
2 years ago
jean-pierre charras
9e446ba17b
Update Clipper2 to commit 7cf615c279.
(it fixes (or try to fix) an issue impacting Kicad)
2 years ago
Seth Hillbrand
57ae1b872e
Fix build issue in Clipper2 for *nix
2 years ago
jean-pierre charras
235006a1b7
Update Clipper2 to commit 4ef91e9975.
It fixes some of our issues.
However, Clipper issue 618 can create problems in zone filler, Clipper2
will be updated as soom as issue 618 is fixed.
2 years ago
Seth Hillbrand
57ba38560c
Optimize library load time for Altium plugin
Load times were >20min for moderate sized libraries as EnumFiles
iterated over the entire list for each operation. The update modifies
our third-party lib to allow a return value, stopping the iteration when
we find our desired entry. This also provides a short-circuit for
ASCII-based names, allowing single-level parsing if available
2 years ago
Ian McInerney
199098910a
Disable shared library building for thirdparty libraries
Specifically, the fmt CMake has defaulted to not specifying the library
type to build, so without BUILD_SHARED_LIBS=OFF set, it might try to
build it as a shared library, which we don't want.
2 years ago
Mark Roszko
b95b07e54d
Turn off the FMT_INSTALL opt
2 years ago
Alex Shvartzkop
b784b44ed0
UTF16ToWstring: stop at NUL input terminator.
2 years ago
Alex Shvartzkop
d40e34aebe
CompoundFileReader: fix build error
2 years ago
Alex Shvartzkop
c39dfb9f05
CompoundFileReader: fix UTF16~wstring conversion on 16b wchar compilers
2 years ago
Marek Roszko
a5cf2716b6
Update {fmt} to 10.0.0
2 years ago
Simon Richter
49a72f7cb4
Fix keyword order in include setup ( Closes : #15081 )
The SYSTEM keyword can only be used before a visibility keyword, so
"PUBLIC SYSTEM" declares an include directory named "SYSTEM".
2 years ago
Seth Hillbrand
d5d28e5b34
Add magic_enum
2 years ago
Seth Hillbrand
fe62a3f985
Update Clipper2 to 9d946d7
Fixed a number of smaller issues as well as overlapping segment
cleaning.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14682
2 years ago
Ian McInerney
20ec8ed303
Fix GitLab URLs to point to the correct project page
GitLab 16.0 removes support for URLs that don't contain /-/ after the
repository name, so the report bug feature and various links we had in
the source (including the git-fixes script) would lead to a 404 error.
See GitLab docs for deprecation/removal notice:
https://docs.gitlab.com/ee/update/deprecations.html?removal_milestone=16.0#legacy-urls-replaced-or-removed
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14759
3 years ago
Seth Hillbrand
f7f52d77e4
Rework Copper Sliver check
Adds QA checks to copper sliver tests. Adds the following checks:
- Dot product between two arms (quickly avoids checks for >90°)
- Checks the sliver is convex (area test)
- Eliminates minor slivers with angles that are approximately 0 and ones
with the opposite side width beneath a configurable level
- Updates Clipper2 to fix a couple of jagged edges on inflate
- Adds simplify during zone fill inflation to limit jaggies
Fixes https://gitlab.com/kicad/code/kicad/issues/14549
3 years ago
Jeff Young
2533141583
Revert "Update pybind11 to version 2.10.4" for now.
This reverts commits 9d077c9ba5 and
b4938f5198 .
They cause a crash-on-startup on Mac ARM machines, failing to get the
locale encoding (nl_langinfo(CODESET) failed).
3 years ago
Alex
b4938f5198
Patch pybind11 version 2.10.4 for MSVC
Based on commits c483c582 and 8f1b2acd
3 years ago
Alex
9d077c9ba5
Update pybind11 to version 2.10.4
3 years ago
Marek Roszko
d18102fff6
Add a hack to try and capture more crash data
3 years ago
Marek Roszko
ca770c79ab
Make libcontext build statically
Fixes an issue combining cpp and obj files explicitly on arm64
3 years ago
Marek Roszko
32a747374f
Fix the #ifdef for the release_fcontext stub
As if the if def hell was easy to read
3 years ago
Marek Roszko
726b137fed
Fix libcontext arm64 build and purge winfiber
The winfiber implementation ran into memory leak issues as it didnt exit the stack jumps correctly
and lets not mislead anyone by keeping it
3 years ago
Ian McInerney
45b8dced92
Fix nanodbc build with clang and gcc stdlib
This should really be fixed upstream somehow, but the upstream build
with clang is broken on Fedora 38 right now anyway due to header issues.
3 years ago
jean-pierre charras
ac71227e75
Fix compil warnings.
3 years ago
Seth Hillbrand
97558b62ec
Update to Clipper 1.2+
Updates to Clipper2 742614f, which includes bug fixes for specific KiCad
boards beyond Clipper2 itself
Fixes https://gitlab.com/kicad/code/kicad/issues/14294
3 years ago
Ian McInerney
e20b33cb66
Fix boost dependencies
* Add Boost::locale explicetly to the CMake since nanoodbc requires it
* Don't let nanoodbc add all Boost libraries to the link line, since it
is used in common, and it was pulling the unit test framework into
common then.
3 years ago
Marek Roszko
b4bb1f4b46
update vcpkg to get the arm64 compatible packages
3 years ago
Marek Roszko
65818bd4a3
Add windows arm64 support
3 years ago
jean-pierre charras
67ec09c850
fix a minor compil warning
3 years ago
Jon Evans
99dea1a9d7
Update {fmt} to 9.1.0
3 years ago
Ian McInerney
bcb93e9aa7
Modernize setting of compiler definitions in CMake
add_compile_definitions was added in 3.12, and our minimum is now
greater than that.
3 years ago
Seth Hillbrand
5a56b18b0e
Revert "Update Clipper2 to version 1.1.1"
This reverts commit c594a0eba2 .
3 years ago
Seth Hillbrand
c594a0eba2
Update Clipper2 to version 1.1.1
3 years ago
Ian McInerney
1355561d6c
Update lemon to latest upstream sources
This is the lemon.c and lempar.c files from uptream as of Feb 16, 2023.
3 years ago
Marek Roszko
041b7b196d
update sentry-native to 0.6.0
primarily interested in windows bug fix to stack unwinding
3 years ago
Alex
89429996da
Fix a crash in rectpack2D when unable to pack footprints.
3 years ago
Kliment
327956ae27
nanosvg: Fix nanosvg default stroke width to assume 0 instead of 1px
Nanosvg assumes that an unspecified stroke width is 1px, whereas the SVG
specification specifies it should be read as 0px. This causes problems
when scaling factors are applied to 0px lines, leading to them being
misinterpeted by our import.
This commit fixes the nanosvg assumption by setting the initial stroke
width to 0 instead of 1px.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13353
3 years ago