-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compile.cwMake
106 lines (101 loc) · 2.69 KB
/
Compile.cwMake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
;Register Cwc before using a .cwmake
>
-{_sOpt}="Debug"
>
-{_wToolchain}= VLianceTool/LibRT
>
-{pLib}=Lib/Lib_Debug/
>
-{pSrc}=freetype-2.10.4/src/
-{pIncl}=freetype-2.10.4/include/
-{pOut}=_out/{_sPlatform}_{_sOpt}/
-{pLibDir}= Lib/Lib_{_sOpt}/
-{pObj}= obj/{_sPlatform}_{_sOpt}/
-{pObjLib}= {pObj}LibFT/
>
-{vIncl}= -I {pIncl} -I {pIncl}freetype/config/ -I {_wToolchain}/include
>
-{vFlag}= -{vIncl}
-DFT_CONFIG_CONFIG_H=<ftconfig.h>>
-DFT_CONFIG_MODULES_H=<ftmodule.h>>
-DFT_CONFIG_OPTIONS_H=<ftoption.h>>
-DFT2_BUILD_LIBRARY
;-DFT_CONFIG_OPTIONS_H=<freetype/config/ftoption.h>>
-DFT_CONFIG_STANDARD_LIBRARY_H=<freetype/config/ftstdlib.h>>
;-DFT_CONFIG_OPTION_NO_DEFAULT_SYSTEM
;-DFT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT
-DFT_THROW_PRINT
;-DFT_DEBUG_LEVEL_ERROR
;-DFT_DEBUG_LEVEL_TRACE
;-DHAVE_MEMCPY
;-DFT_MAKE_OPTION_SINGLE_OBJECT
;-DFT_LOAD_TARGET_LCD
;-DFT_LOAD_TARGET_LCD_V
>
;Build FreeType
-c {pSrc}autofit/autofit.c -o {pObjLib}autofit.o -{vFlag}
|
-c {pSrc}base/ftbase.c -o {pObjLib}ftbase.o -{vFlag} |
-c {pSrc}base/ftinit.c -o {pObjLib}ftinit.o -{vFlag} |
-c {pSrc}base/ftsystem.c -o {pObjLib}ftsystem.o -{vFlag} |
-c {pSrc}base/ftbitmap.c -o {pObjLib}ftbitmap.o -{vFlag} |
-c {pSrc}base/ftdebug.c -o {pObjLib}ftdebug.o -{vFlag}
|
-c {pSrc}bdf/bdf.c -o {pObjLib}bdf.o -{vFlag}
|
-c {pSrc}cache/ftcache.c -o {pObjLib}ftcache.o -{vFlag}
|
-c {pSrc}cff/cff.c -o {pObjLib}cff.o -{vFlag}
|
-c {pSrc}cid/type1cid.c -o {pObjLib}type1cid.o -{vFlag}
|
-c {pSrc}gxvalid/gxvalid.c -o {pObjLib}gxvalid.o -{vFlag}
|
-c {pSrc}gzip/ftgzip.c -o {pObjLib}ftgzip.o -{vFlag}
|
-c {pSrc}lzw/ftlzw.c -o {pObjLib}ftlzw.o -{vFlag}
|
-c {pSrc}otvalid/otvalid.c -o {pObjLib}otvalid.o -{vFlag}
|
-c {pSrc}pcf/pcf.c -o {pObjLib}pcf.o -{vFlag}
|
-c {pSrc}pfr/pfr.c -o {pObjLib}pfr.o -{vFlag}
|
-c {pSrc}psaux/psaux.c -o {pObjLib}psaux.o -{vFlag}
|
-c {pSrc}pshinter/pshinter.c -o {pObjLib}pshinter.o -{vFlag}
|
-c {pSrc}psnames/psnames.c -o {pObjLib}psnames.o -{vFlag}
|
-c {pSrc}raster/raster.c -o {pObjLib}raster.o -{vFlag}
|
-c {pSrc}sfnt/sfnt.c -o {pObjLib}sfnt.o -{vFlag}
|
-c {pSrc}smooth/smooth.c -o {pObjLib}smooth.o -{vFlag}
|
-c {pSrc}truetype/truetype.c -o {pObjLib}truetype.o -{vFlag}
|
-c {pSrc}type1/type1.c -o {pObjLib}type1.o -{vFlag}
|
-c {pSrc}type42/type42.c -o {pObjLib}type42.o -{vFlag}
>
-c {pSrc}bzip2/ -o {pObjLib}bzip2/ -{vFlag}
>
-c {pSrc}winfonts/ -o {pObjLib}winfonts/ -{vFlag}
>
-o {pObjLib} -#To {pLibDir}libFreeType.a
>
;Build src
-c src/LCD/ -o {pObj}src/LCD/
-{vFlag} -ggdb
-I src/LCD/
>
;Link
-o {pObj}src/LCD/ -#To {pOut}ttf_gen.exe
-L {pLibDir}
-lFreeType
-lgdi32
-Wl,--export-all-symbols
>
-#Run
>