Netbeans: c project, how to pass parameters to configure?

I want to do something close to How to add startup parameters to a C ++ project in Netbeans

but i don't want to pass args commands to exe executable, i want to pass args to script configuration

When compiling the entire file on the command line, I configure my project (Gimp) with the following parameters

configure --prefix=/opt/gimp-2.7 --without-libtiff --disable-python --without-dbus --disable-gtk-doc 

Can I configure netbeans to configure with the correct settings for me? Or can netbeans make make recursive in the root directory? (So ​​I need to run configure {my options} at least once before)

+4
source share
1 answer

NetBeans allows you to pass arguments to configure the script when creating a new C / C ++ project with existing sources. You can also edit the arguments and re-run the configure script if the project is already created.

Steps for passing arguments to configure the script when creating a new project:

  • File β†’ New Project
  • Select C / C ++ Project with Existing Sources
  • Click Next
  • On the mode selection page, select the folder containing the existing source and configure the script.
  • In the Select configuration mode: section, select Custom .
  • Click "Next"
  • On the Create Tool page, select Using the makefile generated by the 'configure' script
  • Enter the arguments for configure script in the Configure Arguments field.
  • Click the rest of the wizard to create a project.
  • NetBeans runs a configure script with custom parameters and generates a Makefile when the wizard finishes.

To edit the parameters passed for configuration after creating the project:

  • In the NetBeans project tree, expand the project, expand Important Files , right-click on configure script and select Properties
  • Press the button ... on the line Arguments and edit the arguments.
  • Click Close
  • Right-click to configure the script and select run .
  • NetBeans will run the configure script again with the new arguments and restore the Makefile.
0
source

Source: https://habr.com/ru/post/1380050/


All Articles