From 751016946230f4ef28c4241121fe9f5043d1bb16 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 23 Dec 2014 14:09:38 +0000 Subject: [PATCH] ecCodes/ECC-1: install eccodes.h and add new fortran include --- fortran/eccodes_visibility.h | 26 ++++++++++++++++++++++++++ src/CMakeLists.txt | 5 ++--- src/Makefile.am | 2 +- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 fortran/eccodes_visibility.h diff --git a/fortran/eccodes_visibility.h b/fortran/eccodes_visibility.h new file mode 100644 index 000000000..77742ff12 --- /dev/null +++ b/fortran/eccodes_visibility.h @@ -0,0 +1,26 @@ +public :: codes_get, codes_set, codes_set_force, codes_get_data, codes_is_missing, codes_is_defined +public :: codes_open_file, codes_close_file,codes_read_bytes,codes_write_bytes +public :: codes_multi_support_on, codes_multi_support_off +public :: codes_keys_iterator_new, & + codes_keys_iterator_next, & + codes_keys_iterator_delete +public :: codes_skip_computed, & + codes_skip_coded, & + codes_skip_duplicates, & + codes_skip_read_only +public :: codes_keys_iterator_get_name, & + codes_keys_iterator_rewind +public :: codes_new_from_message, & + codes_new_from_samples, codes_new_from_file, & + codes_read_from_file,codes_headers_only_new_from_file +public :: codes_release +public :: codes_dump +public :: codes_get_error_string +public :: codes_get_size +public :: codes_get_message_size, codes_copy_message +public :: codes_write, codes_multi_append +public :: codes_check +public :: codes_clone, codes_copy_namespace +public :: codes_index_get,codes_index_select,& + codes_index_create,codes_index_get_size,codes_index_release,& + codes_util_sections_copy diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5a41865ef..300bf3a66 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,6 @@ list( APPEND grib_api_srcs grib_api.h + eccodes.h action.c action_class_alias.c action_class_gen.c @@ -329,7 +330,6 @@ list( APPEND grib_api_srcs functions.c grib_accessor_class.h grib_accessor_factory.h - grib_api.h grib_api_internal.h grib_api_prototypes.h grib_box_class.h @@ -396,5 +396,4 @@ ecbuild_add_library(TARGET grib_api ${CMATH_LIBRARIES} ) -# TODO: add support for jpg and png -install( FILES grib_api.h DESTINATION include ) +install( FILES grib_api.h eccodes.h DESTINATION include ) diff --git a/src/Makefile.am b/src/Makefile.am index 86f0824b5..cb16cca81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,7 @@ AM_CPPFLAGS = -DGRIB_TEMPLATES_PATH=\"$(GRIB_TEMPLATES_PATH)\" \ lib_LTLIBRARIES = libgrib_api.la -include_HEADERS = grib_api.h +include_HEADERS = grib_api.h eccodes.h libgrib_api_la_prototypes= \ action.c \