swami / libinstpatch

Instrument file software library.
Other
20 stars 6 forks source link

Missing files using Cmake and autogenerated file marshals.c,h #2

Closed jjceresa closed 5 years ago

jjceresa commented 5 years ago

1)Overview -Previously in initial sourceforge archive , files marshals.c,h was intended to be generated automatically at make time (using glib-genmarshal executable utility). -Actually, it seems that these file are generated by Cmake. glib-genmarshal is an executable utility available on linux and Windows.

2) running Cmake on Windows On Windows, when running Cmake-configure, glib-genmarshal is found (via path GLIB2_GENMARSHAL), but marshals.c,h aren't generated.

The configuration is done, and solution file (for VS) can be generated. The fatal error comes at compile time because included marshals.h file can't be found.

Is there a particular Cmake invocation to get marshals.c,h generated ?

Note: please note that unique function in marchals.c (void ipatch_marshal_ENUM__FLAGS() isn't used internally by libinstpatch but only exported. However, it seems swami code never call this function. So, it seems that marshals.c,h is could be useful only for the future. But for now this looks useless.

jjceresa commented 5 years ago

Is there a particular Cmake invocation to get marshals.c,h generated ?

Please ignore this question. In fact marshals.c,h are effectively generated at build time.