-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update meson and ci * fixup * fixup * fixup * fixup * fixup * fixup * fixup * update gitignore * fix unittest * fixup travis
- Loading branch information
Showing
11 changed files
with
147 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
mirci: libmir/[email protected] | ||
|
||
workflows: | ||
version: 2 | ||
build-deploy: | ||
jobs: | ||
- mirci/test_and_build_docs: | ||
filters: | ||
tags: | ||
only: /^v(\d)+(\.(\d)+)+$/ | ||
- mirci/upload_docs: | ||
to: mir-optim.libmir.org | ||
requires: | ||
- mirci/test_and_build_docs | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v(\d)+(\.(\d)+)+$/ |
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 |
---|---|---|
|
@@ -26,3 +26,5 @@ build/mir-random/ | |
*.dll | ||
x.txt | ||
subprojects/*/ | ||
web | ||
docgen |
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
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,27 @@ | ||
Ddoc | ||
|
||
$(H1 Dlang BetterC Nonlinear Optimisers) | ||
|
||
$(P The following table is a quick reference guide for which Mir Optim modules to | ||
use for a given category of functionality.) | ||
|
||
$(BOOKTABLE , | ||
$(TR | ||
$(TH Modules) | ||
$(TH Description) | ||
) | ||
$(TR | ||
$(TDNW $(MREF mir,optim,boxcqp)) | ||
$(TD High Bound Constrained Convex Quadratic Problem Solver) | ||
) | ||
$(TR | ||
$(TDNW $(MREF mir,optim,least_squares)) | ||
$(TD Nonlinear Least Squares Solver) | ||
) | ||
) | ||
|
||
Macros: | ||
TITLE=Mir Optim | ||
WIKI=Mir Optim | ||
DDOC_BLANKLINE= | ||
_= |
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 |
---|---|---|
@@ -1,70 +1,86 @@ | ||
project('mir-optim', 'd', version : '1.0.0', license: 'BSL-1.0') | ||
|
||
cblas_d_dep = dependency('cblas-d', fallback : ['cblas', 'cblas_dep']) | ||
lapack_d_dep = dependency('lapack-d', fallback : ['lapack', 'lapack_dep']) | ||
mir_algorithm_dep = dependency('mir-algorithm', fallback : ['mir-algorithm', 'mir_algorithm_dep']) | ||
mir_blas_dep = dependency('mir-blas', fallback : ['mir-blas', 'mir_blas_dep']) | ||
mir_core_dep = dependency('mir-core', fallback : ['mir-core', 'mir_core_dep']) | ||
mir_lapack_dep = dependency('mir-lapack', fallback : ['mir-lapack', 'mir_lapack_dep']) | ||
mir_random_dep = dependency('mir-random', fallback : ['mir-random', 'mir_random_dep'], default_options : ['extended=true']) | ||
|
||
required_deps = [ | ||
cblas_d_dep, | ||
lapack_d_dep, | ||
mir_algorithm_dep, | ||
mir_blas_dep, | ||
mir_core_dep, | ||
mir_lapack_dep, | ||
mir_random_dep, | ||
project('mir-optim', 'd', version: '2.0.0', license: 'BSL-1.0') | ||
|
||
description = 'Mir Optim - Nonlinear Optimisers' | ||
|
||
subprojects = [ | ||
'cblas-d', | ||
'lapack-d', | ||
'mir-algorithm', | ||
'mir-blas', | ||
'mir-core', | ||
'mir-lapack', | ||
'mir-random', | ||
] | ||
|
||
if target_machine.system() == 'linux' | ||
mir_linux_kernel_dep = dependency('mir-linux-kernel', fallback : ['mir-linux-kernel', 'mir_linux_kernel_dep']) | ||
required_deps = [required_deps, mir_linux_kernel_dep] | ||
subprojects += 'mir-linux-kernel' | ||
endif | ||
|
||
mir_optim_dir = include_directories('source/') | ||
has_cpp_headers = false | ||
|
||
mir_optim_src = [ | ||
'source/mir/optim/least_squares.d', | ||
'source/mir/optim/boxcqp.d', | ||
sources_list = [ | ||
'mir/optim/boxcqp', | ||
'mir/optim/least_squares', | ||
] | ||
|
||
mir_optim_lib = library(meson.project_name(), | ||
mir_optim_src, | ||
include_directories: mir_optim_dir, | ||
sources = [] | ||
foreach s : sources_list | ||
sources += 'source/' + s + '.d' | ||
endforeach | ||
|
||
add_project_arguments([ | ||
'-preview=dip1008', | ||
'-lowmem', | ||
], language: 'd') | ||
|
||
required_deps = [] | ||
|
||
foreach p : subprojects | ||
required_deps += dependency(p, fallback : [p, 'this_dep']) | ||
endforeach | ||
|
||
directories = ['source'] | ||
|
||
if has_cpp_headers | ||
directories += 'include' | ||
endif | ||
|
||
directories = include_directories(directories) | ||
|
||
this_lib = library(meson.project_name(), | ||
sources, | ||
include_directories: directories, | ||
install: true, | ||
version: meson.project_version(), | ||
dependencies: required_deps, | ||
) | ||
|
||
mir_optim_dep = declare_dependency( | ||
link_with: [mir_optim_lib], | ||
include_directories: mir_optim_dir, | ||
this_dep = declare_dependency( | ||
link_with: [this_lib], | ||
include_directories: directories, | ||
dependencies: required_deps, | ||
) | ||
|
||
test_versions = ['mir_optim_test'] | ||
|
||
if has_cpp_headers | ||
install_subdir('include/', | ||
strip_directory :true, | ||
install_dir: 'include/', | ||
) | ||
endif | ||
|
||
install_subdir('source/', | ||
strip_directory : true, | ||
install_dir: 'include/d/' + meson.project_name(), | ||
) | ||
|
||
import('pkgconfig').generate(mir_optim_lib, | ||
description: 'Optimisation Framework', | ||
import('pkgconfig').generate(this_lib, | ||
description: description, | ||
subdirs: 'd/' + meson.project_name(), | ||
) | ||
|
||
if get_option('with_test') | ||
mir_optim_dep = this_dep | ||
mir_optim_lib = this_lib | ||
|
||
mir_optim_test_exe = executable(meson.project_name() + '-test', | ||
mir_optim_src, | ||
include_directories: mir_optim_dir, | ||
d_unittest: true, | ||
d_module_versions: ['mir_optim_test'], | ||
link_args: '-main', | ||
dependencies: required_deps, | ||
) | ||
|
||
test(meson.project_name() + '-test', mir_optim_test_exe) | ||
|
||
endif | ||
test_subdirs = [] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[wrap-git] | ||
directory=cblas | ||
directory=cblas-d | ||
url=https://github.com/DlangScience/cblas.git | ||
revision=head |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[wrap-git] | ||
directory=lapack | ||
directory=lapack-d | ||
url=https://github.com/libmir/lapack.git | ||
revision=head |