Tuncer Ayaz
4ceb9e07a3
Deprecate old hooks
14 vuotta sitten
Tuncer Ayaz
63de05d914
Clean up code
14 vuotta sitten
Tuncer Ayaz
c466076ffb
Clean up emacs file local variables
14 vuotta sitten
Tuncer Ayaz
926baa1c31
Use filename:join instead of ?FMT
14 vuotta sitten
Andrew Tunnell-Jones
b52b82cc29
Add support for arch specific port_sources
On one project I have a need to specify port_sources on R14 only
and on another different project port_sources for Darwin and Linux.
To this end add support to handle tuples of the form
{ArchRegex, PortSource} in the port_sources list, eg:
{port_sources, [{"R14", ["c_src/*.c"]}]}.
14 vuotta sitten
Tuncer Ayaz
e4036cbe56
Apply Tidier suggestions
14 vuotta sitten
Juhani Rankimies
52ca7795fe
Unify executable invocation
Add flags to rebar_utils:sh to control output and error handling.
Replace calls to os:cmd with calls to rebar_utils:sh.
14 vuotta sitten
Kostis Sagonas
7dc76d578e
Tidier improvements
14 vuotta sitten
Tuncer Ayaz
d590c18b5a
Fix dialyzer warning for filename:join/2 calls
14 vuotta sitten
Dan Gudmundsson
83cece0f80
Basic tweaks for compiling ports/nifs on mingw
14 vuotta sitten
Dave Smith
5ee59c377a
Defaulting CC->cc and CXX->c++ for better cross platform support
15 vuotta sitten
Dave Smith
3588c69ad2
Fix bug 255; O/S environment vars should be processed last, not first
15 vuotta sitten
Dave Smith
2af6dc84ae
Complete implementation for simplistic .app.src processing.
15 vuotta sitten
Dave Smith
ff1cf0365b
Make sure that the so_specs stuff is properly backwards compatible
15 vuotta sitten
Tuncer Ayaz
60c649bc4e
Add missing CXXFLAGS equivalents of CFLAGS
15 vuotta sitten
Cliff Moon
c3fe43a0ba
add new configuration option so_specs which allows multiple drivers to be built in the same project.
15 vuotta sitten
Dave Smith
f81cf34bb9
Add default CFLAGS for platforms where there can be variation of 32/64 bit Erlang VMs
15 vuotta sitten
Dave Smith
c19b8ac003
Refactoring app file access to be via rebar_app_utils in prep for supporting .app.src
15 vuotta sitten
Tuncer Ayaz
23781ae460
Fix unused var warning
15 vuotta sitten
Dave Smith
6714d47efb
Deal properly with env vars that have multiple = in the value
15 vuotta sitten
Dave Smith
1f6d861aba
Overhaul env expansion so that rebar fully expands env refs prior to invoking the shell script. Also now using DRV_* env vars for compilation/linking of files found in c_src; this frees up "normal" CFLAGS/LDFLAGS for usage in sub build scripts.
15 vuotta sitten
Dave Smith
96c1ceba60
Break out arch string function; update ERLANG_TARGET to include bitness of the Erlang target
15 vuotta sitten
Ryan Tilder
f502bb09dd
I'm a moron. Make it a string.
15 vuotta sitten
Dave Smith
268405d0dc
Adding new vars for scripts to determine architecture (32/64 bit) and target platform of Erlang VM; courtesy of rtilder
15 vuotta sitten
Dave Smith
bd510dea20
Tweaking order of defaults so that -shared is default across platforms unless explicitly overridden
15 vuotta sitten
Dave Smith
f333bc2a92
Removing useless debug message and extraneous newline
15 vuotta sitten
Dave Smith
1582f2e243
Tweak support for controlling so_name
15 vuotta sitten
Kevin Smith
bfcb54cbc9
Added so_name entry to rebar.config so linked-in drivers can specify custom .so names
15 vuotta sitten
Tuncer Ayaz
9a8015f2d7
Added vi modeline/emacs local variables to file headers
15 vuotta sitten
Tuncer Ayaz
8c85021c1e
Deleted trailing whitespace
15 vuotta sitten
Dave Smith
2f1d415a70
Revert change to linking order arguments
15 vuotta sitten
Dave Smith
ee0c6ad086
Reorder arguments to CC for linking and fix needs_link to function properly
15 vuotta sitten
Dave Smith
d6600ab506
Fixing number of warnings and buglets
15 vuotta sitten
Dave Smith
d885b1c04c
Basic implementation of port compiler is now complete
15 vuotta sitten
Dave Smith
c7c1001012
Slowly working out port driver implementation
15 vuotta sitten