master hovercats/oakiss / pkg / netsurf / libcss / gen.lua
  1cflags{
  2	[[-D '_ALIGNED=__attribute__((aligned))']],
  3	'-I $srcdir/include',
  4	'-I $srcdir/src',
  5	'-I $basedir/pkg/netsurf/libparserutils/src/include',
  6	'-I $basedir/pkg/netsurf/libwapcaplet/src/include',
  7}
  8
  9sub('tools.ninja', function()
 10	toolchain(config.host)
 11	exe('gen_prop_parser', {'src/parse/properties/css_property_parser_gen.c'})
 12end)
 13
 14build('awk', '$outdir/prop_parsers.c', {
 15	'$srcdir/src/parse/properties/properties.gen',
 16	'|', '$dir/prop_parsers.awk', '$outdir/gen_prop_parser',
 17}, {expr='-f $dir/prop_parsers.awk gen_prop_parser=$outdir/gen_prop_parser'})
 18
 19pkg.deps = {
 20	'pkg/netsurf/libparserutils/fetch',
 21	'pkg/netsurf/libwapcaplet/fetch',
 22}
 23
 24lib('libcss.a', [[src/(
 25	stylesheet.c
 26	charset/detect.c
 27	lex/lex.c
 28	parse/(
 29		parse.c language.c important.c propstrings.c font_face.c mq.c
 30		properties/(
 31			azimuth.c
 32			background.c
 33			background_position.c
 34			border.c
 35			border_color.c
 36			border_spacing.c
 37			border_style.c
 38			border_width.c
 39			clip.c
 40			columns.c
 41			column_rule.c
 42			content.c
 43			cue.c
 44			cursor.c
 45			elevation.c
 46			flex.c
 47			flex_flow.c
 48			font.c
 49			font_family.c
 50			font_weight.c
 51			list_style.c
 52			list_style_type.c
 53			margin.c
 54			opacity.c
 55			outline.c
 56			overflow.c
 57			padding.c
 58			pause.c
 59			play_during.c
 60			properties.c
 61			quotes.c
 62			text_decoration.c
 63			utils.c
 64			voice_family.c
 65		)
 66	)
 67	select/(
 68		arena.c computed.c dispatch.c hash.c select.c font_face.c
 69		properties/(
 70			helpers.c
 71			align_content.c
 72			align_items.c
 73			align_self.c
 74			azimuth.c
 75			background_attachment.c
 76			background_color.c
 77			background_image.c
 78			background_position.c
 79			background_repeat.c
 80			border_bottom_color.c
 81			border_bottom_style.c
 82			border_bottom_width.c
 83			border_collapse.c
 84			border_left_color.c
 85			border_left_style.c
 86			border_left_width.c
 87			border_right_color.c
 88			border_right_style.c
 89			border_right_width.c
 90			border_spacing.c
 91			border_top_color.c
 92			border_top_style.c
 93			border_top_width.c
 94			bottom.c
 95			box_sizing.c
 96			break_after.c
 97			break_before.c
 98			break_inside.c
 99			caption_side.c
100			clear.c
101			clip.c
102			color.c
103			column_count.c
104			column_fill.c
105			column_gap.c
106			column_rule_color.c
107			column_rule_style.c
108			column_rule_width.c
109			column_span.c
110			column_width.c
111			content.c
112			counter_increment.c
113			counter_reset.c
114			cue_after.c
115			cue_before.c
116			cursor.c
117			direction.c
118			display.c
119			elevation.c
120			empty_cells.c
121			flex_basis.c
122			flex_direction.c
123			flex_grow.c
124			flex_shrink.c
125			flex_wrap.c
126			float.c
127			font_family.c
128			font_size.c
129			font_style.c
130			font_variant.c
131			font_weight.c
132			height.c
133			justify_content.c
134			left.c
135			letter_spacing.c
136			line_height.c
137			list_style_image.c
138			list_style_position.c
139			list_style_type.c
140			margin_bottom.c
141			margin_left.c
142			margin_right.c
143			margin_top.c
144			max_height.c
145			max_width.c
146			min_height.c
147			min_width.c
148			opacity.c
149			order.c
150			orphans.c
151			outline_color.c
152			outline_style.c
153			outline_width.c
154			overflow_x.c
155			overflow_y.c
156			padding_bottom.c
157			padding_left.c
158			padding_right.c
159			padding_top.c
160			page_break_after.c
161			page_break_before.c
162			page_break_inside.c
163			pause_after.c
164			pause_before.c
165			pitch.c
166			pitch_range.c
167			play_during.c
168			position.c
169			quotes.c
170			richness.c
171			right.c
172			speech_rate.c
173			speak.c
174			speak_header.c
175			speak_numeral.c
176			speak_punctuation.c
177			stress.c
178			table_layout.c
179			text_align.c
180			text_decoration.c
181			text_indent.c
182			text_transform.c
183			top.c
184			unicode_bidi.c
185			vertical_align.c
186			visibility.c
187			voice_family.c
188			volume.c
189			white_space.c
190			widows.c
191			width.c
192			word_spacing.c
193			writing_mode.c
194			z_index.c
195		)
196	)
197	utils/(errors.c utils.c)
198) $builddir/pkg/netsurf/(
199	libcss/prop_parsers.c
200	libparserutils/libparserutils.a
201	libwapcaplet/libwapcaplet.a
202)]])
203
204fetch 'git'