maxguitextareascintilla.bmx 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ' Copyright (c) 2014-2020 Bruce A Henderson
  2. '
  3. ' Permission is hereby granted, free of charge, to any person obtaining a copy
  4. ' of this software and associated documentation files (the "Software"), to deal
  5. ' in the Software without restriction, including without limitation the rights
  6. ' to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. ' copies of the Software, and to permit persons to whom the Software is
  8. ' furnished to do so, subject to the following conditions:
  9. '
  10. ' The above copyright notice and this permission notice shall be included in
  11. ' all copies or substantial portions of the Software.
  12. '
  13. ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. ' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. ' THE SOFTWARE.
  20. '
  21. SuperStrict
  22. Rem
  23. bbdoc: Scintilla-based MaxGUI TextArea gadget.
  24. End Rem
  25. Module MaxGUI.MaxGUITextAreaScintilla
  26. ModuleInfo "Version: 1.01"
  27. ModuleInfo "License: MIT"
  28. ModuleInfo "Copyright: (c) 2014-2019 Bruce A Henderson"
  29. ModuleInfo "History: 1.01"
  30. ModuleInfo "History: Fixed UTF-8 offset issues."
  31. ModuleInfo "History: 1.00"
  32. ModuleInfo "History: Initial Release."
  33. '
  34. ' Notes :
  35. ' commented out EM_SETSEL handler section in ScintillaWin.cxx - it was causing all the text to highlight whenever the gadget came into focus.
  36. '
  37. ' Added LINK_LEXER(lmBlitzMax); to Catalogue.cxx
  38. ModuleInfo "CC_OPTS: -fexceptions"
  39. ?Linux
  40. ModuleInfo "CC_OPTS: -DGTK"
  41. ModuleInfo "CPP_OPTS: -std=c++11"
  42. ' glib
  43. ModuleInfo "CC_OPTS: -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/lib64/glib-2.0/include"
  44. ' gtk
  45. ModuleInfo "CC_OPTS: -I/usr/include/gtk-3.0 -I/usr/lib/i386-linux-gnu/gtk-3.0/include"
  46. ' cairo
  47. ModuleInfo "CC_OPTS: -I/usr/include/cairo"
  48. ' pango
  49. ModuleInfo "CC_OPTS: -I/usr/include/pango-1.0"
  50. ModuleInfo "CC_OPTS: -I/usr/include/harfbuzz"
  51. ' gdk
  52. ModuleInfo "CC_OPTS: -I/usr/include/gdk-pixbuf-2.0"
  53. ' atk
  54. ModuleInfo "CC_OPTS: -I/usr/include/atk-1.0"
  55. ' OpenSuse wayland includes
  56. ModuleInfo "CC_OPTS: -I/usr/include/wayland"
  57. ?linuxarm
  58. ' glib
  59. ModuleInfo "CC_OPTS: -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include"
  60. ' gtk
  61. ModuleInfo "CC_OPTS: -I/usr/lib/arm-linux-gnueabihf/gtk-3.0/include"
  62. ?linux
  63. ModuleInfo "CPP_OPTS: -std=c++11 -DSCI_NAMESPACE -DSCI_LEXER"
  64. ModuleInfo "CC_OPTS: -DSCI_NAMESPACE -DSCI_LEXER"
  65. Import "linuxgtk.bmx"
  66. ?macos
  67. ModuleInfo "CPP_OPTS: -std=c++11 -DSCI_NAMESPACE -DSCI_LEXER"
  68. ModuleInfo "CC_OPTS: -DSCI_NAMESPACE -DSCI_LEXER"
  69. 'Import "macos.bmx"
  70. ?win32
  71. ModuleInfo "CPP_OPTS: -std=c++11"
  72. ModuleInfo "CC_OPTS: -DSCI_NAMESPACE -DSCI_LEXER -DSTATIC_BUILD"
  73. Import "win32.bmx"
  74. ?