Skip to content

Commit e4f6a3c

Browse files
committed
Move nif_helpers into their own project
1 parent 6783a9a commit e4f6a3c

File tree

6 files changed

+138
-1017
lines changed

6 files changed

+138
-1017
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.esdl2.plt
33
c_src/env.mk
44
c_src/*.o
5+
deps
56
ebin
67
esdl2.d
78
examples/*/*.beam

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ PROJECT = esdl2
1616
PROJECT_DESCRIPTION = SDL2 Erlang NIF.
1717
PROJECT_VERSION = 0.1.0
1818

19+
BUILD_DEPS = nif_helpers
20+
dep_nif_helpers = git https://github.com/ninenines/nif_helpers master
21+
DEP_PLUGINS = nif_helpers
22+
1923
# SDL 2.0.3 has this option enabled that causes problems with NIF functions.
2024
SDL2_LIBS_FILTER_OUT = -Wl,--no-undefined
2125
SDL2_LIBS = $(filter-out $(SDL2_LIBS_FILTER_OUT),$(shell sdl2-config --static-libs))
@@ -26,10 +30,6 @@ CFLAGS += $(shell sdl2-config --cflags)
2630
# @todo -undefined dynamic_lookup on OSX?
2731
LDLIBS += $(SDL2_LIBS) -lSDL2_image
2832

29-
ifeq ($(PLATFORM),msys2)
30-
CFLAGS += -I"$(C_SRC_DIR)/compat/"
31-
endif
32-
3333
check:: cppcheck scan-build
3434

3535
cppcheck:

0 commit comments

Comments
 (0)