Skip to content

Commit

Permalink
Merge branch 'release/6.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Jun 11, 2023
2 parents a7feea6 + 65d60ff commit 6b6155d
Show file tree
Hide file tree
Showing 114 changed files with 96,467 additions and 179,194 deletions.
21 changes: 8 additions & 13 deletions .astylerc
Expand Up @@ -28,17 +28,22 @@
--lineend=linux


# Add brackets to one-liners
--add-brackets
# Add braces to one-liners
--add-braces


# Pad with blank lines
--break-blocks


# Pad with spaces
--pad-comma
--pad-oper
--pad-header
--pad-method-prefix
--pad-method-colon=none
--pad-return-type
--unpad-param-type


# Pointers/References
Expand All @@ -51,16 +56,6 @@


# Excludes
--exclude="Sources/libMultiMarkdown/scanners.c"
--exclude="Sources/libMultiMarkdown/parser.c"
--exclude="Sources/libMultiMarkdown/lexer.c"

--exclude="Sources/libMultiMarkdown/i18n.h"
--exclude="Sources/libMultiMarkdown/miniz.c"
--exclude="Sources/libMultiMarkdown/miniz.h"
--exclude="Sources/libMultiMarkdown/uthash.h"

--exclude="Sources/multimarkdown/argtable3.c"
--exclude="Sources/multimarkdown/argtable3.h"

--ignore-exclude-errors

51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,51 @@
name: Makefile CI

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
build:

strategy:
matrix:
platform: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- name: Configure make
run: make release

- name: Test build
run: cd build && make all

- name: Test install
run: cd build && sudo make install

- name: Run tests
run: cd build && ctest

build-windows:

strategy:
matrix:
platform: [windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- name: Configure make
run: mkdir build && cd build && cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..

- name: Test build
run: cd build && make

- name: Run tests
run: cd build && ctest
74 changes: 56 additions & 18 deletions CMakeLists.txt
Expand Up @@ -6,7 +6,7 @@
# See the LICENSE file for copyright and licensing information.
#

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.9)


# ===================
Expand All @@ -18,16 +18,16 @@ cmake_minimum_required(VERSION 2.6)
set (My_Project_Title "libMultiMarkdown")
set (My_Project_Description "Lightweight markup processor to produce HTML, LaTeX, and more.")
set (My_Project_Author "Fletcher T. Penney")
set (My_Project_Revised_Date "2020-10-28")
set (My_Project_Revised_Date "2023-06-10")
set (My_Project_Version_Major 6)
set (My_Project_Version_Minor 6)
set (My_Project_Version_Minor 7)
set (My_Project_Version_Patch 0)

set (My_Project_Copyright_Date "2016 - 2020")
set (My_Project_Copyright_Date "2016 - 2023")

set (My_Project_Identifier "net.fletcherpenney.multimarkdown")

string(TIMESTAMP My_Build_Version "%Y.%m.%d.%H.%M")
string(TIMESTAMP My_Build_Version "%Y.%m.%d.%H.%M" UTC)


# Search for included files here
Expand Down Expand Up @@ -165,6 +165,19 @@ endif (POLICY CMP0048)

project (${My_Project_Title} VERSION "${My_Project_Version}")

# from http://stackoverflow.com/questions/25199677/how-to-detect-if-current-scope-has-a-parent-in-cmake
get_directory_property(hasParent PARENT_DIRECTORY)

if (hasParent)
else()
# If building the framework independently, we canset a deployment target
# set (CMAKE_OSX_DEPLOYMENT_TARGET "10.12")

if (CMAKE_GENERATOR MATCHES "Xcode")
set (CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)")
endif()
endif()


# Search source directory
include_directories(${PROJECT_SOURCE_DIR}/src)
Expand Down Expand Up @@ -198,11 +211,27 @@ set_target_properties("${My_Project_Title}"
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "${XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS} ${framework_search_paths_string}"
PUBLIC_HEADER "${public_headers}"
ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}
XCODE_ATTRIBUTE_DEFINES_MODULE YES
XCODE_ATTRIBUTE_MODULEMAP_FILE "src/module.modulemap"
# XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "$SYMROOT/$CONFIGURATION"
)

if (hasParent)
else()
set_target_properties("${My_Project_Title}"
PROPERTIES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] YES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=MinSizeRel] NO
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=RelWithDebInfo] NO
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Release] NO
XCODE_LINK_BUILD_PHASE_MODE "KNOWN_LOCATION"
)
endif()

# Link to other libraries
target_link_libraries("${My_Project_Title}"
${libraries_to_link}
m
)

# Link to Apple Cocoa Framework?
Expand Down Expand Up @@ -272,10 +301,6 @@ configure_file (
# Build Test Suite with CuTest (unit testing)
# ===========================================

# from http://stackoverflow.com/questions/25199677/how-to-detect-if-current-scope-has-a-parent-in-cmake
get_directory_property(hasParent PARENT_DIRECTORY)


set(test_files
test/CuTest.c
test/CuTest.h
Expand Down Expand Up @@ -343,17 +368,30 @@ endif()
# Build MultiMarkdown app
if (hasParent)
else()
add_executable(multimarkdown
src/d_string.c
if (DEFINED TEST)
else ()
add_executable(multimarkdown
src/d_string.c

src/main.c
src/argtable3.c
src/main.c
src/argtable3.c

${private_headers}
${public_headers}
)
${private_headers}
${public_headers}
)

target_link_libraries(multimarkdown "${My_Project_Title}")

target_link_libraries(multimarkdown "${My_Project_Title}")
set_target_properties(multimarkdown
PROPERTIES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] YES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=MinSizeRel] NO
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=RelWithDebInfo] NO
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Release] NO
XCODE_LINK_BUILD_PHASE_MODE "KNOWN_LOCATION"
)

endif()
endif()


Expand Down Expand Up @@ -532,7 +570,7 @@ else (hasParent)
"${PROJECT_BINARY_DIR}/LICENSE.txt"
"${PROJECT_BINARY_DIR}/README.txt"
COMPONENT Docs
DESTINATION .
DESTINATION share/doc/MultiMarkdown
)
set (CPACK_COMPONENT_DOCS_DISPLAY_NAME "Documentation")
set (CPACK_COMPONENT_DOCS_DESCRIPTION "Install README and LICENSE.")
Expand Down
Binary file modified DevelopmentNotes/DevelopmentNotes.epub
Binary file not shown.

0 comments on commit 6b6155d

Please sign in to comment.