Skip to content

Commit

Permalink
Remove residual references to libhlapi
Browse files Browse the repository at this point in the history
  • Loading branch information
aegagros authored and tsopokis committed Jul 30, 2024
1 parent 5d4f23f commit ddc4676
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions data/templates/c/src/{{.app.name}}.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
author: {{ .app.author }}
*/

//{{if .app.options.include_libhlapi}}#include <libhlapi.h>{{end}}

int main() {
printf("Hello from %s\n", "{{.app.title}}");

Expand Down
5 changes: 1 addition & 4 deletions data/templates/go/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ PATHS = $(BIN_PATH) $(LIB_PATH)
GO_LDFLAGS = -s -w
INCLUDE_DIR = $(SYSROOT)usr/include
LIBRARIES_DIR = $(SYSROOT)usr/lib
{{ if .app.options.use_libhlapi_module -}}
LIBRARIES = -lhlapi -lubus -lubox -lblobmsg_json
{{- end }}
CGO_LDFLAGS = "-L${LIBRARIES_DIR} $(LIBRARIES)"
CGO_CFLAGS = "-I$(INCLUDE_DIR)"
CGO_ENABLED = 1
Expand All @@ -22,7 +19,7 @@ else
GO_EXTRA_FLAGS = -ldflags="$(GO_LDFLAGS)"
endif

$(BIN_PATH)/{{ .app.name }}: | $(PATHS) {{if .app.options.use_libhlapi_module }}libhlapi{{ end }}
$(BIN_PATH)/{{ .app.name }}: | $(PATHS)
env && go env
CGO_ENABLED=$(CGO_ENABLED) CGO_CFLAGS=$(CGO_CFLAGS) go build -buildvcs=false ${GO_EXTRA_FLAGS} -o $@ .

Expand Down

0 comments on commit ddc4676

Please sign in to comment.