summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-06 17:29:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-06 17:29:49 +0900
commit587657561bb870d457a188a80bc0ce918ef5a0bd (patch)
treebaed0c3b38c4d11389c96c686967160a1b3027cd /qmake
parent4161606c301841f973f0319f46e6853c4a3fe906 (diff)
downloadtqt3-587657561bb870d457a188a80bc0ce918ef5a0bd.tar.gz
tqt3-587657561bb870d457a188a80bc0ce918ef5a0bd.zip
Rename moc to tqmoc
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/book/qmake-commandreference.leaf12
-rw-r--r--qmake/book/qmake-preface.leaf2
-rw-r--r--qmake/book/qmake-tutorial.leaf2
-rw-r--r--qmake/generators/mac/metrowerks_xml.cpp4
-rw-r--r--qmake/generators/makefile.cpp12
-rw-r--r--qmake/generators/makefile.h14
-rw-r--r--qmake/generators/unix/unixmake.cpp2
-rw-r--r--qmake/generators/unix/unixmake2.cpp4
-rw-r--r--qmake/generators/win32/borland_bmake.cpp2
-rw-r--r--qmake/generators/win32/mingw_make.cpp2
-rw-r--r--qmake/generators/win32/msvc_dsp.cpp6
-rw-r--r--qmake/generators/win32/msvc_nmake.cpp2
-rw-r--r--qmake/generators/win32/msvc_vcproj.cpp2
13 files changed, 33 insertions, 33 deletions
diff --git a/qmake/book/qmake-commandreference.leaf b/qmake/book/qmake-commandreference.leaf
index 9b0a1b964..965d96190 100644
--- a/qmake/book/qmake-commandreference.leaf
+++ b/qmake/book/qmake-commandreference.leaf
@@ -303,7 +303,7 @@ Defines the header files for the project.
\e qmake will generate dependency information (unless -nodepend
is specified on the \link #Commands command line \endlink) for the
specified headers. \e qmake will also automatically detect if
-\e moc is required by the classes in these headers, and add the
+\e tqmoc is required by the classes in these headers, and add the
appropriate dependencies and files to the project for generating and
linking the moc files.
@@ -579,7 +579,7 @@ automatically be included in the project.
For example:
\code
-YACCSOURCES = moc.y
+YACCSOURCES = tqmoc.y
\endcode
@@ -694,7 +694,7 @@ On other platforms, this variable has different meaning, as noted
below.
This variable contains a list of header files that require some
-sort of pre-compilation step (such as with moc). The value of this
+sort of pre-compilation step (such as with tqmoc). The value of this
variable is typically handled by \e qmake or \link #QMAKESPEC qmake.conf \endlink and rarely needs to be
modified.
@@ -880,7 +880,7 @@ to be modified.
\target QMAKE_CLEAN
\section3 QMAKE_CLEAN
-This variable contains any files which are not generated files (such as moc and uic
+This variable contains any files which are not generated files (such as tqmoc and tquic
generated files) and object files that should be removed when using "make clean".
@@ -2138,8 +2138,8 @@ For convenience there is also a method of customizing (UNIX) projects
for generic new compilers (or even preprocessors).
\code
-new_moc.output = moc_${QMAKE_FILE_BASE}.cpp
-new_moc.commands = moc ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
+new_moc.output = tqmoc_${QMAKE_FILE_BASE}.cpp
+new_moc.commands = tqmoc ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
new_moc.depends = g++ -E -M ${QMAKE_FILE_NAME} | sed "s,^.*: ,,"
new_moc.input = NEW_HEADERS
QMAKE_EXTRA_UNIX_COMPILERS += new_moc
diff --git a/qmake/book/qmake-preface.leaf b/qmake/book/qmake-preface.leaf
index f63d171c0..59230c092 100644
--- a/qmake/book/qmake-preface.leaf
+++ b/qmake/book/qmake-preface.leaf
@@ -15,4 +15,4 @@ uses \e qmake as the primary build tool for the TQt library, and for
the tools supplied with Qt.
\e qmake also takes care of Qt's special requirements, automatically
-including build rules for \link moc.html moc\endlink and \e uic.
+including build rules for \link tqmoc.html tqmoc\endlink and \e uic.
diff --git a/qmake/book/qmake-tutorial.leaf b/qmake/book/qmake-tutorial.leaf
index 81e21d18d..49f5f8560 100644
--- a/qmake/book/qmake-tutorial.leaf
+++ b/qmake/book/qmake-tutorial.leaf
@@ -72,7 +72,7 @@ you can set it in the project file:
The final step is to set the \e CONFIG variable. Since this is a Qt
application, we need to put 'qt' on the CONFIG line so that \e qmake
will add the relevant libraries to be linked against and ensure that
-build lines for \e moc and \e uic are included in the makefile.
+build lines for \e tqmoc and \e tquic are included in the makefile.
The finished project file should look like this:
\code
diff --git a/qmake/generators/mac/metrowerks_xml.cpp b/qmake/generators/mac/metrowerks_xml.cpp
index a197b0e40..83e917bdf 100644
--- a/qmake/generators/mac/metrowerks_xml.cpp
+++ b/qmake/generators/mac/metrowerks_xml.cpp
@@ -453,7 +453,7 @@ MetrowerksMakefileGenerator::writeMakeParts(TQTextStream &t)
t << endl;
file.close();
- if(mocAware()) {
+ if(tqmocAware()) {
TQString mocs = project->first("MOCS");
TQFile mocfile(mocs);
if(!mocfile.open(IO_WriteOnly)) {
@@ -558,7 +558,7 @@ MetrowerksMakefileGenerator::init()
if(project->first("TEMPLATE") == "lib")
mocfile += project->isActiveConfig("staticlib") ? "_static" : "_shared";
project->variables()["MOCS"].append(mocfile + ".mocs");
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
}
if(!project->isEmpty("FORMS")) {
TQString uicfile = project->first("TARGET");
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 99b10d3e4..c4c42343f 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -94,7 +94,7 @@ static bool createDir(const TQString& fullPath)
MakefileGenerator::MakefileGenerator(TQMakeProject *p) : init_opath_already(FALSE),
- init_already(FALSE), moc_aware(FALSE),
+ init_already(FALSE), tqmoc_aware(FALSE),
no_io(FALSE), project(p)
{
}
@@ -545,7 +545,7 @@ MakefileGenerator::generateDependencies(TQPtrList<MakefileDependDir> &dirs, cons
}
}
}
- if( mocAware() && //is it a moc file?
+ if( tqmocAware() && //is it a moc file?
( inc.endsWith(Option::cpp_ext.first()) || inc.endsWith(Option::cpp_moc_ext) )
|| ( (Option::cpp_ext.first() != Option::h_moc_ext) && inc.endsWith(Option::h_moc_ext) )) {
TQString mocs[] = { TQString("_HDRMOC"), TQString("_SRCMOC"), TQString::null };
@@ -944,8 +944,8 @@ MakefileGenerator::init()
if(!found_cache_moc || !found_cache_dep)
write_cache = TRUE;
}
- /* Do moc before dependency checking since some includes can come from
- moc_*.cpp files */
+ /* Do tqmoc before dependency checking since some includes can come from
+ tqmoc_*.cpp files */
if(found_cache_moc) {
TQString fixed_file(fileFixify((*val_it), TQDir::currentDirPath(), Option::output_dir));
TQString moc = findMocDestination(fixed_file);
@@ -960,7 +960,7 @@ MakefileGenerator::init()
}
}
}
- } else if(mocAware() && (sources[x] == "SOURCES" || sources[x] == "HEADERS") &&
+ } else if(tqmocAware() && (sources[x] == "SOURCES" || sources[x] == "HEADERS") &&
(Option::qmake_mode == Option::QMAKE_GENERATE_PROJECT ||
Option::mkfile::do_mocs)) {
generateMocList((*val_it));
@@ -1199,7 +1199,7 @@ MakefileGenerator::init()
Option::output_dir));
//moc files
- if ( mocAware() ) {
+ if ( tqmocAware() ) {
if(!project->isEmpty("MOC_DIR"))
project->variables()["INCLUDEPATH"].append(project->first("MOC_DIR"));
if ( Option::h_moc_ext == Option::cpp_ext.first() )
diff --git a/qmake/generators/makefile.h b/qmake/generators/makefile.h
index 763b57abe..c91acf79a 100644
--- a/qmake/generators/makefile.h
+++ b/qmake/generators/makefile.h
@@ -51,7 +51,7 @@
class MakefileGenerator
{
TQString spec;
- bool init_opath_already, init_already, moc_aware, no_io;
+ bool init_opath_already, init_already, tqmoc_aware, no_io;
TQStringList createObjectList(const TQString &var);
TQString build_args();
TQString dependencyKey(const TQString &file) const;
@@ -95,8 +95,8 @@ protected:
void setNoIO(bool o);
bool noIO() const;
- void setMocAware(bool o);
- bool mocAware() const;
+ void setTQMocAware(bool o);
+ bool tqmocAware() const;
void logicWarn(const TQString &, const TQString &);
virtual bool doDepends() const { return Option::mkfile::do_deps; }
@@ -164,11 +164,11 @@ inline TQString MakefileGenerator::findMocDestination(const TQString &src_file)
return TQString("");
}
-inline void MakefileGenerator::setMocAware(bool o)
-{ moc_aware = o; }
+inline void MakefileGenerator::setTQMocAware(bool o)
+{ tqmoc_aware = o; }
-inline bool MakefileGenerator::mocAware() const
-{ return moc_aware; }
+inline bool MakefileGenerator::tqmocAware() const
+{ return tqmoc_aware; }
inline void MakefileGenerator::setNoIO(bool o)
{ no_io = o; }
diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp
index dad6ca7d4..4a3b22785 100644
--- a/qmake/generators/unix/unixmake.cpp
+++ b/qmake/generators/unix/unixmake.cpp
@@ -244,7 +244,7 @@ UnixMakefileGenerator::init()
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_THREAD"];
}
if ( project->isActiveConfig("moc") )
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
TQString compile_flag = var("QMAKE_COMPILE_FLAG");
if(compile_flag.isEmpty())
compile_flag = "-c";
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index 347186d75..c117a2d29 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -687,7 +687,7 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
//moc itself shouldn't have this dependency - this is a little kludgy but it is
//better than the alternative for now.
TQString moc = project->first("QMAKE_MOC"), target = project->first("TARGET"),
- moc_dir = "$(TQTDIR)/src/moc";
+ moc_dir = "$(TQTDIR)/src/tqmoc";
if(!project->isEmpty("QMAKE_MOC_SRC"))
moc_dir = project->first("QMAKE_MOC_SRC");
fixEnvVariables(target);
@@ -777,7 +777,7 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
TQString clean_targets;
t << "mocclean:" << "\n";
- if(mocAware()) {
+ if(tqmocAware()) {
if(!objMoc.isEmpty() || !srcMoc.isEmpty() || moc_incremental) {
if(!objMoc.isEmpty())
t << "\t-$(DEL_FILE) $(OBJMOC)" << '\n';
diff --git a/qmake/generators/win32/borland_bmake.cpp b/qmake/generators/win32/borland_bmake.cpp
index 61906de29..4e97ba527 100644
--- a/qmake/generators/win32/borland_bmake.cpp
+++ b/qmake/generators/win32/borland_bmake.cpp
@@ -557,7 +557,7 @@ BorlandMakefileGenerator::init()
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_RT"];
}
if ( project->isActiveConfig("moc") ) {
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
}
project->variables()["QMAKE_LIBS"] += project->variables()["LIBS"];
// Update -lname to name.lib, and -Ldir to
diff --git a/qmake/generators/win32/mingw_make.cpp b/qmake/generators/win32/mingw_make.cpp
index 18aa73c21..e59e7e3a2 100644
--- a/qmake/generators/win32/mingw_make.cpp
+++ b/qmake/generators/win32/mingw_make.cpp
@@ -574,7 +574,7 @@ MingwMakefileGenerator::init()
}
if ( project->isActiveConfig("moc") )
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
// add -L libs to libdir
TQStringList &libs = project->variables()["QMAKE_LIBS"];
diff --git a/qmake/generators/win32/msvc_dsp.cpp b/qmake/generators/win32/msvc_dsp.cpp
index 910400315..988d4632d 100644
--- a/qmake/generators/win32/msvc_dsp.cpp
+++ b/qmake/generators/win32/msvc_dsp.cpp
@@ -227,7 +227,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
mocpath = mocpath.replace( TQRegExp( "\\..*$" ), "" ) + " ";
buildCmds += "\t" + mocpath + (*it) + " -o " + findMocDestination((*it)) + " \\\n";
createMOC = "\"" + findMocDestination((*it)) + "\" : $(SOURCE) \"$(INTDIR)\" \"$(OUTDIR)\"\n $(BuildCmds)\n\n";
- customDependencies += "\"$(TQTDIR)\\bin\\moc.exe\"";
+ customDependencies += "\"$(TQTDIR)\\bin\\tqmoc.exe\"";
}
if (!createMOC.isEmpty() || !compilePCH.isEmpty()) {
bool doMOC = !createMOC.isEmpty();
@@ -462,7 +462,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
uiHeadersDir = fpath;
}
- t << "USERDEP_" << base << "=\"$(TQTDIR)\\bin\\moc.exe\" \"$(TQTDIR)\\bin\\uic.exe\"" << endl << endl;
+ t << "USERDEP_" << base << "=\"$(TQTDIR)\\bin\\tqmoc.exe\" \"$(TQTDIR)\\bin\\tquic.exe\"" << endl << endl;
TQString build = "\n\n# Begin Custom Build - Uic'ing " + base + "...\n"
"InputPath=.\\" + base + "\n\n" "BuildCmds= \\\n\t" + uicpath + base +
@@ -818,7 +818,7 @@ DspMakefileGenerator::init()
TQString targetfilename = project->variables()["TARGET"].first();
project->variables()["TARGET"].first() += project->first("TARGET_EXT");
if ( project->isActiveConfig("moc") )
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
project->variables()["QMAKE_LIBS"] += project->variables()["LIBS"];
project->variables()["QMAKE_FILETAGS"] += TQStringList::split(' ',
diff --git a/qmake/generators/win32/msvc_nmake.cpp b/qmake/generators/win32/msvc_nmake.cpp
index 302e2532d..b95289f89 100644
--- a/qmake/generators/win32/msvc_nmake.cpp
+++ b/qmake/generators/win32/msvc_nmake.cpp
@@ -653,7 +653,7 @@ NmakeMakefileGenerator::init()
if ( project->isActiveConfig("moc") )
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
project->variables()["QMAKE_LIBS"] += project->variables()["LIBS"];
TQStringList &libList = project->variables()["QMAKE_LIBS"];
diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp
index f22c0c148..df6001580 100644
--- a/qmake/generators/win32/msvc_vcproj.cpp
+++ b/qmake/generators/win32/msvc_vcproj.cpp
@@ -1214,7 +1214,7 @@ void VcprojGenerator::initOld()
// MOC -----------------------------------------------------------
if ( project->isActiveConfig("moc") )
- setMocAware(TRUE);
+ setTQMocAware(TRUE);
// /VERSION:x.yz -------------------------------------------------
if ( !project->variables()["VERSION"].isEmpty() ) {