/contrib/network/netsurf/libcss/Makefile |
---|
1,61 → 1,15 |
# Component settings |
COMPONENT := css |
COMPONENT_VERSION := 0.1.2 |
# Default to a static library |
COMPONENT_TYPE ?= lib-static |
# This is the makefile in kolibrios/contrib/network/netsurf/libcss |
# Need to add recursive calling to all the subdirectories. For now, use the generated .a file for testing. |
# Setup the tooling |
PREFIX ?= /opt/netsurf |
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem |
include $(NSSHARED)/makefiles/Makefile.tools |
OUTFILE := $(CURDIR)/libcss.a |
TESTRUNNER := $(PERL) $(NSTESTTOOLS)/testrunner.pl |
OBJS = $(wildcard src/libo.o) |
OBJS := $(OBJS) $(wildcard src/charset/libo.o) |
OBJS := $(OBJS) $(wildcard src/lex/libo.o) |
OBJS := $(OBJS) $(wildcard src/parse/properties/libo.o) |
OBJS := $(OBJS) $(wildcard src/parse/libo.o) |
OBJS := $(OBJS) $(wildcard src/select/properties/libo.o) |
OBJS := $(OBJS) $(wildcard src/select/libo.o) |
OBJS := $(OBJS) $(wildcard src/utils/libo.o) |
# Toolchain flags |
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ |
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ |
-Wmissing-declarations -Wnested-externs |
# BeOS/Haiku/AmigaOS4 standard library headers create warnings |
ifneq ($(TARGET),beos) |
ifneq ($(TARGET),amiga) |
WARNFLAGS := $(WARNFLAGS) -Werror |
endif |
endif |
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ |
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) |
ifneq ($(GCCVER),2) |
CFLAGS := $(CFLAGS) -std=c99 |
else |
# __inline__ is a GCCism |
CFLAGS := $(CFLAGS) -Dinline="__inline__" |
endif |
# Parserutils & wapcaplet |
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) |
ifneq ($(PKGCONFIG),) |
CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --cflags) |
LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --libs) |
else |
CFLAGS := $(CFLAGS) -I$(PREFIX)/include |
LDFLAGS := $(LDFLAGS) -lparserutils -lwapcaplet |
endif |
endif |
include $(NSBUILD)/Makefile.top |
# Extra installation rules |
I := /include/libcss |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/computed.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/errors.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/font_face.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/fpmath.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/functypes.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/hint.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/libcss.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/properties.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/select.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/stylesheet.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/types.h |
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in |
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT) |
include $(MENUETDEV)/makefiles/Makefile_for_lib |
/contrib/network/netsurf/libcss/src/Makefile |
---|
1,5 → 1,6 |
OUTFILE = libo.o |
OBJS = stylesheet.o |
CFLAGS += -I ../include/ -I ../../ -I ./ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../libwapcaplet/include/ -I ../../libparserutils/include/ -I ../include/ -I ../../ -I ./ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/charset/Makefile |
---|
1,5 → 1,5 |
OUTFILE = libo.o |
OBJS = detect.o |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../libparserutils/include/ -I ../../../libwapcaplet/include/ |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/lex/Makefile |
---|
1,5 → 1,5 |
OUTFILE = libo.o |
OBJS = lex.o |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../libparserutils/include/ -I ../../../libwapcaplet/include/ |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/parse/Makefile |
---|
1,5 → 1,5 |
OUTFILE = libo.o |
OBJS = parse.o language.o important.o propstrings.o font_face.o |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../libwapcaplet/include/ -I ../../../libparserutils/include/ |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/parse/properties/Makefile |
---|
1,71 → 1,144 |
# Sources |
OUTFILE = libo.o |
AUTOGEN_PARSERS := $(shell $(PERL) -pe'$$_="" unless /^([^\#][^:]+):/;$$_=$$1 . " "' $(DIR)properties.gen) |
CFLAGS += -I ../../../include/ -I ../../../../ -I ../../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../../libwapcaplet/include/ -I ../../../../libparserutils/include/ |
# Dodgy use of define/eval to bypass DIR changing |
define build_gen_parser |
OBJS = autogenerated_background_attachment.o \ |
autogenerated_background_color.o \ |
autogenerated_background_image.o \ |
autogenerated_background_repeat.o \ |
autogenerated_border_bottom.o \ |
autogenerated_border_bottom_color.o \ |
autogenerated_border_bottom_style.o \ |
autogenerated_border_bottom_width.o \ |
autogenerated_border_collapse.o \ |
autogenerated_border_left.o \ |
autogenerated_border_left_color.o \ |
autogenerated_border_left_style.o \ |
autogenerated_border_left_width.o \ |
autogenerated_border_right.o \ |
autogenerated_border_right_color.o \ |
autogenerated_border_right_style.o \ |
autogenerated_border_right_width.o \ |
autogenerated_border_side_color.o \ |
autogenerated_border_side_style.o \ |
autogenerated_border_side_width.o \ |
autogenerated_border_top.o \ |
autogenerated_border_top_color.o \ |
autogenerated_border_top_style.o \ |
autogenerated_border_top_width.o \ |
autogenerated_bottom.o \ |
autogenerated_break_after.o \ |
autogenerated_break_before.o \ |
autogenerated_break_inside.o \ |
autogenerated_caption_side.o \ |
autogenerated_clear.o \ |
autogenerated_color.o \ |
autogenerated_column_count.o \ |
autogenerated_column_fill.o \ |
autogenerated_column_gap.o \ |
autogenerated_column_rule_color.o \ |
autogenerated_column_rule_style.o \ |
autogenerated_column_rule_width.o \ |
autogenerated_column_span.o \ |
autogenerated_column_width.o \ |
autogenerated_counter_increment.o \ |
autogenerated_counter_reset.o \ |
autogenerated_cue_after.o \ |
autogenerated_cue_before.o \ |
autogenerated_direction.o \ |
autogenerated_display.o \ |
autogenerated_empty_cells.o \ |
autogenerated_float.o \ |
autogenerated_font_size.o \ |
autogenerated_font_style.o \ |
autogenerated_font_variant.o \ |
autogenerated_height.o \ |
autogenerated_left.o \ |
autogenerated_letter_spacing.o \ |
autogenerated_line_height.o \ |
autogenerated_list_style_image.o \ |
autogenerated_list_style_position.o \ |
autogenerated_margin_bottom.o \ |
autogenerated_margin_left.o \ |
autogenerated_margin_right.o \ |
autogenerated_margin_side.o \ |
autogenerated_margin_top.o \ |
autogenerated_max_height.o \ |
autogenerated_max_width.o \ |
autogenerated_min_height.o \ |
autogenerated_min_width.o \ |
autogenerated_orphans.o \ |
autogenerated_outline_color.o \ |
autogenerated_outline_style.o \ |
autogenerated_outline_width.o \ |
autogenerated_overflow.o \ |
autogenerated_padding_bottom.o \ |
autogenerated_padding_left.o \ |
autogenerated_padding_right.o \ |
autogenerated_padding_side.o \ |
autogenerated_padding_top.o \ |
autogenerated_page_break_after.o \ |
autogenerated_page_break_before.o \ |
autogenerated_page_break_inside.o \ |
autogenerated_pause_after.o \ |
autogenerated_pause_before.o \ |
autogenerated_pitch.o \ |
autogenerated_pitch_range.o \ |
autogenerated_position.o \ |
autogenerated_richness.o \ |
autogenerated_right.o \ |
autogenerated_side.o \ |
autogenerated_speak.o \ |
autogenerated_speak_header.o \ |
autogenerated_speak_numeral.o \ |
autogenerated_speak_punctuation.o \ |
autogenerated_speech_rate.o \ |
autogenerated_stress.o \ |
autogenerated_table_layout.o \ |
autogenerated_text_align.o \ |
autogenerated_text_indent.o \ |
autogenerated_text_transform.o \ |
autogenerated_top.o \ |
autogenerated_unicode_bidi.o \ |
autogenerated_vertical_align.o \ |
autogenerated_visibility.o \ |
autogenerated_volume.o \ |
autogenerated_white_space.o \ |
autogenerated_widows.o \ |
autogenerated_width.o \ |
autogenerated_word_spacing.o \ |
autogenerated_z_index.o \ |
azimuth.o \ |
background.o \ |
background_position.o \ |
border.o \ |
border_color.o \ |
border_spacing.o \ |
border_style.o \ |
border_width.o \ |
clip.o \ |
column_rule.o \ |
columns.o \ |
content.o \ |
css_property_parser_gen.o \ |
cue.o \ |
cursor.o \ |
elevation.o \ |
font.o \ |
font_family.o \ |
font_weight.o \ |
list_style.o \ |
list_style_type.o \ |
margin.o \ |
opacity.o \ |
outline.o \ |
padding.o \ |
pause.o \ |
play_during.o \ |
properties.o \ |
quotes.o \ |
text_decoration.o \ |
utils.o \ |
voice_family.o |
$(BUILDDIR)/gen_parser: $(DIR)css_property_parser_gen.c |
$$(VQ)$$(ECHO) $$(ECHOFLAGS) " PREPARE: $$@" |
$$(Q)$$(HOST_CC) -o $$@ $$^ |
endef |
$(eval $(build_gen_parser)) |
define gen_prop_parser |
$(DIR)autogenerated_$1.c: $(DIR)properties.gen $(BUILDDIR)/gen_parser |
$$(VQ)$$(ECHO) $$(ECHOFLAGS) "GENERATE: $$@" |
$$(Q)$$(BUILDDIR)/gen_parser -o $$@ '$(shell $(GREP) "^$1:" $(DIR)properties.gen)' |
AUTOGEN_SOURCES := $$(AUTOGEN_SOURCES) autogenerated_$1.c |
endef |
AUTOGEN_SOURCES := |
$(eval $(foreach PROP,$(AUTOGEN_PARSERS),$(call gen_prop_parser,$(PROP)))) |
DIR_SOURCES := \ |
azimuth.c \ |
background.c \ |
background_position.c \ |
border.c \ |
border_color.c \ |
border_spacing.c \ |
border_style.c \ |
border_width.c \ |
clip.c \ |
columns.c \ |
column_rule.c \ |
content.c \ |
cue.c \ |
cursor.c \ |
elevation.c \ |
font.c \ |
font_family.c \ |
font_weight.c \ |
list_style.c \ |
list_style_type.c \ |
margin.c \ |
opacity.c \ |
outline.c \ |
padding.c \ |
pause.c \ |
play_during.c \ |
properties.c \ |
quotes.c \ |
text_decoration.c \ |
utils.c \ |
voice_family.c |
DIR_SOURCES := $(DIR_SOURCES) $(AUTOGEN_SOURCES) |
PRE_TARGETS := $(foreach AP,$(AUTOGEN_PARSERS),src/parse/properties/autogenerated_$(AP).c) |
DISTCLEAN_ITEMS := $(foreach AP,$(AUTOGEN_PARSERS),src/parse/properties/autogenerated_$(AP).c) |
include $(NSBUILD)/Makefile.subdir |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/parse/properties/css_property_parser_gen.c |
---|
457,6 → 457,7 |
.key = str_INHERIT, |
}; |
#if 0 |
int main(int argc, char **argv) |
{ |
char *descriptor; |
612,3 → 613,4 |
return 0; |
} |
#endif |
/contrib/network/netsurf/libcss/src/select/Makefile |
---|
1,5 → 1,5 |
OUTFILE = libo.o |
OBJS = computed.o dispatch.o hash.o select.o font_face.o |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../libwapcaplet/include/ -I ../../../libparserutils/include/ |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |
/contrib/network/netsurf/libcss/src/select/properties/Makefile |
---|
1,9 → 1,8 |
OUTFILE = libo.o |
CFLAGS += -I ../../../include/ -I ../../../../ -I ../../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../../include/ -I ../../../../ -I ../../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../../libwapcaplet/include/ -I ../../../../libparserutils/include/ |
OBJS = helpers.o \ |
azimuth.o \ |
background_attachment.o \ |
/contrib/network/netsurf/libcss/src/stylesheet.h |
---|
120,7 → 120,7 |
index : 16, /**< index in sheet */ |
items : 8, /**< # items in rule */ |
ptype : 1; /**< css_rule_parent_type */ |
} extern _ALIGNED; |
};// _ALIGNED; |
typedef struct css_rule_selector { |
css_rule base; |
/contrib/network/netsurf/libcss/src/utils/Makefile |
---|
1,5 → 1,5 |
OUTFILE = libo.o |
OBJS = errors.o utils.o |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include |
CFLAGS += -I ../../include/ -I ../../../ -I ../ -I /home/sourcerer/kos_src/newenginek/kolibri/include -I ../../../libparserutils/include/ -I ../../../libwapcaplet/include/ |
include $(MENUETDEV)/makefiles/Makefile_for_o_lib |