1
0
分叉 0
鏡像自 https://github.com/omniscale/magnacarto.git 已同步 2025-09-21 02:32:41 +02:00
magnacarto/vendor/github.com/omniscale/go-mapnik/v2/Makefile
2024-01-24 16:32:49 +01:00

13 行
442 B
Makefile

.PHONY: test build
export CGO_LDFLAGS = $(shell mapnik-config --libs)
export CGO_CXXFLAGS = $(shell mapnik-config --cxxflags --includes --dep-includes | tr '\n' ' ')
MAPNIK_LDFLAGS=-X github.com/omniscale/go-mapnik/v2.fontPath=$(shell mapnik-config --fonts) \
-X github.com/omniscale/go-mapnik/v2.pluginPath=$(shell mapnik-config --input-plugins)
build:
go build -ldflags "$(MAPNIK_LDFLAGS)"
test:
go test -ldflags "$(MAPNIK_LDFLAGS)"