- fix: Makefile error when "Use precompiled header" is enabled in the project option dialog.
This commit is contained in:
parent
7fcd73abfc
commit
dde47e0226
1
NEWS.md
1
NEWS.md
|
@ -23,6 +23,7 @@ Red Panda C++ Version 2.7
|
||||||
- enhancement: "Line Spacing" in options / editor / font
|
- enhancement: "Line Spacing" in options / editor / font
|
||||||
- enhancement: "Show whitespaces" in options / editor / font
|
- enhancement: "Show whitespaces" in options / editor / font
|
||||||
- enhancement: Auto add "lib" to the output of static/dynamic library projects, if project name don't start with "lib".
|
- enhancement: Auto add "lib" to the output of static/dynamic library projects, if project name don't start with "lib".
|
||||||
|
- fix: Makefile error when "Use precompiled header" is enabled in the project option dialog.
|
||||||
|
|
||||||
Red Panda C++ Version 2.6
|
Red Panda C++ Version 2.6
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,14 @@ void ProjectCompiler::newMakeFile(QFile& file)
|
||||||
|
|
||||||
// Write clean command
|
// Write clean command
|
||||||
writeMakeClean(file);
|
writeMakeClean(file);
|
||||||
|
|
||||||
|
// PCH
|
||||||
|
if (mProject->options().usePrecompiledHeader
|
||||||
|
&& fileExists(mProject->options().precompiledHeader)) {
|
||||||
|
writeln(file, "$(PCH) : $(PCH_H)");
|
||||||
|
writeln(file, "\t$(CPP) -c \"$(PCH_H)\" -o \"$(PCH)\" $(CXXFLAGS)");
|
||||||
|
writeln(file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectCompiler::writeMakeHeader(QFile &file)
|
void ProjectCompiler::writeMakeHeader(QFile &file)
|
||||||
|
@ -253,9 +261,10 @@ void ProjectCompiler::writeMakeDefines(QFile &file)
|
||||||
cCompileArguments.replace('\\', '/');
|
cCompileArguments.replace('\\', '/');
|
||||||
writeln(file,"CFLAGS = $(INCS) " + cCompileArguments);
|
writeln(file,"CFLAGS = $(INCS) " + cCompileArguments);
|
||||||
writeln(file, QString("RM = ") + CLEAN_PROGRAM );
|
writeln(file, QString("RM = ") + CLEAN_PROGRAM );
|
||||||
if (mProject->options().usePrecompiledHeader){
|
if (mProject->options().usePrecompiledHeader
|
||||||
writeln(file,"PCH_H = " + mProject->options().precompiledHeader );
|
&& fileExists(mProject->options().precompiledHeader)){
|
||||||
writeln(file,"PCH = " + changeFileExt(mProject->options().precompiledHeader, GCH_EXT));
|
writeln(file,"PCH_H = " + genMakePath1(extractRelativePath(mProject->makeFileName(), mProject->options().precompiledHeader )));
|
||||||
|
writeln(file,"PCH = " + genMakePath1(extractRelativePath(mProject->makeFileName(), mProject->options().precompiledHeader+"."+GCH_EXT)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -296,11 +305,7 @@ void ProjectCompiler::writeMakeTarget(QFile &file)
|
||||||
writeln(file);
|
writeln(file);
|
||||||
writeln(file, "all: all-before $(BIN) all-after");
|
writeln(file, "all: all-before $(BIN) all-after");
|
||||||
writeln(file);
|
writeln(file);
|
||||||
if (mProject->options().usePrecompiledHeader) {
|
|
||||||
writeln(file, "$(PCH) : $(PCH_H)");
|
|
||||||
writeln(file, " $(CPP) -x c++-header \"$(PCH_H)\" -o \"$(PCH)\" $(CXXFLAGS)");
|
|
||||||
writeln(file);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectCompiler::writeMakeIncludes(QFile &file)
|
void ProjectCompiler::writeMakeIncludes(QFile &file)
|
||||||
|
@ -316,10 +321,16 @@ void ProjectCompiler::writeMakeIncludes(QFile &file)
|
||||||
void ProjectCompiler::writeMakeClean(QFile &file)
|
void ProjectCompiler::writeMakeClean(QFile &file)
|
||||||
{
|
{
|
||||||
writeln(file, "clean: clean-custom");
|
writeln(file, "clean: clean-custom");
|
||||||
if (mProject->options().type == ProjectType::DynamicLib)
|
QString target="$(CLEANOBJ)";
|
||||||
writeln(file, QString("\t-${RM} $(CLEANOBJ) $(CLEAN_DEF) $(CLEAN_STATIC) > %1 2>&1").arg(NULL_FILE));
|
if (mProject->options().usePrecompiledHeader
|
||||||
else
|
&& fileExists(mProject->options().precompiledHeader)) {
|
||||||
writeln(file, QString("\t-${RM} $(CLEANOBJ) > %1 2>&1").arg(NULL_FILE));
|
target += " $(PCH)";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mProject->options().type == ProjectType::DynamicLib) {
|
||||||
|
target +=" $(CLEAN_DEF) $(CLEAN_STATIC)";
|
||||||
|
}
|
||||||
|
writeln(file, QString("\t-$(RM) %1 > %2 2>&1").arg(target,NULL_FILE));
|
||||||
writeln(file);
|
writeln(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -327,8 +338,6 @@ void ProjectCompiler::writeMakeObjFilesRules(QFile &file)
|
||||||
{
|
{
|
||||||
PCppParser parser = mProject->cppParser();
|
PCppParser parser = mProject->cppParser();
|
||||||
QString precompileStr;
|
QString precompileStr;
|
||||||
if (mProject->options().usePrecompiledHeader)
|
|
||||||
precompileStr = " $(PCH) ";
|
|
||||||
|
|
||||||
QList<PProjectUnit> projectUnits=mProject->unitList();
|
QList<PProjectUnit> projectUnits=mProject->unitList();
|
||||||
foreach(const PProjectUnit &unit, projectUnits) {
|
foreach(const PProjectUnit &unit, projectUnits) {
|
||||||
|
@ -344,17 +353,15 @@ void ProjectCompiler::writeMakeObjFilesRules(QFile &file)
|
||||||
// if we have scanned it, use scanned info
|
// if we have scanned it, use scanned info
|
||||||
if (parser && parser->scannedFiles().contains(unit->fileName())) {
|
if (parser && parser->scannedFiles().contains(unit->fileName())) {
|
||||||
QSet<QString> fileIncludes = parser->getFileIncludes(unit->fileName());
|
QSet<QString> fileIncludes = parser->getFileIncludes(unit->fileName());
|
||||||
foreach (const QString& headerName, fileIncludes) {
|
foreach(const PProjectUnit &unit2, projectUnits) {
|
||||||
if (headerName == unit->fileName())
|
if (unit2==unit)
|
||||||
continue;
|
continue;
|
||||||
if (!parser->isSystemHeaderFile(headerName)
|
if (fileIncludes.contains(unit2->fileName())) {
|
||||||
&& ! parser->isProjectHeaderFile(headerName)) {
|
if (mProject->options().usePrecompiledHeader &&
|
||||||
foreach(const PProjectUnit &unit2, projectUnits) {
|
unit2->fileName() == mProject->options().precompiledHeader)
|
||||||
if (unit2->fileName()==headerName) {
|
precompileStr = " $(PCH) ";
|
||||||
objStr = objStr + ' ' + genMakePath2(extractRelativePath(mProject->makeFileName(),headerName));
|
else
|
||||||
break;
|
objStr = objStr + ' ' + genMakePath2(extractRelativePath(mProject->makeFileName(),unit2->fileName()));
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -56,13 +56,13 @@ void ProjectPreCompileWidget::on_btnBrowse_clicked()
|
||||||
} else {
|
} else {
|
||||||
currentDir = extractFilePath(currentFile);
|
currentDir = extractFilePath(currentFile);
|
||||||
}
|
}
|
||||||
QString fileName = QFileDialog::getSaveFileName(
|
QString fileName = QFileDialog::getOpenFileName(
|
||||||
this,
|
this,
|
||||||
tr("Precompiled header"),
|
tr("Select the header file to be precompiled"),
|
||||||
currentDir,
|
currentDir,
|
||||||
tr("precompiled header files (*.pch)"),
|
tr("Header files (*.h *.hh *.hpp)"),
|
||||||
nullptr,
|
nullptr,
|
||||||
QFileDialog::Options()|QFileDialog::DontConfirmOverwrite);
|
QFileDialog::Options());
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
ui->txtPrecompileHeader->setText(fileName);
|
ui->txtPrecompileHeader->setText(fileName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,13 @@
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Header to be precompiled:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="txtPrecompileHeader"/>
|
<widget class="QLineEdit" name="txtPrecompileHeader"/>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -30,7 +30,7 @@ SystemConsts::SystemConsts(): mDefaultFileFilters()
|
||||||
addDefaultFileFilter(QObject::tr("Dev C++ Project files"),"*.dev");
|
addDefaultFileFilter(QObject::tr("Dev C++ Project files"),"*.dev");
|
||||||
addDefaultFileFilter(QObject::tr("C files"),"*.c");
|
addDefaultFileFilter(QObject::tr("C files"),"*.c");
|
||||||
addDefaultFileFilter(QObject::tr("C++ files"),"*.cpp *.cc *.cxx");
|
addDefaultFileFilter(QObject::tr("C++ files"),"*.cpp *.cc *.cxx");
|
||||||
addDefaultFileFilter(QObject::tr("Header files"),"*.h *.hh");
|
addDefaultFileFilter(QObject::tr("Header files"),"*.h *.hh *.hpp");
|
||||||
|
|
||||||
addFileFilter(mIconFileFilters, QObject::tr("Icon files"), "*.ico");
|
addFileFilter(mIconFileFilters, QObject::tr("Icon files"), "*.ico");
|
||||||
|
|
||||||
|
|
|
@ -5737,14 +5737,22 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Precompiled header</source>
|
<source>Precompiled header</source>
|
||||||
<translation>Cabeçalho já compilado</translation>
|
<translation type="vanished">Cabeçalho já compilado</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>header files (*.h)</source>
|
<source>header files (*.h)</source>
|
||||||
<translation type="vanished">arquivos de cabeçalhos (*h)</translation>
|
<translation type="vanished">arquivos de cabeçalhos (*h)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>precompiled header files (*.pch)</source>
|
<source>Select the header file to be precompiled</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Header files (*.h *.hh *.hpp)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Header to be precompiled:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
@ -7036,105 +7036,105 @@ Are you really want to continue?</oldsource>
|
||||||
<translation type="vanished">无法保存文件'%1'.</translation>
|
<translation type="vanished">无法保存文件'%1'.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="944"/>
|
<location filename="../project.cpp" line="948"/>
|
||||||
<source>Error Load File</source>
|
<source>Error Load File</source>
|
||||||
<translation>载入文件错误</translation>
|
<translation>载入文件错误</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="968"/>
|
<location filename="../project.cpp" line="972"/>
|
||||||
<location filename="../project.cpp" line="1065"/>
|
<location filename="../project.cpp" line="1069"/>
|
||||||
<source>Error</source>
|
<source>Error</source>
|
||||||
<translation>错误</translation>
|
<translation>错误</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="969"/>
|
<location filename="../project.cpp" line="973"/>
|
||||||
<source>Can't create folder %1 </source>
|
<source>Can't create folder %1 </source>
|
||||||
<translation>无法创建文件夹%1</translation>
|
<translation>无法创建文件夹%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1036"/>
|
<location filename="../project.cpp" line="1040"/>
|
||||||
<source>Warning</source>
|
<source>Warning</source>
|
||||||
<translation>警告</translation>
|
<translation>警告</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1037"/>
|
<location filename="../project.cpp" line="1041"/>
|
||||||
<location filename="../project.cpp" line="1066"/>
|
<location filename="../project.cpp" line="1070"/>
|
||||||
<source>Can't save file %1</source>
|
<source>Can't save file %1</source>
|
||||||
<translation>无法保存文件%1</translation>
|
<translation>无法保存文件%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1193"/>
|
<location filename="../project.cpp" line="1197"/>
|
||||||
<source>File Exists</source>
|
<source>File Exists</source>
|
||||||
<translation>文件已存在</translation>
|
<translation>文件已存在</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1194"/>
|
<location filename="../project.cpp" line="1198"/>
|
||||||
<source>File '%1' is already in the project</source>
|
<source>File '%1' is already in the project</source>
|
||||||
<translation>文件'%1'已在项目中</translation>
|
<translation>文件'%1'已在项目中</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1576"/>
|
<location filename="../project.cpp" line="1580"/>
|
||||||
<source>Project Updated</source>
|
<source>Project Updated</source>
|
||||||
<translation>项目已升级</translation>
|
<translation>项目已升级</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1577"/>
|
<location filename="../project.cpp" line="1581"/>
|
||||||
<source>Your project was succesfully updated to a newer file format!</source>
|
<source>Your project was succesfully updated to a newer file format!</source>
|
||||||
<translation>已成功将项目升级到新的格式</translation>
|
<translation>已成功将项目升级到新的格式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1579"/>
|
<location filename="../project.cpp" line="1583"/>
|
||||||
<source>If something has gone wrong, we kept a backup-file: '%1'...</source>
|
<source>If something has gone wrong, we kept a backup-file: '%1'...</source>
|
||||||
<translation>旧项目文件备份在'%1'。</translation>
|
<translation>旧项目文件备份在'%1'。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1650"/>
|
<location filename="../project.cpp" line="1654"/>
|
||||||
<source>Headers</source>
|
<source>Headers</source>
|
||||||
<translation>头文件</translation>
|
<translation>头文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1658"/>
|
<location filename="../project.cpp" line="1662"/>
|
||||||
<source>Sources</source>
|
<source>Sources</source>
|
||||||
<translation>源文件</translation>
|
<translation>源文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1666"/>
|
<location filename="../project.cpp" line="1670"/>
|
||||||
<source>Others</source>
|
<source>Others</source>
|
||||||
<translation>其他文件</translation>
|
<translation>其他文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1884"/>
|
<location filename="../project.cpp" line="1888"/>
|
||||||
<source>Settings need update</source>
|
<source>Settings need update</source>
|
||||||
<translation>设置需要更新</translation>
|
<translation>设置需要更新</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1885"/>
|
<location filename="../project.cpp" line="1889"/>
|
||||||
<source>The compiler settings format of Red Panda C++ has changed.</source>
|
<source>The compiler settings format of Red Panda C++ has changed.</source>
|
||||||
<oldsource>The compiler settings format of Dev-C++ has changed.</oldsource>
|
<oldsource>The compiler settings format of Dev-C++ has changed.</oldsource>
|
||||||
<translation>小熊猫C++的编译器设置格式已发生改变。</translation>
|
<translation>小熊猫C++的编译器设置格式已发生改变。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1887"/>
|
<location filename="../project.cpp" line="1891"/>
|
||||||
<source>Please update your settings at Project >> Project Options >> Compiler and save your project.</source>
|
<source>Please update your settings at Project >> Project Options >> Compiler and save your project.</source>
|
||||||
<translation>请在项目 >> 项目属性 >> 编译器设置中修改您的设置并保存您的项目</translation>
|
<translation>请在项目 >> 项目属性 >> 编译器设置中修改您的设置并保存您的项目</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1961"/>
|
<location filename="../project.cpp" line="1965"/>
|
||||||
<source>Compiler not found</source>
|
<source>Compiler not found</source>
|
||||||
<translation>未找到编译器</translation>
|
<translation>未找到编译器</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1962"/>
|
<location filename="../project.cpp" line="1966"/>
|
||||||
<source>The compiler set you have selected for this project, no longer exists.</source>
|
<source>The compiler set you have selected for this project, no longer exists.</source>
|
||||||
<translation>您为该项目设置的编译器不存在。</translation>
|
<translation>您为该项目设置的编译器不存在。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="1964"/>
|
<location filename="../project.cpp" line="1968"/>
|
||||||
<source>It will be substituted by the global compiler set.</source>
|
<source>It will be substituted by the global compiler set.</source>
|
||||||
<translation>它将会被全局编译器设置代替。</translation>
|
<translation>它将会被全局编译器设置代替。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2060"/>
|
<location filename="../project.cpp" line="2064"/>
|
||||||
<source>Developed using the Red Panda C++ IDE</source>
|
<source>Developed using the Red Panda C++ IDE</source>
|
||||||
<oldsource>Developed using the Red Panda Dev-C++ IDE</oldsource>
|
<oldsource>Developed using the Red Panda Dev-C++ IDE</oldsource>
|
||||||
<translation>使用小熊猫C++编辑器开发</translation>
|
<translation>使用小熊猫C++编辑器开发</translation>
|
||||||
|
@ -7244,47 +7244,47 @@ Are you really want to continue?</oldsource>
|
||||||
<translation>无法写入文件'%1'!</translation>
|
<translation>无法写入文件'%1'!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="197"/>
|
<location filename="../compiler/projectcompiler.cpp" line="205"/>
|
||||||
<source>- Resource File: %1</source>
|
<source>- Resource File: %1</source>
|
||||||
<translation>- 资源文件: %1</translation>
|
<translation>- 资源文件: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="522"/>
|
<location filename="../compiler/projectcompiler.cpp" line="535"/>
|
||||||
<source>Compiling project changes...</source>
|
<source>Compiling project changes...</source>
|
||||||
<translation>正在编译项目修改...</translation>
|
<translation>正在编译项目修改...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="524"/>
|
<location filename="../compiler/projectcompiler.cpp" line="537"/>
|
||||||
<source>- Project Filename: %1</source>
|
<source>- Project Filename: %1</source>
|
||||||
<translation>- 项目文件名: %1</translation>
|
<translation>- 项目文件名: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="525"/>
|
<location filename="../compiler/projectcompiler.cpp" line="538"/>
|
||||||
<source>- Compiler Set Name: %1</source>
|
<source>- Compiler Set Name: %1</source>
|
||||||
<translation>- 编译器配置: %1</translation>
|
<translation>- 编译器配置: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="534"/>
|
<location filename="../compiler/projectcompiler.cpp" line="547"/>
|
||||||
<source>Make program '%1' doesn't exists!</source>
|
<source>Make program '%1' doesn't exists!</source>
|
||||||
<translation>Make程序“%1”不存在!</translation>
|
<translation>Make程序“%1”不存在!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="536"/>
|
<location filename="../compiler/projectcompiler.cpp" line="549"/>
|
||||||
<source>Please check the "program" page of compiler settings.</source>
|
<source>Please check the "program" page of compiler settings.</source>
|
||||||
<translation>请检查编译器配置中的“程序”页。</translation>
|
<translation>请检查编译器配置中的“程序”页。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="566"/>
|
<location filename="../compiler/projectcompiler.cpp" line="579"/>
|
||||||
<source>Processing makefile:</source>
|
<source>Processing makefile:</source>
|
||||||
<translation>正在处理makefile...</translation>
|
<translation>正在处理makefile...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="568"/>
|
<location filename="../compiler/projectcompiler.cpp" line="581"/>
|
||||||
<source>- makefile processer: %1</source>
|
<source>- makefile processer: %1</source>
|
||||||
<translation>- makefile处理器: %1</translation>
|
<translation>- makefile处理器: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../compiler/projectcompiler.cpp" line="569"/>
|
<location filename="../compiler/projectcompiler.cpp" line="582"/>
|
||||||
<source>- Command: %1 %2</source>
|
<source>- Command: %1 %2</source>
|
||||||
<translation>- 命令: %1 %2</translation>
|
<translation>- 命令: %1 %2</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -7622,32 +7622,32 @@ Are you really want to continue?</oldsource>
|
||||||
<context>
|
<context>
|
||||||
<name>ProjectModel</name>
|
<name>ProjectModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2633"/>
|
<location filename="../project.cpp" line="2637"/>
|
||||||
<source>File exists</source>
|
<source>File exists</source>
|
||||||
<translation>文件已存在</translation>
|
<translation>文件已存在</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2634"/>
|
<location filename="../project.cpp" line="2638"/>
|
||||||
<source>File '%1' already exists. Delete it now?</source>
|
<source>File '%1' already exists. Delete it now?</source>
|
||||||
<translation>文件'%1'已存在。是否删除?</translation>
|
<translation>文件'%1'已存在。是否删除?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2652"/>
|
<location filename="../project.cpp" line="2656"/>
|
||||||
<source>Remove failed</source>
|
<source>Remove failed</source>
|
||||||
<translation>删除失败</translation>
|
<translation>删除失败</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2653"/>
|
<location filename="../project.cpp" line="2657"/>
|
||||||
<source>Failed to remove file '%1'</source>
|
<source>Failed to remove file '%1'</source>
|
||||||
<translation>无法删除文件'%1'</translation>
|
<translation>无法删除文件'%1'</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2670"/>
|
<location filename="../project.cpp" line="2674"/>
|
||||||
<source>Rename failed</source>
|
<source>Rename failed</source>
|
||||||
<translation>改名失败</translation>
|
<translation>改名失败</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../project.cpp" line="2671"/>
|
<location filename="../project.cpp" line="2675"/>
|
||||||
<source>Failed to rename file '%1' to '%2'</source>
|
<source>Failed to rename file '%1' to '%2'</source>
|
||||||
<translation>无法将文件'%1'改名为'%2'</translation>
|
<translation>无法将文件'%1'改名为'%2'</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -7720,31 +7720,44 @@ Are you really want to continue?</oldsource>
|
||||||
<translation>使用预编译头文件</translation>
|
<translation>使用预编译头文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog/projectprecompilewidget.ui" line="47"/>
|
<location filename="../settingsdialog/projectprecompilewidget.ui" line="44"/>
|
||||||
<location filename="../settingsdialog/projectprecompilewidget.ui" line="50"/>
|
<source>Header to be precompiled:</source>
|
||||||
|
<translation>要预编译的头文件:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settingsdialog/projectprecompilewidget.ui" line="54"/>
|
||||||
|
<location filename="../settingsdialog/projectprecompilewidget.ui" line="57"/>
|
||||||
<source>Browse</source>
|
<source>Browse</source>
|
||||||
<translation>浏览</translation>
|
<translation>浏览</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog/projectprecompilewidget.ui" line="71"/>
|
<location filename="../settingsdialog/projectprecompilewidget.ui" line="78"/>
|
||||||
<source><html><head/><body><p>For more information about gcc precompiled header, see:</p><p><a href="https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html"><span style=" text-decoration: underline; color:#007af4;">https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html</span></a></p></body></html></source>
|
<source><html><head/><body><p>For more information about gcc precompiled header, see:</p><p><a href="https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html"><span style=" text-decoration: underline; color:#007af4;">https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html</span></a></p></body></html></source>
|
||||||
<translation><html><head/><body><p>请问访问下面网站以了解有关gcc预定义头文件的信息:</p><p><a href="https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html"><span style=" text-decoration: underline; color:#007af4;">https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html</span></a></p></body></html></translation>
|
<translation><html><head/><body><p>请问访问下面网站以了解有关gcc预定义头文件的信息:</p><p><a href="https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html"><span style=" text-decoration: underline; color:#007af4;">https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html</span></a></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog/projectprecompilewidget.cpp" line="61"/>
|
|
||||||
<source>Precompiled header</source>
|
<source>Precompiled header</source>
|
||||||
<translation>预定义头文件</translation>
|
<translation type="vanished">预定义头文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog/projectprecompilewidget.cpp" line="63"/>
|
|
||||||
<source>precompiled header files (*.pch)</source>
|
<source>precompiled header files (*.pch)</source>
|
||||||
<translation>预定义头文件 (*.pch)</translation>
|
<translation type="vanished">预定义头文件 (*.pch)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>header files (*.h)</source>
|
<source>header files (*.h)</source>
|
||||||
<oldsource>header files (*.h</oldsource>
|
<oldsource>header files (*.h</oldsource>
|
||||||
<translation type="vanished">文件夹 (*.h)</translation>
|
<translation type="vanished">文件夹 (*.h)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settingsdialog/projectprecompilewidget.cpp" line="61"/>
|
||||||
|
<source>Select the header file to be precompiled</source>
|
||||||
|
<translation>选择要预编译的头文件</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settingsdialog/projectprecompilewidget.cpp" line="63"/>
|
||||||
|
<source>Header files (*.h *.hh *.hpp)</source>
|
||||||
|
<translation>头文件 (*.h *.hh *.hpp)</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProjectTemplate</name>
|
<name>ProjectTemplate</name>
|
||||||
|
@ -8059,7 +8072,7 @@ Are you really want to continue?</oldsource>
|
||||||
<translation>生成调试信息(-g3)</translation>
|
<translation>生成调试信息(-g3)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings.cpp" line="2956"/>
|
<location filename="../settings.cpp" line="2971"/>
|
||||||
<source>Would you like Red Panda C++ to search for compilers in PATH?</source>
|
<source>Would you like Red Panda C++ to search for compilers in PATH?</source>
|
||||||
<translation>您同意小熊猫C++在PATH路径中寻找gcc编译器吗?</translation>
|
<translation>您同意小熊猫C++在PATH路径中寻找gcc编译器吗?</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -8172,7 +8185,7 @@ Are you really want to continue?</oldsource>
|
||||||
<translation type="vanished">只生成汇编代码(-S)</translation>
|
<translation type="vanished">只生成汇编代码(-S)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings.cpp" line="2958"/>
|
<location filename="../settings.cpp" line="2973"/>
|
||||||
<source>Confirm</source>
|
<source>Confirm</source>
|
||||||
<translation>确认</translation>
|
<translation>确认</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -8193,13 +8206,13 @@ Are you really want to continue?</oldsource>
|
||||||
<translation type="vanished">如果仍然保留这些设置,可能会导致编译错误。<br /><br />请选择“是”,除非您清楚的知道选择“否”的后果,</translation>
|
<translation type="vanished">如果仍然保留这些设置,可能会导致编译错误。<br /><br />请选择“是”,除非您清楚的知道选择“否”的后果,</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings.cpp" line="2948"/>
|
<location filename="../settings.cpp" line="2963"/>
|
||||||
<location filename="../settings.cpp" line="2954"/>
|
<location filename="../settings.cpp" line="2969"/>
|
||||||
<source>Compiler set not configuared.</source>
|
<source>Compiler set not configuared.</source>
|
||||||
<translation>未配置编译器设置。</translation>
|
<translation>未配置编译器设置。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings.cpp" line="2950"/>
|
<location filename="../settings.cpp" line="2965"/>
|
||||||
<source>Would you like Red Panda C++ to search for compilers in the following locations: <BR />'%1'<BR />'%2'? </source>
|
<source>Would you like Red Panda C++ to search for compilers in the following locations: <BR />'%1'<BR />'%2'? </source>
|
||||||
<translation>您需要小熊猫C++在下列位置搜索编译器吗:<br />%1<br />%2</translation>
|
<translation>您需要小熊猫C++在下列位置搜索编译器吗:<br />%1<br />%2</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -8569,7 +8582,7 @@ Are you really want to continue?</oldsource>
|
||||||
<location filename="../autolinkmanager.cpp" line="60"/>
|
<location filename="../autolinkmanager.cpp" line="60"/>
|
||||||
<location filename="../autolinkmanager.cpp" line="74"/>
|
<location filename="../autolinkmanager.cpp" line="74"/>
|
||||||
<location filename="../autolinkmanager.cpp" line="105"/>
|
<location filename="../autolinkmanager.cpp" line="105"/>
|
||||||
<location filename="../project.cpp" line="662"/>
|
<location filename="../project.cpp" line="666"/>
|
||||||
<source>Can't open file '%1' for write.</source>
|
<source>Can't open file '%1' for write.</source>
|
||||||
<translation>无法写入文件'%1'.</translation>
|
<translation>无法写入文件'%1'.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -5517,11 +5517,15 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Precompiled header</source>
|
<source>Select the header file to be precompiled</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>precompiled header files (*.pch)</source>
|
<source>Header files (*.h *.hh *.hpp)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Header to be precompiled:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
Loading…
Reference in New Issue