Skip to content

Commit 8fc9275

Browse files
authored
Merge pull request #423 from carstene1ns/bugfix/install-config
Fix installation of lcf/config.h
2 parents de724ca + 09b262c commit 8fc9275

260 files changed

Lines changed: 265 additions & 261 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ install(
401401
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
402402
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
403403

404-
set(LCF_INSTALL_HEADERS ${LCF_HEADERS})
404+
set(LCF_INSTALL_HEADERS ${LCF_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/src/lcf/config.h)
405405
foreach(S ldb lmt lmu lsd rpg third_party)
406406
set(SUBDIR_HEADERS ${LCF_INSTALL_HEADERS})
407407
list(FILTER SUBDIR_HEADERS INCLUDE REGEX "/${S}/")

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2020 liblcf authors
1+
Copyright (c) 2014-2021 liblcf authors
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

builds/release-helper.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ sed -i "1,1 s/2014-2[0-9][0-9][0-9]/2014-$year/" COPYING
3939
# update copyright years, but filter out external sources
4040
echo "Updating source files…"
4141

42-
find src tests -maxdepth 1 -type f \
43-
-a \( -name "*.h" -o -name "*.cpp" \) \
42+
find src tests -maxdepth 3 \
43+
\( -path src/generated -o -path src/lcf/third_party \) -prune \
44+
-o -type f -a \( -name "*.h" -o -name "*.cpp" \) \
4445
-a \! \( -name "ini*" -o -name "doctest*" \) \
4546
-exec sed -i "/liblcf\. Copyright/,1 s/2[0-9][0-9][0-9]/$year/" {} +
4647

48+
find tools -maxdepth 1 -type f -a \( -name "*.h" -o -name "*.cpp" \) \
49+
-exec sed -i "/Copyright/,1 s/2[0-9][0-9][0-9]/$year/" {} +
50+
4751
# updating header for generated source files
4852
grep -q "liblcf\. Copyright.*$year" generator/templates/copyright.tmpl ||
4953
echo " -> You need to run the generator."

generator/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def process_file(filename, namedtup):
248248
# Mapping is: All elements of the line grouped by the first column
249249

250250
path = os.path.join(csv_dir, filename)
251-
df = pd.read_csv(path, comment='#', dtype=np.str)
251+
df = pd.read_csv(path, comment='#', dtype=str)
252252
df = df.fillna("")
253253

254254
lines = [ list(r) for _i, r in df.iterrows() ]

generator/templates/copyright.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
22
* --------------------------------------
33
*
4-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
4+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
55
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
66
*
77
* liblcf is Free/Libre Open Source Software, released under the MIT License.

src/encoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
2+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
33
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
44
*
55
* liblcf is Free/Libre Open Source Software, released under the MIT License.

src/generated/fwd_struct_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
22
* --------------------------------------
33
*
4-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
4+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
55
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
66
*
77
* liblcf is Free/Libre Open Source Software, released under the MIT License.

src/generated/lcf/ldb/chunks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
22
* --------------------------------------
33
*
4-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
4+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
55
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
66
*
77
* liblcf is Free/Libre Open Source Software, released under the MIT License.

src/generated/lcf/lmt/chunks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
22
* --------------------------------------
33
*
4-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
4+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
55
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
66
*
77
* liblcf is Free/Libre Open Source Software, released under the MIT License.

src/generated/lcf/lmu/chunks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
22
* --------------------------------------
33
*
4-
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
4+
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
55
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
66
*
77
* liblcf is Free/Libre Open Source Software, released under the MIT License.

0 commit comments

Comments
 (0)