Skip to content

Commit b948d51

Browse files
authored
Merge pull request #11 from takkaO/develop
Release update v1.0
2 parents 000cc34 + 99000f7 commit b948d51

40 files changed

+12983
-2018
lines changed

AutoRun.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
Write-Host "Execute CopyLibs.ps1"
2+
Write-Host ""
23
./CopyLibs.ps1
34

45
Write-Host ""
56
Write-Host "Execute ModifyLibs.ps1"
67
Write-Host ""
7-
./ModifyLibs.ps1
8+
./ModifyLibs.ps1
9+
10+
Write-Host ""
11+
Write-Host "Execute Export_CMakeLists.ps1"
12+
Write-Host ""
13+
./Export_CMakeLists.ps1

AutoRun.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/bin/bash
22

3-
echo "Execute CopyLibs.ps1"
3+
echo "Execute CopyLibs.sh"
44
echo ""
55
./CopyLibs.sh
66

77
echo ""
8-
echo "Execute ModifyLibs.ps1"
8+
echo "Execute ModifyLibs.sh"
99
echo ""
10-
./ModifyLibs.sh
10+
./ModifyLibs.sh
11+
12+
echo ""
13+
echo "Execute Export_CMakeLists.sh"
14+
echo ""
15+
./Export_CMakeLists.sh

CMakeLists.txt

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# This file was automatically created by "Export_CMakeLists" script.
2+
3+
set(srcs
4+
"./src/base/basepic.c"
5+
"./src/base/ftadvanc.c"
6+
"./src/base/ftapi.c"
7+
"./src/base/ftbase.c"
8+
"./src/base/ftbbox.c"
9+
"./src/base/ftbdf.c"
10+
"./src/base/ftbitmap.c"
11+
"./src/base/ftcalc.c"
12+
"./src/base/ftcid.c"
13+
"./src/base/ftdbgmem.c"
14+
"./src/base/ftdebug.c"
15+
"./src/base/ftfstype.c"
16+
"./src/base/ftgasp.c"
17+
"./src/base/ftgloadr.c"
18+
"./src/base/ftglyph.c"
19+
"./src/base/ftgxval.c"
20+
"./src/base/ftinit.c"
21+
"./src/base/ftlcdfil.c"
22+
"./src/base/ftmm.c"
23+
"./src/base/ftobjs.c"
24+
"./src/base/ftotval.c"
25+
"./src/base/ftoutln.c"
26+
"./src/base/ftpatent.c"
27+
"./src/base/ftpfr.c"
28+
"./src/base/ftpic.c"
29+
"./src/base/ftrfork.c"
30+
"./src/base/ftsnames.c"
31+
"./src/base/ftstream.c"
32+
"./src/base/ftstroke.c"
33+
"./src/base/ftsynth.c"
34+
"./src/base/ftsystem.cpp"
35+
"./src/base/fttrigon.c"
36+
"./src/base/fttype1.c"
37+
"./src/base/ftutil.c"
38+
"./src/base/ftwinfnt.c"
39+
"./src/base/ftxf86.c"
40+
"./src/base/md5.c"
41+
"./src/cache/ftcache.c"
42+
"./src/cache/ftcbasic.c"
43+
"./src/cache/ftccache.c"
44+
"./src/cache/ftccmap.c"
45+
"./src/cache/ftcglyph.c"
46+
"./src/cache/ftcimage.c"
47+
"./src/cache/ftcmanag.c"
48+
"./src/cache/ftcmru.c"
49+
"./src/cache/ftcsbits.c"
50+
"./src/sfnt/sfdriver.c"
51+
"./src/sfnt/sfnt.c"
52+
"./src/sfnt/sfntpic.c"
53+
"./src/sfnt/sfobjs.c"
54+
"./src/sfnt/ttbdf.c"
55+
"./src/sfnt/ttcmap.c"
56+
"./src/sfnt/ttkern.c"
57+
"./src/sfnt/ttload.c"
58+
"./src/sfnt/ttmtx.c"
59+
"./src/sfnt/ttpost.c"
60+
"./src/sfnt/ttsbit.c"
61+
"./src/sfnt/ttsbit0.c"
62+
"./src/smooth/ftgrays.c"
63+
"./src/smooth/ftsmooth.c"
64+
"./src/smooth/ftspic.c"
65+
"./src/smooth/smooth.c"
66+
"./src/truetype/truetype.c"
67+
"./src/truetype/ttdriver.c"
68+
"./src/truetype/ttgload.c"
69+
"./src/truetype/ttinterp.c"
70+
"./src/truetype/ttobjs.c"
71+
"./src/truetype/ttpic.c"
72+
"./src/truetype/ttpload.c"
73+
"./src/truetype/ttsubpix.c"
74+
"./src/FileSupport.cpp"
75+
"./src/OpenFontRender.cpp"
76+
)
77+
idf_component_register(SRCS ${srcs}
78+
INCLUDE_DIRS
79+
"./src"
80+
"./src/base"
81+
"./src/cache"
82+
"./src/freetype"
83+
"./src/sfnt"
84+
"./src/smooth"
85+
"./src/truetype"
86+
"./src/freetype/config"
87+
"./src/freetype/internal"
88+
"./src/freetype/internal/services"
89+
)

CopyLibs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------
2-
# CopyLibs.sh
2+
# CopyLibs.ps1
33
#
44
# Copyright (c) 2021 takkaO
55
#

Export_CMakeLists.ps1

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# -------------------------------------------------------
2+
# Export_CMakeLists.ps1
3+
#
4+
# Copyright (c) 2022 takkaO
5+
#
6+
# If you use, modify, or redistribute this file independently 
7+
# of the original repository, this program is licensed under
8+
# the MIT License.
9+
#
10+
# If you use, modify or redistribute this file as part of
11+
# the original repository, please follow the repository's license.
12+
#
13+
# -------------------------------------------------------
14+
15+
Write-Host "** Start create CMakeLists.txt **"
16+
17+
## Clean CMakeLists.txt
18+
Write-Host "Processing clear old CMakeLists.txt"
19+
Write-Output "# This file was automatically created by `"Export_CMakeLists`" script.`n" | Set-Content CMakeLists.txt
20+
21+
## Search source files
22+
Write-Host "Processing search C/C++ source files"
23+
$lst = Get-ChildItem -Path "./src" -File -Recurse -Include *.c,*.cpp | Resolve-Path -Relative
24+
$lst = $lst -replace '\\', "/"
25+
26+
Write-Output "set(srcs " | Add-Content CMakeLists.txt
27+
foreach ($f in $lst) {
28+
# Space for indent
29+
Write-Output " `"$($f)`"" | Add-Content CMakeLists.txt
30+
}
31+
Write-Output ")" | Add-Content CMakeLists.txt
32+
33+
## Search include directory
34+
Write-Host "Processing search include directories"
35+
$lst = Get-ChildItem -Path "./src" -Directory -Recurse | Resolve-Path -Relative
36+
$lst = $lst -replace '\\', "/"
37+
38+
Write-Output "idf_component_register(SRCS `${srcs}" | Add-Content CMakeLists.txt
39+
Write-Output " INCLUDE_DIRS" | Add-Content CMakeLists.txt
40+
Write-Output " `"./src`"" | Add-Content CMakeLists.txt
41+
foreach ($f in $lst) {
42+
# Space for indent
43+
Write-Output " `"$($f)`"" | Add-Content CMakeLists.txt
44+
}
45+
Write-Output ")" | Add-Content CMakeLists.txt
46+
47+
Write-Host "** Finish create CMakeLists.txt **"

Export_CMakeLists.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/bash
2+
3+
# -------------------------------------------------------
4+
# Export_CMakeLists.sh
5+
#
6+
# Copyright (c) 2022 takkaO
7+
#
8+
# If you use, modify, or redistribute this file independently 
9+
# of the original repository, this program is licensed under
10+
# the MIT License.
11+
#
12+
# If you use, modify or redistribute this file as part of
13+
# the original repository, please follow the repository's license.
14+
#
15+
# -------------------------------------------------------
16+
17+
echo "** Start create CMakeLists.txt **"
18+
19+
## Clean CMakeLists.txt
20+
echo "Processing clear old CMakeLists.txt"
21+
echo -e "# This file was automatically created by \"Export_CMakeLists\" script.\n" > CMakeLists.txt
22+
23+
## Search source files
24+
echo "Processing search C/C++ source files"
25+
lst=$(find "./src" -type f -name "*.c" -or -name "*.cpp")
26+
27+
echo "set(srcs " >> CMakeLists.txt
28+
for f in $lst; do
29+
# Space for indent
30+
echo " "\"$f\" >> CMakeLists.txt
31+
done
32+
echo ")" >> CMakeLists.txt
33+
34+
## Search include directory
35+
echo "Processing search include directories"
36+
lst=$(find "./src" -type d)
37+
38+
echo "idf_component_register(SRCS \${srcs}" >> CMakeLists.txt
39+
echo " INCLUDE_DIRS " >> CMakeLists.txt
40+
for f in $lst; do
41+
# Space for indent
42+
echo " "\"$f\" >> CMakeLists.txt
43+
done
44+
echo ")" >> CMakeLists.txt
45+
46+
echo "** Finish create CMakeLists.txt **"

0 commit comments

Comments
 (0)