Skip to content

Commit

Permalink
Conversion to explicit paths for guile extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrouswheel committed Jul 3, 2019
1 parent bf15e46 commit 608cd92
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions atom-types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 20,8 @@ INSTALL (TARGETS spacetime-types
LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
)

ADD_GUILE_EXTENSION(SCM_CONFIG spacetime-types "opencog-ext-path-spacetime-types")

ADD_GUILE_MODULE (FILES
spacetime.scm
${CMAKE_CURRENT_BINARY_DIR}/spacetime_types.scm
Expand Down
3 changes: 2 additions & 1 deletion atom-types/spacetime.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 4,9 @@
(define-module (opencog spacetime))

(use-modules (opencog))
(use-modules (opencog oc-config))

; Load the C library that calls the nameserver to load the types.
(load-extension "libspacetime-types" "spacetime_types_init")
(load-extension (string-append opencog-ext-path-spacetime-types "libspacetime-types") "spacetime_types_init")

(load "spacetime/spacetime_types.scm")
2 changes: 2 additions & 0 deletions octomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 28,8 @@ INSTALL (FILES
DESTINATION "${GUILE_SITE_DIR}/opencog"
)

ADD_GUILE_EXTENSION(SCM_CONFIG octomap-types "opencog-ext-path-octomap-types")

ADD_GUILE_MODULE (FILES
${CMAKE_CURRENT_BINARY_DIR}/octomap_types.scm
MODULE_DESTINATION "${GUILE_SITE_DIR}/opencog/spacetime/octomap"
Expand Down
3 changes: 2 additions & 1 deletion octomap/octomap.scm
Original file line number Diff line number Diff line change
@@ -1,7 1,8 @@
(define-module (opencog octomap))

(use-modules (srfi srfi-1) (opencog) (opencog exec))
(use-modules (opencog oc-config))

; Load the C library that calls the nameserver to load the types.
(load-extension "liboctomap-types" "octomap_types_init")
(load-extension (string-append opencog-ext-path-point-memory "liboctomap-types") "octomap_types_init")
(load "spacetime/octomap/octomap_types.scm")
2 changes: 2 additions & 0 deletions pointmemory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 14,8 @@ INSTALL (TARGETS point_memory
DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
)

ADD_GUILE_EXTENSION(SCM_CONFIG point_memory "opencog-ext-path-point-memory")

ADD_GUILE_MODULE (FILES
pointmem.scm
MODULE_DESTINATION "${GUILE_SITE_DIR}/opencog/pointmem"
Expand Down
4 changes: 2 additions & 2 deletions pointmemory/pointmem.scm
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
(define-module (opencog pointmem))

(use-modules (opencog))
(use-modules (opencog oc-config))

(load-extension "libpoint_memory" "opencog_ato_pointmem_init")
(load-extension (string-append opencog-ext-path-point-memory "libpoint_memory") "opencog_ato_pointmem_init")

0 comments on commit 608cd92

Please sign in to comment.