Commit eb6e16c8 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Support extra flags in asn1scc

parent cb6c2ac0
all: compile-all
test-parse:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
test-ada:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
test-llvm:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
benchmark:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
benchmark-O1:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
benchmark-O2:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
benchmark-O3:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
coverage:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
flake8:
@echo Generating flake8_report file
......@@ -67,7 +67,7 @@ freeze-linux:
@echo binary installed in ./dist-linux/
clean:
@$(MAKE) -s -C tests/regression $@
@$(MAKE) -s -C tests/testsuite $@
@find . -name '*~' | xargs rm -f
@find . -name '*.o' | xargs rm -f
@rm -f pyinstaller-opengeode.tar.gz
......
......@@ -122,6 +122,11 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
3.0.0 (12/2019)
- Port of Opengeode to Python3
- Use PySide2 instead of PySide
- Asn1scc module supports additional options
2.1.5 (10/2019)
- Fix unicode issues
......
......@@ -122,6 +122,7 @@ def parse_asn1(*files, **options):
rename_policy = options.get('rename_policy', ASN1.NoRename)
flags = options.get('flags', [ASN1.AstOnly])
pprint = options.get('pretty_print', False)
extraflags = options.get('extraflags', [])
assert isinstance(ast_version, ASN1)
assert isinstance(rename_policy, ASN1)
assert isinstance(flags, list)
......@@ -166,9 +167,10 @@ def parse_asn1(*files, **options):
html = []
args = [arg0, '-customStgAstVersion', str(ast_version.value),
'-customStg', stg + '::' + py_filepath,
'-renamePolicy', str(rename_policy.value)] + html + file_list
'-renamePolicy', str(rename_policy.value)] + html + extraflags + file_list
asn1scc = QProcess()
LOG.debug(os.getcwd())
LOG.debug (args)
LOG.debug(binary + ' ' + ' '.join(args))
asn1scc.start(binary, args)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment