CODEC-OER for OER file dependencies

This commit is contained in:
Lev Walkin 2017-07-24 00:25:51 +04:00
parent a2abcaab2e
commit f573ebbd98
3 changed files with 12 additions and 2 deletions

View File

@ -104,6 +104,9 @@ asn1c_read_file_dependencies(arg_t *arg, const char *datadir) {
special_section = FDEP_COMMON_FILES;
} else if(strcmp(p, "CONVERTER:") == 0) {
special_section = FDEP_CONVERTER;
} else if((arg->flags & A1C_GEN_OER)
&& strcmp(p, "CODEC-OER:") == 0) {
special_section = FDEP_CODEC_OER;
} else if((arg->flags & A1C_GEN_PER)
&& strcmp(p, "CODEC-PER:") == 0) {
special_section = FDEP_CODEC_PER;

View File

@ -10,7 +10,8 @@ typedef struct asn1c_fdeps_s {
FDEP_REFERRED = 1, /* Dynamic list of dependencies */
FDEP_CONVERTER = 2, /* Name of the int main() file */
FDEP_COMMON_FILES = 3, /* Section for mandatory dependencies */
FDEP_CODEC_PER = 4, /* Use contents only if -gen-PER */
FDEP_CODEC_OER = 4, /* Use contents only if -gen-OER */
FDEP_CODEC_PER = 8, /* Use contents only if -gen-PER */
} usage; /* Some file refers to it */
struct asn1c_fdeps_s **elements;

View File

@ -37,7 +37,7 @@ asn_SEQUENCE_OF.h asn_SEQUENCE_OF.c asn_SET_OF.h
asn_SET_OF.h asn_SET_OF.c
constr_CHOICE.h constr_CHOICE.c
constr_SEQUENCE.h constr_SEQUENCE.c
constr_SEQUENCE_OF.h constr_SEQUENCE_OF.c asn_SEQUENCE_OF.h constr_SET_OF.h
constr_SEQUENCE_OF.h constr_SEQUENCE_OF.c constr_SEQUENCE_oer.h asn_SEQUENCE_OF.h constr_SET_OF.h
constr_SET.h constr_SET.c
constr_SET_OF.h constr_SET_OF.c asn_SET_OF.h
@ -58,6 +58,9 @@ constraints.h constraints.c # Subtype constraints support
xer_support.h xer_support.c # XML parsing
xer_decoder.h xer_decoder.c # XER decoding support
xer_encoder.h xer_encoder.c # XER encoding support
oer_decoder.h oer_decoder.c # OER decoding support
oer_encoder.h oer_encoder.c # OER encoding support
oer_support.h oer_support.c # OER support
per_support.h per_support.c # PER parsing
per_decoder.h per_decoder.c # PER decoding support
per_encoder.h per_encoder.c # PER encoding support
@ -66,4 +69,7 @@ per_opentype.h per_opentype.c # PER "open type" handling
CONVERTER: # THIS IS A SPECIAL SECTION
converter-sample.c # A default name for sample transcoder
CODEC-OER: # THIS IS A SPECIAL SECTION
constr_SEQUENCE_oer.h constr_SEQUENCE_oer.c
CODEC-PER: # THIS IS A SPECIAL SECTION