mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
change to use netsurf toolchain build
This commit is contained in:
parent
8a6f63fca3
commit
3faaff91ac
11
Makefile
11
Makefile
@ -207,12 +207,13 @@ else
|
||||
ifeq ($(TARGET),windows)
|
||||
ifneq ($(HOST),windows)
|
||||
# Set Mingw defaults
|
||||
MINGW_PREFIX ?= i586-mingw32msvc-
|
||||
MINGW_INSTALL_ENV ?= /usr/i586-mingw32msvc/
|
||||
GCCSDK_INSTALL_ENV ?= /opt/netsurf/i686-w64-mingw32/env
|
||||
GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/i686-w64-mingw32/cross/bin
|
||||
|
||||
# mingw cross-compile
|
||||
CC := $(MINGW_PREFIX)gcc
|
||||
PKG_CONFIG := $(MINGW_INSTALL_ENV)/bin/pkg-config
|
||||
CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
|
||||
WINDRES := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*windres)
|
||||
|
||||
PKG_CONFIG := PKG_CONFIG_LIBDIR="$(GCCSDK_INSTALL_ENV)/lib/pkgconfig" pkg-config
|
||||
else
|
||||
# Building on Windows
|
||||
CC := gcc
|
||||
|
@ -2,7 +2,8 @@
|
||||
# Windows target setup
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
LDFLAGS += -L${MINGW_INSTALL_ENV}/lib
|
||||
LDFLAGS += -L${GCCSDK_INSTALL_ENV}/lib
|
||||
CFLAGS += -I${GCCSDK_INSTALL_ENV}/include/
|
||||
|
||||
NETSURF_FEATURE_NSSVG_CFLAGS := -DWITH_NS_SVG
|
||||
NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE
|
||||
@ -17,9 +18,9 @@
|
||||
|
||||
ifneq ($(PKG_CONFIG),)
|
||||
CFLAGS += $(shell $(PKG_CONFIG) --cflags libcurl libhubbub zlib \
|
||||
libparserutils libxml-2.0)
|
||||
LDFLAGS += $(shell $(PKG_CONFIG) --libs zlib libxml-2.0 libcurl \
|
||||
libhubbub libparserutils libcss libwapcaplet)
|
||||
libparserutils libdom libwapcaplet libcares libxml-2.0)
|
||||
LDFLAGS += $(shell $(PKG_CONFIG) --libs zlib libxml-2.0 libcares libcurl \
|
||||
libhubbub libparserutils libcss libdom libwapcaplet)
|
||||
else
|
||||
LDFLAGS += -lhubbub -lcss -lparserutils -lwapcaplet -lxml2 -lcurl -lz
|
||||
endif
|
||||
@ -39,8 +40,8 @@
|
||||
|
||||
|
||||
WSCFLAGS := -std=c99 \
|
||||
$(WARNFLAGS) -I. -I${MINGW_INSTALL_ENV}/include/ \
|
||||
-DCURL_STATICLIB -DLIBXML_STATIC -g
|
||||
$(WARNFLAGS) -I. \
|
||||
-DCURL_STATICLIB -DLIBXML_STATIC -DCARES_STATICLIB -g
|
||||
CFLAGS += $(WSCFLAGS)
|
||||
LDFLAGS += $(WSCFLAGS)
|
||||
|
||||
@ -50,7 +51,7 @@
|
||||
|
||||
$(OBJROOT)/windows_resource.o: windows/res/resource.rc
|
||||
$(VQ)echo " WINDRES: compiling windows resources"
|
||||
${Q}$(MINGW_PREFIX)windres $< -O coff -o $@
|
||||
${Q}$(WINDRES) $< -O coff -o $@
|
||||
|
||||
S_RESOURCES := windows_resource.o
|
||||
|
||||
|
@ -1792,7 +1792,7 @@ bool gui_commit_clipboard(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
static bool
|
||||
gui_selection_traverse_handler(const char *text,
|
||||
size_t length,
|
||||
@ -1814,7 +1814,7 @@ gui_selection_traverse_handler(const char *text,
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
*/
|
||||
bool gui_copy_to_clipboard(struct selection *s)
|
||||
{
|
||||
if (selection_defined(s)) {
|
||||
|
Loading…
Reference in New Issue
Block a user