mirror of https://github.com/ecmwf/eccodes.git
Can disable GRIB as well
This commit is contained in:
parent
309d2dd752
commit
a23c15cd01
|
@ -69,8 +69,12 @@ ecbuild_info("Operating system=${CMAKE_SYSTEM} (${EC_OS_BITS} bits)")
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# some variables/options of this project
|
# some variables/options of this project
|
||||||
|
|
||||||
|
ecbuild_add_option( FEATURE PRODUCT_GRIB
|
||||||
|
DESCRIPTION "Support for the product GRIB"
|
||||||
|
DEFAULT ON
|
||||||
|
)
|
||||||
ecbuild_add_option( FEATURE PRODUCT_BUFR
|
ecbuild_add_option( FEATURE PRODUCT_BUFR
|
||||||
DESCRIPTION "Support for BUFR"
|
DESCRIPTION "Support for the product BUFR"
|
||||||
DEFAULT ON
|
DEFAULT ON
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@ foreach( child ${children} )
|
||||||
if( NOT HAVE_PRODUCT_BUFR AND child STREQUAL bufr )
|
if( NOT HAVE_PRODUCT_BUFR AND child STREQUAL bufr )
|
||||||
set( add_child 0 )
|
set( add_child 0 )
|
||||||
endif()
|
endif()
|
||||||
|
if( NOT HAVE_PRODUCT_GRIB AND child MATCHES "^grib" )
|
||||||
|
set( add_child 0 )
|
||||||
|
endif()
|
||||||
if( add_child )
|
if( add_child )
|
||||||
list( APPEND dirlist ${child} )
|
list( APPEND dirlist ${child} )
|
||||||
endif()
|
endif()
|
||||||
|
|
8
memfs.py
8
memfs.py
|
@ -14,7 +14,13 @@ EXCLUDED = ['grib3', 'codetables', 'taf', 'metar']
|
||||||
|
|
||||||
pos=1
|
pos=1
|
||||||
if sys.argv[1] == '-exclude':
|
if sys.argv[1] == '-exclude':
|
||||||
EXCLUDED.append(sys.argv[2])
|
product = sys.argv[2]
|
||||||
|
if product == 'bufr':
|
||||||
|
EXCLUDED.append(product)
|
||||||
|
elif product == 'grib':
|
||||||
|
EXCLUDED.extend(['grib1', 'grib2'])
|
||||||
|
else:
|
||||||
|
assert False, 'Invalid product %s' % product
|
||||||
pos = 3
|
pos = 3
|
||||||
|
|
||||||
dirs = [os.path.realpath(x) for x in sys.argv[pos:-1]]
|
dirs = [os.path.realpath(x) for x in sys.argv[pos:-1]]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
set( exclude "" )
|
set( exclude "" )
|
||||||
if( NOT HAVE_PRODUCT_BUFR )
|
if( NOT HAVE_PRODUCT_BUFR )
|
||||||
set( exclude -exclude bufr )
|
set( exclude -exclude bufr )
|
||||||
|
elseif( NOT HAVE_PRODUCT_GRIB )
|
||||||
|
set( exclude -exclude grib )
|
||||||
endif()
|
endif()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
|
||||||
|
|
Loading…
Reference in New Issue