Skip to content
Snippets Groups Projects
Unverified Commit 66a05db0 authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

USGSCSM Internal Dependency Building (#445)

* 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
parent d53161a9
No related branches found
No related tags found
No related merge requests found
......@@ -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
This diff is collapsed.
Subproject commit fde3d58e4af51f8e6c9cafeeb2b0299ab1218d91
Subproject commit a7d8a148f54d5141c63ed45a24a71c890ca11de7
Subproject commit 775ff216791349f44a643a1080818631f6b7b16e
Subproject commit c78dbba3731432249a75db9fdd7415b292d46715
Subproject commit cbf62f4f489567ae05ae9c0f373f14f9062cbecb
Subproject commit 1a521cbd3657eea6ba90cded2aecca93e3cd78d4
Subproject commit 5d2754306d67d1e654a1a34e1d2e74439a9d53b3
#!/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
{% 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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment