changelog 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  1. This file contains a log of most of the changes and evolutions of the meta-build
  2. system for Simple DirectMedia Layer 2.0 and related projects.
  3. Changes as of 09/18/2013:
  4. -Enabled executable bits on the Mac OS X build-scripts command files.
  5. -Replaced the Xcode directory structure with two folders for Xcode 3
  6. and Xcode 4. It now looks like the VisualC folder, wherein there is
  7. premake/Xcode/Xcode3 and premake/Xcode/Xcode4 default workspaces.
  8. -Updated premake/Xcode/build-scripts/xcode3.command and the
  9. xcode4.command files to properly generate the workspaces in the above
  10. mentioned directories.
  11. -Regenerated the Visual Studio projects to push the 'current working
  12. directory' fix to the repository.
  13. -Verified the projects are building and running properly across all platforms.
  14. Changes as of 09/13/2013-09/14/2013:
  15. -Analyzed structure and existing problems to be fixed in the system.
  16. -Updated the OpenGL dependency to not include "C:\Windows\System32" since that
  17. is implicitly included for any compiler building the project on Windows
  18. anyway.
  19. -Removed the build.all.vs2012.bat script since it hasn't been working and
  20. trying to get it to work or figure out why it doesn't is beyond the scope of
  21. the project at this point.
  22. -The above also applies to check.bin.compatibility.vs2010.bat.
  23. -Updated typo in run.tests.bat to make testchessboard run properly (it was
  24. looking for testdrawchessboard instead).
  25. -Corrected OpenGL dependency to properly look for "libGL" instead of
  26. "OpenGL32" on Linux.
  27. -Updated OpenGL dependency to link to "libGL" instead of "OpenGL32" on Linux.
  28. -Updated OpenGL dependency to properly notify the dependency system whether
  29. OpenGL support has been found or not (it was always indicating OpenGL
  30. support accidentally).
  31. -Modified the vs2008/vs2010/vs2012 generation scripts to generate to specific
  32. subfolders (ie, ./VS2008, etc.) so they can all be generated at once. Updated
  33. the clean script appropriately. Originally, it was desired to generate
  34. something more like SDL_VS2008.sln, etc., but premake has troubles correcting
  35. interproject dependencies without renaming the binary files to similar names
  36. (like SDL_main_VS2008.lib), which seemed much worse than just separating by
  37. directory.
  38. -Altered the working directories for the Visual Studio debugger to run from
  39. the path of the binary for each test application, rather than from the
  40. project directory. This allows the tests to utilize any locally copied
  41. resource files from both inside and outside Visual Studio.
  42. -Added execution bits to Linux build scripts.
  43. -Clarified the second paragraph in README-windows.txt.
  44. -Fixed typos in README.txt and added a plethora of code examples and
  45. explanations to demonstrate how to add on to the current system.
  46. -Regenerated default projects for MinGW, Linux, and Windows (this time serving
  47. VS2008, VS2010, and VS2012).
  48. Changes as of 08/30/2013:
  49. -Updated README-windows.txt, README-macosx.txt, and README-mingw.txt.
  50. -Created README-linux.txt, README-ios.txt, README-linux.txt.
  51. -Modified premake4.lua to not generate any files if simply printing help text.
  52. -Created the entire primary README.txt help file.
  53. -Updated the automated test command file for OS X to randomly select a file
  54. for testshape, just like the windows version. However, there is an issue
  55. with it so that test is currently commented out.
  56. -Updated all 4 OS X build scripts to automatically build all of the generated
  57. test projects, rather than maintaining a list.
  58. -Generated an initial Xcode 4 workspace for iOS.
  59. -Generated an initial Xcode 4 workspace for Mac OS X.
  60. -Updated a bug in the windows automated test batch file within the label for
  61. handling the specially randomized arguments passed to an application, such as
  62. for testshape (it was hardcoded for testshape, rather than using a variable
  63. as intended).
  64. -Fixed a typo in the windows automated test batch file wherein it was not able
  65. to run the chess board application correctly.
  66. -Updated the automated test bash script for Linux targets to run the new
  67. chessboard test and to randomly pick an image to send to testshape. It runs
  68. testresample and testatomic now, too.
  69. Changes as of 08/28/2013 & 08/29/2013:
  70. -Removed TODO.txt. It's no longer necessary; a lot of what was in it is no
  71. longer relevant, completed, or replaced by something different and thus
  72. implemented in some variety.
  73. -Stopped the premake engine from executing the project definitions if simply
  74. executing the help procedure, listing available options and acitons for the
  75. target premake file.
  76. -Modified the dependency function handling so that the function names are case
  77. insensitive both for registering functions and checking or testing them.
  78. -Created a function in sdl_projects.lua that can be used to retrieve all of
  79. the known names of the dependencies registered with the system at that point.
  80. -Implemented automated generation of options to forcibly enable certain
  81. dependencies, even if they are explicitly defined to not work on a given
  82. platform or if they simply cannot be found. This is useful, for instance, to
  83. force on the DirectX dependency for MinGW if the user has successfully setup
  84. the environment to work with it.
  85. -Modified the behavior of the dependency functions to provide the libraries,
  86. library paths, and include paths for platforms that don't support that
  87. dependency, allowing the override command line options to properly work on
  88. those platforms for those dependencies (again, the DirectX dependency on
  89. MinGW comes to mind).
  90. -Cleaned up premake4.lua.
  91. -Removed hardcoded links in Linux from premake4.lua to its proper locations in
  92. SDL2.lua and dependency functions.
  93. -Renamed the 'reset_links' function in sdl_check_compile.lua to be
  94. 'reset_link_flags' since it fits the functionality better.
  95. -Corrected a mistake in 'check_include_directory' in sdl_check_compile.lua
  96. where it simply checked for files existing in a directory, rather than
  97. specifically header files.
  98. -Removed the 'projects' table declaration in premake4.lua, since its defined
  99. in sdl_projects.lua anyway.
  100. -Removed directive for copying the Info.plist file from the Xcode-iOS
  101. directory for the testsprite2.lua project, since it makes no sense.
  102. -Modified 'addConfig' in sdl_gen_config.lua to be extra cautious about
  103. ensuring that keys and values in the supplied config table are, indeed,
  104. strings as they need to be for concatenation.
  105. -Added documentation for premake4.lua, sdl_check_compile.lua,
  106. sdl_dependency_checkers.lua, sdl_depends.lua, sdl_file.lua,
  107. sdl_gen_config.lua, sdl_string.lua, and sdl_projects.lua.
  108. -Implemented file headers for every single project definition file.
  109. -Significantly cleaned up the commenting in SDL2.lua and added a file header
  110. description.
  111. -Added a print line in premake4.lua to indicate when the generation of the
  112. premake Lua file begins.
  113. -Added initial sample projects for VS2010, Linux make, and MinGW make.
  114. Changes as of 08/27/2013:
  115. -Updated the Linux premake executable based on all the patches applied to
  116. premake thus far, as documented in the patches folder.
  117. -Updated the Linux definition of SDL2.lua to have all of the subsequent source
  118. files associated with each dependency to be within that dependency using the
  119. SDL_paths directive.
  120. -Implemented a function for modifying the search path for libraries during
  121. the various compiler test functions in sdl_check_compile.lua.
  122. -sdl_check_compile.lua: implemented a function for checking wether a library
  123. exists using os.findlib, adding its directory to the library path, then
  124. using check_library_exists to see if it can be linked to properly.
  125. -sdl_check_compile.lua: implemented check_include_directory and
  126. check_include_directories functions to see whether specified directories
  127. exist and contains .h files. This could be modified later on for other types
  128. of files that would exist in include directories (such as hpp, hxx, etc.).
  129. -sdl_projects.lua: implemented a function that checks whether a dependency
  130. exists and was found (the function must have been executed already). This is
  131. used by many of the dependencies for Linux (specifically that most of its
  132. dependencies depend on DLOpen for shared library binding).
  133. -Modified the dependency order for Linux in SDL2.lua so that DLOpen is listed
  134. first, as to help the dependency resolution process.
  135. -Corrected the link order in sdl_check_compile.lua, fixing the
  136. check_library_exists, check_library_exists_multiple, and
  137. check_library_exists_lookup functions.
  138. -Corrected the size definitions for SDL_config_linux.template.h so that it
  139. will work cross-platform.
  140. -Implemented better dependency support for the following Linux dependencies:
  141. DLOpen, ALSA, PulseAudio, ESD, NAS, OSS, and X11. The dependency code is
  142. based on CMake's definitions for those dependencies. The dependency function
  143. for D-Bus is improved.
  144. -Removed the commented code for the Windows SDK in the
  145. sdl_dependency_checkers.lua file.
  146. -Re-enabled the ifndef checks for the generate premake header file.
  147. -Moved the clean action in premake4.lua to before the project definitions, so
  148. that cleaning is immediate and doesn't have to wait on unnecessary dependency
  149. checks.
  150. -Renamed the macro defining whether to use the premake config header from
  151. USING_PREMAKE_HEADER_H to USING_PREMAKE_CONFIG_H, which involved changes in
  152. premake4.lua and include/SDL_config.h in the root source tree.
  153. -Corrected a mistake in the OpenGL dependency function that would mishandle
  154. forbidding desktop GL functionality on iOS.
  155. -Corrected a bug that would properly setup MinGW targets to work with OpenGL,
  156. but it would not link to WGL so there was no way for SDL to actually load the
  157. OpenGL library and attach it to a window.
  158. -Blocked support for OpenGL on Cygwin.
  159. -Blocked support for testfilesystem on Cygwin due to lack of support, though
  160. unix file system support is now enabled on Cygwin. The test accesses some
  161. windows functions that do not link properly in the Cygwin environment.
  162. Changes as of 08/26/2013:
  163. -Implemented the testdrawchessboard test application.
  164. -Disabled the path-searching functionality for the DirectX dependency so it
  165. would be significantly sped up. It makes the assumption that DirectX is only
  166. installed if its DXSDK_DIR variable is set. The code is still there if users
  167. wish to implement the functionality again.
  168. -Modified the clean action to remove the 'ipch' directory since it sometimes
  169. shows up in various Visual Studio solution builds.
  170. -Fixed a bug in the post-build copy step that wouldn't correctly create nested
  171. directories during the copy stage in Visual Studio on Windows targets. This
  172. reflects an earlier bug fix that would stop the non-nested files from being
  173. copied correctly; both work now.
  174. -Modified the testshape project to copy all of the shape images instead of the
  175. sample image.
  176. -Updated the automated test batch file on Windows to randomly pick one of the
  177. intended shapes while running testshape. It also runs testshape three times,
  178. to demonstrate both the randomness and adequate testing of testshape over
  179. multiple shapes.
  180. -Changed the resample test to copy the sample.wav.
  181. -Updated the 'pass' label in the windows run.tests.bat file to accept a
  182. variable-number of arguments to be passed to the executable.
  183. -Re-enabeld the testresample test to try and resample sample.wav at 44.1Khz.
  184. -Updated testoverlay to copy moose.dat, since it depends on it now.
  185. -Updated testshader to properly depend on OpenGL and link to it, as well as
  186. copy the file it needs (icon.bmp).
  187. -Moved the dependency checker file over to the util directory.
  188. -Updated premake4.lua to recursively execute all the files in the projects
  189. folder, so they don't have to be hardcoded into premake4.lua and can be
  190. organized in whichever way desired (so long as their internal paths are
  191. correct).
  192. -Implemented text-based file writing in the sdl_file.lua utility file, as to
  193. prep for going around generating a lua file and loading the generated file
  194. from memory, instead.
  195. -Updated all of the current SDL dependency functions to properly check for
  196. MinGW and Cygwin support.
  197. -Fixed a few bugs in premake4.lua that would break Cygwin and MinGW support
  198. due to improper checking.
  199. -Fixed bugs that made it tricky to do wildcard copying on *nix systems (needed
  200. by testshape). Tested to work on MinGW and Windows.
  201. Changes as of 08/23/2013:
  202. -Removed hardcoded definitions for the Linux config template.
  203. -Moved definitions over to SDL2.lua.
  204. -Added definition for enabling the file system module on Linux.
  205. -Separated the OpenGL dependency into one for Windows (WGL) and Linux (GLX).
  206. The core dependency is still there, but the windowing part is separate.
  207. -Separated the library-based dependencies from the Linux implementation into
  208. a series of dependency functions.
  209. -Changed the dependency function to return a named table instead of variable
  210. returns.
  211. Changes as of 08/22/2013:
  212. -Rearranged a few more things in the top 'dofile' section in premake4.lua.
  213. -Reverted accidental changs to include/SDL_config.h which rendered it specific
  214. to a single platform, per cmake generation. All building was broken due to
  215. this accidental change, but it should be fixed after this commit.
  216. -Merged repository with the latest version from live SDL repository.
  217. -Implemented new file system source tree on Windows.
  218. -Implemented file system test.
  219. -Removed files accidentally committed from the Linux directory.
  220. -Implemented tests for the file system test for windows and Mac OS X.
  221. -Implemented cocoa file system support.
  222. -Implemented cocoa filesystem support on iOS.
  223. -Fixed a bug that was leading to the Xcode-iOS trying to build the
  224. OpenGL renderer on iOS, which isn't supported.
  225. Changes as of 08/21/2013:
  226. -Changed names of generated files in check_compile.lua to more readable names,
  227. within the format "premakecheck.*"
  228. -Updated the check build function in check_compile.lua to support executing
  229. the build and redirecting all output to "./premakecheck.stdout".
  230. -Implemented a function for checking the size of a given type by generating a
  231. program that prints it to the screen, then reads the result from a file and
  232. converts it to an integer. This function is dependent on the existence of
  233. stdio.h and the printf function.
  234. -Tested the size function on Linux using various types.
  235. -Clumped the "dofile" directives for all utility scripts together in
  236. premake4.lua.
  237. -Removed the *Mode variables for MinGW, Cygwin, and iOS. All checking for
  238. these systems should be done using SDL_getos().
  239. -Updated SDL_getos() to check the _OPTIONS table directly.
  240. -From depends.lua, moved dirpathsearch and getenvpath to sdl_file.lua.
  241. -Created a sdl_string.lua file to contain various string-related functions.
  242. -From depends.lua, moved indexOf and explode to sdl_string.lua.
  243. -From premake4.lua, moved implode to sdl_string.lua.
  244. -Renamed depends.lua to sdl_depends.lua. Indicated that the file is
  245. particularly for windows dependency testing.
  246. -Rename check_compile.lua to sdl_check_compile.lua.
  247. -Updated premake4.lua to reflect file changes and modified the order of doing
  248. the util files, since their interdependencies have changed slightly.
  249. -Added sdl_string.lua to the list of utility files done in the beginning of
  250. premake4.lua.
  251. -Updated header in every file to reflect that I did not create premake (old
  252. wording was a bit vague).
  253. -Added header to new files.
  254. Changes as of 08/20/2013:
  255. -Fixed logical mistakes in the check build sources function.
  256. -Added a check_function_exists function.
  257. -Whenever an include header or headers are checked, if they are found
  258. and build properly then they will be added to an internal list that
  259. will be prepended whenever doing future check_function_exists and
  260. check_library_exists calls.
  261. -Added a function which will check if a function exists in any of a set
  262. of libraries, rather than just one.
  263. -Added support for linking libraries for the check_library_exists
  264. function.
  265. -Silenced building and linking commands.
  266. -Incorporated check_compile.lua in premake4.lua.
  267. -Tested the various functions with X11, DLOpen, and ALSA dependency
  268. compatibility. some future tweaking may be necessary, but the
  269. dependency checking happening in cmake should be reproducable using
  270. these functions with some tweaking of the implementation itself.
  271. Changes as of 08/16/2013:
  272. -Updated Cygwin build to foster a very trimmed down version of the Linux
  273. build, with no audio, video, haptic, joystick, or input support.
  274. -Cygwin uses a shared library. Read SDL2.lua for more information.
  275. -Slimmed and trimmed the cygwin config template to its bare minimum.
  276. -Implemented the configurations needed for Cygwin in SDL2.lua.
  277. -Updated many projects to be excluded if building on Cygwin, since many of
  278. them are incompatible without the aforementioned support.
  279. -Implemented a Cygwin directory and separate build-scripts, working similarly
  280. to that of MinGW.
  281. -Implemented a check_compile.lua utility file emulating a lot of the same
  282. functions used in cmake to check for dependencies and various libraries.
  283. These will be added to a Linux-specific dependency checker function later on,
  284. allowing all the Linux dependencies to follow a similar routine to that of
  285. autotools and cmake.
  286. Changes as of 08/15/2013:
  287. -Created a separate template configuration file for Cygwin.
  288. -Created separate SDL2 project definitions for Cygwin, alongside Linux.
  289. -Added various other side definitions for Cygwin support, though it is still
  290. not building correctly due to some misunderstandings with library support.
  291. -Patched premake to support custom source trees for Xcode projects to fix
  292. issues finding the correct iOS frameworks in Xcode.
  293. -Updated all Win32 premake executables containing the patch.
  294. -Updated executables for Xcode and Xcode-iOS for above patch.
  295. -Updated SDL2.lua for iOS to use the SDKROOT source tree for the frameworks,
  296. as per the new patch.
  297. -Successfully built and ran all the iOS demos.
  298. Changes as of 08/14/2013:
  299. -Fixed a mistake in the windows-side copy command that was changed yesterday;
  300. without parentheses it was inhibiting the ability to copy the SDL2.dll file
  301. to the built directories if the directories already existed; this has been
  302. fixed.
  303. -Reintegrated MinGW support on Windows with a few slight changes to various
  304. OS dependencies, since "MinGW" is now considered the target OS, versus
  305. Windows. This involved changes in SDL2.lua, SDL2main.lua, testnative.lua.
  306. -Reenabled both debug and release configurations.
  307. -Separated post-build commands to being separate for debug and release.
  308. -Setup temporary hardcoded linkoptions for MinGW on the release configuration.
  309. -Verified both configurations build correctly for VS2010 and MinGW.
  310. -Updated the premake executables for VS and MinGW to reflect the recent
  311. patch.
  312. -Updated premake executables for Xcode and Xcode-iOS to contain features
  313. added from the latest patch.
  314. -Verified working debug/release builds on Xcode, though the target
  315. directories for the binaries clash, so they override each other. This
  316. will be fixed in the future as the system starts to get cleaned up.
  317. Changes as of 08/13/2013:
  318. -Implemented special SDL_getos function which gets the current build
  319. platform, taking into consideration Cygwin, iOS, and MinGW modes.
  320. Although it's invalid to consider Cygwin and MinGW operating systems,
  321. for all intensive purposes they are considered separate for the build
  322. system. This may be renamed later on.
  323. -Updated OS-compatibility functions for SDL projects to use the new
  324. SDL_getos function, so they can be dependent on Cygwin, MinGW, iOS, etc.
  325. -Removed the iOS dependency function and updated the iOS portion of the
  326. SDL2 project to depend on iOS rather than Mac OS X.
  327. -Changed the explode function in depends.lua to be part of the string
  328. table.
  329. -Modified SDL_isos to accept patterns, such as "macosx|ios".
  330. -Updated SDL2 and SDL2main to be compatible on Mac OS X and iOS
  331. simultaneously.
  332. -Updated SDL_os to work with the patterns, as well, by merging the
  333. functionalities of SDL_os and SDL_isos to a local function.
  334. -Updated SDL_notos similarly.
  335. -Updated SDL_os to work on projects as well as dependencies, and updated
  336. premake4.lua to check for overall project compatibility.
  337. -Implemented SDL_notos to inhibit compatibility for projects that simply
  338. cannot work on specific platforms.
  339. -Added exclusions for every single current test project to not be added
  340. to the iOS solution, since none of them are designed to run on iOS.
  341. -Removed hacked override for info.plist and properly implemented plist
  342. inclusion for Xcode projects. Premake already supported this well.
  343. -Changed a few references in premake4.lua of os.get to SDL_getos to
  344. avoid some of the hardcoding that was going on in various places.
  345. -Advanced the SDL_copy feature for project resources to being able to
  346. copy files to more complicated destination paths, with scripted support
  347. to create the destination directories if they do not yet exist during
  348. post-build execution.
  349. -Patched premake to allow BMPamd WAV files to be considered as assets
  350. for Xcode projects.
  351. -Updated the premake executables for Xcode and Xcode-iOS, respectively.
  352. -Successfully ported, built, and ran all working Xcode-iOS demos using
  353. project files generated by the meta-build system for those demos. There
  354. are a few hiccups that need to be ironed out yet, but overall it's a
  355. hopeful step forward to decent iOS support.
  356. -Upgraded the clean action to also delete the demos folder for iOS.
  357. -Unhardcoded a lot of the iOS stuff added in previous commits, which
  358. included switching a lot more references to os.get() to SDL_getos()
  359. in premake4.lua.
  360. -Preliminarily fixed some potential bugs stemming from SDL_getos()
  361. versus os.get().
  362. -Moved hardcoded iOS links from premake4.lua to their correct location
  363. in SDL2.lua.
  364. -Reinstated correct platforms directives, versus hardcoded iOS, etc.
  365. -Double checked Xcode projects still are generated, built, and run
  366. properly.
  367. -Updated the patches listing and files portion appropriately for the
  368. aforementioned premake modification.
  369. Changes as of 08/09/2013:
  370. -More bruteforcing on trying to hack premake into generating a correct
  371. iOS-compatible Xcode project.
  372. -Added code to convert all ConsoleApps to WindowedApps in iOS mode
  373. because ConsoleApps translate to 'tool' on Mac OS X and tools are
  374. not supported on iOS.
  375. -Forcefully implemented a list of links taken from the Demos SDL
  376. iOS Xcode project for all generated SDL2 projects so they can
  377. correctly link to the iOS system.
  378. -Successfully built SDL2 and tests for iOS, though the test projects will
  379. not run correctly on iOS due to not being built for iOS.
  380. -Fixed a bug in the testgles project where it was not linking to SDL2test,
  381. on which it was dependent.
  382. Changes as of 08/08/2013:
  383. -Implemented template header for iOS configurations.
  384. -Successfully built SDL2 library for iOS on Xcode.
  385. -Implemented configuration for iOS similar to that of Cygwin and MinGW.
  386. -Implemented command-line option for selecting iOS mode on Mac OS X.
  387. -Currently, iOS projects will have some issues regarding correct
  388. project types, so building and running are a bit off yet for iOS.
  389. -Added a new folder for iOS generation.
  390. -Added scripts for iOS generation and such.
  391. -Added exclusion for the OpenGL dependency checker for always failing
  392. on iOS, since iOS uses OpenGL ES 1.1/2.0, not desktop GL.
  393. -Fixed a bug in sdl_projects.lua that led to excluded dependency
  394. function calls to give a false positive if they lead to invoking
  395. the function rather than using a cached result.
  396. Changes as of 08/07/2013:
  397. -Created a fork for premake-stable to try and implement some of the necessary
  398. changes in order to support many new features to the meta-build system.
  399. -Created a directory for patches as part of the meta-build system. This may be
  400. removed later on.
  401. -Restored linking to MinGW32 in MinGW mode after temporarily removing it and
  402. forgetting to restore it.
  403. -Submitted a ticket and patch to premake for fixing the linker order that
  404. prevented proper linking to SDL2main on the MinGW project.
  405. -Created a manifest of patches made to premake needed for MinGW.
  406. -Added a patch for adding iOS support on Xcode, though currently untested.
  407. -Updated all Mac OS X, Windows, and MinGW binaries to reflect the above
  408. patches.
  409. Changes as of 08/06/2013:
  410. -Corrected a mistake in the Linux template config header that was preventing
  411. it from being built on Linux. It was using the same header guard as
  412. SDL_config.h, rendering it completely blank during compile time.
  413. -Added a dependency function for checking for D-Bus support on Linux.
  414. -Implemented a summary implementation for the Linux project in SDL2.lua,
  415. making use of the D-Bus dependency function.
  416. -Added temporary global links in premake4.lua for all projects on Linux.
  417. -Successfully built SDL2.lua on 64-bit Linux Mint 15.
  418. -Updated the testnative test project to have a Linux dependency, binding to
  419. testnativex11.c.
  420. -Implemented an X11 dependency function for testnative and related projects,
  421. though only testnative currently uses it.
  422. -Had to switch over to using a static library instead of a shared library on
  423. Linux for now, because Linux requires the end executable to be aware of
  424. where the shared library is, and we have no way currently to generate any
  425. sort of install rule for the generated SDL2 makefile. Premake will have to
  426. be patched to proceed on that route.
  427. -Successfully built all test projects on 64-bit Linux Mint 15.
  428. -Added a shell script to automatically run through the compatible tests in
  429. Linux/build-scripts, similar to those of the other platforms.
  430. -Successfully ran through many of the tests, though without OpenGL support.
  431. -Added clean shell script for Linux targets.
  432. Changes as of 08/05/2013:
  433. -Implemented global flags for checking if the current premake system is
  434. targeting MinGW or Cygwin.
  435. -Corrected previous checks that were directly using _OPTIONS to using the
  436. MinGWMode flag, instead.
  437. -Corrected typos where I was misspelling 'targeted' as 'targetted'
  438. -Moved the options declarations a bit earlier in premake4.lua.
  439. -Corrected a mistake in the clean batch file for MinGW where it wasn't
  440. actually cleaning in MinGW mode.
  441. -Started working on a Cygwin implementation.
  442. -Started working on a Linux implementation (using Linux Mint 15).
  443. -Setup a basic SDL_config_linux.template.h based on a SDL_config.h production
  444. on 64bit Linux Mint 15 using the configure script.
  445. -Setup the Linux directory and a basic build script. The system completely
  446. does not build at this point, it's simply a step in the right direction.
  447. -Fixed a bug in the testnative project where it was trying to build the X11
  448. implementation on Mac OS X instead of the cocoa implementation. The test
  449. now builds and runs correctly on Mac OS X.
  450. Changes as of 08/02/2013:
  451. -Actually added a README file for MinGW.
  452. -Changed all the README files to be named similar to those in the top level
  453. directory.
  454. -Updated the READMEs for more accurate and up-to-date information.
  455. -Split this primary README.txt into three files: README.txt, TODO.txt, and
  456. changelog.
  457. -Updated the depends.lua file to automatically fail on the windows dependency
  458. search if the current OS is not windows and corrected a bug that would result
  459. in an infinite loop if the main search path provided is empty but not nil.
  460. -Implemented a utility function in depends.lua for joining together a series
  461. of evaluated environmental variables, taking into consideration of they do
  462. not exist. This function is cross-platform.
  463. -Fixed a bug where the recently added code for surrounding paths with spaces
  464. in quotes would lead to premake placing a "../" before the path. Besides the
  465. convention of using double quotes is not universal, this bug existed both
  466. with Visual Studio and MinGW gmakefiles. The code has been completely
  467. removed, as it was found unnecessary.
  468. -Modified DirectX dependency function to fail if targeting MinGW.
  469. -After fully testing support for MinGW, I found there were a few differences
  470. in execution between that and VS builds (without DirectX), one of which is
  471. torturethread crashing on MinGW builds.
  472. -Changed testshape.lua to copy sample.bmp and changed the run test scripts
  473. to use the local sample.bmp as the shape for the window. This was just to
  474. make the built environment independent of the top-level SDL directory.
  475. -Changed the test run scripts to properly run the semaphore test.
  476. -Edited the build scripts for Visual Studio to parallelize builds when
  477. possible.
  478. -Moved build scripts for VS and MinGW projects into respective build-scripts
  479. folders, similar to the top level SDL directory. Tested all the tests for
  480. builds using VS2008, VS2010, VS2012, and MinGW.
  481. -Moved the build scripts for Xcode 3 and 4 to their own build-scripts folder.
  482. -Updated the build scripts for Mac OS X to run the semaphore test.
  483. -Tested the build environment and tests with Xcode 3 and 4 with architectures
  484. i386 and x86_64.
  485. Changes as of 08/01/2013:
  486. -Implemented the SDL_notdepfunc function in sdl_projects.lua so dependencies
  487. can depend on the absence of a dependency. For example, the haptic and
  488. joystick systems have dummy systems that cannot be built alongside the Dinput
  489. implementations, so they have to be added only in the absence of DirectX.
  490. -Implement a dependency for handling the situation where DirectX is not found
  491. on the windows platform.
  492. -Tested SDL and its tests without DirectX support. Properly built SDL and ran
  493. through the tests. Most of the tests ran great. There were a few tests that
  494. did not work quite right, though.
  495. -Began working on MinGW gmakefile support.
  496. -Implemented custom option for specifying mingw mode (using --mingw); this is
  497. used to ensure -lmingw32 is specified to gcc for proper linking with
  498. SDL2main.
  499. -Had to change make_cpp.lua as part of premake in order to ensure the linker
  500. flags were specified before input, so that I could properly ensure the order
  501. of library linking. The premake in the VisualC folder is now customized.
  502. -Changed all of the projects' dependency orders to be logically correct, since
  503. gcc requires linking order to be exact.
  504. -Successfully built the entire project using MinGW and a generated GNU
  505. makefile.
  506. -Modified MinGW setup to statically link to libgcc so it can run independently
  507. of the MinGW system.
  508. -Successfully ran all tests with MinGW-built executables and library.
  509. -Setup a directory, README, and generation script for MinGW builds.
  510. -Updated clean action for makefiles.
  511. -Implemented quoted libpath and incpaths incase they have spaces.
  512. -DirectX and OpenGL currently not supported on MinGW due to build errors. This
  513. will be fixed and should be supported soon.
  514. Changes as of 07/31/2013:
  515. -Implemented functions for checking whether the current system is 64bit
  516. per-project specification. This is similar to SDL_isos. There is a
  517. negated version implemented, too.
  518. -Implemented native and universal build platforms for the Mac OS X
  519. projects. This translates to x32 and x64 build targets within Xcode.
  520. -Modified the SDL_defines function to add table values instead of replace.
  521. -Corrected a mistake that was defining _WINDOWS on the Mac OS X project.
  522. -Changed the dependency and custom links listing functions for sdl_projects
  523. to prevent duplicates.
  524. -Upgraded the premake4.lua handling of dependency lists and custom links
  525. to support prevented duplicates.
  526. -Reimplemented OpenGL support on Mac OS X.
  527. -Separated frameworks on Mac OS X into proper SDL_dependency declarations
  528. so they are no longer hardcoded.
  529. -Upgraded project dependency system so that when a project is dependent
  530. on a static library, it inherits all of the dependencies of that project
  531. as well.
  532. -Created build scripts for i386 and x86_64 for both Xcode 3 and Xcode 4.
  533. -Tested all of the above (including with OpenGL and without OpenGL) on all
  534. tests for Xcode 3 and 4, on architecture targets i386 and x86_64.
  535. -Removed the old premake4 executable in Xcode.
  536. Changes as of 07/30/2013:
  537. -Began investigating different architectures for Windows, MacOSX, etc.
  538. -Implemented functionality for specifying which platforms a project is
  539. supported on, so as to start providing preliminary support for multiple
  540. build platforms.
  541. -Changed function declaration requirement for dependency functions.
  542. -Changed the dependency function invocation to be table-based.
  543. -Implemented features to cleanup using dependency functions for projects and
  544. allowed possibility for multiple dependency functions on one project.
  545. -Moved invocation of dependency functions from premake4.lua to
  546. sdl_projects.lua.
  547. -Some nested statements have been cleaned up in premake4.lua due to changing
  548. the dependency function calling location.
  549. -Moved all dependency functions to a unified location for order-independent
  550. referencing of them. Ie, this allows SDL2 and testgl2 to both reference the
  551. OpenGL checker function.
  552. -Ensured all dependencies are invoked exactly one time even if referenced
  553. multiple times.
  554. -Implemented opengl dependencies for SDL2 so that opengl support should now be
  555. reenabled in the SDL project.
  556. Changes as of 07/29/2013:
  557. -Implemented scripts to automatically build all of the projects in the VS2010
  558. and VS2012 solutions.
  559. -Implemented scripts to automatically perform binary compatibility testing for
  560. premake VS2010 and VS2012 libraries against the manual projects' test
  561. executables.
  562. -Tested binary compatibility for VS2010 and VS2012 solutions on Windows. The
  563. usual lack of standard output is still ocurring. The testgl2 application
  564. currently crashes on both, but that's because it's not linking to OpenGL
  565. currently. The test shouldn't actually crash, but it reports no OpenGL
  566. when it runs correctly. The other visual tests seem to run fine.
  567. -Cleaned up this README a bit, adding the rest of the points discussed with
  568. Gabriel.
  569. Changes as of 07/26/2013:
  570. -Corrected a bug in SDL2.lua that didn't correctly define the compile-time
  571. defines for Mac OS X.
  572. -Added template configuration headers for minimal builds and Mac OS X
  573. -Added template config selection based on current platform, defaulting to
  574. minimal if on an unknown system
  575. -Corrected bug in sdl_gen_config.lua to allow using templates that have no
  576. area to paste generated tokens, thereby ignoring the tokens and just
  577. copying the template right into the generated header
  578. -Upgraded build.all.xcode4.command in the Xcode directory to give some
  579. information regarding how many tests were attempted to be built, how
  580. many passed, failed, and were skipped.
  581. -Added support in the clean option to correctly remove the Xcode 4 workspace
  582. file. It almost perfectly cleans Xcode projects now. It actually will only
  583. miss folders if the user goes into those folders with Finder, otherwise it
  584. cleans up properly right now.
  585. -Added support build.all.xcode3.command for Xcode 3 projects, rather than
  586. having to manually go into each project and build it individually.
  587. Changes as of 07/25/2013:
  588. -Moved file-based operations to a separate utility sdl_file.lua file
  589. -Began the configuration generation system using sdl_gen_config.lua
  590. -Created a config folder for *config.h templates and added the
  591. SDL_config_windows.template.h file, omitting everything premake will add
  592. itself
  593. -Fixed a bug where the base location would have a backslash on windows in the
  594. final generated Lua file, where it wasn't supposed to
  595. -Implemented clean option for the generated header file
  596. -Modified SDL_config.h to include SDL_config_premake.h (generated) if the
  597. preprocessor value 'USING_PREMAKE_HEADER_H' is defined, which the meta-build
  598. system ensures it is
  599. -Merged winmm dependency back into the windows dependency for SDL2.lua,
  600. because the windows timer module depends on winmm, as well
  601. -Partially tested configuration system via Visual Studio 2008; Mac OS X
  602. projects will be broken until that side is upgraded
  603. Changes as of 07/24/2013:
  604. -Updated mac os x test file to include all the new tests
  605. -Added script to automatically batch together all the scheme builds for
  606. the tests, so they don't have to be manually built through Xcode
  607. -Tested new tests and build environment on Xcode 4 successfully (weren't
  608. tested on here yet)
  609. -Began investigating implementing iOS Xcode projects using meta-build
  610. system
  611. -Began investigating implementing gmakefile generation support for
  612. GNU/Linux, Cygwin, and MinGW.
  613. Changes as of 07/23/2013:
  614. -Latest changes tested on Xcode 3 and 4; test suites running as expected
  615. -Implemented the entire test suite and tested it in Visual Studio on Windows;
  616. incompatible tests will build and run, but they will fail if there are no
  617. appropriate devices or settings for them to run correctly; this is correct
  618. behavior. Tested most suites on VS2008, VS2010, and VS2012. Only testerror
  619. crashed.
  620. Changes as of 07/22/2013:
  621. -Cleaned up the mixture of forward/back slashes in the generated LUA file. The
  622. only backslashes that exist are for copy commands, since they are copied as
  623. text into the generated projects. The rest use forward slashes, since premake
  624. actions handle per-system translation of directory paths.
  625. -Implemented SDL_isos function for projects so that they can have some control
  626. over certain functions where arguments or function calls changed with
  627. different operating systems (such as SDL_kind for SDL2 project)
  628. -Documented the new project functions. The documentation could be formatted a
  629. bit better and the arguments could be explicitly formatted.
  630. -Cleaned up SDL2.lua
  631. -Implemented project-level files and paths directives for projects, so that
  632. SDL_dependency isn't needed to specify files and file search paths for
  633. projects
  634. -Applied the above changes to all the project files and named a few other
  635. dependencies such as for SDL_main and testgl2. No projects should have
  636. unnamed dependencies at this point.
  637. -Tested the changes of the last few days on VS2008, VS2010, and VS2012. All
  638. the test suites run as expected.
  639. Changes as of 07/19/2013:
  640. -Updated generation backend to be more concise and less like it was before;
  641. this also fixed the duplicate dependency function calls bug
  642. -Implemented config function for constants to set in a generated SDL config
  643. header
  644. -Preliminarily set the config values for the SDL2 project
  645. -Updated generation code so that it won't generate empty projects, which stems
  646. from projects in which all of its dependencies are not compatible with the
  647. current system
  648. -Updated windows automated tests batch file to work more like Xcode's shell
  649. command file wherein it uses a labeled batch of commands as a sort of
  650. procedure; it's cleaner now and it will work if some projects aren't there
  651. (such as if they aren't supported on that platform)
  652. -Separated the winmm portion of the SDL2 project from the windows portion, so
  653. it has its own dependence now and uses a dependency check function that's
  654. dependent on premake's os.findlib
  655. Changes as of 07/18/2013:
  656. -Converted all projects over to the new, simpler format and tested on VS2008,
  657. VS2010, and VS2012
  658. -Corrected a mistake in the SDL2main project that always built the main file
  659. for windows, even on mac os x
  660. -Added some more features to the new project definition system to support
  661. project locations, custom defines, copy tables, and project dependencies
  662. -Moved new project definition system to a separate lua file
  663. -Fixed using 'copy' on windows for post-build commands and 'cp' on all
  664. other systems
  665. -Tested projects on Xcode 3; everything working correctly
  666. -Modified SDL2main project to use the dummy main for macosx
  667. -Changed the convenience scripts on macosx to .command files for the ability
  668. to conveniently double-click-execute them like an application or windows batch
  669. file
  670. Changes as of 07/17/2013:
  671. -Tested that the generated Xcode 3 projects correctly work as expected
  672. -Implemented a new backend system for defining projects that majorly cleans
  673. up the syntax and eases the process of defining projects; currently only
  674. tested with VS2010 on Windows.
  675. Changes as of 07/09/2013-07/10/2013:
  676. -Fixed a bug that premake was causing where the mac project wouldn't execute
  677. any of its post-build options because premake was incorrectly generating the
  678. project in specific situations; the generated lua file now works around it
  679. correctly
  680. Changes as of 07/08/2013:
  681. -Unified SDL2.lua a bit by pulling out the source commonalities (generic
  682. interfaces and dummy implementations) and keeping the platform-specific
  683. implementations separate
  684. -Converted absolute paths to relative paths where appropriate, so now
  685. the generated VS solutions (and possibly Xcode) should be more portable
  686. -Modified premake script to support different base locations, so now the
  687. Visual Studio project directory structure is built within the VisualC
  688. directory, and similarly for Xcode (better organization and separation)
  689. -Fixed a minor bug in the cleanup action for VS2008 and VS2012 solutions
  690. Changes as of 07/05/2013:
  691. -Setup proper dependencies for XCode and successfully built the library
  692. -Ran test suites to ensure working Mac OSX binaries (64 bit, on Mac OS X 10.8
  693. Mountain Lion)
  694. -Redid the entire build environment to run out of a root premake folder,
  695. instead of separate premake folders for VisualC and Xcode
  696. -Setup convenient scripts for both Xcode and VisualC in the generic
  697. premake folder
  698. -Consolidated the premake scripts into a singular script for both targets
  699. Changes as of 07/02/2013 & 07/03/2013:
  700. -Finished implementing base setup for XCode
  701. -Configured the premake projects for XCode (using a parallel directory tree
  702. for now)
  703. -Implemented base XCode project using premake, though it still doesn't link
  704. properly
  705. Changes as of 06/30/2013 & 07/01/2013:
  706. -Implemented release configurations for projects
  707. -Began setting up environment for implementing the XCode projects
  708. Changes as of 06/29/2013:
  709. -Implemented copying intra-solution project dependencies shared libraries to
  710. the binary folders of other projects (such as copying SDL2.dll to subsequent
  711. directories of applications that depend on it).
  712. -Fixed a bug in the testscale and testrendertarget project lua files: they
  713. were copying sample.bmp for usage, but they depended on both icon.bmp and
  714. sample.bmp.
  715. -Added temporary batch script to simplify the process of running through all
  716. the currently available tests on windows.
  717. -Ensured binary compatibility for using SDL2.dll built with manual solutions
  718. with test suite applications built with automatic premake solution. This was
  719. tested successfully for VS2008, VS2010, and VS2012.
  720. -Binary compatibility has been ensured to not currently work vice versa,
  721. that is, using hand-rolled test suite applications with a generated-built
  722. SDL2.dll shared library.
  723. Changes as of 06/27/2013 & 06/28/2013:
  724. -Added premake5-dev to the repository, though it's still called premake4.exe
  725. and the main lua file is named similarly because it's still not officially
  726. premake5.
  727. -Setup generated project to nearly exactly match the flags of the manual
  728. project. Binary compatibility has been tested for SDL2.dll built with the
  729. manual projects against the applications built with the generated project.
  730. All seems to work so far. Only tested on VS2010. Much more testing to
  731. happen later.
  732. Changes as of 06/24/2013 & 06/25/2013:
  733. -Implemented basic meta-meta building system, where premake4.lua now
  734. generates a lua file and executes that to generate the project, allowing
  735. forward compatibility for premake5
  736. -Began working on binary compatibility verification by testing the test
  737. executables built by the manual VS solution using the SDL2.dll built
  738. from the premake solution. There are some issues, but nothing crashes
  739. that didn't crash before.
  740. Changes as of 06/21/2013:
  741. -Fixed multiple linker problem by adding an exclusion filter for
  742. src/thread/generic so that the duplicate objects wouldn't be doubly linked
  743. -Above linker fix also fixed the execution of all VS2008 project builds. All
  744. the projects run the same in terms of success or failure.
  745. -Added rudimentary clean action to premake files
  746. -Organized the project and build directory structures for the VS projects
  747. similar to that of the manually-built VS projects (though they no longer run
  748. out of the box, since SDL2.dll is now in a different directory; soon to be
  749. fixed)
  750. Changes as of 06/20/2013:
  751. -Implemented an optional copy table for projects that allow automatic copying
  752. of each file in the copy table from the source directory to the destination
  753. directory. These copy strings can actually be relative paths, as they will
  754. be made absolute and normalized in the handler code (but not validated!)
  755. -Implemented custom, per-project defines (needed for testgl2)
  756. -Fixed many warnings from VS2008 project by making sure shared libraries
  757. weren't being linked into shared library projects (such as SDLtest).
  758. -Tested all builds on VS2008, VS2010, and VS2012. Everything works as expected
  759. on the latter two.
  760. Changes as of 06/19/2013:
  761. -Implemented all of the currently supported projects in the hand-built
  762. Visual Studio solution, which successful building
  763. -Updated the dependency system to handle cross-linking of projects, such as
  764. the testing suite applications being dependent on SDL2 and SDL2main (and
  765. some even on SDL2test, which further emphasizes the capabilities)
  766. -Organized the folder structure to be less cluttered than before: only
  767. premake4.lua needs to exist at the root directory
  768. -Hardcoded the build path for all the projects to ./bin/Debug
  769. -Implemented support for adding input library links from dependency
  770. resolutions (for opengl in testgl2 in this case)
  771. Changes as of 06/18/2013:
  772. -Implemented a dependency for handling complex building scenarios, though
  773. it's only very simple right now
  774. -Implemented utility depends.lua for handling dependency searching on windows
  775. -Ported over hardcoded solution for SDL2 library to using dependency tree and
  776. a separate lua file
  777. -Implemented SDL2main static library, which involved more flexibility in the
  778. existing system
  779. Initial:
  780. -Built premake 4 binary and pasted it into secluded directory in SDL's build
  781. folder for Visual Studio
  782. -Created the initial premake script which recreated the SDL2.dll shared binary
  783. library, as based on the manually-created SDL project