Skip to content

Commit

Permalink
Add gen-dynapi.pl, dynapi.c WIP
Browse files Browse the repository at this point in the history
Generate dwg.h struct names and field types, offsets.
TODO: types not as string?
      link _fields[] to some name array,
        either dwg_name_types or dwg_entity_names

See #59
  • Loading branch information
rurban committed Jan 27, 2019
1 parent 3014afe commit d6ef855
Show file tree
Hide file tree
Showing 3 changed files with 3,877 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ libredwg_la_SOURCES = \
print.c \
free.c \
hash.c \
dynapi.c \
dwg_api.c \
$(EXTRA_HEADERS)
if !DISABLE_DXF
Expand Down Expand Up @@ -88,7 +89,11 @@ endif

EXTRA_DIST = \
$(include_HEADERS) \
$(EXTRA_HEADERS)
$(EXTRA_HEADERS) \
gen-dynapi.pl

dynapi.c: gen-dynapi.pl $(top_srcdir)/include/dwg.h
-$(PERL) gen-dynapi.pl

.c.i:
$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
Expand Down

0 comments on commit d6ef855

Please sign in to comment.