curses 1.4.4 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +6 -0
  3. data/.github/workflows/macos.yml +1 -1
  4. data/.github/workflows/push_gem.yml +48 -0
  5. data/.github/workflows/ubuntu.yml +2 -2
  6. data/.github/workflows/windows.yml +2 -2
  7. data/History.md +23 -0
  8. data/README.md +7 -0
  9. data/curses.gemspec +1 -1
  10. data/ext/curses/curses.c +7 -7
  11. data/sample/colors.rb +6 -1
  12. data/sample/form.rb +1 -1
  13. data/sample/menu.rb +2 -0
  14. metadata +9 -251
  15. data/vendor/PDCurses/.gitignore +0 -47
  16. data/vendor/PDCurses/.travis.yml +0 -49
  17. data/vendor/PDCurses/CMakeLists.txt +0 -68
  18. data/vendor/PDCurses/HISTORY.md +0 -2036
  19. data/vendor/PDCurses/IMPLEMNT.md +0 -327
  20. data/vendor/PDCurses/Makefile +0 -27
  21. data/vendor/PDCurses/README.md +0 -77
  22. data/vendor/PDCurses/acs_defs.h +0 -265
  23. data/vendor/PDCurses/appveyor.yml +0 -218
  24. data/vendor/PDCurses/cmake/README.md +0 -71
  25. data/vendor/PDCurses/cmake/build_dependencies.cmake +0 -178
  26. data/vendor/PDCurses/cmake/build_options.cmake +0 -25
  27. data/vendor/PDCurses/cmake/dll_version.cmake +0 -26
  28. data/vendor/PDCurses/cmake/gen_config_header.cmake +0 -43
  29. data/vendor/PDCurses/cmake/get_version.cmake +0 -17
  30. data/vendor/PDCurses/cmake/make_uninstall.cmake +0 -19
  31. data/vendor/PDCurses/cmake/project_common.cmake +0 -121
  32. data/vendor/PDCurses/cmake/resource.in.cmake +0 -52
  33. data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +0 -83
  34. data/vendor/PDCurses/cmake/target_arch.cmake +0 -36
  35. data/vendor/PDCurses/cmake/version.in.cmake +0 -73
  36. data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +0 -96
  37. data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +0 -106
  38. data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +0 -105
  39. data/vendor/PDCurses/curses.h +0 -1846
  40. data/vendor/PDCurses/curspriv.h +0 -134
  41. data/vendor/PDCurses/demos/README.md +0 -25
  42. data/vendor/PDCurses/demos/firework.c +0 -144
  43. data/vendor/PDCurses/demos/newtest.c +0 -581
  44. data/vendor/PDCurses/demos/ozdemo.c +0 -447
  45. data/vendor/PDCurses/demos/ptest.c +0 -283
  46. data/vendor/PDCurses/demos/rain.c +0 -157
  47. data/vendor/PDCurses/demos/testcurs.c +0 -1607
  48. data/vendor/PDCurses/demos/tui.c +0 -1048
  49. data/vendor/PDCurses/demos/tui.h +0 -65
  50. data/vendor/PDCurses/demos/tuidemo.c +0 -233
  51. data/vendor/PDCurses/demos/version.c +0 -61
  52. data/vendor/PDCurses/demos/worm.c +0 -432
  53. data/vendor/PDCurses/demos/xmas.c +0 -955
  54. data/vendor/PDCurses/dos/CMakeLists.txt +0 -47
  55. data/vendor/PDCurses/dos/Makefile +0 -105
  56. data/vendor/PDCurses/dos/Makefile.bcc +0 -83
  57. data/vendor/PDCurses/dos/Makefile.dmc +0 -257
  58. data/vendor/PDCurses/dos/Makefile.msc +0 -113
  59. data/vendor/PDCurses/dos/Makefile.wcc +0 -107
  60. data/vendor/PDCurses/dos/README.md +0 -51
  61. data/vendor/PDCurses/dos/bccdos.lrf +0 -9
  62. data/vendor/PDCurses/dos/mscdos.lrf +0 -50
  63. data/vendor/PDCurses/dos/pdcclip.c +0 -132
  64. data/vendor/PDCurses/dos/pdcdisp.c +0 -135
  65. data/vendor/PDCurses/dos/pdcdos.h +0 -194
  66. data/vendor/PDCurses/dos/pdcgetsc.c +0 -98
  67. data/vendor/PDCurses/dos/pdckbd.c +0 -513
  68. data/vendor/PDCurses/dos/pdcscrn.c +0 -785
  69. data/vendor/PDCurses/dos/pdcsetsc.c +0 -101
  70. data/vendor/PDCurses/dos/pdcutil.c +0 -212
  71. data/vendor/PDCurses/libobjs.mif +0 -26
  72. data/vendor/PDCurses/makedist.mif +0 -20
  73. data/vendor/PDCurses/man/Makefile +0 -37
  74. data/vendor/PDCurses/man/README.md +0 -21
  75. data/vendor/PDCurses/man/intro.md +0 -361
  76. data/vendor/PDCurses/man/manext.c +0 -119
  77. data/vendor/PDCurses/man/sdl.md +0 -152
  78. data/vendor/PDCurses/man/sdl2.md +0 -58
  79. data/vendor/PDCurses/man/x11.md +0 -407
  80. data/vendor/PDCurses/ncurses/CMakeLists.txt +0 -66
  81. data/vendor/PDCurses/ncurses/README.md +0 -26
  82. data/vendor/PDCurses/ncurses/makefile +0 -29
  83. data/vendor/PDCurses/os2/CMakeLists.txt +0 -41
  84. data/vendor/PDCurses/os2/Makefile +0 -132
  85. data/vendor/PDCurses/os2/Makefile.bcc +0 -90
  86. data/vendor/PDCurses/os2/Makefile.wcc +0 -43
  87. data/vendor/PDCurses/os2/README.md +0 -43
  88. data/vendor/PDCurses/os2/iccos2.lrf +0 -50
  89. data/vendor/PDCurses/os2/iccos2.mak +0 -256
  90. data/vendor/PDCurses/os2/pdcclip.c +0 -188
  91. data/vendor/PDCurses/os2/pdcdisp.c +0 -93
  92. data/vendor/PDCurses/os2/pdcgetsc.c +0 -89
  93. data/vendor/PDCurses/os2/pdckbd.c +0 -521
  94. data/vendor/PDCurses/os2/pdcos2.h +0 -55
  95. data/vendor/PDCurses/os2/pdcscrn.c +0 -449
  96. data/vendor/PDCurses/os2/pdcsetsc.c +0 -112
  97. data/vendor/PDCurses/os2/pdcutil.c +0 -52
  98. data/vendor/PDCurses/panel.h +0 -56
  99. data/vendor/PDCurses/pdcurses/README.md +0 -25
  100. data/vendor/PDCurses/pdcurses/addch.c +0 -693
  101. data/vendor/PDCurses/pdcurses/addchstr.c +0 -245
  102. data/vendor/PDCurses/pdcurses/addstr.c +0 -240
  103. data/vendor/PDCurses/pdcurses/attr.c +0 -359
  104. data/vendor/PDCurses/pdcurses/beep.c +0 -68
  105. data/vendor/PDCurses/pdcurses/bkgd.c +0 -223
  106. data/vendor/PDCurses/pdcurses/border.c +0 -411
  107. data/vendor/PDCurses/pdcurses/clear.c +0 -159
  108. data/vendor/PDCurses/pdcurses/color.c +0 -298
  109. data/vendor/PDCurses/pdcurses/debug.c +0 -109
  110. data/vendor/PDCurses/pdcurses/delch.c +0 -96
  111. data/vendor/PDCurses/pdcurses/deleteln.c +0 -211
  112. data/vendor/PDCurses/pdcurses/deprec.c +0 -27
  113. data/vendor/PDCurses/pdcurses/getch.c +0 -417
  114. data/vendor/PDCurses/pdcurses/getstr.c +0 -474
  115. data/vendor/PDCurses/pdcurses/getyx.c +0 -139
  116. data/vendor/PDCurses/pdcurses/inch.c +0 -127
  117. data/vendor/PDCurses/pdcurses/inchstr.c +0 -214
  118. data/vendor/PDCurses/pdcurses/initscr.c +0 -367
  119. data/vendor/PDCurses/pdcurses/inopts.c +0 -324
  120. data/vendor/PDCurses/pdcurses/insch.c +0 -271
  121. data/vendor/PDCurses/pdcurses/insstr.c +0 -264
  122. data/vendor/PDCurses/pdcurses/instr.c +0 -246
  123. data/vendor/PDCurses/pdcurses/kernel.c +0 -259
  124. data/vendor/PDCurses/pdcurses/keyname.c +0 -157
  125. data/vendor/PDCurses/pdcurses/mouse.c +0 -438
  126. data/vendor/PDCurses/pdcurses/move.c +0 -57
  127. data/vendor/PDCurses/pdcurses/outopts.c +0 -159
  128. data/vendor/PDCurses/pdcurses/overlay.c +0 -214
  129. data/vendor/PDCurses/pdcurses/pad.c +0 -260
  130. data/vendor/PDCurses/pdcurses/panel.c +0 -633
  131. data/vendor/PDCurses/pdcurses/printw.c +0 -126
  132. data/vendor/PDCurses/pdcurses/refresh.c +0 -279
  133. data/vendor/PDCurses/pdcurses/scanw.c +0 -578
  134. data/vendor/PDCurses/pdcurses/scr_dump.c +0 -213
  135. data/vendor/PDCurses/pdcurses/scroll.c +0 -101
  136. data/vendor/PDCurses/pdcurses/slk.c +0 -591
  137. data/vendor/PDCurses/pdcurses/termattr.c +0 -182
  138. data/vendor/PDCurses/pdcurses/terminfo.c +0 -217
  139. data/vendor/PDCurses/pdcurses/touch.c +0 -163
  140. data/vendor/PDCurses/pdcurses/util.c +0 -312
  141. data/vendor/PDCurses/pdcurses/window.c +0 -569
  142. data/vendor/PDCurses/sdl1/Makefile +0 -129
  143. data/vendor/PDCurses/sdl1/Makefile.mng +0 -110
  144. data/vendor/PDCurses/sdl1/README.md +0 -31
  145. data/vendor/PDCurses/sdl1/deffont.h +0 -385
  146. data/vendor/PDCurses/sdl1/deficon.h +0 -23
  147. data/vendor/PDCurses/sdl1/pdcclip.c +0 -131
  148. data/vendor/PDCurses/sdl1/pdcdisp.c +0 -373
  149. data/vendor/PDCurses/sdl1/pdcgetsc.c +0 -30
  150. data/vendor/PDCurses/sdl1/pdckbd.c +0 -405
  151. data/vendor/PDCurses/sdl1/pdcscrn.c +0 -414
  152. data/vendor/PDCurses/sdl1/pdcsdl.h +0 -31
  153. data/vendor/PDCurses/sdl1/pdcsetsc.c +0 -64
  154. data/vendor/PDCurses/sdl1/pdcutil.c +0 -40
  155. data/vendor/PDCurses/sdl1/sdltest.c +0 -79
  156. data/vendor/PDCurses/sdl2/CMakeLists.txt +0 -76
  157. data/vendor/PDCurses/sdl2/Makefile +0 -135
  158. data/vendor/PDCurses/sdl2/Makefile.vc +0 -164
  159. data/vendor/PDCurses/sdl2/README.md +0 -34
  160. data/vendor/PDCurses/sdl2/deffont.h +0 -385
  161. data/vendor/PDCurses/sdl2/deficon.h +0 -23
  162. data/vendor/PDCurses/sdl2/pdcclip.c +0 -93
  163. data/vendor/PDCurses/sdl2/pdcdisp.c +0 -534
  164. data/vendor/PDCurses/sdl2/pdcgetsc.c +0 -30
  165. data/vendor/PDCurses/sdl2/pdckbd.c +0 -480
  166. data/vendor/PDCurses/sdl2/pdcscrn.c +0 -443
  167. data/vendor/PDCurses/sdl2/pdcsdl.h +0 -33
  168. data/vendor/PDCurses/sdl2/pdcsetsc.c +0 -67
  169. data/vendor/PDCurses/sdl2/pdcutil.c +0 -39
  170. data/vendor/PDCurses/sdl2/sdltest.c +0 -81
  171. data/vendor/PDCurses/term.h +0 -48
  172. data/vendor/PDCurses/version.mif +0 -7
  173. data/vendor/PDCurses/vt/CMakeLists.txt +0 -28
  174. data/vendor/PDCurses/vt/Makefile +0 -135
  175. data/vendor/PDCurses/vt/Makefile.bcc +0 -111
  176. data/vendor/PDCurses/vt/Makefile.dmc +0 -258
  177. data/vendor/PDCurses/vt/Makefile.vc +0 -144
  178. data/vendor/PDCurses/vt/Makefile.wcc +0 -107
  179. data/vendor/PDCurses/vt/README.md +0 -64
  180. data/vendor/PDCurses/vt/pdcclip.c +0 -20
  181. data/vendor/PDCurses/vt/pdcdisp.c +0 -284
  182. data/vendor/PDCurses/vt/pdcgetsc.c +0 -27
  183. data/vendor/PDCurses/vt/pdckbd.c +0 -394
  184. data/vendor/PDCurses/vt/pdcscrn.c +0 -434
  185. data/vendor/PDCurses/vt/pdcsetsc.c +0 -45
  186. data/vendor/PDCurses/vt/pdcutil.c +0 -43
  187. data/vendor/PDCurses/vt/pdcvt.h +0 -16
  188. data/vendor/PDCurses/watcom.mif +0 -68
  189. data/vendor/PDCurses/wincon/CMakeLists.txt +0 -27
  190. data/vendor/PDCurses/wincon/Makefile.bcc +0 -88
  191. data/vendor/PDCurses/wincon/Makefile.dmc +0 -256
  192. data/vendor/PDCurses/wincon/Makefile.lcc +0 -273
  193. data/vendor/PDCurses/wincon/Makefile.mng +0 -176
  194. data/vendor/PDCurses/wincon/Makefile.vc +0 -144
  195. data/vendor/PDCurses/wincon/Makefile.wcc +0 -51
  196. data/vendor/PDCurses/wincon/README.md +0 -85
  197. data/vendor/PDCurses/wincon/pdcclip.c +0 -174
  198. data/vendor/PDCurses/wincon/pdcdisp.c +0 -143
  199. data/vendor/PDCurses/wincon/pdcgetsc.c +0 -55
  200. data/vendor/PDCurses/wincon/pdckbd.c +0 -786
  201. data/vendor/PDCurses/wincon/pdcscrn.c +0 -717
  202. data/vendor/PDCurses/wincon/pdcsetsc.c +0 -91
  203. data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
  204. data/vendor/PDCurses/wincon/pdcurses.rc +0 -28
  205. data/vendor/PDCurses/wincon/pdcutil.c +0 -41
  206. data/vendor/PDCurses/wincon/pdcwin.h +0 -31
  207. data/vendor/PDCurses/wingui/CMakeLists.txt +0 -27
  208. data/vendor/PDCurses/wingui/Makefile.bcc +0 -85
  209. data/vendor/PDCurses/wingui/Makefile.dmc +0 -259
  210. data/vendor/PDCurses/wingui/Makefile.lcc +0 -273
  211. data/vendor/PDCurses/wingui/Makefile.mng +0 -171
  212. data/vendor/PDCurses/wingui/Makefile.vc +0 -144
  213. data/vendor/PDCurses/wingui/Makefile.wcc +0 -51
  214. data/vendor/PDCurses/wingui/README.md +0 -93
  215. data/vendor/PDCurses/wingui/pdcclip.c +0 -174
  216. data/vendor/PDCurses/wingui/pdcdisp.c +0 -718
  217. data/vendor/PDCurses/wingui/pdcgetsc.c +0 -30
  218. data/vendor/PDCurses/wingui/pdckbd.c +0 -143
  219. data/vendor/PDCurses/wingui/pdcscrn.c +0 -2797
  220. data/vendor/PDCurses/wingui/pdcsetsc.c +0 -89
  221. data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
  222. data/vendor/PDCurses/wingui/pdcurses.rc +0 -28
  223. data/vendor/PDCurses/wingui/pdcutil.c +0 -61
  224. data/vendor/PDCurses/wingui/pdcwin.h +0 -122
  225. data/vendor/PDCurses/x11/Makefile.in +0 -754
  226. data/vendor/PDCurses/x11/PDCurses.spec +0 -82
  227. data/vendor/PDCurses/x11/README.md +0 -62
  228. data/vendor/PDCurses/x11/ScrollBox.c +0 -319
  229. data/vendor/PDCurses/x11/ScrollBox.h +0 -51
  230. data/vendor/PDCurses/x11/ScrollBoxP.h +0 -70
  231. data/vendor/PDCurses/x11/aclocal.m4 +0 -994
  232. data/vendor/PDCurses/x11/big_icon.xbm +0 -46
  233. data/vendor/PDCurses/x11/compose.h +0 -201
  234. data/vendor/PDCurses/x11/config.guess +0 -1500
  235. data/vendor/PDCurses/x11/config.h.in +0 -100
  236. data/vendor/PDCurses/x11/config.sub +0 -1616
  237. data/vendor/PDCurses/x11/configure +0 -6700
  238. data/vendor/PDCurses/x11/configure.ac +0 -295
  239. data/vendor/PDCurses/x11/debian/changelog +0 -6
  240. data/vendor/PDCurses/x11/debian/compat +0 -1
  241. data/vendor/PDCurses/x11/debian/control +0 -11
  242. data/vendor/PDCurses/x11/debian/copyright +0 -27
  243. data/vendor/PDCurses/x11/debian/rules +0 -98
  244. data/vendor/PDCurses/x11/install-sh +0 -253
  245. data/vendor/PDCurses/x11/little_icon.xbm +0 -14
  246. data/vendor/PDCurses/x11/ncurses_cfg.h +0 -45
  247. data/vendor/PDCurses/x11/pdcclip.c +0 -173
  248. data/vendor/PDCurses/x11/pdcdisp.c +0 -85
  249. data/vendor/PDCurses/x11/pdcgetsc.c +0 -28
  250. data/vendor/PDCurses/x11/pdckbd.c +0 -104
  251. data/vendor/PDCurses/x11/pdcscrn.c +0 -258
  252. data/vendor/PDCurses/x11/pdcsetsc.c +0 -95
  253. data/vendor/PDCurses/x11/pdcutil.c +0 -52
  254. data/vendor/PDCurses/x11/pdcx11.c +0 -316
  255. data/vendor/PDCurses/x11/pdcx11.h +0 -191
  256. data/vendor/PDCurses/x11/sb.c +0 -155
  257. data/vendor/PDCurses/x11/x11.c +0 -3686
  258. data/vendor/PDCurses/x11/xcurses-config.in +0 -81
@@ -1,178 +0,0 @@
1
-
2
- IF (PDC_SDL2_DEPS_BUILD)
3
-
4
- INCLUDE(ExternalProject)
5
-
6
- IF(NOT WIN32)
7
- set(FLAGS_FOR_DYNAMIC_LINK -fPIC)
8
- ENDIF()
9
-
10
- SET(SDL2_RELEASE 2.0.8)
11
- ExternalProject_Add(sdl2_ext
12
- URL https://www.libsdl.org/release/SDL2-${SDL2_RELEASE}.zip
13
- URL_HASH "SHA256=e6a7c71154c3001e318ba7ed4b98582de72ff970aca05abc9f45f7cbdc9088cb"
14
- UPDATE_COMMAND ""
15
- DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
16
- SOURCE_DIR ${CMAKE_BINARY_DIR}/SDL2-${SDL2_RELEASE}
17
- BUILD_IN_SOURCE 0
18
- CMAKE_ARGS
19
- ${SDL_CMAKE_BUILD_OPTS}
20
- -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}
21
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
22
- -DCMAKE_C_FLAGS=${FLAGS_FOR_DYNAMIC_LINK} ${EXTERNAL_C_FLAGS}
23
- )
24
-
25
- MESSAGE(STATUS "SDL2 Installing to: ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}")
26
- SET(SDL2_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/include/SDL2)
27
- SET(SDL2_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/lib)
28
- IF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
29
- IF(WIN32)
30
- set(SDL2_LIBRARIES "SDL2maind.lib;SDL2d.lib")
31
- set(SDL2_LIBRARY "SDL2d.lib")
32
- ELSEIF(APPLE)
33
- set(SDL2_LIBRARIES "SDL2maind;SDL2d")
34
- set(SDL2_LIBRARY "SDL2d")
35
- ELSE()
36
- set(SDL2_LIBRARIES "SDL2maind;SDL2-2.0d")
37
- set(SDL2_LIBRARY "SDL2-2.0d")
38
- ENDIF()
39
- ELSE()
40
- IF(WIN32)
41
- set(SDL2_LIBRARIES "SDL2main.lib;SDL2.lib")
42
- set(SDL2_LIBRARY "SDL2.lib")
43
- ELSEIF(APPLE)
44
- set(SDL2_LIBRARIES "SDL2main;SDL2")
45
- set(SDL2_LIBRARY "SDL2")
46
- ELSE()
47
- set(SDL2_LIBRARIES "SDL2main;SDL2-2.0")
48
- set(SDL2_LIBRARY "SDL2-2.0")
49
- ENDIF()
50
- ENDIF()
51
-
52
- IF (PDC_WIDE)
53
-
54
- ExternalProject_Add(zlib_ext
55
- GIT_REPOSITORY "https://github.com/madler/zlib.git"
56
- GIT_TAG "v1.2.11"
57
- UPDATE_COMMAND ""
58
- DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
59
- SOURCE_DIR ${CMAKE_BINARY_DIR}/zlib
60
- BUILD_IN_SOURCE 1
61
- CMAKE_ARGS
62
- ${ZLIB_CMAKE_BUILD_OPTS}
63
- -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}
64
- -DCMAKE_C_FLAGS=${EXTERNAL_C_FLAGS}
65
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
66
- -DBUILD_SHARED_LIBS=${BUILD_SHARED}
67
- -DAMD64=${ZLIB_AMD64}
68
- -DASM686=${ZLIB_ASM686}
69
- )
70
-
71
- MESSAGE(STATUS "zlib Installing to: ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}")
72
- SET(ZLIB_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/include)
73
- SET(ZLIB_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/lib)
74
- IF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
75
- IF(WIN32)
76
- set(ZLIB_LIBRARY zlibd.lib)
77
- ELSE()
78
- set(ZLIB_LIBRARY z)
79
- ENDIF()
80
- ELSE()
81
- IF(WIN32)
82
- set(ZLIB_LIBRARY zlib.lib)
83
- ELSE()
84
- set(ZLIB_LIBRARY z)
85
- ENDIF()
86
- ENDIF()
87
-
88
- ExternalProject_Add(freetype2_ext
89
- GIT_REPOSITORY "https://git.savannah.gnu.org/git/freetype/freetype2.git"
90
- GIT_TAG "VER-2-8-1"
91
- UPDATE_COMMAND ""
92
- DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
93
- SOURCE_DIR ${CMAKE_BINARY_DIR}/freetype2
94
- BUILD_IN_SOURCE 0
95
- CMAKE_ARGS
96
- ${FT2_CMAKE_BUILD_OPTS}
97
- -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}
98
- -DCMAKE_C_FLAGS=${FLAGS_FOR_DYNAMIC_LINK} ${EXTERNAL_C_FLAGS}
99
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
100
- -DWITH_HarfBuzz=OFF
101
- -DWITH_BZip2=OFF
102
- -DWITH_PNG=OFF
103
- -DWITH_ZLIB=ON
104
- -DZLIB_FOUND=ON
105
- -DZLIB_LIBRARY=${ZLIB_LIBRARY}
106
- -DZLIB_INCLUDE_DIR=${ZLIB_INCLUDE_DIR}
107
- -DZLIB_LIBRARY_DIR=${ZLIB_LIBRARY_DIR}
108
- )
109
-
110
- ADD_DEPENDENCIES(freetype2_ext zlib_ext)
111
- MESSAGE(STATUS "freetype2 Installing to: ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}")
112
- SET(FT2_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/include/freetype2)
113
- SET(FT2_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/lib)
114
- IF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
115
- IF(WIN32)
116
- set(FT2_LIBRARY freetyped.lib)
117
- ELSE()
118
- set(FT2_LIBRARY freetyped)
119
- ENDIF()
120
- ELSE()
121
- IF(WIN32)
122
- set(FT2_LIBRARY freetype.lib)
123
- ELSE()
124
- set(FT2_LIBRARY freetype)
125
- ENDIF()
126
- ENDIF()
127
-
128
- SET(SDL2_TTF_RELEASE 2.0.14)
129
-
130
- ExternalProject_Add(sdl2_ttf_ext
131
- URL https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${SDL2_TTF_RELEASE}.zip
132
- URL_HASH "SHA256=ad7a7d2562c19ad2b71fa4ab2e76f9f52b3ee98096c0a7d7efbafc2617073c27"
133
- PATCH_COMMAND cmake -E copy
134
- ${CMAKE_SOURCE_DIR}/cmake/sdl2_ttf/CMakeLists.txt
135
- ${CMAKE_BINARY_DIR}/sdl2_ttf/CMakeLists.txt
136
- UPDATE_COMMAND ""
137
- DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
138
- SOURCE_DIR ${CMAKE_BINARY_DIR}/sdl2_ttf
139
- BUILD_IN_SOURCE 0
140
- CMAKE_ARGS
141
- ${SDL2_TTF_CMAKE_BUILD_OPTS}
142
- -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}
143
- -DCMAKE_C_FLAGS=${EXTERNAL_C_FLAGS}
144
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
145
- -DSDL2_TTF_RELEASE=${SDL2_TTF_RELEASE}
146
- -DZLIB_INCLUDE_DIR=${ZLIB_INCLUDE_DIR}
147
- -DZLIB_LIBRARY_DIR=${ZLIB_LIB_DIR}
148
- -DZLIB_LIBRARY=${ZLIB_LIBRARY}
149
- -DFT2_INCLUDE_DIR=${FT2_INCLUDE_DIR}
150
- -DFT2_LIBRARY_DIR=${FT2_LIBRARY_DIR}
151
- -DFT2_LIBRARY=${FT2_LIBRARY}
152
- -DSDL2_INCLUDE_DIR=${SDL2_INCLUDE_DIR}
153
- -DSDL2_LIBRARY_DIR=${SDL2_LIBRARY_DIR}
154
- -DSDL2_LIBRARY=${SDL2_LIBRARY}
155
- -DSDL2_LIBRARIES=${SDL2_LIBRARIES}
156
- )
157
-
158
- ADD_DEPENDENCIES(sdl2_ttf_ext sdl2_ext freetype2_ext)
159
- MESSAGE(STATUS "SDL2_ttf Installing to: ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}")
160
- SET(SDL2_TTF_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/include/SDL2_ttf)
161
- SET(SDL2_TTF_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE}/lib)
162
- IF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
163
- IF(WIN32)
164
- set(SDL2_TTF_LIBRARY "SDL2_ttfd.lib")
165
- ELSE()
166
- set(SDL2_TTF_LIBRARY "SDL2_ttf")
167
- ENDIF()
168
- ELSE()
169
- IF(WIN32)
170
- set(SDL2_TTF_LIBRARY "SDL2_ttf.lib")
171
- ELSE()
172
- set(SDL2_TTF_LIBRARY "SDL2_ttf")
173
- ENDIF()
174
- ENDIF()
175
-
176
- ENDIF (PDC_WIDE)
177
-
178
- ENDIF()
@@ -1,25 +0,0 @@
1
-
2
- option(PDC_BUILD_SHARED "Build dynamic libs for pdcurses" ON)
3
- option(PDC_UTF8 "Force to UTF8" OFF)
4
- option(PDC_WIDE "Wide - pulls in sdl-ttf" OFF)
5
- option(PDCDEBUG "Debug tracing" OFF)
6
- option(PDC_CHTYPE_32 "CHTYPE_32" OFF)
7
- option(PDC_CHTYPE_16 "CHTYPE_16" OFF)
8
- option(PDC_OS2_BUILD "Build OS/2 Project" OFF)
9
- option(PDC_DOS_BUILD "Build DOS Project" OFF)
10
- option(PDC_SDL2_BUILD "Build SDL2 Project" ON)
11
- option(PDC_SDL2_DEPS_BUILD "Build SDL2 and dependencies" ON)
12
-
13
- message(STATUS "PDC_BUILD_SHARED ....... ${PDC_BUILD_SHARED}")
14
- message(STATUS "PDC_UTF8 ............... ${PDC_UTF8}")
15
- message(STATUS "PDC_WIDE ............... ${PDC_WIDE}")
16
- message(STATUS "PDCDEBUG ............... ${PDCDEBUG}")
17
- message(STATUS "PDC_CHTYPE_32 .......... ${PDC_CHTYPE_32}")
18
- message(STATUS "PDC_CHTYPE_16 .......... ${PDC_CHTYPE_16}")
19
- message(STATUS "PDC_OS/2_BUILD ......... ${PDC_OS2_BUILD}")
20
- message(STATUS "PDC_DOS_BUILD .......... ${PDC_DOS_BUILD}")
21
- message(STATUS "PDC_SDL2_BUILD ......... ${PDC_SDL2_BUILD}")
22
- message(STATUS "PDC_SDL2_DEPS_BUILD .... ${PDC_SDL2_DEPS_BUILD}")
23
-
24
- # normalize a windows path
25
- file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
@@ -1,26 +0,0 @@
1
- set(PRODUCT_FILE_DESCRIPTION "Public Domain Curses ")
2
- set(PRODUCT_INTERNAL_NAME "PDCurses - ${PROJECT_NAME}")
3
- set(PRODUCT_COMPANY_COPYRIGHT "Public Domain")
4
- set(PRODUCT_NAME "Public Domain Curses Library")
5
- set(PRODUCT_ORIGINAL_FILENAME "PDCURSES.DLL")
6
- set(PRODUCT_ICON "pdcurses.ico")
7
-
8
- set(PRODUCT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
9
- set(PRODUCT_VERSION_MINOR ${PROJECT_VERSION_MINOR})
10
- set(PRODUCT_VERSION_PATCH ${PROJECT_VERSION_PATCH})
11
- set(PRODUCT_VERSION_BUILD ${PROJECT_VERSION_TWEAK})
12
-
13
- set(FILE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
14
- set(FILE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
15
- set(FILE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
16
- set(FILE_VERSION_BUILD ${PROJECT_VERSION_TWEAK})
17
-
18
- if(MSVC)
19
- set(TOOL_NAME MS)
20
- endif()
21
-
22
- set(PRODUCT_FILE_DESCRIPTION "${PRODUCT_FILE_DESCRIPTION} ${TOOL_NAME} ${TARGET_ARCH}")
23
-
24
- configure_file ( ${CMAKE_SOURCE_DIR}/cmake/version.in.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY )
25
- configure_file ( ${CMAKE_SOURCE_DIR}/cmake/resource.in.cmake ${CMAKE_CURRENT_BINARY_DIR}/resource.h @ONLY )
26
- configure_file ( ${CMAKE_SOURCE_DIR}/wincon/pdcurses.ico ${CMAKE_CURRENT_BINARY_DIR}/pdcurses.ico COPYONLY )
@@ -1,43 +0,0 @@
1
- INCLUDE(CheckFunctionExists)
2
-
3
- CHECK_FUNCTION_EXISTS(vsnprintf PDC_HAVE_VSNPRINTF)
4
- CHECK_FUNCTION_EXISTS(vsscanf PDC_HAVE_VSSCANF)
5
-
6
- IF(PDC_HAVE_VSNPRINTF)
7
- ADD_DEFINITIONS(-DHAVE_VSNPRINTF)
8
- ENDIF(PDC_HAVE_VSNPRINTF)
9
- IF(PDC_HAVE_VSSCANF)
10
- ADD_DEFINITIONS(-DHAVE_VSSCANF)
11
- ENDIF(PDC_HAVE_VSSCANF)
12
-
13
- if (PDC_BUILD_SHARED)
14
- if(MSVC)
15
- add_definitions(-DPDC_DLL_BUILD)
16
- endif()
17
- endif (PDC_BUILD_SHARED)
18
- IF (PDC_WIDE)
19
- ADD_DEFINITIONS(-DPDC_WIDE)
20
- ENDIF(PDC_WIDE)
21
- IF (PDC_UTF8)
22
- ADD_DEFINITIONS(-DPDC_FORCE_UTF8)
23
- ENDIF (PDC_UTF8)
24
- IF (PDC_CHTYPE_16)
25
- ADD_DEFINITIONS(-DCHTYPE_16)
26
- ENDIF (PDC_CHTYPE_16)
27
- IF (PDC_CHTYPE_32)
28
- ADD_DEFINITIONS(-DCHTYPE_32)
29
- ENDIF (PDC_CHTYPE_32)
30
- IF(PDCDEBUG)
31
- ADD_DEFINITIONS(-DPDCDEBUG)
32
- ENDIF(PDCDEBUG)
33
-
34
- IF ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
35
- ADD_DEFINITIONS(-D_DEBUG)
36
- ENDIF ()
37
-
38
- #################################
39
- # Target Arch #
40
- #################################
41
- include (target_arch)
42
- get_target_arch(TARGET_ARCH)
43
- message(STATUS "Target ................. ${TARGET_ARCH}")
@@ -1,17 +0,0 @@
1
-
2
- file(READ ${CMAKE_SOURCE_DIR}/curses.h _CURSES_H_CONTENTS)
3
-
4
- string(REGEX MATCH "#define PDC_VER_MAJOR ([a-zA-Z0-9_]+)" PDC_VER_MAJOR "${_CURSES_H_CONTENTS}")
5
- string(REPLACE "#define PDC_VER_MAJOR " "" PDC_VER_MAJOR "${PDC_VER_MAJOR}")
6
-
7
- string(REGEX MATCH "#define PDC_VER_MINOR ([a-zA-Z0-9_]+)" PDC_VER_MINOR "${_CURSES_H_CONTENTS}")
8
- string(REPLACE "#define PDC_VER_MINOR " "" PDC_VER_MINOR "${PDC_VER_MINOR}")
9
-
10
- string(REGEX MATCH "#define PDC_VER_CHANGE ([a-zA-Z0-9_]+)" PDC_VER_CHANGE "${_CURSES_H_CONTENTS}")
11
- string(REPLACE "#define PDC_VER_CHANGE " "" PDC_VER_CHANGE "${PDC_VER_CHANGE}")
12
-
13
- if(BUILD_NUMBER)
14
- set(CURSES_VERSION ${PDC_VER_MAJOR}.${PDC_VER_MINOR}.${PDC_VER_CHANGE}.${BUILD_NUMBER})
15
- else()
16
- set(CURSES_VERSION ${PDC_VER_MAJOR}.${PDC_VER_MINOR}.${PDC_VER_CHANGE}.0)
17
- endif()
@@ -1,19 +0,0 @@
1
-
2
- if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt")
3
- message(FATAL_ERROR "Cannot find install manifest: ${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt")
4
- endif()
5
-
6
- file(READ "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt" files)
7
- string(REGEX REPLACE "[\r\n]" ";" files "${files}")
8
-
9
- foreach(file ${files})
10
- message(STATUS "Uninstalling ${file}")
11
- if(EXISTS "${file}")
12
- file(REMOVE ${file})
13
- if (EXISTS "${file}")
14
- message(FATAL_ERROR "Problem when removing ${file}, please check your permissions")
15
- endif()
16
- else()
17
- message(STATUS "File ${file} does not exist.")
18
- endif()
19
- endforeach()
@@ -1,121 +0,0 @@
1
- message(STATUS "**** ${PROJECT_NAME} ****")
2
-
3
- set(PDCURSES_SRCDIR ${CMAKE_SOURCE_DIR})
4
- set(PDCURSES_DIST ${CMAKE_INSTALL_PREFIX}/${CMAKE_BUILD_TYPE})
5
-
6
- set(osdir ${PDCURSES_SRCDIR}/${PROJECT_NAME})
7
- set(demodir ${PDCURSES_SRCDIR}/demos)
8
-
9
- set(pdc_src_files
10
- ${osdir}/pdcclip.c
11
- ${osdir}/pdcdisp.c
12
- ${osdir}/pdcgetsc.c
13
- ${osdir}/pdckbd.c
14
- ${osdir}/pdcscrn.c
15
- ${osdir}/pdcsetsc.c
16
- ${osdir}/pdcutil.c
17
- )
18
-
19
- include_directories (..)
20
- include_directories (${osdir})
21
-
22
-
23
- if(WIN32 AND NOT WATCOM)
24
- include(dll_version)
25
- list(APPEND pdc_src_files ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
26
-
27
- add_definitions(-D_WIN32 -D_CRT_SECURE_NO_WARNINGS)
28
-
29
- if(${TARGET_ARCH} STREQUAL "ARM" OR ${TARGET_ARCH} STREQUAL "ARM64")
30
- add_definitions(-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1)
31
- endif()
32
-
33
- set(EXTRA_LIBS gdi32.lib winspool.lib shell32.lib ole32.lib comdlg32.lib advapi32.lib)
34
- set(SDL2_DEP_LIBRARIES version.lib winmm.lib imm32.lib)
35
- elseif(APPLE)
36
- set(EXTRA_LIBS "")
37
- set(SDL2_DEP_LIBRARIES "dl")
38
- else()
39
- set(EXTRA_LIBS "")
40
- set(SDL2_DEP_LIBRARIES "dl")
41
- endif()
42
-
43
- if (APPLE)
44
- find_library(COREVIDEO CoreVideo)
45
- list(APPEND EXTRA_LIBS ${COREVIDEO})
46
-
47
- find_library(COCOA_LIBRARY Cocoa)
48
- list(APPEND EXTRA_LIBS ${COCOA_LIBRARY})
49
-
50
- find_library(IOKIT IOKit)
51
- list(APPEND EXTRA_LIBS ${IOKIT})
52
-
53
- find_library(FORCEFEEDBACK ForceFeedback)
54
- list(APPEND EXTRA_LIBS ${FORCEFEEDBACK})
55
-
56
- find_library(CARBON_LIBRARY Carbon)
57
- list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
58
-
59
- find_library(COREAUDIO CoreAudio)
60
- list(APPEND EXTRA_LIBS ${COREAUDIO})
61
-
62
- find_library(AUDIOTOOLBOX AudioToolbox)
63
- list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
64
-
65
- include(CheckLibraryExists)
66
- check_library_exists(iconv iconv_open "" HAVE_LIBICONV)
67
- if(HAVE_LIBICONV)
68
- list(APPEND EXTRA_LIBS iconv)
69
- endif()
70
- endif()
71
-
72
- if(PDC_BUILD_SHARED)
73
- set(PDCURSE_PROJ ${PROJECT_NAME}_pdcurses)
74
- add_library(${PDCURSE_PROJ} SHARED ${pdc_src_files} ${pdcurses_src_files})
75
-
76
- if(APPLE)
77
- set_target_properties(${PDCURSE_PROJ} PROPERTIES MACOSX_RPATH 1)
78
- endif()
79
-
80
- if(${PROJECT_NAME} STREQUAL "sdl2")
81
- if(PDC_WIDE)
82
- target_link_libraries(${PDCURSE_PROJ} ${EXTRA_LIBS}
83
- ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARY} ${FT2_LIBRARY} ${ZLIB_LIBRARY}
84
- ${SDL2_DEP_LIBRARIES})
85
- else()
86
- target_link_libraries(${PDCURSE_PROJ} ${EXTRA_LIBS}
87
- ${SDL2_LIBRARIES} ${SDL2_DEP_LIBRARIES})
88
- endif()
89
- else()
90
- target_link_libraries(${PDCURSE_PROJ} ${EXTRA_LIBS})
91
- endif()
92
-
93
- install(TARGETS ${PDCURSE_PROJ}
94
- ARCHIVE DESTINATION ${PDCURSES_DIST}/lib/${PROJECT_NAME}
95
- LIBRARY DESTINATION ${PDCURSES_DIST}/lib/${PROJECT_NAME}
96
- RUNTIME DESTINATION ${PDCURSES_DIST}/bin/${PROJECT_NAME} COMPONENT applications)
97
- set_target_properties(${PDCURSE_PROJ} PROPERTIES OUTPUT_NAME "pdcurses")
98
- else()
99
- set(PDCURSE_PROJ ${PROJECT_NAME}_pdcursesstatic)
100
- add_library (${PDCURSE_PROJ} STATIC ${pdc_src_files} ${pdcurses_src_files})
101
- install (TARGETS ${PDCURSE_PROJ} ARCHIVE DESTINATION ${PDCURSES_DIST}/lib/${PROJECT_NAME} COMPONENT applications)
102
- set_target_properties(${PDCURSE_PROJ} PROPERTIES OUTPUT_NAME "pdcursesstatic")
103
- endif()
104
-
105
- macro (demo_app dir targ)
106
- set(bin_name "${PROJECT_NAME}_${targ}")
107
- if(${targ} STREQUAL "tuidemo")
108
- set(src_files ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/tuidemo.c ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/tui.c)
109
- else()
110
- set(src_files ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${targ}.c)
111
- endif()
112
-
113
- add_executable(${bin_name} ${src_files})
114
-
115
- target_link_libraries(${bin_name} ${PDCURSE_PROJ} ${EXTRA_LIBS})
116
-
117
- add_dependencies(${bin_name} ${PDCURSE_PROJ})
118
- set_target_properties(${bin_name} PROPERTIES OUTPUT_NAME ${targ})
119
-
120
- install(TARGETS ${bin_name} RUNTIME DESTINATION ${PDCURSES_DIST}/bin/${PROJECT_NAME} COMPONENT applications)
121
- endmacro ()
@@ -1,52 +0,0 @@
1
- //{{NO_DEPENDENCIES}}
2
- // Used by version.rc
3
- //
4
- #define PRODUCT_VERSION_MAJOR @PRODUCT_VERSION_MAJOR@
5
- #define PRODUCT_VERSION_MINOR @PRODUCT_VERSION_MINOR@
6
- #define PRODUCT_VERSION_PATCH @PRODUCT_VERSION_PATCH@
7
- #define PRODUCT_VERSION_BUILD @PRODUCT_VERSION_BUILD@
8
-
9
- #define FILE_VERSION_MAJOR @FILE_VERSION_MAJOR@
10
- #define FILE_VERSION_MINOR @FILE_VERSION_MINOR@
11
- #define FILE_VERSION_PATCH @FILE_VERSION_PATCH@
12
- #define FILE_VERSION_BUILD @FILE_VERSION_BUILD@
13
-
14
- #ifndef __TO_STRING
15
- #define __TO_STRING_IMPL(x) #x
16
- #define __TO_STRING(x) __TO_STRING_IMPL(x)
17
- #endif
18
-
19
- #define PRODUCT_VERSION_MAJOR_MINOR_STR __TO_STRING(PRODUCT_VERSION_MAJOR) "." __TO_STRING(PRODUCT_VERSION_MINOR)
20
- #define PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR PRODUCT_VERSION_MAJOR_MINOR_STR "." __TO_STRING(PRODUCT_VERSION_PATCH)
21
- #define PRODUCT_VERSION_FULL_STR PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(PRODUCT_VERSION_BUILD)
22
- #define PRODUCT_VERSION_RESOURCE PRODUCT_VERSION_MAJOR,PRODUCT_VERSION_MINOR,PRODUCT_VERSION_PATCH,PRODUCT_VERSION_BUILD
23
- #define PRODUCT_VERSION_RESOURCE_STR PRODUCT_VERSION_FULL_STR "\0"
24
-
25
- #define FILE_VERSION_MAJOR_MINOR_STR __TO_STRING(FILE_VERSION_MAJOR) "." __TO_STRING(FILE_VERSION_MINOR)
26
- #define FILE_VERSION_MAJOR_MINOR_PATCH_STR FILE_VERSION_MAJOR_MINOR_STR "." __TO_STRING(FILE_VERSION_PATCH)
27
- #define FILE_VERSION_FULL_STR FILE_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(FILE_VERSION_BUILD)
28
- #define FILE_VERSION_RESOURCE FILE_VERSION_MAJOR,FILE_VERSION_MINOR,FILE_VERSION_PATCH,FILE_VERSION_BUILD
29
- #define FILE_VERSION_RESOURCE_STR FILE_VERSION_FULL_STR "\0"
30
-
31
-
32
- #define PRODUCT_FILE_DESCRIPTION "@PRODUCT_FILE_DESCRIPTION@\0"
33
- #define PRODUCT_INTERNAL_NAME "@PRODUCT_INTERNAL_NAME@\0"
34
- #define PRODUCT_COMPANY_COPYRIGHT "@PRODUCT_COMPANY_COPYRIGHT@\0"
35
- #define PRODUCT_ORIGINAL_FILENAME "@PRODUCT_ORIGINAL_FILENAME@\0"
36
- #define PRODUCT_NAME "@PRODUCT_NAME@\0"
37
- #define PRODUCT_ICON "@PRODUCT_ICON@"
38
-
39
- #define VS_VERSION_INFO 1
40
- #define IDC_STATIC -1
41
-
42
-
43
- // Next default values for new objects
44
- //
45
- #ifdef APSTUDIO_INVOKED
46
- #ifndef APSTUDIO_READONLY_SYMBOLS
47
- #define _APS_NEXT_RESOURCE_VALUE 101
48
- #define _APS_NEXT_COMMAND_VALUE 40001
49
- #define _APS_NEXT_CONTROL_VALUE 1000
50
- #define _APS_NEXT_SYMED_VALUE 101
51
- #endif
52
- #endif
@@ -1,83 +0,0 @@
1
- CMAKE_MINIMUM_REQUIRED (VERSION 3.11)
2
-
3
- if(NOT CMAKE_BUILD_TYPE)
4
- set(CMAKE_BUILD_TYPE "MinSizeRel" CACHE STRING "Choose the type of build, options are: Debug, Release, or MinSizeRel." FORCE)
5
- message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to MinSizeRel.")
6
- endif()
7
-
8
- PROJECT (sdl2_ttf VERSION ${SDL2_TTF_RELEASE} LANGUAGES C)
9
-
10
- if(MSVC)
11
- SET(CMAKE_DEBUG_POSTFIX d)
12
- endif()
13
-
14
- INCLUDE_DIRECTORIES(
15
- ${ZLIB_INCLUDE_DIR}
16
- ${FT2_INCLUDE_DIR}
17
- ${SDL2_INCLUDE_DIR})
18
-
19
- LINK_DIRECTORIES(
20
- ${ZLIB_LIBRARY_DIR}
21
- ${FT2_LIBRARY_DIR}
22
- ${SDL2_LIBRARY_DIR})
23
-
24
-
25
- INSTALL (FILES SDL_ttf.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/SDL2_ttf)
26
-
27
- set(SDL2_ttf_source_files SDL_ttf.c)
28
-
29
- IF(WIN32)
30
- LIST(INSERT SDL2_ttf_source_files 0 Version.rc)
31
- ENDIF()
32
-
33
- if (APPLE)
34
- find_library(COREVIDEO CoreVideo)
35
- list(APPEND EXTRA_LIBS ${COREVIDEO})
36
-
37
- find_library(COCOA_LIBRARY Cocoa)
38
- list(APPEND EXTRA_LIBS ${COCOA_LIBRARY})
39
-
40
- find_library(IOKIT IOKit)
41
- list(APPEND EXTRA_LIBS ${IOKIT})
42
-
43
- find_library(FORCEFEEDBACK ForceFeedback)
44
- list(APPEND EXTRA_LIBS ${FORCEFEEDBACK})
45
-
46
- find_library(CARBON_LIBRARY Carbon)
47
- list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
48
-
49
- find_library(COREAUDIO CoreAudio)
50
- list(APPEND EXTRA_LIBS ${COREAUDIO})
51
-
52
- find_library(AUDIOTOOLBOX AudioToolbox)
53
- list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
54
-
55
- include(CheckLibraryExists)
56
- check_library_exists(iconv iconv_open "" HAVE_LIBICONV)
57
- if(HAVE_LIBICONV)
58
- list(APPEND EXTRA_LIBS iconv)
59
- endif()
60
- endif()
61
-
62
- ADD_LIBRARY(SDL2_ttf-static STATIC ${SDL2_ttf_source_files} SDL_ttf.h)
63
- INSTALL (TARGETS SDL2_ttf-static
64
- ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
65
- COMPONENT libraries)
66
-
67
- ADD_LIBRARY(SDL2_ttf SHARED ${SDL2_ttf_source_files} SDL_ttf.h)
68
- TARGET_LINK_LIBRARIES (SDL2_ttf ${SDL2_LIBRARY} ${FT2_LIBRARY} ${ZLIB_LIBRARY} ${EXTRA_LIBS})
69
- INSTALL (TARGETS SDL2_ttf
70
- ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
71
- RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
72
- LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
73
- COMPONENT libraries)
74
-
75
- ADD_EXECUTABLE (showfont ${CMAKE_SOURCE_DIR}/showfont.c)
76
- TARGET_LINK_LIBRARIES (showfont SDL2_ttf ${SDL2_LIBRARIES} ${FT2_LIBRARY} ${ZLIB_LIBRARY} ${EXTRA_LIBS})
77
- INSTALL (TARGETS showfont RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT applications)
78
-
79
- ADD_EXECUTABLE (glfont ${CMAKE_SOURCE_DIR}/glfont.c)
80
- TARGET_LINK_LIBRARIES (glfont SDL2_ttf ${SDL2_LIBRARIES} ${FT2_LIBRARY} ${ZLIB_LIBRARY} ${EXTRA_LIBS})
81
- INSTALL (TARGETS glfont RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT applications)
82
-
83
- set(CPACK_COMPONENTS_ALL libraries applications)
@@ -1,36 +0,0 @@
1
-
2
- set(TARGET_ARCH_DETECT_CODE "
3
-
4
- #if defined(_M_ARM) || defined(__arm__)
5
- #error cmake_arch ARM
6
- #elif defined(_M_ARM64) || defined(__aarch64__)
7
- #error cmake_arch ARM64
8
- #elif defined(_M_AMD64) || defined(__x86_64__)
9
- #error cmake_arch x86_64
10
- #elif defined(_M_X64)
11
- #error cmake_arch x64
12
- #elif defined(_M_IX86) || defined(__i386__)
13
- #error cmake_arch x86
14
- #else
15
- #error cmake_arch unknown
16
- #endif
17
- ")
18
-
19
- function(get_target_arch out)
20
-
21
- file(WRITE
22
- "${CMAKE_BINARY_DIR}/target_arch_detect.c"
23
- "${TARGET_ARCH_DETECT_CODE}")
24
-
25
- try_run(
26
- run_result_unused compile_result_unused
27
- "${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}/target_arch_detect.c"
28
- COMPILE_OUTPUT_VARIABLE TARGET_ARCH)
29
-
30
- # parse compiler output
31
- string(REGEX MATCH "cmake_arch ([a-zA-Z0-9_]+)" TARGET_ARCH "${TARGET_ARCH}")
32
- string(REPLACE "cmake_arch " "" TARGET_ARCH "${TARGET_ARCH}")
33
-
34
- set(${out} "${TARGET_ARCH}" PARENT_SCOPE)
35
-
36
- endfunction()
@@ -1,73 +0,0 @@
1
- // Microsoft Visual C++ generated resource script.
2
- //
3
- #include <windows.h>
4
- #include "resource.h"
5
- /////////////////////////////////////////////////////////////////////////////
6
- // English (United States) resources
7
-
8
- #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
9
- LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
10
- #pragma code_page(1252)
11
-
12
- /////////////////////////////////////////////////////////////////////////////
13
- //
14
- // Version
15
- //
16
-
17
- VS_VERSION_INFO VERSIONINFO
18
- FILEVERSION FILE_VERSION_RESOURCE
19
- PRODUCTVERSION PRODUCT_VERSION_RESOURCE
20
- FILEFLAGSMASK 0x3fL
21
- #ifdef _DEBUG
22
- FILEFLAGS 0x1L
23
- #else
24
- FILEFLAGS 0x0L
25
- #endif
26
- FILEOS 0x0L
27
- FILETYPE 0x2L
28
- FILESUBTYPE 0x0L
29
- BEGIN
30
- BLOCK "StringFileInfo"
31
- BEGIN
32
- BLOCK "040004b0"
33
- BEGIN
34
- VALUE "FileDescription", PRODUCT_FILE_DESCRIPTION
35
- VALUE "FileVersion", FILE_VERSION_RESOURCE_STR
36
- VALUE "InternalName", PRODUCT_INTERNAL_NAME
37
- VALUE "LegalCopyright", PRODUCT_COMPANY_COPYRIGHT
38
- VALUE "OriginalFilename", PRODUCT_ORIGINAL_FILENAME
39
- VALUE "ProductName", PRODUCT_NAME
40
- VALUE "ProductVersion", PRODUCT_VERSION_RESOURCE_STR
41
- END
42
- END
43
- BLOCK "VarFileInfo"
44
- BEGIN
45
- VALUE "Translation", 0x400, 1200, 0x409, 1200
46
- END
47
- END
48
-
49
-
50
- /////////////////////////////////////////////////////////////////////////////
51
- //
52
- // Icon
53
- //
54
-
55
- // Icon with lowest ID value placed first to ensure application icon
56
- // remains consistent on all systems.
57
- 1 ICON PRODUCT_ICON
58
-
59
-
60
- #endif // English (United States) resources
61
- /////////////////////////////////////////////////////////////////////////////
62
-
63
-
64
-
65
- #ifndef APSTUDIO_INVOKED
66
- /////////////////////////////////////////////////////////////////////////////
67
- //
68
- // Generated from the TEXTINCLUDE 3 resource.
69
- //
70
-
71
-
72
- /////////////////////////////////////////////////////////////////////////////
73
- #endif // not APSTUDIO_INVOKED