Skip to content

Commit b3dc772

Browse files
authored
Merge pull request #3229 from carstene1ns/feature/remove-autotools
Remove autotools
2 parents c016ff1 + 220a307 commit b3dc772

23 files changed

+478
-3199
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
1313

14-
[*.{sh,rb,js,yml,yaml,adoc}]
14+
[{*.{sh,rb,js,yml,yaml,adoc},configure}]
1515
indent_style = space
1616
indent_size = 2
1717

.gitattributes

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
*.py text
77
*.rb text
88
*.sh text
9-
*.ac text
10-
*.am text
119

10+
# external sources
1211
tests/doctest.h -diff linguist-vendored
13-
builds/autoconf/m4/ax_*.m4 -diff linguist-vendored
1412
src/external/* -diff linguist-vendored
1513
src/midiprogram.h -diff linguist-vendored
1614
src/midisequencer.* -diff linguist-vendored
@@ -19,3 +17,20 @@ CMakePresets.json -diff linguist-generated
1917
builds/android/app/src/main/java/org/libsdl/app/*.java -diff linguist-vendored
2018
builds/android/app/src/main/java/org/libsdl/app/SDLActivity.java diff
2119
src/generated/* -diff linguist-generated
20+
21+
.gitattributes export-ignore
22+
.gitignore export-ignore
23+
/.github/ export-ignore
24+
/.tx/ export-ignore
25+
.editorconfig export-ignore
26+
/builds/cmake/.git-hash export-subst
27+
28+
#TODO? .gitmodules export-ignore
29+
#TODO? /builds/libretro/ export-ignore
30+
31+
#TODO: Android is usually built from git, but maybe keep it (e.g. f-droid)?
32+
/builds/android/ export-ignore
33+
/builds/flatpak/ export-ignore
34+
/builds/snap/ export-ignore
35+
/builds/release-helper.sh export-ignore
36+
/builds/make-dist.sh export-ignore
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"config": {
3+
// MD012/no-multiple-blanks : Allow 2 consecutive blank lines
4+
"no-multiple-blanks": {
5+
"maximum": 2
6+
}
7+
}
8+
}

.github/workflows/linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ jobs:
5858
if: steps.changed-files-md.outputs.any_changed == 'true'
5959
uses: DavidAnson/markdownlint-cli2-action@v22
6060
with:
61+
config: '.github/config.markdownlint-cli2.jsonc'
6162
globs: ${{ steps.changed-files-md.outputs.all_changed_files }}
6263
separator: ","

.gitignore

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/bin/
2-
/Makefile
31
/easyrpg-player
42
/Player.app
53
*.a
@@ -9,33 +7,8 @@
97
*.orig
108
*.bak
119

12-
# autotools
13-
/autom4te.cache/
14-
/easyrpg-player-*/
15-
/.libs/
16-
.deps/
17-
Makefile.in
18-
aclocal.m4
19-
config.h
20-
config.h.in
21-
config.status
22-
configure
23-
libtool
24-
/builds/autoconf/aux/
25-
/builds/autoconf/m4/*.m4
26-
!/builds/autoconf/m4/ax_*.m4
27-
!/builds/autoconf/m4/with_pkg.m4
28-
stamp-h1
29-
.dirstamp
30-
*.la
31-
*.lo
32-
/output
33-
/utils
34-
/directorytree
35-
/.version-append
36-
/.version-git
37-
3810
# cmake
11+
/Makefile
3912
CMakeFiles/
4013
CMakeScripts/
4114
CMakeCache.txt
@@ -88,10 +61,10 @@ build/
8861
# test/run artifacts
8962
easyrpg_log.txt
9063
/*.log
91-
/*.trs
9264
Testing/
9365

9466
# distribution archives
67+
/easyrpg-player-*/
9568
easyrpg-player-*.tar.*
9669
*.zip
9770

@@ -109,9 +82,8 @@ __MACOSX
10982
/RelWithDebInfo/
11083
/*.build/
11184

112-
# legacy
85+
# legacy, used for PLAYER_BUILD_LIBLCF
11386
/lib/liblcf/
114-
.buildconfig
11587

11688
# Android
11789
*.iml

CMakeLists.txt

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ include(PlayerConfigureWindows)
1212
include(PlayerFindPackage)
1313
include(PlayerBuildType)
1414
include(PlayerMisc)
15-
include(GetGitRevisionDescription)
1615

1716
# Dependencies provided by CMake Presets
1817
option(PLAYER_FIND_ROOT_PATH_APPEND
@@ -515,53 +514,24 @@ set(PLAYER_VERSION_FULL ${PLAYER_VERSION})
515514
string(CONCAT PROJECT_VERSION
516515
${PROJECT_VERSION_MAJOR} "." ${PROJECT_VERSION_MINOR} "."
517516
${PROJECT_VERSION_PATCH} "." ${PROJECT_VERSION_TWEAK})
518-
519-
set(PLAYER_VERSION_GIT "")
520-
git_get_exact_tag(GIT_TAG)
521-
# Do not include a hash, if we are building a release tag
522-
if(NOT GIT_TAG)
523-
# otherwise concatenate a version with hash
524-
git_describe(GIT_DESCRIPTION)
525-
if(GIT_DESCRIPTION)
526-
string(REPLACE "-" ";" GIT_DESCRIPTION ${GIT_DESCRIPTION})
527-
list(LENGTH GIT_DESCRIPTION GIT_DESCRIPTION_PARTS)
528-
set(GIT_MESSAGE "Found git info: ")
529-
if(GIT_DESCRIPTION_PARTS EQUAL 3)
530-
list(GET GIT_DESCRIPTION 0 GIT_TAG)
531-
list(GET GIT_DESCRIPTION 1 GIT_COMMITS)
532-
list(GET GIT_DESCRIPTION 2 GIT_HASH)
533-
string(APPEND GIT_MESSAGE "${GIT_COMMITS} commits since tag \"${GIT_TAG}\", ")
534-
string(PREPEND GIT_COMMITS "+")
535-
# strip the g prefix
536-
string(SUBSTRING ${GIT_HASH} 1 -1 GIT_HASH)
537-
else()
538-
# no tags found, only hash
539-
list(GET GIT_DESCRIPTION 0 GIT_HASH)
540-
endif()
541-
set(PLAYER_VERSION_GIT "git${GIT_COMMITS}@${GIT_HASH}")
542-
string(APPEND GIT_MESSAGE "object hash is ${GIT_HASH}")
543-
git_local_changes(GIT_DIRTY)
544-
if(GIT_DIRTY STREQUAL "DIRTY")
545-
string(APPEND PLAYER_VERSION_GIT "-dirty")
546-
string(APPEND GIT_MESSAGE ", you have uncommitted changes")
547-
endif()
548-
string(APPEND PLAYER_VERSION_FULL "-${PLAYER_VERSION_GIT}")
549-
550-
message(STATUS "${GIT_MESSAGE}")
551-
endif()
517+
set(PLAYER_VERSION_DEFS EP_VERSION="${PLAYER_VERSION}"
518+
EP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR} EP_VERSION_MINOR=${PROJECT_VERSION_MINOR}
519+
EP_VERSION_PATCH=${PROJECT_VERSION_PATCH} EP_VERSION_TWEAK=${PROJECT_VERSION_TWEAK})
520+
521+
player_find_gitversion(VERSION_VAR PLAYER_VERSION_GIT
522+
MESSAGE_VAR GIT_STATUS)
523+
if(PLAYER_VERSION_GIT)
524+
string(APPEND PLAYER_VERSION_FULL "-${PLAYER_VERSION_GIT}")
525+
list(APPEND PLAYER_VERSION_DEFS EP_VERSION_GIT="${PLAYER_VERSION_GIT}")
552526
endif()
553527

554528
string(TIMESTAMP PLAYER_DATE "(%Y-%m-%d)")
555529
set(PLAYER_VERSION_APPEND ${PLAYER_DATE} CACHE STRING "Additional version information to include")
556-
set_property(SOURCE src/version.cpp PROPERTY COMPILE_DEFINITIONS
557-
EP_VERSION="${PLAYER_VERSION}";
558-
EP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR};
559-
EP_VERSION_MINOR=${PROJECT_VERSION_MINOR};
560-
EP_VERSION_PATCH=${PROJECT_VERSION_PATCH};
561-
EP_VERSION_TWEAK=${PROJECT_VERSION_TWEAK};
562-
EP_VERSION_APPEND="${PLAYER_VERSION_APPEND}";
563-
EP_VERSION_GIT="${PLAYER_VERSION_GIT}"
564-
)
530+
if(NOT PLAYER_VERSION_APPEND STREQUAL "")
531+
list(APPEND PLAYER_VERSION_DEFS EP_VERSION_APPEND="${PLAYER_VERSION_APPEND}")
532+
endif()
533+
534+
set_property(SOURCE src/version.cpp PROPERTY COMPILE_DEFINITIONS ${PLAYER_VERSION_DEFS})
565535

566536
# Platform setup
567537
if(NINTENDO_3DS)
@@ -1555,14 +1525,7 @@ find_package(Doxygen)
15551525
set(DOXYGEN_STATUS "Unavailable")
15561526
if(DOXYGEN_FOUND)
15571527
set(DOXYGEN_STATUS "Available (target \"doc\")")
1558-
# fake autotools variables
1559-
set(PACKAGE_VERSION ${PLAYER_VERSION})
1560-
set(DX_DOCDIR ${CMAKE_CURRENT_BINARY_DIR}/doc)
1561-
set(srcdir ${CMAKE_CURRENT_SOURCE_DIR})
15621528
configure_file(resources/Doxyfile.in resources/Doxyfile @ONLY)
1563-
unset(PACKAGE_VERSION)
1564-
unset(DX_DOCDIR)
1565-
unset(srcdir)
15661529

15671530
add_custom_target(player_doc
15681531
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/resources/Doxyfile
@@ -1639,6 +1602,9 @@ endif()
16391602

16401603
# Print summary
16411604
message(STATUS "")
1605+
message(STATUS "EasyRPG Player version ${PLAYER_VERSION} has been configured --")
1606+
message(STATUS "Git info: ${GIT_STATUS}")
1607+
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
16421608
set(TARGET_STATUS "${PLAYER_TARGET_PLATFORM}")
16431609
if(NINTENDO_WIIU)
16441610
set(TARGET_STATUS "Wii U (SDL2)")

0 commit comments

Comments
 (0)