mirror of
https://github.com/shlomif/fortune-mod.git
synced 2026-01-26 07:37:52 +00:00
embed librinutils
This commit is contained in:
parent
bc8af52f0c
commit
43093382d6
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "fortune-mod/rinutils"]
|
||||
path = fortune-mod/rinutils
|
||||
url = https://github.com/shlomif/rinutils
|
||||
@ -7,6 +7,7 @@ select = **/*.{pl,pm,t}
|
||||
|
||||
[PerlCritic]
|
||||
select = **/*.{pl,pm,t}
|
||||
ignore = rinutils/t/lib/Rinutils/InlineWrap.pm
|
||||
|
||||
[TestCount]
|
||||
select = **/*.t
|
||||
|
||||
@ -102,9 +102,22 @@ SHLOMIF_ADD_COMMON_C_FLAGS()
|
||||
|
||||
SHLOMIF_FINALIZE_FLAGS()
|
||||
|
||||
find_package(Rinutils REQUIRED)
|
||||
INCLUDE_DIRECTORIES(AFTER ${RINUTILS_INCLUDE_DIR} ${RINUTILS_INCLUDE_DIRS})
|
||||
|
||||
# Clone the rinutils repository with the appropriate tag.
|
||||
SET (rinutils_dir "rinutils")
|
||||
IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${rinutils_dir}")
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND "git" "clone" "-b" "0.6.0" "https://github.com/shlomif/rinutils.git" "${rinutils_dir}"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
ENDIF ()
|
||||
|
||||
find_package(Rinutils)
|
||||
IF ("${Rinutils_FOUND}")
|
||||
INCLUDE_DIRECTORIES(AFTER ${RINUTILS_INCLUDE_DIR} ${RINUTILS_INCLUDE_DIRS})
|
||||
ELSE ()
|
||||
INCLUDE_DIRECTORIES(AFTER "${CMAKE_CURRENT_SOURCE_DIR}/${rinutils_dir}/rinutils/include")
|
||||
ENDIF ()
|
||||
IF ("$ENV{FCS_GCC}")
|
||||
ADD_DEFINITIONS("-W -Wabi=11 -Waddress -Waggressive-loop-optimizations -Wall -Wattributes -Wbad-function-cast -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wenum-compare -Wexpansion-to-defined -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wformat-y2k -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverlength-strings -Woverride-init -Wpacked -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-memaccess -Wstack-protector -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wswitch-default -Wswitch-unreachable -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunsafe-loop-optimizations -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvla -Wvolatile-register-var -Wwrite-strings -Walloc-size-larger-than=9223372036854775807 -Warray-bounds=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wnormalized=nfc -Wshift-overflow=2 -Wunused-const-variable=2 -Wstrict-overflow=1 -Wno-switch-default -Wno-vla -Wno-inline -Wno-jump-misses-init -Wno-unsafe-loop-optimizations")
|
||||
# -Wimplicit-fallthrough=5
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
(Note: this file has been re-arranged to be in reverse chronological
|
||||
order, which is The Right Thing for ChangeLogs - DLC)
|
||||
|
||||
September 24, 2020 (fortune-mod 3.2.0)
|
||||
|
||||
Include rinutils in the source tarball / git checkout.
|
||||
( https://github.com/shlomif/fortune-mod/issues/44 )
|
||||
|
||||
September 16, 2020 (fortune-mod 3.0.0)
|
||||
|
||||
Convert the documentation from troff to DocBook 5/XML using
|
||||
|
||||
1
fortune-mod/rinutils
Submodule
1
fortune-mod/rinutils
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4c8d28a6bb9cf055183c97363073dc5b31e2d5ce
|
||||
@ -1 +1 @@
|
||||
3.0.0
|
||||
3.2.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user