forked from bjorng/esdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
33 lines (27 loc) · 967 Bytes
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%% -*- erlang -*-
%% Config file for cl-application
{erl_opts, [debug_info, fail_on_warning]}.
%% Also see rebar.config.script
{port_env, [
{"linux", "CFLAGS", "$CFLAGS $SDL_CFLAGS"},
{"linux", "LDFLAGS", "$LDFLAGS $SDL_LIBDIR"},
{"darwin", "CFLAGS", "$CFLAGS -ObjC -D_OSX_COCOA -I/opt/X11/include"},
{"darwin", "LDFLAGS", "$LDFLAGS -framework SDL -rpath @executable_path/../Frameworks"},
{"win32", "CFLAGS", "$CFLAGS -DWIN32 -D_WIN32 -D__WIN32__ $SDL_INCDIR"},
{"win32", "DRV_CFLAGS", "/Zi /W3 $ERL_CFLAGS"},
{"win32", "ERL_LDFLAGS", " /debug /LIBPATH:$SDL_LIBDIR SDL.lib user32.lib"}
]}.
{port_specs, [
{"priv/sdl_driver.so",
["c_src/esdl_audio.c",
"c_src/esdl_driver.c",
"c_src/esdl_events.c",
"c_src/esdl_gen.c",
"c_src/esdl_gl.c",
"c_src/esdl_spec.c",
"c_src/esdl_util.c",
"c_src/esdl_video.c",
"c_src/esdl_wrapper.c"
]}
]}.
%% {edoc_opts, [{doclet, edown_doclet}]}.