-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors build scripts and ensures the generated cpp is compiled int…
…o object files (#333)
- Loading branch information
1 parent
d42337d
commit f963317
Showing
9 changed files
with
56 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
% ratMainMexBuild | ||
% | ||
% Generates MEX-function (RATMain_mex) from RATMain. | ||
|
||
% Create configuration object of class 'coder.MexCodeConfig'. | ||
cfg = coder.config('mex'); | ||
cfg.GenerateReport = true; | ||
cfg.EnableJIT = false; | ||
cfg.EnableOpenMP = true; | ||
cfg.TargetLang = 'C++'; | ||
|
||
% Define the input argument types.. | ||
ARGS = makeCompileArgsFull(); | ||
|
||
% Run the compile | ||
includeDirs = getappdata(0,'includeDirs'); | ||
includes = cell(length(includeDirs)*2, 1); | ||
includes(1:2:end) = {'-I'}; | ||
includes(2:2:end) = includeDirs; | ||
codegen('RATMain', '-globals', '{"DEBUG", 0}', '-config', cfg, '-args', ARGS{1}, includes{:}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
compile/reflectivityCalculation/reflectivityCalculationCompileScript.m
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
compile/reflectivityCalculation/reflectivityCalculationMexBuild.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
% reflectivityCalculationMexBuild | ||
% | ||
% Generates MEX-function (reflectivityCalculation_mex) from reflectivityCalculation. | ||
|
||
% Create configuration object of class 'coder.MexCodeConfig'. | ||
cfg = coder.config('mex'); | ||
cfg.GenerateReport = true; | ||
cfg.EnableJIT = false; | ||
cfg.EnableOpenMP = true; | ||
cfg.TargetLang = 'C++'; | ||
|
||
% Define the input argument types.. | ||
ARGS = makeCompileArgs(); | ||
|
||
includeDirs = getappdata(0,'includeDirs'); | ||
includes = cell(length(includeDirs)*2, 1); | ||
includes(1:2:end) = {'-I'}; | ||
includes(2:2:end) = includeDirs; | ||
codegen('reflectivityCalculation', '-config', cfg, '-args', ARGS{1}, includes{:}); |