• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • ANT Contrib
  • Patches

Changing MetaObjectCompiler to accept any header file

Status: Beta
Brought to you by: carnold, mattinger
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Support Requests
    • Patches
    • Feature Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • Unstable (example)

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#40 Changing MetaObjectCompiler to accept any header file

open
nobody
cpptasks (35)
5
2006-04-02
2006-04-02
Mathieu Champlon
No

Hello !

This tiny patch changes the behaviour of cpptasks when
trying to moc a header file without a QObject tag.
The current behaviour is to generate a warning of type
'Unrecognized file type ... will be passed to linker'.

By changing the default bid value of the
MetaObjectCompiler to 1 instead of 0 the warning will
be issued by moc.exe instead.

The great benefit is that warnings from moc can be
deactivated using the -nw switch, this way a whole
fileset can be sent to the cpptasks moc compiler
without the user having to manually list one by one the
files to actually moc.

The only drawback is that moc.exe outputs an empty file
for each input it is unable to process.

I feel like the benefit is greater than the drawback,
anyway the user can still manually specify each of the
files to moc...

Thanks !
MAT.

Discussion

  • Mathieu Champlon

    Mathieu Champlon - 2006-04-02
     
    patch_moc.txt
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.