Re: [anjuta-devel] Project wizard template



Hi,

Le 27/04/2015 22:06, yannick inizan a écrit :
2 UI files in ui_DATA:

uidir = $(pkgdatadir)/ui
ui_DATA = player.ui \
        window.ui

and in resources.xml, I've to add manually:
  <file compressed="true" preprocess="xml-stripblanks">player.ui</file>
  <file compressed="true" preprocess="xml-stripblanks">window.ui</file>

Is there is a way to do this automatically? like this line in vala-gtk Makefile.am.tpl ?

[+NameCLower+]_VALAFLAGS = [+IF (not (= (get "PackageModule2") ""))+] --pkg [+(string-substitute (get "PackageModule2") " 
" " --pkg ")+] [+ENDIF+] \

I mean create one line for each file added.

The project wizard and the template are only used when you create a new project.

So if you create a template that need those two ui files, player.ui and widows.ui, you can just add the corresponding line in resources.xml.

If the name are not known when you create the project because "player" by example is the project name you have to write your resources.xml file as a template named resources.xml.tpl and write something like

<file compressed="true" preprocess="xml-stripblanks">[+NameCUppet+].ui</file>


Those templates are not used in the project manager which is updating the Makefile.am when you add by example an .ui file in an already existing project. So, in this case, there is no other way than add those files in the resources.xml file manually. But perhaps the resources.xml file can be generated automatically with custom make rules.


Regards,

Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]