diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-09 13:05:23 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-09 13:05:23 +0100 |
commit | 4d2d3c3af31188b68f0c045ae1b25f1e5a7223e1 (patch) | |
tree | 206f21dd8efe21d535dc8b89bd472bd0d307bd3b /src | |
parent | 2be2f2bfe72d709e666ab7037d923e15e127e245 (diff) |
Remove port_first_files support
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_port_compiler.erl | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 4d03a97..05e157b 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -88,37 +88,18 @@ %% compile(Config, AppFile) -> - %% Allow the user to specify that dependent files get built first - FirstFiles = expand_sources(rebar_config:get(Config, - port_first_files, []), []), - %% Compose list of sources from config file -- defaults to c_src/*.c Sources = expand_sources(rebar_config:get_list(Config, port_sources, ["c_src/*.c"]), []), - Env = setup_env(Config), - - {FirstNewBins, FirstExistingBins} = case FirstFiles of - [] -> - {[], []}; - _ -> - compile_each(FirstFiles, Config, - Env, [], []) - end, case Sources of [] -> ok; _ -> - - %% Remove first files from found files - RestFiles = [Source || Source <- Sources, - not lists:member(Source, FirstFiles)], + Env = setup_env(Config), %% Compile each of the sources - {NewBins, ExistingBins} = compile_each(RestFiles, Config, Env, - [], []), - - NewBins = FirstNewBins ++ NewBins, - ExistingBins = FirstExistingBins ++ ExistingBins, + {NewBins, ExistingBins} = compile_each(Sources, Config, Env, + [], []), %% Construct the driver name and make sure priv/ exists SoSpecs = so_specs(Config, AppFile, NewBins ++ ExistingBins), |