@simonklee/opentui-tex-native-source 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/LICENSE-PROJECT +21 -0
- package/README.md +7 -0
- package/build.zig +112 -0
- package/build.zig.zon +12 -0
- package/native/lib.zig +280 -0
- package/native/nanosvg.c +4 -0
- package/native/vendor/.bootstrap-v5 +1 -0
- package/native/vendor/LICENSE-NANOSVG +18 -0
- package/native/vendor/microtex/.clang-format +26 -0
- package/native/vendor/microtex/.github/workflows/ubuntu.yml +92 -0
- package/native/vendor/microtex/.github/workflows/windows-gdi.yml +34 -0
- package/native/vendor/microtex/.github/workflows/windows-qt.yml +52 -0
- package/native/vendor/microtex/CMakeLists.txt +110 -0
- package/native/vendor/microtex/LICENSE +21 -0
- package/native/vendor/microtex/MicroTeXInstall.cmake +42 -0
- package/native/vendor/microtex/README.md +600 -0
- package/native/vendor/microtex/build.zig +209 -0
- package/native/vendor/microtex/clatexmath.wrap +6 -0
- package/native/vendor/microtex/doc/meson.build +38 -0
- package/native/vendor/microtex/doc/microtex-doc.toml.in +47 -0
- package/native/vendor/microtex/doc/microtex.svg +39 -0
- package/native/vendor/microtex/doc/urlmap.js +6 -0
- package/native/vendor/microtex/example/gtk/CMakeLists.txt +68 -0
- package/native/vendor/microtex/example/gtk/gtk_main.c +170 -0
- package/native/vendor/microtex/example/gtk/isamples.cpp +21 -0
- package/native/vendor/microtex/example/gtk/isamples.h +15 -0
- package/native/vendor/microtex/example/gtk/meson.build +27 -0
- package/native/vendor/microtex/example/gtk/microtex-gtk.gresource.xml +6 -0
- package/native/vendor/microtex/example/gtk/microtex-gtk.ui +117 -0
- package/native/vendor/microtex/example/gtkmm/CMakeLists.txt +19 -0
- package/native/vendor/microtex/example/gtkmm/gtkmm_main.cpp +531 -0
- package/native/vendor/microtex/example/gtkmm/meson.build +19 -0
- package/native/vendor/microtex/example/memcheck/CMakeLists.txt +12 -0
- package/native/vendor/microtex/example/memcheck/mem_check_main.cpp +154 -0
- package/native/vendor/microtex/example/qt/CMakeLists.txt +37 -0
- package/native/vendor/microtex/example/qt/meson.build +25 -0
- package/native/vendor/microtex/example/qt/qt_main.cpp +70 -0
- package/native/vendor/microtex/example/qt/qt_mainwindow.cpp +107 -0
- package/native/vendor/microtex/example/qt/qt_mainwindow.h +40 -0
- package/native/vendor/microtex/example/qt/qt_skiatexwidget.cpp +149 -0
- package/native/vendor/microtex/example/qt/qt_skiatexwidget.h +48 -0
- package/native/vendor/microtex/example/qt/qt_tex_render.h +15 -0
- package/native/vendor/microtex/example/qt/qt_texqmlitem.cpp +56 -0
- package/native/vendor/microtex/example/qt/qt_texqmlitem.h +31 -0
- package/native/vendor/microtex/example/qt/qt_texwidget.cpp +62 -0
- package/native/vendor/microtex/example/qt/qt_texwidget.h +31 -0
- package/native/vendor/microtex/example/qtpng/CMakeLists.txt +11 -0
- package/native/vendor/microtex/example/qtpng/latex2png.cpp +115 -0
- package/native/vendor/microtex/example/samples/samples.cpp +52 -0
- package/native/vendor/microtex/example/samples/samples.h +32 -0
- package/native/vendor/microtex/example/win32/CMakeLists.txt +15 -0
- package/native/vendor/microtex/example/win32/meson.build +18 -0
- package/native/vendor/microtex/example/win32/win32_main.cpp +375 -0
- package/native/vendor/microtex/githooks/pre-commit +19 -0
- package/native/vendor/microtex/githooks/pre-push +103 -0
- package/native/vendor/microtex/lib/CMakeLists.txt +234 -0
- package/native/vendor/microtex/lib/atom/atom.cpp +14 -0
- package/native/vendor/microtex/lib/atom/atom.h +96 -0
- package/native/vendor/microtex/lib/atom/atom_accent.cpp +115 -0
- package/native/vendor/microtex/lib/atom/atom_accent.h +53 -0
- package/native/vendor/microtex/lib/atom/atom_basic.cpp +146 -0
- package/native/vendor/microtex/lib/atom/atom_basic.h +273 -0
- package/native/vendor/microtex/lib/atom/atom_box.cpp +41 -0
- package/native/vendor/microtex/lib/atom/atom_box.h +70 -0
- package/native/vendor/microtex/lib/atom/atom_char.cpp +99 -0
- package/native/vendor/microtex/lib/atom/atom_char.h +147 -0
- package/native/vendor/microtex/lib/atom/atom_delim.cpp +65 -0
- package/native/vendor/microtex/lib/atom/atom_delim.h +58 -0
- package/native/vendor/microtex/lib/atom/atom_fence.cpp +65 -0
- package/native/vendor/microtex/lib/atom/atom_fence.h +56 -0
- package/native/vendor/microtex/lib/atom/atom_font.cpp +20 -0
- package/native/vendor/microtex/lib/atom/atom_font.h +49 -0
- package/native/vendor/microtex/lib/atom/atom_frac.cpp +101 -0
- package/native/vendor/microtex/lib/atom/atom_frac.h +42 -0
- package/native/vendor/microtex/lib/atom/atom_matrix.cpp +756 -0
- package/native/vendor/microtex/lib/atom/atom_matrix.h +268 -0
- package/native/vendor/microtex/lib/atom/atom_misc.cpp +230 -0
- package/native/vendor/microtex/lib/atom/atom_misc.h +200 -0
- package/native/vendor/microtex/lib/atom/atom_operator.cpp +51 -0
- package/native/vendor/microtex/lib/atom/atom_operator.h +41 -0
- package/native/vendor/microtex/lib/atom/atom_root.cpp +61 -0
- package/native/vendor/microtex/lib/atom/atom_root.h +27 -0
- package/native/vendor/microtex/lib/atom/atom_row.cpp +334 -0
- package/native/vendor/microtex/lib/atom/atom_row.h +176 -0
- package/native/vendor/microtex/lib/atom/atom_scripts.cpp +182 -0
- package/native/vendor/microtex/lib/atom/atom_scripts.h +52 -0
- package/native/vendor/microtex/lib/atom/atom_sideset.cpp +92 -0
- package/native/vendor/microtex/lib/atom/atom_sideset.h +24 -0
- package/native/vendor/microtex/lib/atom/atom_space.cpp +22 -0
- package/native/vendor/microtex/lib/atom/atom_space.h +38 -0
- package/native/vendor/microtex/lib/atom/atom_stack.cpp +117 -0
- package/native/vendor/microtex/lib/atom/atom_stack.h +103 -0
- package/native/vendor/microtex/lib/atom/atom_text.cpp +17 -0
- package/native/vendor/microtex/lib/atom/atom_text.h +33 -0
- package/native/vendor/microtex/lib/atom/atom_vrow.cpp +96 -0
- package/native/vendor/microtex/lib/atom/atom_vrow.h +47 -0
- package/native/vendor/microtex/lib/atom/atom_zstack.cpp +66 -0
- package/native/vendor/microtex/lib/atom/atom_zstack.h +37 -0
- package/native/vendor/microtex/lib/atom/colors_def.cpp +157 -0
- package/native/vendor/microtex/lib/atom/meson.build +50 -0
- package/native/vendor/microtex/lib/box/box.cpp +49 -0
- package/native/vendor/microtex/lib/box/box.h +184 -0
- package/native/vendor/microtex/lib/box/box_factory.cpp +162 -0
- package/native/vendor/microtex/lib/box/box_factory.h +24 -0
- package/native/vendor/microtex/lib/box/box_group.cpp +503 -0
- package/native/vendor/microtex/lib/box/box_group.h +285 -0
- package/native/vendor/microtex/lib/box/box_single.cpp +179 -0
- package/native/vendor/microtex/lib/box/box_single.h +157 -0
- package/native/vendor/microtex/lib/box/meson.build +15 -0
- package/native/vendor/microtex/lib/core/debug_config.cpp +3 -0
- package/native/vendor/microtex/lib/core/debug_config.h +24 -0
- package/native/vendor/microtex/lib/core/formula.cpp +180 -0
- package/native/vendor/microtex/lib/core/formula.h +137 -0
- package/native/vendor/microtex/lib/core/formula_def.cpp +167 -0
- package/native/vendor/microtex/lib/core/glue.cpp +108 -0
- package/native/vendor/microtex/lib/core/glue.h +55 -0
- package/native/vendor/microtex/lib/core/localized_num.cpp +51 -0
- package/native/vendor/microtex/lib/core/meson.build +19 -0
- package/native/vendor/microtex/lib/core/parser.cpp +874 -0
- package/native/vendor/microtex/lib/core/parser.h +306 -0
- package/native/vendor/microtex/lib/core/split.cpp +185 -0
- package/native/vendor/microtex/lib/core/split.h +40 -0
- package/native/vendor/microtex/lib/env/env.cpp +141 -0
- package/native/vendor/microtex/lib/env/env.h +221 -0
- package/native/vendor/microtex/lib/env/meson.build +11 -0
- package/native/vendor/microtex/lib/env/units.cpp +109 -0
- package/native/vendor/microtex/lib/env/units.h +61 -0
- package/native/vendor/microtex/lib/graphic/font_style.cpp +63 -0
- package/native/vendor/microtex/lib/graphic/font_style.h +61 -0
- package/native/vendor/microtex/lib/graphic/graphic.cpp +38 -0
- package/native/vendor/microtex/lib/graphic/graphic.h +314 -0
- package/native/vendor/microtex/lib/graphic/graphic_basic.cpp +44 -0
- package/native/vendor/microtex/lib/graphic/graphic_basic.h +131 -0
- package/native/vendor/microtex/lib/graphic/meson.build +13 -0
- package/native/vendor/microtex/lib/macro/macro.cpp +143 -0
- package/native/vendor/microtex/lib/macro/macro.h +155 -0
- package/native/vendor/microtex/lib/macro/macro_accent.cpp +50 -0
- package/native/vendor/microtex/lib/macro/macro_accent.h +61 -0
- package/native/vendor/microtex/lib/macro/macro_boxes.h +68 -0
- package/native/vendor/microtex/lib/macro/macro_colors.cpp +42 -0
- package/native/vendor/microtex/lib/macro/macro_colors.h +42 -0
- package/native/vendor/microtex/lib/macro/macro_decl.h +16 -0
- package/native/vendor/microtex/lib/macro/macro_def.cpp +418 -0
- package/native/vendor/microtex/lib/macro/macro_delims.cpp +56 -0
- package/native/vendor/microtex/lib/macro/macro_delims.h +73 -0
- package/native/vendor/microtex/lib/macro/macro_env.h +212 -0
- package/native/vendor/microtex/lib/macro/macro_fonts.cpp +53 -0
- package/native/vendor/microtex/lib/macro/macro_fonts.h +78 -0
- package/native/vendor/microtex/lib/macro/macro_frac.cpp +138 -0
- package/native/vendor/microtex/lib/macro/macro_frac.h +50 -0
- package/native/vendor/microtex/lib/macro/macro_misc.cpp +211 -0
- package/native/vendor/microtex/lib/macro/macro_misc.h +217 -0
- package/native/vendor/microtex/lib/macro/macro_scripts.cpp +32 -0
- package/native/vendor/microtex/lib/macro/macro_scripts.h +17 -0
- package/native/vendor/microtex/lib/macro/macro_sizes.h +110 -0
- package/native/vendor/microtex/lib/macro/macro_space.cpp +31 -0
- package/native/vendor/microtex/lib/macro/macro_space.h +17 -0
- package/native/vendor/microtex/lib/macro/macro_styles.cpp +45 -0
- package/native/vendor/microtex/lib/macro/macro_styles.h +22 -0
- package/native/vendor/microtex/lib/macro/macro_types.h +48 -0
- package/native/vendor/microtex/lib/macro/meson.build +33 -0
- package/native/vendor/microtex/lib/meson.build +102 -0
- package/native/vendor/microtex/lib/microtex.cpp +208 -0
- package/native/vendor/microtex/lib/microtex.h +225 -0
- package/native/vendor/microtex/lib/microtexConfig.cmake.in +2 -0
- package/native/vendor/microtex/lib/microtexapi.h +22 -0
- package/native/vendor/microtex/lib/microtexconfig.h.in +7 -0
- package/native/vendor/microtex/lib/microtexexport.h +31 -0
- package/native/vendor/microtex/lib/otf/clm.cpp +405 -0
- package/native/vendor/microtex/lib/otf/clm.h +61 -0
- package/native/vendor/microtex/lib/otf/fontsense.cpp +191 -0
- package/native/vendor/microtex/lib/otf/fontsense.h +20 -0
- package/native/vendor/microtex/lib/otf/glyph.cpp +53 -0
- package/native/vendor/microtex/lib/otf/glyph.h +384 -0
- package/native/vendor/microtex/lib/otf/math_consts.h +154 -0
- package/native/vendor/microtex/lib/otf/meson.build +18 -0
- package/native/vendor/microtex/lib/otf/otf.cpp +84 -0
- package/native/vendor/microtex/lib/otf/otf.h +177 -0
- package/native/vendor/microtex/lib/otf/otfconfig.h +32 -0
- package/native/vendor/microtex/lib/otf/path.cpp +187 -0
- package/native/vendor/microtex/lib/otf/path.h +120 -0
- package/native/vendor/microtex/lib/render/builder.cpp +68 -0
- package/native/vendor/microtex/lib/render/builder.h +73 -0
- package/native/vendor/microtex/lib/render/meson.build +11 -0
- package/native/vendor/microtex/lib/render/render.cpp +136 -0
- package/native/vendor/microtex/lib/render/render.h +59 -0
- package/native/vendor/microtex/lib/unimath/font_meta.h +22 -0
- package/native/vendor/microtex/lib/unimath/font_src.cpp +21 -0
- package/native/vendor/microtex/lib/unimath/font_src.h +61 -0
- package/native/vendor/microtex/lib/unimath/math_type.cpp +318 -0
- package/native/vendor/microtex/lib/unimath/math_type.h +105 -0
- package/native/vendor/microtex/lib/unimath/meson.build +18 -0
- package/native/vendor/microtex/lib/unimath/uni_char.cpp +121 -0
- package/native/vendor/microtex/lib/unimath/uni_char.h +109 -0
- package/native/vendor/microtex/lib/unimath/uni_font.cpp +248 -0
- package/native/vendor/microtex/lib/unimath/uni_font.h +139 -0
- package/native/vendor/microtex/lib/unimath/uni_symbol.cpp +2929 -0
- package/native/vendor/microtex/lib/unimath/uni_symbol.h +31 -0
- package/native/vendor/microtex/lib/utils/dict_tree.h +68 -0
- package/native/vendor/microtex/lib/utils/exceptions.h +61 -0
- package/native/vendor/microtex/lib/utils/log.h +34 -0
- package/native/vendor/microtex/lib/utils/meson.build +18 -0
- package/native/vendor/microtex/lib/utils/nums.h +24 -0
- package/native/vendor/microtex/lib/utils/string_utils.cpp +85 -0
- package/native/vendor/microtex/lib/utils/string_utils.h +130 -0
- package/native/vendor/microtex/lib/utils/types.h +152 -0
- package/native/vendor/microtex/lib/utils/utf.cpp +115 -0
- package/native/vendor/microtex/lib/utils/utf.h +58 -0
- package/native/vendor/microtex/lib/utils/utils.cpp +40 -0
- package/native/vendor/microtex/lib/utils/utils.h +88 -0
- package/native/vendor/microtex/lib/wrapper/byte_seq.cpp +46 -0
- package/native/vendor/microtex/lib/wrapper/byte_seq.h +70 -0
- package/native/vendor/microtex/lib/wrapper/callback.cpp +10 -0
- package/native/vendor/microtex/lib/wrapper/callback.h +72 -0
- package/native/vendor/microtex/lib/wrapper/cwrapper.cpp +206 -0
- package/native/vendor/microtex/lib/wrapper/cwrapper.h +305 -0
- package/native/vendor/microtex/lib/wrapper/graphic_wrapper.cpp +211 -0
- package/native/vendor/microtex/lib/wrapper/graphic_wrapper.h +159 -0
- package/native/vendor/microtex/lib/wrapper/meson.build +22 -0
- package/native/vendor/microtex/meson.build +75 -0
- package/native/vendor/microtex/meson_options.txt +29 -0
- package/native/vendor/microtex/platform/cairo/CMakeLists.txt +36 -0
- package/native/vendor/microtex/platform/cairo/graphic_cairo.cpp +384 -0
- package/native/vendor/microtex/platform/cairo/graphic_cairo.h +119 -0
- package/native/vendor/microtex/platform/cairo/meson.build +47 -0
- package/native/vendor/microtex/platform/cairo/microtex-cairoConfig.cmake.in +11 -0
- package/native/vendor/microtex/platform/flutter/microtex/.metadata +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/CHANGELOG.md +3 -0
- package/native/vendor/microtex/platform/flutter/microtex/LICENSE +1 -0
- package/native/vendor/microtex/platform/flutter/microtex/README.md +15 -0
- package/native/vendor/microtex/platform/flutter/microtex/analysis_options.yaml +4 -0
- package/native/vendor/microtex/platform/flutter/microtex/android/build.gradle +56 -0
- package/native/vendor/microtex/platform/flutter/microtex/android/settings.gradle +1 -0
- package/native/vendor/microtex/platform/flutter/microtex/android/src/main/AndroidManifest.xml +3 -0
- package/native/vendor/microtex/platform/flutter/microtex/android/src/main/kotlin/io/nano/microtex/microtex/MicrotexPlugin.kt +35 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/.metadata +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/README.md +16 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/analysis_options.yaml +31 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/build.gradle +68 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/debug/AndroidManifest.xml +7 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/AndroidManifest.xml +34 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/kotlin/io/nano/microtex/microtex_example/MainActivity.kt +6 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/values/styles.xml +18 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/main/res/values-night/styles.xml +18 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/app/src/profile/AndroidManifest.xml +7 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/build.gradle +31 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/gradle.properties +3 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/android/settings.gradle +11 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Flutter/AppFrameworkInfo.plist +26 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Flutter/Debug.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Flutter/Release.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Podfile +41 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Podfile.lock +22 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/AppDelegate.swift +13 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Base.lproj/Main.storyboard +26 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Info.plist +49 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner/Runner-Bridging-Header.h +1 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcodeproj/project.pbxproj +549 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +87 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcworkspace/contents.xcworkspacedata +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/main.dart +23 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/screen/edit_in_one.dart +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/screen/edit_screen.dart +208 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/utils/convert_spans.dart +63 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/utils/string_ext.dart +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/cmp.dart +118 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/draggable.dart +75 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/rich.dart +23 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/split.dart +72 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/tex_highlight_controller.dart +66 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/lib/widget/tex_input_controller.dart +19 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/CMakeLists.txt +116 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/flutter/CMakeLists.txt +87 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/flutter/generated_plugin_registrant.cc +15 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/flutter/generated_plugin_registrant.h +15 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/flutter/generated_plugins.cmake +24 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/main.cc +6 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/my_application.cc +104 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/linux/my_application.h +18 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Flutter/Flutter-Debug.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Flutter/Flutter-Release.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Flutter/GeneratedPluginRegistrant.swift +12 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Podfile +40 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Podfile.lock +22 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/AppDelegate.swift +9 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Base.lproj/MainMenu.xib +343 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Configs/AppInfo.xcconfig +14 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Configs/Debug.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Configs/Release.xcconfig +2 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Configs/Warnings.xcconfig +13 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/DebugProfile.entitlements +12 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Info.plist +32 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/MainFlutterWindow.swift +15 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner/Release.entitlements +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner.xcodeproj/project.pbxproj +633 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +87 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner.xcworkspace/contents.xcworkspacedata +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/pubspec.lock +191 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/pubspec.yaml +56 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/test/widget_test.dart +26 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/CMakeLists.txt +95 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/flutter/CMakeLists.txt +103 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/flutter/generated_plugin_registrant.cc +14 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/flutter/generated_plugin_registrant.h +15 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/flutter/generated_plugins.cmake +24 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/CMakeLists.txt +17 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/Runner.rc +121 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/flutter_window.cpp +61 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/flutter_window.h +33 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/main.cpp +43 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/resource.h +16 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/resources/app_icon.ico +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/runner.exe.manifest +20 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/utils.cpp +64 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/utils.h +19 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/win32_window.cpp +245 -0
- package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/win32_window.h +98 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/Assets/.gitkeep +0 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/Classes/MicrotexPlugin.h +4 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/Classes/MicrotexPlugin.m +19 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/Classes/SwiftMicrotexPlugin.swift +14 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/Classes/dummy.h +4 -0
- package/native/vendor/microtex/platform/flutter/microtex/ios/microtex.podspec +27 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/microtex.dart +7 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/bindings.dart +218 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/bounds.dart +10 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/context.dart +205 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/fontdesc.dart +14 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/fontmeta.dart +14 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/pathcache.dart +17 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/render.dart +291 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/texstyle.dart +11 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/textlayout.dart +93 -0
- package/native/vendor/microtex/platform/flutter/microtex/lib/src/widget.dart +163 -0
- package/native/vendor/microtex/platform/flutter/microtex/linux/CMakeLists.txt +33 -0
- package/native/vendor/microtex/platform/flutter/microtex/linux/include/microtex/microtex_plugin.h +26 -0
- package/native/vendor/microtex/platform/flutter/microtex/linux/microtex_plugin.cc +70 -0
- package/native/vendor/microtex/platform/flutter/microtex/macos/Classes/MicrotexPlugin.swift +20 -0
- package/native/vendor/microtex/platform/flutter/microtex/macos/Classes/dummy.h +4 -0
- package/native/vendor/microtex/platform/flutter/microtex/macos/Classes/microtex-Bridging-Header.h +1 -0
- package/native/vendor/microtex/platform/flutter/microtex/macos/microtex.podspec +26 -0
- package/native/vendor/microtex/platform/flutter/microtex/nativelib/CMakeLists.txt +44 -0
- package/native/vendor/microtex/platform/flutter/microtex/nativelib/builddarwin.sh +108 -0
- package/native/vendor/microtex/platform/flutter/microtex/pubspec.yaml +37 -0
- package/native/vendor/microtex/platform/flutter/microtex/test/microtex_test.dart +23 -0
- package/native/vendor/microtex/platform/flutter/microtex/windows/CMakeLists.txt +32 -0
- package/native/vendor/microtex/platform/flutter/microtex/windows/include/microtex/microtex_plugin.h +23 -0
- package/native/vendor/microtex/platform/flutter/microtex/windows/microtex_plugin.cpp +82 -0
- package/native/vendor/microtex/platform/gdi_win/CMakeLists.txt +20 -0
- package/native/vendor/microtex/platform/gdi_win/graphic_win32.cpp +352 -0
- package/native/vendor/microtex/platform/gdi_win/graphic_win32.h +137 -0
- package/native/vendor/microtex/platform/gdi_win/meson.build +39 -0
- package/native/vendor/microtex/platform/gtk/CMakeLists.txt +36 -0
- package/native/vendor/microtex/platform/gtk/meson.build +65 -0
- package/native/vendor/microtex/platform/gtk/microtex-gtkConfig.cmake.in +11 -0
- package/native/vendor/microtex/platform/gtk/microtexequation.cpp +708 -0
- package/native/vendor/microtex/platform/gtk/microtexequation.h +72 -0
- package/native/vendor/microtex/platform/qt/CMakeLists.txt +37 -0
- package/native/vendor/microtex/platform/qt/graphic_qt.cpp +355 -0
- package/native/vendor/microtex/platform/qt/graphic_qt.h +116 -0
- package/native/vendor/microtex/platform/qt/meson.build +38 -0
- package/native/vendor/microtex/platform/qt/microtex-qtConfig.cmake.in +7 -0
- package/native/vendor/microtex/platform/skia/CMakeLists.txt +46 -0
- package/native/vendor/microtex/platform/skia/graphic_skia.cpp +306 -0
- package/native/vendor/microtex/platform/skia/graphic_skia.h +125 -0
- package/native/vendor/microtex/platform/skia/microtex-skiaConfig.cmake.in +6 -0
- package/native/vendor/microtex/platform/wasm/CMakeLists.txt +38 -0
- package/native/vendor/microtex/platform/wasm/emscripten.cross +31 -0
- package/native/vendor/microtex/platform/wasm/main.cpp +15 -0
- package/native/vendor/microtex/platform/wasm/meson.build +8 -0
- package/native/vendor/microtex/platform/wasm/prebuild-example-meson.sh +21 -0
- package/native/vendor/microtex/platform/wasm/prebuild-example.sh +21 -0
- package/native/vendor/microtex/platform/wasm/prebuild-lib-meson.sh +28 -0
- package/native/vendor/microtex/platform/wasm/prebuild-lib.sh +31 -0
- package/native/vendor/microtex/platform/wasm/web/.babelrc +10 -0
- package/native/vendor/microtex/platform/wasm/web/example/examples.js +43 -0
- package/native/vendor/microtex/platform/wasm/web/example/hello.js +31 -0
- package/native/vendor/microtex/platform/wasm/web/example/index.html +55 -0
- package/native/vendor/microtex/platform/wasm/web/example/index.js +243 -0
- package/native/vendor/microtex/platform/wasm/web/example/styles.css +86 -0
- package/native/vendor/microtex/platform/wasm/web/example/utils.js +47 -0
- package/native/vendor/microtex/platform/wasm/web/lib/context.js +271 -0
- package/native/vendor/microtex/platform/wasm/web/lib/index.js +10 -0
- package/native/vendor/microtex/platform/wasm/web/lib/render.js +293 -0
- package/native/vendor/microtex/platform/wasm/web/lib/runtime.js +14 -0
- package/native/vendor/microtex/platform/wasm/web/lib/svg.js +237 -0
- package/native/vendor/microtex/platform/wasm/web/lib/textlayout.js +88 -0
- package/native/vendor/microtex/platform/wasm/web/package-lock.json +5931 -0
- package/native/vendor/microtex/platform/wasm/web/package.json +45 -0
- package/native/vendor/microtex/platform/wasm/web/publish-example.sh +17 -0
- package/native/vendor/microtex/platform/wasm/web/rollup.config.example.js +24 -0
- package/native/vendor/microtex/platform/wasm/web/rollup.config.lib.js +16 -0
- package/native/vendor/microtex/prebuilt/otf2clm.py +807 -0
- package/native/vendor/microtex/prebuilt/otf2clm.sh +9 -0
- package/native/vendor/microtex/prebuilt/preclms.sh +17 -0
- package/native/vendor/microtex/readme/example_bw_false.svg +680 -0
- package/native/vendor/microtex/readme/example_bw_true.svg +680 -0
- package/native/vendor/microtex/readme/example_cjk_trying.svg +54 -0
- package/native/vendor/microtex/readme/example_custom_symbols.svg +92 -0
- package/native/vendor/microtex/readme/example_debug.svg +764 -0
- package/native/vendor/microtex/readme/example_emoji.svg +199 -0
- package/native/vendor/microtex/readme/example_have_log.svg +79 -0
- package/native/vendor/microtex/readme/example_keep_trying.svg +101 -0
- package/native/vendor/microtex/readme/example_logos.svg +50 -0
- package/native/vendor/microtex/readme/example_ubuntu.png +0 -0
- package/native/vendor/microtex/readme/example_windows.png +0 -0
- package/native/vendor/microtex/readme/samples/sample_0.svg +665 -0
- package/native/vendor/microtex/readme/samples/sample_1.svg +1259 -0
- package/native/vendor/microtex/readme/samples/sample_10.svg +333 -0
- package/native/vendor/microtex/readme/samples/sample_11.svg +306 -0
- package/native/vendor/microtex/readme/samples/sample_2.svg +2461 -0
- package/native/vendor/microtex/readme/samples/sample_3.svg +2653 -0
- package/native/vendor/microtex/readme/samples/sample_4.svg +554 -0
- package/native/vendor/microtex/readme/samples/sample_5.svg +247 -0
- package/native/vendor/microtex/readme/samples/sample_6.svg +1082 -0
- package/native/vendor/microtex/readme/samples/sample_7.svg +518 -0
- package/native/vendor/microtex/readme/samples/sample_8.svg +529 -0
- package/native/vendor/microtex/readme/samples/sample_9.svg +1702 -0
- package/native/vendor/microtex/readme/samples.md +301 -0
- package/native/vendor/microtex/readme/tex_logo.svg +19 -0
- package/native/vendor/microtex/res/EXAMPLE.txt +25 -0
- package/native/vendor/microtex/res/SAMPLES.tex +946 -0
- package/native/vendor/microtex/res/firamath/FiraMath-Regular.clm1 +0 -0
- package/native/vendor/microtex/res/firamath/FiraMath-Regular.clm2 +0 -0
- package/native/vendor/microtex/res/firamath/FiraMath-Regular.otf +0 -0
- package/native/vendor/microtex/res/firamath/README.md +42 -0
- package/native/vendor/microtex/res/lm-math/README +92 -0
- package/native/vendor/microtex/res/lm-math/latinmodern-math.clm1 +0 -0
- package/native/vendor/microtex/res/lm-math/latinmodern-math.clm2 +0 -0
- package/native/vendor/microtex/res/lm-math/latinmodern-math.otf +0 -0
- package/native/vendor/microtex/res/tex-gyre/README-TeX-Gyre-DejaVu-Math.txt +82 -0
- package/native/vendor/microtex/res/tex-gyre/texgyredejavu-math.clm1 +0 -0
- package/native/vendor/microtex/res/tex-gyre/texgyredejavu-math.clm2 +0 -0
- package/native/vendor/microtex/res/tex-gyre/texgyredejavu-math.otf +0 -0
- package/native/vendor/microtex/res/xits/FONTLOG.txt +246 -0
- package/native/vendor/microtex/res/xits/OFL.txt +98 -0
- package/native/vendor/microtex/res/xits/README.txt +15 -0
- package/native/vendor/microtex/res/xits/XITS-Bold.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Bold.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Bold.otf +0 -0
- package/native/vendor/microtex/res/xits/XITS-BoldItalic.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITS-BoldItalic.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITS-BoldItalic.otf +0 -0
- package/native/vendor/microtex/res/xits/XITS-Italic.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Italic.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Italic.otf +0 -0
- package/native/vendor/microtex/res/xits/XITS-Regular.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Regular.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITS-Regular.otf +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Bold.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Bold.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Bold.otf +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Regular.clm1 +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Regular.clm2 +0 -0
- package/native/vendor/microtex/res/xits/XITSMath-Regular.otf +0 -0
- package/native/vendor/microtex/test/clm/meson.build +10 -0
- package/native/vendor/microtex/test/clm/test_clm.cpp +140 -0
- package/native/vendor/microtex/test/env/meson.build +10 -0
- package/native/vendor/microtex/test/env/test_env.cpp +100 -0
- package/native/vendor/microtex/test/fuzzer/afl.native +20 -0
- package/native/vendor/microtex/test/fuzzer/fuzz.sh +135 -0
- package/native/vendor/microtex/test/fuzzer/fuzzer.cpp +61 -0
- package/native/vendor/microtex/test/fuzzer/generateSeed.java +33 -0
- package/native/vendor/microtex/test/fuzzer/meson.build +9 -0
- package/native/vendor/microtex/test/fuzzer/microtex.dict +3708 -0
- package/native/vendor/microtex/test/fuzzer/platform_none.cpp +100 -0
- package/native/vendor/microtex/test/has_filesystem.cpp +8 -0
- package/native/vendor/microtex/test/meson.build +6 -0
- package/native/vendor/nanosvg.h +3278 -0
- package/native/vendor/nanosvgrast.h +1472 -0
- package/native/vendor/zigtex/.github/assets/example.svg +27 -0
- package/native/vendor/zigtex/LICENSE +674 -0
- package/native/vendor/zigtex/README.md +52 -0
- package/native/vendor/zigtex/build.zig +52 -0
- package/native/vendor/zigtex/build.zig.zon +16 -0
- package/native/vendor/zigtex/fonts/latinmodern-math.clm2 +0 -0
- package/native/vendor/zigtex/src/main.zig +22 -0
- package/native/vendor/zigtex/src/root.zig +124 -0
- package/native/vendor/zigtex/src/svg.zig +273 -0
- package/native/vendor/zigtex/src/tex.zig +383 -0
- package/native/zigtex-0.16.patch +35 -0
- package/package.json +27 -0
- package/scripts/bootstrap-native +89 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1300"
|
|
4
|
+
version = "1.3">
|
|
5
|
+
<BuildAction
|
|
6
|
+
parallelizeBuildables = "YES"
|
|
7
|
+
buildImplicitDependencies = "YES">
|
|
8
|
+
<BuildActionEntries>
|
|
9
|
+
<BuildActionEntry
|
|
10
|
+
buildForTesting = "YES"
|
|
11
|
+
buildForRunning = "YES"
|
|
12
|
+
buildForProfiling = "YES"
|
|
13
|
+
buildForArchiving = "YES"
|
|
14
|
+
buildForAnalyzing = "YES">
|
|
15
|
+
<BuildableReference
|
|
16
|
+
BuildableIdentifier = "primary"
|
|
17
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
18
|
+
BuildableName = "microtex_example.app"
|
|
19
|
+
BlueprintName = "Runner"
|
|
20
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
21
|
+
</BuildableReference>
|
|
22
|
+
</BuildActionEntry>
|
|
23
|
+
</BuildActionEntries>
|
|
24
|
+
</BuildAction>
|
|
25
|
+
<TestAction
|
|
26
|
+
buildConfiguration = "Debug"
|
|
27
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
+
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
+
<MacroExpansion>
|
|
31
|
+
<BuildableReference
|
|
32
|
+
BuildableIdentifier = "primary"
|
|
33
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
34
|
+
BuildableName = "microtex_example.app"
|
|
35
|
+
BlueprintName = "Runner"
|
|
36
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
37
|
+
</BuildableReference>
|
|
38
|
+
</MacroExpansion>
|
|
39
|
+
<Testables>
|
|
40
|
+
</Testables>
|
|
41
|
+
</TestAction>
|
|
42
|
+
<LaunchAction
|
|
43
|
+
buildConfiguration = "Debug"
|
|
44
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
45
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
46
|
+
launchStyle = "0"
|
|
47
|
+
useCustomWorkingDirectory = "NO"
|
|
48
|
+
ignoresPersistentStateOnLaunch = "NO"
|
|
49
|
+
debugDocumentVersioning = "YES"
|
|
50
|
+
debugServiceExtension = "internal"
|
|
51
|
+
allowLocationSimulation = "YES">
|
|
52
|
+
<BuildableProductRunnable
|
|
53
|
+
runnableDebuggingMode = "0">
|
|
54
|
+
<BuildableReference
|
|
55
|
+
BuildableIdentifier = "primary"
|
|
56
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
57
|
+
BuildableName = "microtex_example.app"
|
|
58
|
+
BlueprintName = "Runner"
|
|
59
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
60
|
+
</BuildableReference>
|
|
61
|
+
</BuildableProductRunnable>
|
|
62
|
+
</LaunchAction>
|
|
63
|
+
<ProfileAction
|
|
64
|
+
buildConfiguration = "Profile"
|
|
65
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
66
|
+
savedToolIdentifier = ""
|
|
67
|
+
useCustomWorkingDirectory = "NO"
|
|
68
|
+
debugDocumentVersioning = "YES">
|
|
69
|
+
<BuildableProductRunnable
|
|
70
|
+
runnableDebuggingMode = "0">
|
|
71
|
+
<BuildableReference
|
|
72
|
+
BuildableIdentifier = "primary"
|
|
73
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
74
|
+
BuildableName = "microtex_example.app"
|
|
75
|
+
BlueprintName = "Runner"
|
|
76
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
77
|
+
</BuildableReference>
|
|
78
|
+
</BuildableProductRunnable>
|
|
79
|
+
</ProfileAction>
|
|
80
|
+
<AnalyzeAction
|
|
81
|
+
buildConfiguration = "Debug">
|
|
82
|
+
</AnalyzeAction>
|
|
83
|
+
<ArchiveAction
|
|
84
|
+
buildConfiguration = "Release"
|
|
85
|
+
revealArchiveInOrganizer = "YES">
|
|
86
|
+
</ArchiveAction>
|
|
87
|
+
</Scheme>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# Generated by pub
|
|
2
|
+
# See https://dart.dev/tools/pub/glossary#lockfile
|
|
3
|
+
packages:
|
|
4
|
+
async:
|
|
5
|
+
dependency: transitive
|
|
6
|
+
description:
|
|
7
|
+
name: async
|
|
8
|
+
url: "https://pub.dartlang.org"
|
|
9
|
+
source: hosted
|
|
10
|
+
version: "2.9.0"
|
|
11
|
+
boolean_selector:
|
|
12
|
+
dependency: transitive
|
|
13
|
+
description:
|
|
14
|
+
name: boolean_selector
|
|
15
|
+
url: "https://pub.dartlang.org"
|
|
16
|
+
source: hosted
|
|
17
|
+
version: "2.1.0"
|
|
18
|
+
characters:
|
|
19
|
+
dependency: transitive
|
|
20
|
+
description:
|
|
21
|
+
name: characters
|
|
22
|
+
url: "https://pub.dartlang.org"
|
|
23
|
+
source: hosted
|
|
24
|
+
version: "1.2.1"
|
|
25
|
+
clock:
|
|
26
|
+
dependency: transitive
|
|
27
|
+
description:
|
|
28
|
+
name: clock
|
|
29
|
+
url: "https://pub.dartlang.org"
|
|
30
|
+
source: hosted
|
|
31
|
+
version: "1.1.1"
|
|
32
|
+
collection:
|
|
33
|
+
dependency: transitive
|
|
34
|
+
description:
|
|
35
|
+
name: collection
|
|
36
|
+
url: "https://pub.dartlang.org"
|
|
37
|
+
source: hosted
|
|
38
|
+
version: "1.16.0"
|
|
39
|
+
cupertino_icons:
|
|
40
|
+
dependency: "direct main"
|
|
41
|
+
description:
|
|
42
|
+
name: cupertino_icons
|
|
43
|
+
url: "https://pub.dartlang.org"
|
|
44
|
+
source: hosted
|
|
45
|
+
version: "1.0.5"
|
|
46
|
+
fake_async:
|
|
47
|
+
dependency: transitive
|
|
48
|
+
description:
|
|
49
|
+
name: fake_async
|
|
50
|
+
url: "https://pub.dartlang.org"
|
|
51
|
+
source: hosted
|
|
52
|
+
version: "1.3.1"
|
|
53
|
+
ffi:
|
|
54
|
+
dependency: transitive
|
|
55
|
+
description:
|
|
56
|
+
name: ffi
|
|
57
|
+
url: "https://pub.dartlang.org"
|
|
58
|
+
source: hosted
|
|
59
|
+
version: "1.2.1"
|
|
60
|
+
flutter:
|
|
61
|
+
dependency: "direct main"
|
|
62
|
+
description: flutter
|
|
63
|
+
source: sdk
|
|
64
|
+
version: "0.0.0"
|
|
65
|
+
flutter_lints:
|
|
66
|
+
dependency: "direct dev"
|
|
67
|
+
description:
|
|
68
|
+
name: flutter_lints
|
|
69
|
+
url: "https://pub.dartlang.org"
|
|
70
|
+
source: hosted
|
|
71
|
+
version: "1.0.4"
|
|
72
|
+
flutter_spinbox:
|
|
73
|
+
dependency: "direct main"
|
|
74
|
+
description:
|
|
75
|
+
name: flutter_spinbox
|
|
76
|
+
url: "https://pub.dartlang.org"
|
|
77
|
+
source: hosted
|
|
78
|
+
version: "0.9.0"
|
|
79
|
+
flutter_test:
|
|
80
|
+
dependency: "direct dev"
|
|
81
|
+
description: flutter
|
|
82
|
+
source: sdk
|
|
83
|
+
version: "0.0.0"
|
|
84
|
+
lints:
|
|
85
|
+
dependency: transitive
|
|
86
|
+
description:
|
|
87
|
+
name: lints
|
|
88
|
+
url: "https://pub.dartlang.org"
|
|
89
|
+
source: hosted
|
|
90
|
+
version: "1.0.1"
|
|
91
|
+
matcher:
|
|
92
|
+
dependency: transitive
|
|
93
|
+
description:
|
|
94
|
+
name: matcher
|
|
95
|
+
url: "https://pub.dartlang.org"
|
|
96
|
+
source: hosted
|
|
97
|
+
version: "0.12.11"
|
|
98
|
+
material_color_utilities:
|
|
99
|
+
dependency: transitive
|
|
100
|
+
description:
|
|
101
|
+
name: material_color_utilities
|
|
102
|
+
url: "https://pub.dartlang.org"
|
|
103
|
+
source: hosted
|
|
104
|
+
version: "0.1.5"
|
|
105
|
+
meta:
|
|
106
|
+
dependency: transitive
|
|
107
|
+
description:
|
|
108
|
+
name: meta
|
|
109
|
+
url: "https://pub.dartlang.org"
|
|
110
|
+
source: hosted
|
|
111
|
+
version: "1.8.0"
|
|
112
|
+
microtex:
|
|
113
|
+
dependency: "direct main"
|
|
114
|
+
description:
|
|
115
|
+
path: ".."
|
|
116
|
+
relative: true
|
|
117
|
+
source: path
|
|
118
|
+
version: "0.0.1"
|
|
119
|
+
path:
|
|
120
|
+
dependency: transitive
|
|
121
|
+
description:
|
|
122
|
+
name: path
|
|
123
|
+
url: "https://pub.dartlang.org"
|
|
124
|
+
source: hosted
|
|
125
|
+
version: "1.8.2"
|
|
126
|
+
rich_text_controller:
|
|
127
|
+
dependency: "direct main"
|
|
128
|
+
description:
|
|
129
|
+
name: rich_text_controller
|
|
130
|
+
url: "https://pub.dartlang.org"
|
|
131
|
+
source: hosted
|
|
132
|
+
version: "1.4.0"
|
|
133
|
+
sky_engine:
|
|
134
|
+
dependency: "direct overridden"
|
|
135
|
+
description:
|
|
136
|
+
path: "/home/nano/Dev/engine/src/out/host_debug_unopt/gen/dart-pkg/sky_engine"
|
|
137
|
+
relative: false
|
|
138
|
+
source: path
|
|
139
|
+
version: "0.0.99"
|
|
140
|
+
source_span:
|
|
141
|
+
dependency: transitive
|
|
142
|
+
description:
|
|
143
|
+
name: source_span
|
|
144
|
+
url: "https://pub.dartlang.org"
|
|
145
|
+
source: hosted
|
|
146
|
+
version: "1.9.0"
|
|
147
|
+
stack_trace:
|
|
148
|
+
dependency: transitive
|
|
149
|
+
description:
|
|
150
|
+
name: stack_trace
|
|
151
|
+
url: "https://pub.dartlang.org"
|
|
152
|
+
source: hosted
|
|
153
|
+
version: "1.10.0"
|
|
154
|
+
stream_channel:
|
|
155
|
+
dependency: transitive
|
|
156
|
+
description:
|
|
157
|
+
name: stream_channel
|
|
158
|
+
url: "https://pub.dartlang.org"
|
|
159
|
+
source: hosted
|
|
160
|
+
version: "2.1.0"
|
|
161
|
+
string_scanner:
|
|
162
|
+
dependency: transitive
|
|
163
|
+
description:
|
|
164
|
+
name: string_scanner
|
|
165
|
+
url: "https://pub.dartlang.org"
|
|
166
|
+
source: hosted
|
|
167
|
+
version: "1.1.1"
|
|
168
|
+
term_glyph:
|
|
169
|
+
dependency: transitive
|
|
170
|
+
description:
|
|
171
|
+
name: term_glyph
|
|
172
|
+
url: "https://pub.dartlang.org"
|
|
173
|
+
source: hosted
|
|
174
|
+
version: "1.2.1"
|
|
175
|
+
test_api:
|
|
176
|
+
dependency: transitive
|
|
177
|
+
description:
|
|
178
|
+
name: test_api
|
|
179
|
+
url: "https://pub.dartlang.org"
|
|
180
|
+
source: hosted
|
|
181
|
+
version: "0.4.9"
|
|
182
|
+
vector_math:
|
|
183
|
+
dependency: transitive
|
|
184
|
+
description:
|
|
185
|
+
name: vector_math
|
|
186
|
+
url: "https://pub.dartlang.org"
|
|
187
|
+
source: hosted
|
|
188
|
+
version: "2.1.2"
|
|
189
|
+
sdks:
|
|
190
|
+
dart: ">=2.17.0-0 <3.0.0"
|
|
191
|
+
flutter: ">=2.5.0"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: microtex_example
|
|
2
|
+
description: Demonstrates how to use the microtex plugin.
|
|
3
|
+
|
|
4
|
+
publish_to: 'none'
|
|
5
|
+
environment:
|
|
6
|
+
sdk: ">=2.16.2 <3.0.0"
|
|
7
|
+
|
|
8
|
+
dependencies:
|
|
9
|
+
flutter:
|
|
10
|
+
sdk: flutter
|
|
11
|
+
microtex:
|
|
12
|
+
path: ../
|
|
13
|
+
cupertino_icons: ^1.0.2
|
|
14
|
+
rich_text_controller: ^1.4.0
|
|
15
|
+
flutter_spinbox: ^0.9.0
|
|
16
|
+
|
|
17
|
+
dependency_overrides:
|
|
18
|
+
sky_engine:
|
|
19
|
+
path: /home/nano/Dev/engine/src/out/host_debug_unopt/gen/dart-pkg/sky_engine
|
|
20
|
+
|
|
21
|
+
dev_dependencies:
|
|
22
|
+
flutter_test:
|
|
23
|
+
sdk: flutter
|
|
24
|
+
flutter_lints: ^1.0.0
|
|
25
|
+
|
|
26
|
+
flutter:
|
|
27
|
+
uses-material-design: true
|
|
28
|
+
|
|
29
|
+
assets:
|
|
30
|
+
- assets/xits/XITSMath-Regular.clm2
|
|
31
|
+
- assets/EXAMPLE.txt
|
|
32
|
+
|
|
33
|
+
fonts:
|
|
34
|
+
- family: XITS Math
|
|
35
|
+
fonts:
|
|
36
|
+
- asset: assets/xits/XITSMath-Regular.otf
|
|
37
|
+
|
|
38
|
+
# To add custom fonts to your application, add a fonts section here,
|
|
39
|
+
# in this "flutter" section. Each entry in this list should have a
|
|
40
|
+
# "family" key with the font family name, and a "fonts" key with a
|
|
41
|
+
# list giving the asset and other descriptors for the font. For
|
|
42
|
+
# example:
|
|
43
|
+
# fonts:
|
|
44
|
+
# - family: Schyler
|
|
45
|
+
# fonts:
|
|
46
|
+
# - asset: fonts/Schyler-Regular.ttf
|
|
47
|
+
# - asset: fonts/Schyler-Italic.ttf
|
|
48
|
+
# style: italic
|
|
49
|
+
# - family: Trajan Pro
|
|
50
|
+
# fonts:
|
|
51
|
+
# - asset: fonts/TrajanPro.ttf
|
|
52
|
+
# - asset: fonts/TrajanPro_Bold.ttf
|
|
53
|
+
# weight: 700
|
|
54
|
+
#
|
|
55
|
+
# For details regarding fonts from package dependencies,
|
|
56
|
+
# see https://flutter.dev/custom-fonts/#from-packages
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This is a basic Flutter widget test.
|
|
2
|
+
//
|
|
3
|
+
// To perform an interaction with a widget in your test, use the WidgetTester
|
|
4
|
+
// utility that Flutter provides. For example, you can send tap and scroll
|
|
5
|
+
// gestures. You can also use WidgetTester to find child widgets in the widget
|
|
6
|
+
// tree, read text, and verify that the values of widget properties are correct.
|
|
7
|
+
|
|
8
|
+
import 'package:flutter/material.dart';
|
|
9
|
+
import 'package:flutter_test/flutter_test.dart';
|
|
10
|
+
|
|
11
|
+
import 'package:microtex_example/screen/edit_screen.dart';
|
|
12
|
+
|
|
13
|
+
void main() {
|
|
14
|
+
testWidgets('Verify Platform version', (WidgetTester tester) async {
|
|
15
|
+
// Build our app and trigger a frame.
|
|
16
|
+
await tester.pumpWidget(const EditScreen());
|
|
17
|
+
|
|
18
|
+
// Verify that platform version is retrieved.
|
|
19
|
+
expect(
|
|
20
|
+
find.byWidgetPredicate(
|
|
21
|
+
(Widget widget) => widget is Text && widget.data!.startsWith('Running on:'),
|
|
22
|
+
),
|
|
23
|
+
findsOneWidget,
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.14)
|
|
2
|
+
project(microtex_example LANGUAGES CXX)
|
|
3
|
+
|
|
4
|
+
set(BINARY_NAME "microtex_example")
|
|
5
|
+
|
|
6
|
+
cmake_policy(SET CMP0063 NEW)
|
|
7
|
+
|
|
8
|
+
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
|
|
9
|
+
|
|
10
|
+
# Configure build options.
|
|
11
|
+
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
12
|
+
if(IS_MULTICONFIG)
|
|
13
|
+
set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
|
|
14
|
+
CACHE STRING "" FORCE)
|
|
15
|
+
else()
|
|
16
|
+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
17
|
+
set(CMAKE_BUILD_TYPE "Debug" CACHE
|
|
18
|
+
STRING "Flutter build mode" FORCE)
|
|
19
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
|
|
20
|
+
"Debug" "Profile" "Release")
|
|
21
|
+
endif()
|
|
22
|
+
endif()
|
|
23
|
+
|
|
24
|
+
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
|
|
25
|
+
set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
|
|
26
|
+
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
|
|
27
|
+
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
|
|
28
|
+
|
|
29
|
+
# Use Unicode for all projects.
|
|
30
|
+
add_definitions(-DUNICODE -D_UNICODE)
|
|
31
|
+
|
|
32
|
+
# Compilation settings that should be applied to most targets.
|
|
33
|
+
function(APPLY_STANDARD_SETTINGS TARGET)
|
|
34
|
+
target_compile_features(${TARGET} PUBLIC cxx_std_17)
|
|
35
|
+
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
|
|
36
|
+
target_compile_options(${TARGET} PRIVATE /EHsc)
|
|
37
|
+
target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
|
|
38
|
+
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
|
|
39
|
+
endfunction()
|
|
40
|
+
|
|
41
|
+
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
|
|
42
|
+
|
|
43
|
+
# Flutter library and tool build rules.
|
|
44
|
+
add_subdirectory(${FLUTTER_MANAGED_DIR})
|
|
45
|
+
|
|
46
|
+
# Application build
|
|
47
|
+
add_subdirectory("runner")
|
|
48
|
+
|
|
49
|
+
# Generated plugin build rules, which manage building the plugins and adding
|
|
50
|
+
# them to the application.
|
|
51
|
+
include(flutter/generated_plugins.cmake)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# === Installation ===
|
|
55
|
+
# Support files are copied into place next to the executable, so that it can
|
|
56
|
+
# run in place. This is done instead of making a separate bundle (as on Linux)
|
|
57
|
+
# so that building and running from within Visual Studio will work.
|
|
58
|
+
set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")
|
|
59
|
+
# Make the "install" step default, as it's required to run.
|
|
60
|
+
set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
|
|
61
|
+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
62
|
+
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
|
|
63
|
+
endif()
|
|
64
|
+
|
|
65
|
+
set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
|
|
66
|
+
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
|
|
67
|
+
|
|
68
|
+
install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
69
|
+
COMPONENT Runtime)
|
|
70
|
+
|
|
71
|
+
install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
|
|
72
|
+
COMPONENT Runtime)
|
|
73
|
+
|
|
74
|
+
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
|
75
|
+
COMPONENT Runtime)
|
|
76
|
+
|
|
77
|
+
if(PLUGIN_BUNDLED_LIBRARIES)
|
|
78
|
+
install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
|
|
79
|
+
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
|
80
|
+
COMPONENT Runtime)
|
|
81
|
+
endif()
|
|
82
|
+
|
|
83
|
+
# Fully re-copy the assets directory on each build to avoid having stale files
|
|
84
|
+
# from a previous install.
|
|
85
|
+
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
|
|
86
|
+
install(CODE "
|
|
87
|
+
file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
|
|
88
|
+
" COMPONENT Runtime)
|
|
89
|
+
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
|
|
90
|
+
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
|
|
91
|
+
|
|
92
|
+
# Install the AOT library on non-Debug builds only.
|
|
93
|
+
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
|
|
94
|
+
CONFIGURATIONS Profile;Release
|
|
95
|
+
COMPONENT Runtime)
|
package/native/vendor/microtex/platform/flutter/microtex/example/windows/flutter/CMakeLists.txt
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.14)
|
|
2
|
+
|
|
3
|
+
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
|
|
4
|
+
|
|
5
|
+
# Configuration provided via flutter tool.
|
|
6
|
+
include(${EPHEMERAL_DIR}/generated_config.cmake)
|
|
7
|
+
|
|
8
|
+
# TODO: Move the rest of this into files in ephemeral. See
|
|
9
|
+
# https://github.com/flutter/flutter/issues/57146.
|
|
10
|
+
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
|
|
11
|
+
|
|
12
|
+
# === Flutter Library ===
|
|
13
|
+
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
|
|
14
|
+
|
|
15
|
+
# Published to parent scope for install step.
|
|
16
|
+
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
|
|
17
|
+
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
|
|
18
|
+
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
|
|
19
|
+
set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
|
|
20
|
+
|
|
21
|
+
list(APPEND FLUTTER_LIBRARY_HEADERS
|
|
22
|
+
"flutter_export.h"
|
|
23
|
+
"flutter_windows.h"
|
|
24
|
+
"flutter_messenger.h"
|
|
25
|
+
"flutter_plugin_registrar.h"
|
|
26
|
+
"flutter_texture_registrar.h"
|
|
27
|
+
)
|
|
28
|
+
list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
|
|
29
|
+
add_library(flutter INTERFACE)
|
|
30
|
+
target_include_directories(flutter INTERFACE
|
|
31
|
+
"${EPHEMERAL_DIR}"
|
|
32
|
+
)
|
|
33
|
+
target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
|
|
34
|
+
add_dependencies(flutter flutter_assemble)
|
|
35
|
+
|
|
36
|
+
# === Wrapper ===
|
|
37
|
+
list(APPEND CPP_WRAPPER_SOURCES_CORE
|
|
38
|
+
"core_implementations.cc"
|
|
39
|
+
"standard_codec.cc"
|
|
40
|
+
)
|
|
41
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
|
|
42
|
+
list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
|
|
43
|
+
"plugin_registrar.cc"
|
|
44
|
+
)
|
|
45
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
|
|
46
|
+
list(APPEND CPP_WRAPPER_SOURCES_APP
|
|
47
|
+
"flutter_engine.cc"
|
|
48
|
+
"flutter_view_controller.cc"
|
|
49
|
+
)
|
|
50
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
|
|
51
|
+
|
|
52
|
+
# Wrapper sources needed for a plugin.
|
|
53
|
+
add_library(flutter_wrapper_plugin STATIC
|
|
54
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
55
|
+
${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
56
|
+
)
|
|
57
|
+
apply_standard_settings(flutter_wrapper_plugin)
|
|
58
|
+
set_target_properties(flutter_wrapper_plugin PROPERTIES
|
|
59
|
+
POSITION_INDEPENDENT_CODE ON)
|
|
60
|
+
set_target_properties(flutter_wrapper_plugin PROPERTIES
|
|
61
|
+
CXX_VISIBILITY_PRESET hidden)
|
|
62
|
+
target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
|
|
63
|
+
target_include_directories(flutter_wrapper_plugin PUBLIC
|
|
64
|
+
"${WRAPPER_ROOT}/include"
|
|
65
|
+
)
|
|
66
|
+
add_dependencies(flutter_wrapper_plugin flutter_assemble)
|
|
67
|
+
|
|
68
|
+
# Wrapper sources needed for the runner.
|
|
69
|
+
add_library(flutter_wrapper_app STATIC
|
|
70
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
71
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
72
|
+
)
|
|
73
|
+
apply_standard_settings(flutter_wrapper_app)
|
|
74
|
+
target_link_libraries(flutter_wrapper_app PUBLIC flutter)
|
|
75
|
+
target_include_directories(flutter_wrapper_app PUBLIC
|
|
76
|
+
"${WRAPPER_ROOT}/include"
|
|
77
|
+
)
|
|
78
|
+
add_dependencies(flutter_wrapper_app flutter_assemble)
|
|
79
|
+
|
|
80
|
+
# === Flutter tool backend ===
|
|
81
|
+
# _phony_ is a non-existent file to force this command to run every time,
|
|
82
|
+
# since currently there's no way to get a full input/output list from the
|
|
83
|
+
# flutter tool.
|
|
84
|
+
set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
|
|
85
|
+
set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
|
|
86
|
+
add_custom_command(
|
|
87
|
+
OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
|
|
88
|
+
${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
89
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
90
|
+
${PHONY_OUTPUT}
|
|
91
|
+
COMMAND ${CMAKE_COMMAND} -E env
|
|
92
|
+
${FLUTTER_TOOL_ENVIRONMENT}
|
|
93
|
+
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
|
|
94
|
+
windows-x64 $<CONFIG>
|
|
95
|
+
VERBATIM
|
|
96
|
+
)
|
|
97
|
+
add_custom_target(flutter_assemble DEPENDS
|
|
98
|
+
"${FLUTTER_LIBRARY}"
|
|
99
|
+
${FLUTTER_LIBRARY_HEADERS}
|
|
100
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
101
|
+
${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
102
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
103
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Generated file. Do not edit.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// clang-format off
|
|
6
|
+
|
|
7
|
+
#include "generated_plugin_registrant.h"
|
|
8
|
+
|
|
9
|
+
#include <microtex/microtex_plugin.h>
|
|
10
|
+
|
|
11
|
+
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
|
12
|
+
MicrotexPluginRegisterWithRegistrar(
|
|
13
|
+
registry->GetRegistrarForPlugin("MicrotexPlugin"));
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Generated file. Do not edit.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// clang-format off
|
|
6
|
+
|
|
7
|
+
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
|
8
|
+
#define GENERATED_PLUGIN_REGISTRANT_
|
|
9
|
+
|
|
10
|
+
#include <flutter/plugin_registry.h>
|
|
11
|
+
|
|
12
|
+
// Registers Flutter plugins.
|
|
13
|
+
void RegisterPlugins(flutter::PluginRegistry* registry);
|
|
14
|
+
|
|
15
|
+
#endif // GENERATED_PLUGIN_REGISTRANT_
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Generated file, do not edit.
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
list(APPEND FLUTTER_PLUGIN_LIST
|
|
6
|
+
microtex
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
set(PLUGIN_BUNDLED_LIBRARIES)
|
|
13
|
+
|
|
14
|
+
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
|
15
|
+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
|
|
16
|
+
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
|
|
17
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
|
18
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
|
19
|
+
endforeach(plugin)
|
|
20
|
+
|
|
21
|
+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
|
22
|
+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
|
|
23
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
|
24
|
+
endforeach(ffi_plugin)
|
package/native/vendor/microtex/platform/flutter/microtex/example/windows/runner/CMakeLists.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.14)
|
|
2
|
+
project(runner LANGUAGES CXX)
|
|
3
|
+
|
|
4
|
+
add_executable(${BINARY_NAME} WIN32
|
|
5
|
+
"flutter_window.cpp"
|
|
6
|
+
"main.cpp"
|
|
7
|
+
"utils.cpp"
|
|
8
|
+
"win32_window.cpp"
|
|
9
|
+
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
|
|
10
|
+
"Runner.rc"
|
|
11
|
+
"runner.exe.manifest"
|
|
12
|
+
)
|
|
13
|
+
apply_standard_settings(${BINARY_NAME})
|
|
14
|
+
target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
|
|
15
|
+
target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
|
|
16
|
+
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
|
17
|
+
add_dependencies(${BINARY_NAME} flutter_assemble)
|