dep-repository

Default repository for the dep dependency manager
git clone git://git.finwo.net/misc/dep-repository
Log | Files | Refs

commit 5be9b738d0beb3e73aac5fd897690abc5727df44
parent 932efed9d9aa0a2052e4da6770e0b9be08ee0204
Author: finwo <finwo@pm.me>
Date:   Mon,  1 Jan 2024 21:42:33 +0100

Added os-specific build instructions to webview

Diffstat:
Mwebview/webview/config.mk | 39+++++++++++++++++++++++++++++++++++++++
Mwebview/webview/package.ini | 7+++++++
2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/webview/webview/config.mk b/webview/webview/config.mk @@ -1 +1,40 @@ SRC+=__DIRNAME/webview.cc + +ifeq ($(OS),Windows_NT) + # CFLAGS += -D WIN32 + override CFLAGS+= + override CPPFLAGS+=-I __DIRNAME/external/libs/Microsoft.Web.WebView2.1.0.1150.38/build/native/include + override LDFLAGS+=-mwindows -ladvapi32 -lole32 -lshell32 -lshlwapi -luser32 -lversion + ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) + # CFLAGS += -D AMD64 + else + ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) + # CFLAGS += -D AMD64 + endif + ifeq ($(PROCESSOR_ARCHITECTURE),x86) + # CFLAGS += -D IA32 + endif + endif +else + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Linux) + # CFLAGS += -D LINUX + override CFLAGS+=$(shell pkg-config --cflags gtk+-3.0 webkit2gtk-4.0) + override LDFLAGS+=$(shell pkg-config --libs gtk+-3.0 webkit2gtk-4.0) + endif + ifeq ($(UNAME_S),Darwin) + # CFLAGS += -D OSX + override CFLAGS+=-mmacosx-version-min=10.9 + override LDFLAGS+=-framework WebKit + endif + UNAME_P := $(shell uname -p) + ifeq ($(UNAME_P),x86_64) + # CFLAGS += -D AMD64 + endif + ifneq ($(filter %86,$(UNAME_P)),) + # CFLAGS += -D IA32 + endif + ifneq ($(filter arm%,$(UNAME_P)),) + # CFLAGS += -D ARM + endif +endif diff --git a/webview/webview/package.ini b/webview/webview/package.ini @@ -8,3 +8,10 @@ config.mk=https://raw.githubusercontent.com/finwo/dep-repository/main/webview/we [export] config.mk=config.mk include/webview/webview.h=webview.h + +[build-win] +0000=mkdir external +0001=mkdir external\\tools +0002=mkdir external\\libs +0003=curl -sSLo "external\\tools\\nuget-win32.exe" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe +0004=external\\tools\\nuget-win32 install Microsoft.Web.Webview2 -Verbosity quiet -Version "1.0.1150.38" -OutputDirectory "external\\libs" || exit /b 1