Skip to content

Commit

Permalink
Update iPlug2 & configs for latest skia
Browse files Browse the repository at this point in the history
  • Loading branch information
olilarkin committed Nov 10, 2024
1 parent 9c6d575 commit fb23e43
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions TemplateProject/config/TemplateProject-ios.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,4 @@ GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO
//GCC_FAST_MATH = YES

// Flags to pass to compiler for all builds
GCC_CFLAGS = -Wno-write-strings

ENABLE_BITCODE = YES
GCC_CFLAGS = -Wno-write-strings
6 changes: 2 additions & 4 deletions common-ios.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,18 @@ IMGUI_INC_PATHS = $(IMGUI_PATH) $(IMGUI_PATH)/backends

SKIA_PATH = $(DEPS_PATH)/Build/src/skia

SKIA_INC_PATHS = $(SKIA_PATH) $(SKIA_PATH)/include/core $(SKIA_PATH)/include/effects $(SKIA_PATH)/include/config $(SKIA_PATH)/include/utils $(SKIA_PATH)/include/utils/mac $(SKIA_PATH)/include/gpu $(SKIA_PATH)/third_party/externals/icu/source/common $(SKIA_PATH)/modules/svg/include
SKIA_INC_PATHS = $(SKIA_PATH)
YOGA_INC_PATHS = $(YOGA_PATH) $(YOGA_PATH)/yoga

IGRAPHICS_INC_PATHS = $(IGRAPHICS_PATH) $(CONTROLS_PATH) $(PLATFORMS_PATH) $(DRAWING_PATH) $(NSVG_PATH) $(NVG_PATH) $(NVGMTL_PATH) $(SKIA_INC_PATHS) $(FT_PATH) $(STB_PATH) $(IMGUI_INC_PATHS) $(YOGA_INC_PATHS)
//FAUST_INC_PATHS = /usr/local/include /usr/local/opt/include
FAUST_INC_PATHS = $(DEPS_PATH)/Build/mac/include

LIB_SKIA = $(BUILT_LIBS_LIB_PATH)/libskia.a
LIB_SKOTTIE = $(BUILT_LIBS_LIB_PATH)/libskottie.a
LIB_SKSG = $(BUILT_LIBS_LIB_PATH)/libsksg.a
LIB_SKSHAPER = $(BUILT_LIBS_LIB_PATH)/libskshaper.a
LIB_SKPARAGRAPH = $(BUILT_LIBS_LIB_PATH)/libskparagraph.a
LIB_SKUNICODE = $(BUILT_LIBS_LIB_PATH)/libskunicode_core.a $(BUILT_LIBS_LIB_PATH)/libskunicode_icu.a
LIB_SVG = $(BUILT_LIBS_LIB_PATH)/libsvg.a
LIB_SKUNICODE = $(BUILT_LIBS_LIB_PATH)/libskunicode.a

SKIA_LNK_FLAGS = $(LIB_SKIA) $(LIB_SKOTTIE) $(LIB_SKSG) $(LIB_SKSHAPER) $(LIB_SKPARAGRAPH) $(LIB_SVG) $(LIB_SKUNICODE)
IGRAPHICS_LNK_FLAGS = $(SKIA_LNK_FLAGS)
Expand Down
6 changes: 2 additions & 4 deletions common-mac.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ FT_PATH = $(BUILT_LIBS_INC_PATH)/freetype2
SKIA_PATH = $(DEPS_PATH)/Build/src/skia
YOGA_PATH = $(DEPS_PATH)/IGraphics/yoga

SKIA_INC_PATHS = $(SKIA_PATH) $(SKIA_PATH)/include/core $(SKIA_PATH)/include/effects $(SKIA_PATH)/include/config $(SKIA_PATH)/include/utils $(SKIA_PATH)/include/utils/mac $(SKIA_PATH)/include/gpu $(SKIA_PATH)/third_party/externals/icu/source/common $(SKIA_PATH)/modules/svg/include

SKIA_INC_PATHS = $(SKIA_PATH)
YOGA_INC_PATHS = $(YOGA_PATH) $(YOGA_PATH)/yoga

// you can optionally include this build setting, by adding it to EXTRA_INC_PATHS in MyProject.xcconfig in order to get all varieties of IGraphics support
Expand All @@ -118,14 +117,13 @@ IGRAPHICS_INC_PATHS = $(IGRAPHICS_PATH) $(IGRAPHICS_PATH)/Controls $(IGRAPHICS_P
LIB_FT = $(BUILT_LIBS_LIB_PATH)/libfreetype.a
LIB_PNG = $(BUILT_LIBS_LIB_PATH)/libpng.a
LIB_Z = $(BUILT_LIBS_LIB_PATH)/libz.a
LIB_CIVET = $(BUILT_LIBS_LIB_PATH)/libcivetweb.a
LIB_SKIA = $(BUILT_LIBS_LIB_PATH)/libskia.a
LIB_SKOTTIE = $(BUILT_LIBS_LIB_PATH)/libskottie.a
LIB_SKSG = $(BUILT_LIBS_LIB_PATH)/libsksg.a
LIB_SKSHAPER = $(BUILT_LIBS_LIB_PATH)/libskshaper.a
LIB_SKPARAGRAPH = $(BUILT_LIBS_LIB_PATH)/libskparagraph.a
LIB_SKUNICODE = $(BUILT_LIBS_LIB_PATH)/libskunicode_core.a $(BUILT_LIBS_LIB_PATH)/libskunicode_icu.a
LIB_SVG = $(BUILT_LIBS_LIB_PATH)/libsvg.a
LIB_SKUNICODE = $(BUILT_LIBS_LIB_PATH)/libskunicode.a

SKIA_LNK_FLAGS = $(LIB_SKIA) $(LIB_SKOTTIE) $(LIB_SKSG) $(LIB_SKSHAPER) $(LIB_SKPARAGRAPH) $(LIB_SVG) $(LIB_SKUNICODE)
FREETYPE_LNK_FLAGS = $(LIB_FT) //$(LIB_PNG) $(LIB_Z)
Expand Down
4 changes: 4 additions & 0 deletions common-win.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<STB_PATH>$(IGRAPHICS_DEPS_PATH)\STB</STB_PATH>
<FAUST_INC_PATHS>$(DEPS_PATH)\Build\win\Faust\include</FAUST_INC_PATHS>
<STATIC_LIBS_PATH>$(DEPS_PATH)\Build\win\$(Platform)\$(Configuration)</STATIC_LIBS_PATH>
<ICUDAT_PATH>$(DEPS_PATH)\Build\win\bin\icudtl.dat</ICUDAT_PATH>
<IMGUI_INC_PATHS>$(IGRAPHICS_DEPS_PATH)\imgui;$(IGRAPHICS_DEPS_PATH)\imgui\backends</IMGUI_INC_PATHS>
<YOGA_INC_PATHS>$(IGRAPHICS_DEPS_PATH)\yoga;$(IGRAPHICS_DEPS_PATH)\yoga\yoga</YOGA_INC_PATHS>
<IGRAPHICS_INC_PATHS>$(IGRAPHICS_PATH);$(IGRAPHICS_PATH)\Controls;$(IGRAPHICS_PATH)\Drawing;$(IGRAPHICS_PATH)\Platforms;$(IGRAPHICS_PATH)\Extras;$(NANOSVG_PATH);$(NANOVG_PATH);$(PNG_PATH);$(ZLIB_PATH);$(FREETYPE_PATH);$(STB_PATH);$(IMGUI_INC_PATHS);$(SKIA_INC_PATHS);$(YOGA_INC_PATHS)</IGRAPHICS_INC_PATHS>
Expand Down Expand Up @@ -163,6 +164,9 @@
<BuildMacro Include="STATIC_LIBS_PATH">
<Value>$(STATIC_LIBS_PATH)</Value>
</BuildMacro>
<BuildMacro Include="ICUDAT_PATH">
<Value>$(ICUDAT_PATH)</Value>
</BuildMacro>
<BuildMacro Include="IMGUI_INC_PATHS">
<Value>$(IMGUI_INC_PATHS)</Value>
</BuildMacro>
Expand Down
2 changes: 1 addition & 1 deletion iPlug2
Submodule iPlug2 updated 521 files

0 comments on commit fb23e43

Please sign in to comment.