Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed May 27, 2024
1 parent d592621 commit b69ee59
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
26 changes: 17 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ endif()
project(score_addon_contextfree LANGUAGES CXX)

add_library(contextfree STATIC
3rdparty/context-free/src-common/abstractPngCanvas.cpp
3rdparty/context-free/src-agg/src/agg_bezier_arc.cpp
3rdparty/context-free/src-agg/src/agg_color_rgba.cpp
3rdparty/context-free/src-agg/src/agg_curves.cpp
3rdparty/context-free/src-agg/src/agg_trans_affine.cpp
3rdparty/context-free/src-agg/src/agg_vcgen_contour.cpp
3rdparty/context-free/src-agg/src/agg_vcgen_stroke.cpp

3rdparty/context-free/src-common/pathIterator.cpp

3rdparty/context-free/src-common/abstractPngCanvas.cpp
3rdparty/context-free/src-common/aggCanvas.cpp
3rdparty/context-free/src-common/ast.cpp
3rdparty/context-free/src-common/astexpression.cpp
Expand All @@ -23,7 +32,6 @@ add_library(contextfree STATIC
3rdparty/context-free/src-common/CmdInfo.cpp
3rdparty/context-free/src-common/HSBColor.cpp
3rdparty/context-free/src-common/makeCFfilename.cpp
3rdparty/context-free/src-common/pathIterator.cpp
3rdparty/context-free/src-common/prettyint.cpp
3rdparty/context-free/src-common/primShape.cpp
3rdparty/context-free/src-common/Rand64.cpp
Expand All @@ -36,17 +44,17 @@ add_library(contextfree STATIC
3rdparty/context-free/src-common/tiledCanvas.cpp
3rdparty/context-free/src-common/variation.cpp

3rdparty/context-free/src-agg/src/agg_bezier_arc.cpp
3rdparty/context-free/src-agg/src/agg_color_rgba.cpp
3rdparty/context-free/src-agg/src/agg_curves.cpp
3rdparty/context-free/src-agg/src/agg_trans_affine.cpp
3rdparty/context-free/src-agg/src/agg_vcgen_contour.cpp
3rdparty/context-free/src-agg/src/agg_vcgen_stroke.cpp

3rdparty/context-free/src-win/derived/cfdg.tab.cpp
3rdparty/context-free/src-win/derived/lex.yy.cpp
)

set_source_files_properties(
3rdparty/context-free/src-win/derived/cfdg.tab.cpp
3rdparty/context-free/src-win/derived/lex.yy.cpp
PROPERTIES
LANGUAGE CXX
SKIP_UNITY_BUILD_INCLUSION 1
)
if(MSVC)
else()
target_compile_options(contextfree PRIVATE -fno-char8_t)
Expand Down
10 changes: 2 additions & 8 deletions ContextFree/ContextFreeLoad.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "ContextFreeLoad.hpp"

#if defined(_WIN32)

#if !defined(WIN32_LEAN_AND_MEAN)
Expand Down Expand Up @@ -362,14 +364,6 @@ struct OssiaCanvas : abstractPngCanvas
using abstractPngCanvas::mData;
};

struct RenderResult
{
std::vector<unsigned char> bytes;
QImage::Format fmt{};
int width = 0;
int height = 0;
};

RenderResult contextfree_render_file(std::string_view path, int w, int h, int variation)
{
options opts;
Expand Down

0 comments on commit b69ee59

Please sign in to comment.