forked from ghaerr/microwindows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.emscripten
More file actions
258 lines (234 loc) · 10.5 KB
/
Copy pathconfig.emscripten
File metadata and controls
258 lines (234 loc) · 10.5 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
####################################################################
# config - Microwindows and Nano-X configuration file
#
# Set target architecture using ARCH= from options in Arch.rules
# Set SCREEN/MOUSE/KEYBOARD drivers (typically X11 or FB)
# Set various libraries to build or include and their locations
#
# See the src/Configs directory for pre-built config files.
# Edit this or copy one from src/Configs, and type "make clean; make"
####################################################################
####################################################################
#
# Target platform and compilation options
#
####################################################################
ARCH = EMSCRIPTEN
SHAREDLIBS = N
SHAREDLINK = N
#EXTRAFLAGS = -Wall -Wno-missing-prototypes
DEBUG = N
OPTIMIZE = N
#OPTIMIZE = -O1
VERBOSE = N
THREADSAFE = N
PARALLEL = N
####################################################################
# Screen Driver
# Set SCREEN=X11 for X11, SCREEN=FB for framebuffer drawing
# Screen size/depth for X11, FBE and non-dynamic framebuffer systems
####################################################################
SCREEN = SDL
MOUSE =
KEYBOARD =
SCREEN_WIDTH = 1024
SCREEN_HEIGHT = 640
# EMSCRIPTEN X11 headers are local in nx11
# X11_RGBTXT is actually --preload fonts/em-fonts@/usr/share/fonts/truetype
X11HDRLOCATION = $(MW_DIR_SRC)/nx11/X11-local
X11_RGBTXT = /usr/share/fonts/truetype/rgb.txt
####################################################################
#
# Libraries to build: microwin, nano-X, nxlib, engine
#
####################################################################
MICROWIN = Y
NANOX = Y
NUKLEARUI = Y
NX11 = Y
ENGINE = N
TINYWIDGETS = N
####################################################################
#
# Applications and demos to build
#
####################################################################
FBEMULATOR = N
MICROWINDEMO = N
NANOXDEMO = N
HAVE_VNCSERVER_SUPPORT = N
VNCSERVER_PTHREADED = N
LIBVNC = -lvncserver
INCVNC =
####################################################################
# LINK_APP_INTO_SERVER links the nano-X server into the application,
# by building a libnano-X.{a,so} that runs standalone.
# Required if UNIX sockets aren't available, for debugging,
# and also used to support running X11 apps through NXLIB on X11.
# NANOWM links the window manager into the server.
####################################################################
LINK_APP_INTO_SERVER = Y
NANOWM = Y
####################################################################
# Shared memory support for Nano-X client/server protocol speedup
####################################################################
HAVE_SHAREDMEM_SUPPORT = N
####################################################################
# File I/O support
# Supporting either below drags in libc stdio, which may not be wanted
####################################################################
HAVE_FILEIO = Y
####################################################################
# BMP, GIF reading support
####################################################################
HAVE_BMP_SUPPORT = Y
HAVE_GIF_SUPPORT = Y
HAVE_PNM_SUPPORT = Y
HAVE_XPM_SUPPORT = Y
####################################################################
# JPEG support through libjpeg, see README.txt in contrib/jpeg
####################################################################
HAVE_JPEG_SUPPORT = N
INCJPEG =
#LIBJPEG = -ljpeg
####################################################################
# PNG support via libpng and libz
####################################################################
HAVE_PNG_SUPPORT = Y
INCPNG =
#LIBPNG = -lpng
INCZ =
#LIBZ = -lz
####################################################################
# TIFF support through libtiff
####################################################################
HAVE_TIFF_SUPPORT = N
INCTIFF =
LIBTIFF = -ltiff
####################################################################
# PCF font support - .pcf/.pcf.gz loadable fonts
####################################################################
HAVE_PCF_SUPPORT = Y
HAVE_PCFGZ_SUPPORT = Y
PCF_FONT_DIR = "fonts/pcf"
####################################################################
# Truetype fonts - .ttf and .otf loadable fonts thru Freetype 2.x
####################################################################
HAVE_FREETYPE_2_SUPPORT = Y
HAVE_HARFBUZZ_SUPPORT = N
#INCFT2LIB = /usr/local/include/freetype2
#LIBFT2LIB = -lfreetype -lbz2
#LIBFT2LIB += -lharfbuzz
FREETYPE_FONT_DIR = "fonts/truetype"
####################################################################
# T1 adobe type1 fonts - .pfb/.afm loadable thru t1lib
# t1lib.config must be setup and in T1LIB_FONT_DIR
####################################################################
HAVE_T1LIB_SUPPORT = N
T1LIB_FONT_DIR = "fonts/type1"
INCT1LIB =
LIBT1LIB = -lt1
####################################################################
# FNT font support - .fnt/.fnt.gz loadable fonts (native bdf-converted)
####################################################################
HAVE_FNT_SUPPORT = Y
HAVE_FNTGZ_SUPPORT = Y
FNT_FONT_DIR = "fonts/fnt"
####################################################################
# Specialized font support
#
# Chinese Han Zi Ku HZK loadable font support
# Chinese Hanzi Bitmap Font HBF loadable font support
# DBCS Chinese BIG5 compiled in font support (big5font.c)
# DBCS Chinese GB2312 compiled in font support (gb2312font.c)
# DBCS Japanese JISX0213 compiled in font support (jisx0213-12x12.c)
# Japanese EUC-JP support using loadable MGL font
# DBCS Korean HANGUL font support (jo16x16.c)
# Fribidi and shape/joining support for right to left rendering
####################################################################
HAVE_HZK_SUPPORT = N
HZK_FONT_DIR = "fonts/chinese"
HAVE_HBF_SUPPORT = N
HAVE_BIG5_SUPPORT = N
HAVE_GB2312_SUPPORT = N
HAVE_JISX0213_SUPPORT = N
HAVE_EUCJP_SUPPORT = N
EUCJP_FONT_DIR = "fonts/japanese"
HAVE_KSC5601_SUPPORT = N
HAVE_FRIBIDI_SUPPORT = N
HAVE_SHAPEJOINING_SUPPORT = N
INCFRIBIDI =
LIBFRIBIDI = -lfribidi
####################################################################
# Misc Options
####################################################################
# Window move algorithms for Microwindows
# Change for tradeoff between cpu speed and looks
# ERASEMOVE (nanowm) repaints only backgrounds while window dragging
# Otherwise an XOR redraw is used for window moves only after button up
# UPDATEREGIONS (win32 api only)paints in update clipping region only
ERASEMOVE = Y
UPDATEREGIONS = Y
# Generate screen driver interface only with no fonts or clipping
NOFONTS = N
NOCLIPPING = N
# set USE_EXPOSURE for X11 on XFree86 4.x or if backing store not working
# set VTSWITCH to include virtual terminal switch code
# set FBREVERSE to reverse bit orders in 1,2,4 bpp
# set GRAYPALETTE to link with Gray Palette (valid only for 4bpp modes)
# set HAVETEXTMODE=Y for systems that can switch between text & graphics.
USE_EXPOSURE = Y
VTSWITCH = N
FBREVERSE = N
GRAYPALETTE = N
HAVETEXTMODE = N
####################################################################
# Screen pixel format
# If using Linux framebuffer, set to MWPF_TRUECOLORARGB, and use fbset.
# When running X11 or FBE, this sets the pixel emulation at runtime.
#
# On Linux or when running the standard framebuffer subdrivers,
# the runtime framebuffer BPP (bits per pixel) is used to select
# the runtime screen subdriver. However, the format of the pixel
# itself must be selected at compile time, which sets macros used
# for MWCOLORVAL color conversions and conversion blit byte order.
# This also sets sizeof(MWPIXELVAL) for optimizing buffers sizes
# in GrArea/GrReadArea.
#
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal index*/
# define MWPF_TRUECOLORARGB /* pixel is packed 32 bits byte order |B|G|R|A|*/
# define MWPF_TRUECOLORABGR /* pixel is packed 32 bits byte order |R|G|B|A|*/
# define MWPF_TRUECOLORRGB /* pixel is packed 24 bits byte order |B|G|R|*/
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits little endian RGB565*/
# define MWPF_TRUECOLOR555 /* pixel is packed 16 bits little endian RGB555*/
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits RGB 332*/
# define MWPF_TRUECOLOR233 /* pixel is packed 8 bits BGR 332*/
# SCREEN_DEPTH is bits per pixel, only used with MWPF_PALETTE palette mode
####################################################################
SCREEN_PIXTYPE = MWPF_TRUECOLORARGB
#SCREEN_PIXTYPE = MWPF_TRUECOLORABGR
#SCREEN_PIXTYPE = MWPF_TRUECOLOR565
SCREEN_DEPTH = 8
####################################################################
# Screen drivers
# SCREEN=X11 X11
# SCREEN=FB linux framebuffer
# SCREEN=FBE framebuffer emulator
# SCREEN=SDL SDL v2
# SCREEN=ALLEGRO Allegro v5
####################################################################
####################################################################
# Mouse drivers
# MOUSE=NOMOUSE no mouse driver
# MOUSE=GPMMOUSE gpm mouse
# MOUSE=SERMOUSE serial Microsoft, PC, Logitech, PS/2 mice (/dev/psaux)
# MOUSE=DEVMICEMOUSE Use Linux /dev/input/mice driver
# MOUSE=TSLIBMOUSE Use tslib (/dev/input/event0)
####################################################################
####################################################################
# Keyboard drivers
# KEYBOARD=NOKBD no keyboard driver
# KEYBOARD=TTYKBD tty keyboard
# KEYBOARD=SCANKBD scanmode keyboard
# KEYBOARD=2NDKBD two keyboards support
####################################################################