Skip to content

Commit

Permalink
USGSCSM Internal Dependency Building (#445)
Browse files Browse the repository at this point in the history
* Added proj as an internal dep

* Updated all internal deps

* Updated metal.yaml

* Forced conda builds to use internal deps

* Updated build flags for future releases

* fixed typo in BUILD_TESTS option

* Added sqlite as a dep

* Corrected meta.yml for release

* Change env to minimum dependency set

* Added recursive init for JSON

* Removed unnecessary submodule update

* Initial round to get ALE building directly into USGSCSM

* Fixed external dep build and reverted env file

* Fixed linux builds

* Built proj internal to USGSCSM

* Updated local build system

* Pointed build at this branch

* Updated recipe checksum

* Added submodules

* Added proj submodule

* Updated proj hash

* Turned building docs off

* Placed proj_config.h into correct directory

* Updated where the proj_config.h can be found

* Small changes to get the build working

* Removed commented out deps in meta.yaml

* Removed unnecessary lines in cmakelist file

* Reset git url and version

* Removed commented out ALE header lines
  • Loading branch information
acpaquette authored Jan 23, 2024
1 parent d53161a commit 66a05db
Show file tree
Hide file tree
Showing 8 changed files with 649 additions and 44 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "json"]
path = json
url = https://github.com/nlohmann/json.git
[submodule "PROJ"]
path = PROJ
url = https://github.com/OSGeo/PROJ
647 changes: 619 additions & 28 deletions CMakeLists.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions PROJ
Submodule PROJ added at fde3d5
2 changes: 1 addition & 1 deletion csm
2 changes: 1 addition & 1 deletion json
Submodule json updated 1418 files
3 changes: 2 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
git submodule update --init
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSGSCSM_EXTERNAL_DEPS=ON -DBUILD_TESTS=OFF ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSGSCSM_EXTERNAL_DEPS=OFF -DUSGSCSM_BUILD_DOCS=OFF -DUSGSCSM_BUILD_TESTS=OFF ..
make install
33 changes: 21 additions & 12 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@

{% set name = "usgscsm" %}
{% set version = "main" %}

package:
name: usgscsm
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}
name: {{ name|lower }}
version: {{ version }}

source:
git_url: https://github.com/USGS-Astrogeology/CSM-CameraModel.git
git_url: 'https://github.com/DOI-USGS/usgscsm.git'
git_tag: {{ version }}

build:
string: {{ environ.get("GIT_DESCRIBE_HASH", "") }}
number: 0
skip: true # [win]


requirements:
build:
- {{ compiler('cxx') }} # [linux]
- vc 14 # [win]
- {{ compiler('cxx') }}
- cmake >=3.10
- libcsm
- vc 14 # [win]
run:
- make
- nlohmann_json
- eigen
host:
- csm
- vc # [win]
run:
- csm

test:
commands:
- test -e $PREFIX/lib/libusgscsm.so # [linux]
- test -e $PREFIX/lib/libusgscsm.dylib # [osx]
- test -e $PREFIX/lib/csmplugins/libusgscsm${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_BIN%\usgscsm.dll exit 1 # [win]

about:
home: https://github.com/USGS-Astrogeology/CSM-CameraModels
home: https://github.com/DOI-USGS/usgscsm
license: None
summary: "USGS Astrogeology Community Sensor Model compliant sensor models."

0 comments on commit 66a05db

Please sign in to comment.