Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attribute 'Object_File_Prefix' for package Compiler #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SergeyNM
Copy link

@SergeyNM SergeyNM commented Apr 24, 2023

Good day!

For examples, output names with prefix use in moc, uic, rcc compilers: https://doc.qt.io/qt-6/moc.html
It is the initial commit. I will be very glad to see your comments.

-- Prototype of project file

project UIC is
   --  Qt User Interface Compiler
   for Languages use ("UIC");
   for Source_Dirs use ("Src");
   for Object_Dir use "Release";

   for Objects_Linked ("UIC") use "False";

   package Naming is
      for Body_Suffix ("uic") use ".ui";
   end Naming;

   package Compiler is
      for Driver ("UIC") use "/usr/lib/qt5/bin/uic";
      for Object_File_Suffix ("UIC") use ".h";
      for Object_File_Prefix ("UIC") use "ui_";
      for Object_File_Switches ("UIC") use ("-o", "");
   end Compiler;
end UIC;

--

-- output
./gprbuild -vm /home/user_1/Projects/Qt_Examples/Test_1/uic.gpr
GPRBUILD Pro 18.0w (19940713) (x86_64-pc-linux-gnu)
Copyright (C) 2004-2016, AdaCore
24 lines: No errors
TMPDIR = "/tmp"
gprconfig --batch -o /tmp/GNAT-TEMP-000001.TMP --target=x86_64-pc-linux-gnu --fallback-targets --config=uic,,,,
Error: unknown language 'uic'
Checking configuration /tmp/GNAT-TEMP-000001.TMP
Setting the default project search directories
Adding directory "/usr/lib/qt5/x86_64-pc-linux-gnu/share/gpr"
Adding directory "/usr/lib/qt5/x86_64-pc-linux-gnu/lib/gnat"
Adding directory "/usr/lib/qt5/x86_64-linux/share/gpr"
Adding directory "/usr/lib/qt5/x86_64-linux/lib/gnat"
Adding directory "/usr/lib/qt5/share/gpr"
Adding directory "/usr/lib/qt5/lib/gnat"
gprconfig --batch -o /tmp/GNAT-TEMP-000002.TMP --target=x86_64-pc-linux-gnu --fallback-targets --config=uic,,,,
Error: unknown language 'uic'
Checking configuration /tmp/GNAT-TEMP-000002.TMP
Setting the default project search directories
Adding directory "/usr/lib/qt5/x86_64-pc-linux-gnu/share/gpr"
Adding directory "/usr/lib/qt5/x86_64-pc-linux-gnu/lib/gnat"
Adding directory "/usr/lib/qt5/x86_64-linux/share/gpr"
Adding directory "/usr/lib/qt5/x86_64-linux/lib/gnat"
Adding directory "/usr/lib/qt5/share/gpr"
Adding directory "/usr/lib/qt5/lib/gnat"
Checking /home/user_1/Projects/Qt_Examples/Test_1/Src/mainwindow.ui ...
-> object file /home/user_1/Projects/Qt_Examples/Test_1/Release/ui_mainwindow.h does not exist
Changing to object directory of "UIC": "/home/user_1/Projects/Qt_Examples/Test_1/Release/"
/usr/lib/qt5/bin/uic /home/user_1/Projects/Qt_Examples/Test_1/Src/mainwindow.ui -o ui_mainwindow.h

@CLAassistant
Copy link

CLAassistant commented Apr 24, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants