Rename examples lib name (Linux and macOS)

This commit is contained in:
Albert 2025-03-12 12:42:02 -04:00
parent e019f00fad
commit 6cca39ecac
18 changed files with 69 additions and 69 deletions

View File

@ -68,7 +68,7 @@ else ifeq ($(DETECTED_OS),Darwin)
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
LIB_DYN_OUT := $(WEBUI_OUT_LIB_NAME).dylib LIB_DYN_OUT := lib$(WEBUI_OUT_LIB_NAME).dylib
WEBKIT_OBJ := wkwebview.o WEBKIT_OBJ := wkwebview.o
WKWEBKIT_BUILD_FLAGS := -o wkwebview.o -c "$(MAKEFILE_DIR)/src/webview/wkwebview.m" WKWEBKIT_BUILD_FLAGS := -o wkwebview.o -c "$(MAKEFILE_DIR)/src/webview/wkwebview.m"
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit

View File

@ -226,9 +226,9 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c
| Compiler | Type | Command | | Compiler | Type | Command |
|----------|--------|---------| |----------|--------|---------|
| GCC | Static | `gcc -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` | | GCC | Static | `gcc -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` |
| GCC | Dynamic | `gcc my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.so" -lpthread -lm -ldl -o my_application` | | GCC | Dynamic | `gcc my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -ldl -o my_application` |
| Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` | | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` |
| Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.so" -lpthread -lm -ldl -o my_application` | | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -ldl -o my_application` |
</details> </details>
### macOS ### macOS
@ -236,7 +236,7 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c
| Compiler | Type | Command | | Compiler | Type | Command |
|----------|--------|---------| |----------|--------|---------|
| Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
| Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2.dylib" -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2 -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
<details> <details>
<summary><strong>macOS With SSL/TLS (Optional)</strong></summary> <summary><strong>macOS With SSL/TLS (Optional)</strong></summary>
@ -244,7 +244,7 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c
| Compiler | Type | Command | | Compiler | Type | Command |
|----------|--------|---------| |----------|--------|---------|
| Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
| Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.dylib" -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
</details> </details>
## Wrappers ## Wrappers

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -48,15 +48,15 @@ else
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
CC = clang CC = clang
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-

View File

@ -58,15 +58,15 @@ else
ifeq ($(shell uname),Darwin) ifeq ($(shell uname),Darwin)
# MacOS # MacOS
PLATFORM := macos PLATFORM := macos
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib"
DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib
WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit
else else
# Linux # Linux
PLATFORM := linux PLATFORM := linux
COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so"
STATIC_BUILD_FLAGS += -ldl STATIC_BUILD_FLAGS += -ldl
DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME)
STRIP_OPT := --strip-all STRIP_OPT := --strip-all
ifeq ($(CC),clang) ifeq ($(CC),clang)
LLVM_OPT := llvm- LLVM_OPT := llvm-