mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
e9b207c658
+ urldb API now takes URLs as nsurl, rather than string. + urldb internally stores full URLs with nsurl ref. + urldb internally stores schemes as lwc_string. + Load and save of cookies and URL file may be slower since we now need to create a nsurl. + Everything else should be faster, and there should be much less allocating/freeing and much less parsing of the same url over and over again. + Updated urldbtest for new urldb API. + urldbtest now cleans up at the end + Added lwc_string itterator to end of urldbtest + Adding some broken URLs (such as http:domain/) will now work, since nsurl fixes (http://domain/) them.
46 lines
1.7 KiB
Makefile
46 lines
1.7 KiB
Makefile
CFLAGS := -std=c99 -g -O0 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. \
|
|
$(shell pkg-config --cflags libxml-2.0 libcurl)
|
|
LDFLAGS := $(shell pkg-config --libs libxml-2.0 libcurl) -lz
|
|
|
|
llcache_CFLAGS := $(shell pkg-config --cflags libparserutils libwapcaplet)
|
|
llcache_LDFLAGS := $(shell pkg-config --libs libparserutils libwapcaplet)
|
|
|
|
llcache_SRCS := content/fetch.c content/fetchers/curl.c \
|
|
content/fetchers/about.c content/fetchers/data.c \
|
|
content/fetchers/resource.c content/llcache.c \
|
|
content/urldb.c desktop/options.c desktop/version.c \
|
|
image/image_cache.c \
|
|
utils/base64.c utils/hashtable.c utils/log.c utils/nsurl.c \
|
|
utils/messages.c utils/url.c utils/useragent.c utils/utf8.c \
|
|
utils/utils.c test/llcache.c
|
|
|
|
urldbtest_SRCS := content/urldb.c utils/url.c utils/utils.c utils/log.c \
|
|
desktop/options.c utils/messages.c utils/hashtable.c \
|
|
utils/filename.c utils/nsurl.c utils/corestrings.c \
|
|
test/urldbtest.c
|
|
|
|
urldbtest_CFLAGS := $(shell pkg-config --cflags libwapcaplet libdom) -O2
|
|
urldbtest_LDFLAGS := $(shell pkg-config --libs libwapcaplet libdom)
|
|
|
|
nsurl_SRCS := utils/log.c utils/nsurl.c test/nsurl.c
|
|
nsurl_CFLAGS := $(shell pkg-config --cflags libwapcaplet)
|
|
nsurl_LDFLAGS := $(shell pkg-config --libs libwapcaplet)
|
|
|
|
.PHONY: all
|
|
|
|
all: llcache urldbtest nsurl
|
|
|
|
llcache: $(addprefix ../,$(llcache_SRCS))
|
|
$(CC) $(CFLAGS) $(llcache_CFLAGS) $^ -o $@ $(LDFLAGS) $(llcache_LDFLAGS)
|
|
|
|
urldbtest: $(addprefix ../,$(urldbtest_SRCS))
|
|
$(CC) $(CFLAGS) $(urldbtest_CFLAGS) $^ -o $@ $(LDFLAGS) $(urldbtest_LDFLAGS)
|
|
|
|
nsurl: $(addprefix ../,$(nsurl_SRCS))
|
|
$(CC) $(CFLAGS) $(nsurl_CFLAGS) $^ -o $@ $(LDFLAGS) $(nsurl_LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
$(RM) llcache urldbtest nsurl
|