Summary: | patch to configure.ac in gs 9.01 to simplify adding new devices | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | William Bader <williambader> |
Component: | Build Process | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | henry.stiles, williambader |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | patch to simplify adding new devices |
I think you're actually partially fixing a bug in the 9.01 configure script - but correct me if I'm wrong. There is a bug (my fault) that meant individual driver requests didn't get the $(DD) prepended and .dev appended as they were supposed to. The intended functionality is that: ./configure --with-drivers=splodge would result in a line: DEVICE_DEVS2=$(DD)splodge.dev in the Makefile. That would satisfy your requirement, wouldn't it? Thanks. >That would satisfy your requirement, wouldn't it?
Yes, I only want to have a way on the configure command line to add $(DD)mydriver.dev to one of the DEVICE_DEV line.
It does seem to be largely a problem with the bug I mentioned in the 9.01 configure. With the fixed version you can do: ./configure --with-drivers=ALL,mydriver And you end up with "$(DD)mydriver.dev" in the Makefile. |
Created attachment 7270 [details] patch to simplify adding new devices This patch to configure.ac in gs 9.01 makes it easier to add new devices and configure them using --with-drivers. With this patch, you can run ./configure --with-drivers=ALL,USER:mydriver The result of USER:mydriver is adding $(DD)mydriver.dev to DEVICE_DEVS2 in Makefile. You still need to write the driver and add a sequence like the one below to devs.mak. mydriver_=$(GLOBJ)gdevmydriver.$(OBJ) $(DD)mydriver.dev: $(mydriver_) $(SETDEV) $(DD)mydriver $(mydriver_) $(GLOBJ)gdevmydriver.$(OBJ): $(GLSRC)gdevmydriver.c $(GDEV) $(GLCC) $(GLO_)gdevmydriver.$(OBJ) $(C_) $(GLSRC)gdevmydriver.c