summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
AgeCommit message (Collapse)Author
2015-05-29Ubsan: add -fsanitize=undefined to link flags too.John MacFarlane
2015-05-29Added Ubsan build target, to check for undefined behavior.John MacFarlane
2015-04-26Suppress warnings about Windows runtime library filesNick Wellnhofer
Visual Studio Express editions do not include the redistributable files. Set CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS to suppress warnings.
2015-04-26Compile static library with -DCMARK_STATIC_DEFINENick Wellnhofer
Fixes warnings on Windows.
2015-04-25Revert "CMakeLists.txt: quote variable to avoid warning."John MacFarlane
This reverts commit 890a926dec02d8f024a4492248dbff4f84d37ff2. Conflicts: src/CMakeLists.txt
2015-04-25Really fixed cmake warning.John MacFarlane
2015-04-25CMakeLists.txt: quote variable to avoid warning.John MacFarlane
2015-04-01Include patch level in sonameNick Wellnhofer
Minor version is tied to spec version, so this allows to break the ABI between spec releases.
2015-03-31Install compiler-provided system runtime libraries.Changjiang Yang
2015-03-21Added commonmark renderer.John MacFarlane
This is still incomplete. (See TODOs in the source.)
2015-03-09Check for CMAKE_C_COMPILER (not CC_COMPILER) when setting C flags.John MacFarlane
2015-03-09Use libcmark.a for static library on *nix.John MacFarlane
Use cmark_static on Windows as before. See #11.
2015-03-07Build static version of library in default build.John MacFarlane
The static library will be named (lib)cmark_static. Closes #11.
2015-02-15Moved handling of --smart from renderer to parser.John MacFarlane
This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8.
2015-02-14Added smart.c, smart.h with function abstracting smart punct rendering.John MacFarlane
Also fixed some bugs in earlier smart handling. Now handles UTF-8.
2015-02-02Don't rely on strnlen being availableNick Wellnhofer
2015-01-28Added Profile build type, 'make prof' target.John MacFarlane
2015-01-23Add version information to shared libraryNick Wellnhofer
2015-01-23Let cmake update versionNick Wellnhofer
Add a new template cmark_version.h.in to generate cmark_version.h containing version information.
2015-01-12Reduce size of gperf entity tableNick Wellnhofer
Don't store length of UTF-8 string. It can be computed by NULL-terminating strings shorter than 4 bytes and using strnlen. Use gperf's string pool option. This allows to use an 'int' index into the string pool instead of a pointer and is helpful on 64-bit systems. Shaves about 75 KB off the 32-bit binaries on Linux and 128 KB off the 64-bit binaries on OS X.
2014-12-31Recreate scanners.c only on demandNick Wellnhofer
2014-12-31Feature test for va_copyNick Wellnhofer
MSVC doesn't support va_copy.
2014-12-29Added cmark_ctype.h with locale-independent isspace, ispunct, etc.John MacFarlane
Otherwise cmark's behavior varies unpredictably with the locale. `is_punctuation` in utf8.h has also been adjusted so that everything that counts all ASCII symbol characters count as punctuation, even though some are not in P* character classes.
2014-12-28Removed old 'ast' format, now that we have 'xml'.John MacFarlane
The xml representation of the AST is not quite as pretty, but it contains the same information and is not in an ad hoc format. See #53.
2014-12-28Added xml writer, to dump the AST in XML.John MacFarlane
This is a work-in-progress. CommonMark.dtd gives the DTD for the generated XML. Closes #53.
2014-12-14Added GNU profiler flags to debug build.John MacFarlane
2014-12-13Added cmark_render_man (man page writer).John MacFarlane
cmark: Replaced `--man` and `--ast` with generic `--to` option.
2014-12-13Added iterator interface to API, removed cmark_walk.John MacFarlane
* Added `iterator.c`, `iterator.h`. * Removed `cmark_walk`. * Replaced `cmark_walk` with iterator in HTML renderer. * Replaced API test for `cmark_walk` with simple iterator test.
2014-12-08Compile with -WextraNick Wellnhofer
2014-12-04Moved source files from src/html into src.John MacFarlane
The separate directory presents problems for some simple extension building systems, like luarocks.
2014-12-04Create pkg-config file as part of build procedure.John MacFarlane
Closes #234.
2014-12-01Use `--no-generation-date` with `re2c`.John MacFarlane
2014-12-01Changed build procedure so that an empty scanners.c is not createdJohn MacFarlane
if `re2c` is missing. Closes #231.
2014-11-24Fix MSVC optionsNick Wellnhofer
Also disable some warnings.
2014-11-22Fix debug flagsNick Wellnhofer
2014-11-17Set CMARK_DEBUG_NODES for debug builds.John MacFarlane
2014-11-17Rename ast.h to parser.hNick Wellnhofer
2014-11-17Start with unified nodesNick Wellnhofer
2014-11-16Move inline function definitions to header filesNick Wellnhofer
Inline functions must be defined in header files in order to be inlined in other compilation units. This also fixes the MSVC build where out-of-line versions weren't created and allows to remove the -fgnu89-inline flag.
2014-11-16Feature test for GCC attributesNick Wellnhofer
2014-11-16Look for re2c in path when compiling with MSVCNick Wellnhofer
2014-11-16Feature test for __builtin_expectNick Wellnhofer
2014-11-16Compile as C++ under MSVCNick Wellnhofer
2014-11-16Probe for stdbool.hNick Wellnhofer
Let cmake create a cmark_config.h file to deal with platforms missing stdbool.h.
2014-11-16Moved inline/block-making functions to ast.h.John MacFarlane
Now we no longer depend on buffer.h or chunk.h in the public API. Install cmark.h and cmark_export.h into PREFIX/include instead of PREFIX/include/cmark.
2014-11-16cmark_render_html now just returns a regular C string.John MacFarlane
This way, we don't have to expose buffer.h; it is just used internally.
2014-11-16Moved AST details from public header cmark.h to private ast.h.John MacFarlane
2014-11-15Workaround to add -fvisibility=hidden for older versions of cmake.John MacFarlane
2014-11-15Fixed install target in src/CMakeLists.John MacFarlane
Use proper include directory, include needed headers chunk.h and references.h.
2014-11-14Disable warnings about inline with mingw.John MacFarlane