Imported Upstream version 3.0.2
This commit is contained in:
parent
2fe7065951
commit
5b785fe619
@ -22,7 +22,7 @@ downstream users of CMake versions older than 2.8.12. The
|
|||||||
target_link_libraries command will no longer populate the properties
|
target_link_libraries command will no longer populate the properties
|
||||||
matching LINK_INTERFACE_LIBRARIES(_<CONFIG>)? if this policy is NEW.
|
matching LINK_INTERFACE_LIBRARIES(_<CONFIG>)? if this policy is NEW.
|
||||||
|
|
||||||
Warning-free future-compatible code which works with CMake 2.8.9 onwards
|
Warning-free future-compatible code which works with CMake 2.8.7 onwards
|
||||||
can be written by using the ``LINK_PRIVATE`` and ``LINK_PUBLIC`` keywords
|
can be written by using the ``LINK_PRIVATE`` and ``LINK_PUBLIC`` keywords
|
||||||
of :command:`target_link_libraries`.
|
of :command:`target_link_libraries`.
|
||||||
|
|
||||||
|
@ -237,6 +237,7 @@ function(get_bundle_main_executable bundle result_var)
|
|||||||
file(READ "${bundle}/Contents/Info.plist" info_plist)
|
file(READ "${bundle}/Contents/Info.plist" info_plist)
|
||||||
string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}")
|
string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}")
|
||||||
string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
|
string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
|
||||||
|
string(REGEX REPLACE "\r" "${eol_char};" info_plist "${info_plist}")
|
||||||
|
|
||||||
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
|
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
|
||||||
# is the name of the main executable.
|
# is the name of the main executable.
|
||||||
|
@ -136,7 +136,9 @@ if (CMAKE_CROSSCOMPILING AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
|||||||
if (COMPILER_BASENAME MATCHES "^(.+-)(clang|g?cc)(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
if (COMPILER_BASENAME MATCHES "^(.+-)(clang|g?cc)(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||||
elseif("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
elseif("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||||
|
if(CMAKE_C_COMPILER_TARGET)
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_C_COMPILER_TARGET}-)
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_C_COMPILER_TARGET}-)
|
||||||
|
endif()
|
||||||
elseif(COMPILER_BASENAME MATCHES "qcc(\\.exe)?$")
|
elseif(COMPILER_BASENAME MATCHES "qcc(\\.exe)?$")
|
||||||
if(CMAKE_C_COMPILER_TARGET MATCHES "gcc_nto([^_le]+)(le)?.*$")
|
if(CMAKE_C_COMPILER_TARGET MATCHES "gcc_nto([^_le]+)(le)?.*$")
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX nto${CMAKE_MATCH_1}-)
|
set(_CMAKE_TOOLCHAIN_PREFIX nto${CMAKE_MATCH_1}-)
|
||||||
|
@ -133,7 +133,9 @@ if (CMAKE_CROSSCOMPILING AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
|||||||
if (COMPILER_BASENAME MATCHES "^(.+-)(clan)?[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
if (COMPILER_BASENAME MATCHES "^(.+-)(clan)?[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||||
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
|
if(CMAKE_CXX_COMPILER_TARGET)
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_CXX_COMPILER_TARGET}-)
|
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_CXX_COMPILER_TARGET}-)
|
||||||
|
endif()
|
||||||
elseif(COMPILER_BASENAME MATCHES "QCC(\\.exe)?$")
|
elseif(COMPILER_BASENAME MATCHES "QCC(\\.exe)?$")
|
||||||
if(CMAKE_CXX_COMPILER_TARGET MATCHES "gcc_nto([^_le]+)(le)?.*$")
|
if(CMAKE_CXX_COMPILER_TARGET MATCHES "gcc_nto([^_le]+)(le)?.*$")
|
||||||
set(_CMAKE_TOOLCHAIN_PREFIX nto${CMAKE_MATCH_1}-)
|
set(_CMAKE_TOOLCHAIN_PREFIX nto${CMAKE_MATCH_1}-)
|
||||||
|
@ -607,6 +607,7 @@ Retrying download.
|
|||||||
file(REMOVE \"\${file}\")
|
file(REMOVE \"\${file}\")
|
||||||
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
|
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
|
||||||
endif()
|
endif()
|
||||||
|
math(EXPR attempt \"\${attempt} + 1\")
|
||||||
endwhile()
|
endwhile()
|
||||||
|
|
||||||
if(\${succeeded})
|
if(\${succeeded})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# CMake version number components.
|
# CMake version number components.
|
||||||
set(CMake_VERSION_MAJOR 3)
|
set(CMake_VERSION_MAJOR 3)
|
||||||
set(CMake_VERSION_MINOR 0)
|
set(CMake_VERSION_MINOR 0)
|
||||||
set(CMake_VERSION_PATCH 1)
|
set(CMake_VERSION_PATCH 2)
|
||||||
#set(CMake_VERSION_RC 0)
|
#set(CMake_VERSION_RC 0)
|
||||||
|
@ -804,6 +804,14 @@ void cmGlobalGenerator::CheckCompilerIdCompatibility(cmMakefile* mf,
|
|||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
// OLD behavior is to convert QCC to GNU.
|
// OLD behavior is to convert QCC to GNU.
|
||||||
mf->AddDefinition(compilerIdVar.c_str(), "GNU");
|
mf->AddDefinition(compilerIdVar.c_str(), "GNU");
|
||||||
|
if(lang == "C")
|
||||||
|
{
|
||||||
|
mf->AddDefinition("CMAKE_COMPILER_IS_GNUCC", "1");
|
||||||
|
}
|
||||||
|
else if(lang == "CXX")
|
||||||
|
{
|
||||||
|
mf->AddDefinition("CMAKE_COMPILER_IS_GNUCXX", "1");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case cmPolicies::REQUIRED_IF_USED:
|
case cmPolicies::REQUIRED_IF_USED:
|
||||||
case cmPolicies::REQUIRED_ALWAYS:
|
case cmPolicies::REQUIRED_ALWAYS:
|
||||||
|
@ -837,16 +837,14 @@ cmGlobalXCodeGenerator::CreateXCodeFileReferenceFromPath(
|
|||||||
cmTarget& cmtarget,
|
cmTarget& cmtarget,
|
||||||
const std::string &lang)
|
const std::string &lang)
|
||||||
{
|
{
|
||||||
std::string fname = fullpath;
|
cmStdString key = GetGroupMapKeyFromPath(cmtarget, fullpath);
|
||||||
cmXCodeObject* fileRef = this->FileRefs[fname];
|
cmXCodeObject* fileRef = this->FileRefs[key];
|
||||||
if(!fileRef)
|
if(!fileRef)
|
||||||
{
|
{
|
||||||
fileRef = this->CreateObject(cmXCodeObject::PBXFileReference);
|
fileRef = this->CreateObject(cmXCodeObject::PBXFileReference);
|
||||||
std::string comment = fname;
|
fileRef->SetComment(fullpath.c_str());
|
||||||
fileRef->SetComment(fname.c_str());
|
this->FileRefs[key] = fileRef;
|
||||||
this->FileRefs[fname] = fileRef;
|
|
||||||
}
|
}
|
||||||
cmStdString key = GetGroupMapKeyFromPath(cmtarget, fullpath);
|
|
||||||
cmXCodeObject* group = this->GroupMap[key];
|
cmXCodeObject* group = this->GroupMap[key];
|
||||||
cmXCodeObject* children = group->GetObject("children");
|
cmXCodeObject* children = group->GetObject("children");
|
||||||
if (!children->HasObject(fileRef))
|
if (!children->HasObject(fileRef))
|
||||||
|
@ -369,8 +369,8 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
|||||||
*yy_cp = '\0'; \
|
*yy_cp = '\0'; \
|
||||||
yyg->yy_c_buf_p = yy_cp;
|
yyg->yy_c_buf_p = yy_cp;
|
||||||
|
|
||||||
#define YY_NUM_RULES 23
|
#define YY_NUM_RULES 24
|
||||||
#define YY_END_OF_BUFFER 24
|
#define YY_END_OF_BUFFER 25
|
||||||
/* This struct is not used in this scanner,
|
/* This struct is not used in this scanner,
|
||||||
but its presence is necessary. */
|
but its presence is necessary. */
|
||||||
struct yy_trans_info
|
struct yy_trans_info
|
||||||
@ -381,10 +381,10 @@ struct yy_trans_info
|
|||||||
static yyconst flex_int16_t yy_accept[77] =
|
static yyconst flex_int16_t yy_accept[77] =
|
||||||
{ 0,
|
{ 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 4, 4,
|
0, 0, 0, 0, 0, 0, 0, 0, 4, 4,
|
||||||
24, 13, 21, 1, 15, 3, 13, 5, 6, 7,
|
25, 13, 22, 1, 16, 3, 13, 5, 6, 7,
|
||||||
22, 22, 16, 18, 19, 20, 10, 11, 8, 12,
|
15, 23, 17, 19, 20, 21, 10, 11, 8, 12,
|
||||||
9, 4, 13, 0, 13, 0, 21, 0, 0, 7,
|
9, 4, 13, 0, 13, 0, 22, 0, 0, 7,
|
||||||
13, 0, 13, 0, 2, 0, 13, 16, 0, 17,
|
13, 0, 13, 0, 2, 0, 13, 17, 0, 18,
|
||||||
10, 8, 4, 0, 14, 0, 0, 0, 0, 14,
|
10, 8, 4, 0, 14, 0, 0, 0, 0, 14,
|
||||||
0, 0, 14, 0, 0, 0, 2, 14, 0, 0,
|
0, 0, 14, 0, 0, 0, 2, 14, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0
|
0, 0, 0, 0, 0, 0
|
||||||
@ -523,10 +523,10 @@ static yyconst flex_int16_t yy_chk[253] =
|
|||||||
} ;
|
} ;
|
||||||
|
|
||||||
/* Table of booleans, true if rule could match eol. */
|
/* Table of booleans, true if rule could match eol. */
|
||||||
static yyconst flex_int32_t yy_rule_can_match_eol[24] =
|
static yyconst flex_int32_t yy_rule_can_match_eol[25] =
|
||||||
{ 0,
|
{ 0,
|
||||||
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0,
|
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1,
|
||||||
0, 0, 0, 0, };
|
0, 0, 0, 0, 0, };
|
||||||
|
|
||||||
/* The intent behind this definition is that it'll catch
|
/* The intent behind this definition is that it'll catch
|
||||||
* any uses of REJECT which flex missed.
|
* any uses of REJECT which flex missed.
|
||||||
@ -615,7 +615,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line 621 "cmListFileLexer.c"
|
#line 628 "cmListFileLexer.c"
|
||||||
|
|
||||||
#define INITIAL 0
|
#define INITIAL 0
|
||||||
#define STRING 1
|
#define STRING 1
|
||||||
@ -850,7 +850,7 @@ YY_DECL
|
|||||||
#line 91 "cmListFileLexer.in.l"
|
#line 91 "cmListFileLexer.in.l"
|
||||||
|
|
||||||
|
|
||||||
#line 858 "cmListFileLexer.c"
|
#line 865 "cmListFileLexer.c"
|
||||||
|
|
||||||
if ( !yyg->yy_init )
|
if ( !yyg->yy_init )
|
||||||
{
|
{
|
||||||
@ -1110,6 +1110,15 @@ YY_RULE_SETUP
|
|||||||
case 15:
|
case 15:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 215 "cmListFileLexer.in.l"
|
#line 215 "cmListFileLexer.in.l"
|
||||||
|
{
|
||||||
|
lexer->token.type = cmListFileLexer_Token_ArgumentUnquoted;
|
||||||
|
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
||||||
|
lexer->column += yyleng;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
case 16:
|
||||||
|
YY_RULE_SETUP
|
||||||
|
#line 222 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->token.type = cmListFileLexer_Token_ArgumentQuoted;
|
lexer->token.type = cmListFileLexer_Token_ArgumentQuoted;
|
||||||
cmListFileLexerSetToken(lexer, "", 0);
|
cmListFileLexerSetToken(lexer, "", 0);
|
||||||
@ -1117,69 +1126,69 @@ YY_RULE_SETUP
|
|||||||
BEGIN(STRING);
|
BEGIN(STRING);
|
||||||
}
|
}
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 16:
|
case 17:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 222 "cmListFileLexer.in.l"
|
#line 229 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
cmListFileLexerAppend(lexer, yytext, yyleng);
|
cmListFileLexerAppend(lexer, yytext, yyleng);
|
||||||
lexer->column += yyleng;
|
lexer->column += yyleng;
|
||||||
}
|
}
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 17:
|
case 18:
|
||||||
/* rule 17 can match eol */
|
/* rule 18 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 227 "cmListFileLexer.in.l"
|
#line 234 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
/* Continuation: text is not part of string */
|
/* Continuation: text is not part of string */
|
||||||
++lexer->line;
|
++lexer->line;
|
||||||
lexer->column = 1;
|
lexer->column = 1;
|
||||||
}
|
}
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 18:
|
case 19:
|
||||||
/* rule 18 can match eol */
|
/* rule 19 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 233 "cmListFileLexer.in.l"
|
#line 240 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
cmListFileLexerAppend(lexer, yytext, yyleng);
|
cmListFileLexerAppend(lexer, yytext, yyleng);
|
||||||
++lexer->line;
|
++lexer->line;
|
||||||
lexer->column = 1;
|
lexer->column = 1;
|
||||||
}
|
}
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 19:
|
case 20:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 239 "cmListFileLexer.in.l"
|
#line 246 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->column += yyleng;
|
lexer->column += yyleng;
|
||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case 20:
|
case 21:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 245 "cmListFileLexer.in.l"
|
#line 252 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
cmListFileLexerAppend(lexer, yytext, yyleng);
|
cmListFileLexerAppend(lexer, yytext, yyleng);
|
||||||
lexer->column += yyleng;
|
lexer->column += yyleng;
|
||||||
}
|
}
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case YY_STATE_EOF(STRING):
|
case YY_STATE_EOF(STRING):
|
||||||
#line 250 "cmListFileLexer.in.l"
|
#line 257 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->token.type = cmListFileLexer_Token_BadString;
|
lexer->token.type = cmListFileLexer_Token_BadString;
|
||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case 21:
|
case 22:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 256 "cmListFileLexer.in.l"
|
#line 263 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->token.type = cmListFileLexer_Token_Space;
|
lexer->token.type = cmListFileLexer_Token_Space;
|
||||||
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
||||||
lexer->column += yyleng;
|
lexer->column += yyleng;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case 22:
|
case 23:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 263 "cmListFileLexer.in.l"
|
#line 270 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->token.type = cmListFileLexer_Token_BadCharacter;
|
lexer->token.type = cmListFileLexer_Token_BadCharacter;
|
||||||
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
||||||
@ -1188,18 +1197,18 @@ YY_RULE_SETUP
|
|||||||
}
|
}
|
||||||
case YY_STATE_EOF(INITIAL):
|
case YY_STATE_EOF(INITIAL):
|
||||||
case YY_STATE_EOF(COMMENT):
|
case YY_STATE_EOF(COMMENT):
|
||||||
#line 270 "cmListFileLexer.in.l"
|
#line 277 "cmListFileLexer.in.l"
|
||||||
{
|
{
|
||||||
lexer->token.type = cmListFileLexer_Token_None;
|
lexer->token.type = cmListFileLexer_Token_None;
|
||||||
cmListFileLexerSetToken(lexer, 0, 0);
|
cmListFileLexerSetToken(lexer, 0, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case 23:
|
case 24:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 276 "cmListFileLexer.in.l"
|
#line 283 "cmListFileLexer.in.l"
|
||||||
ECHO;
|
ECHO;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
#line 1220 "cmListFileLexer.c"
|
#line 1238 "cmListFileLexer.c"
|
||||||
|
|
||||||
case YY_END_OF_BUFFER:
|
case YY_END_OF_BUFFER:
|
||||||
{
|
{
|
||||||
@ -2320,7 +2329,7 @@ void cmListFileLexer_yyfree (void * ptr , yyscan_t yyscanner)
|
|||||||
|
|
||||||
#define YYTABLES_NAME "yytables"
|
#define YYTABLES_NAME "yytables"
|
||||||
|
|
||||||
#line 276 "cmListFileLexer.in.l"
|
#line 282 "cmListFileLexer.in.l"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -212,6 +212,13 @@ LEGACY {MAKEVAR}|{UNQUOTED}|\"({MAKEVAR}|{UNQUOTED}|[ \t[=])*\"
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\[ {
|
||||||
|
lexer->token.type = cmListFileLexer_Token_ArgumentUnquoted;
|
||||||
|
cmListFileLexerSetToken(lexer, yytext, yyleng);
|
||||||
|
lexer->column += yyleng;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
\" {
|
\" {
|
||||||
lexer->token.type = cmListFileLexer_Token_ArgumentQuoted;
|
lexer->token.type = cmListFileLexer_Token_ArgumentQuoted;
|
||||||
cmListFileLexerSetToken(lexer, "", 0);
|
cmListFileLexerSetToken(lexer, "", 0);
|
||||||
|
@ -1786,8 +1786,8 @@ void cmQtAutoGenerators::ParseForUic(const std::string& absFilename,
|
|||||||
|
|
||||||
std::string::size_type matchOffset = 0;
|
std::string::size_type matchOffset = 0;
|
||||||
|
|
||||||
const std::string absPath = cmsys::SystemTools::GetFilenamePath(
|
const std::string realName =
|
||||||
cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
|
cmsys::SystemTools::GetRealPath(absFilename.c_str());
|
||||||
|
|
||||||
matchOffset = 0;
|
matchOffset = 0;
|
||||||
if ((strstr(contentsString.c_str(), "ui_") != NULL)
|
if ((strstr(contentsString.c_str(), "ui_") != NULL)
|
||||||
@ -1804,7 +1804,7 @@ void cmQtAutoGenerators::ParseForUic(const std::string& absFilename,
|
|||||||
// finding the correct header, so we need to remove the ui_ part
|
// finding the correct header, so we need to remove the ui_ part
|
||||||
basename = basename.substr(3);
|
basename = basename.substr(3);
|
||||||
|
|
||||||
includedUis[absPath] = basename;
|
includedUis[realName] = basename;
|
||||||
|
|
||||||
matchOffset += uiIncludeRegExp.end();
|
matchOffset += uiIncludeRegExp.end();
|
||||||
} while(uiIncludeRegExp.find(contentsString.c_str() + matchOffset));
|
} while(uiIncludeRegExp.find(contentsString.c_str() + matchOffset));
|
||||||
@ -1960,7 +1960,7 @@ bool cmQtAutoGenerators::GenerateMoc(const std::string& sourceFile,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmQtAutoGenerators::GenerateUi(const std::string& path,
|
bool cmQtAutoGenerators::GenerateUi(const std::string& realName,
|
||||||
const std::string& uiFileName)
|
const std::string& uiFileName)
|
||||||
{
|
{
|
||||||
if (!cmsys::SystemTools::FileExists(this->Builddir.c_str(), false))
|
if (!cmsys::SystemTools::FileExists(this->Builddir.c_str(), false))
|
||||||
@ -1968,6 +1968,9 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& path,
|
|||||||
cmsys::SystemTools::MakeDirectory(this->Builddir.c_str());
|
cmsys::SystemTools::MakeDirectory(this->Builddir.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::string path = cmsys::SystemTools::GetFilenamePath(
|
||||||
|
realName.c_str()) + '/';
|
||||||
|
|
||||||
std::string ui_output_file = "ui_" + uiFileName + ".h";
|
std::string ui_output_file = "ui_" + uiFileName + ".h";
|
||||||
std::string ui_input_file = path + uiFileName + ".ui";
|
std::string ui_input_file = path + uiFileName + ".ui";
|
||||||
|
|
||||||
@ -2074,6 +2077,8 @@ bool cmQtAutoGenerators::GenerateQrc()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command.push_back("-name");
|
||||||
|
command.push_back(basename);
|
||||||
command.push_back("-o");
|
command.push_back("-o");
|
||||||
command.push_back(rcc_output_file);
|
command.push_back(rcc_output_file);
|
||||||
command.push_back(*si);
|
command.push_back(*si);
|
||||||
|
@ -48,7 +48,7 @@ private:
|
|||||||
bool RunAutogen(cmMakefile* makefile);
|
bool RunAutogen(cmMakefile* makefile);
|
||||||
bool GenerateMoc(const std::string& sourceFile,
|
bool GenerateMoc(const std::string& sourceFile,
|
||||||
const std::string& mocFileName);
|
const std::string& mocFileName);
|
||||||
bool GenerateUi(const std::string& path, const std::string& uiFileName);
|
bool GenerateUi(const std::string& realName, const std::string& uiFileName);
|
||||||
bool GenerateQrc();
|
bool GenerateQrc();
|
||||||
void ParseCppFile(const std::string& absFilename,
|
void ParseCppFile(const std::string& absFilename,
|
||||||
const std::vector<std::string>& headerExtensions,
|
const std::vector<std::string>& headerExtensions,
|
||||||
|
@ -80,6 +80,10 @@
|
|||||||
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
||||||
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
||||||
|
|
||||||
|
/* OpenRISC 1000 */
|
||||||
|
#elif defined(__or1k__)
|
||||||
|
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
||||||
|
|
||||||
/* RS/6000 */
|
/* RS/6000 */
|
||||||
#elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER)
|
#elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER)
|
||||||
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
||||||
|
@ -64,9 +64,9 @@ add_custom_command(
|
|||||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in"
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(QtAutogen main.cpp calwidget.cpp foo.cpp blub.cpp bar.cpp abc.cpp
|
add_executable(QtAutogen main.cpp calwidget.cpp second_widget.cpp foo.cpp blub.cpp bar.cpp abc.cpp
|
||||||
xyz.cpp yaf.cpp gadget.cpp $<TARGET_OBJECTS:privateSlot>
|
xyz.cpp yaf.cpp gadget.cpp $<TARGET_OBJECTS:privateSlot>
|
||||||
test.qrc resourcetester.cpp generated.cpp
|
test.qrc second_resource.qrc resourcetester.cpp generated.cpp
|
||||||
)
|
)
|
||||||
set_property(TARGET QtAutogen APPEND PROPERTY AUTOGEN_TARGET_DEPENDS generate_moc_input "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h")
|
set_property(TARGET QtAutogen APPEND PROPERTY AUTOGEN_TARGET_DEPENDS generate_moc_input "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h")
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@ void ResourceTester::doTest()
|
|||||||
{
|
{
|
||||||
if (!QFile::exists(":/CMakeLists.txt"))
|
if (!QFile::exists(":/CMakeLists.txt"))
|
||||||
qApp->exit(EXIT_FAILURE);
|
qApp->exit(EXIT_FAILURE);
|
||||||
|
if (!QFile::exists(":/main.cpp"))
|
||||||
|
qApp->exit(EXIT_FAILURE);
|
||||||
|
|
||||||
QTimer::singleShot(0, qApp, SLOT(quit()));
|
QTimer::singleShot(0, qApp, SLOT(quit()));
|
||||||
}
|
}
|
||||||
|
5
Tests/QtAutogen/second_resource.qrc
Normal file
5
Tests/QtAutogen/second_resource.qrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
|
<qresource>
|
||||||
|
<file>main.cpp</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
14
Tests/QtAutogen/second_widget.cpp
Normal file
14
Tests/QtAutogen/second_widget.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
#include "second_widget.h"
|
||||||
|
#include "ui_second_widget.h"
|
||||||
|
|
||||||
|
SecondWidget::SecondWidget(QWidget *parent)
|
||||||
|
: QWidget(parent), ui(new Ui::SecondWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
SecondWidget::~SecondWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
19
Tests/QtAutogen/second_widget.h
Normal file
19
Tests/QtAutogen/second_widget.h
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
|
namespace Ui
|
||||||
|
{
|
||||||
|
class SecondWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class SecondWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit SecondWidget(QWidget *parent = 0);
|
||||||
|
|
||||||
|
~SecondWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::SecondWidget* ui;
|
||||||
|
};
|
32
Tests/QtAutogen/second_widget.ui
Normal file
32
Tests/QtAutogen/second_widget.ui
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>SecondWidget</class>
|
||||||
|
<widget class="QWidget" name="SecondWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QPushButton" name="pushButton">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>80</x>
|
||||||
|
<y>20</y>
|
||||||
|
<width>94</width>
|
||||||
|
<height>24</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>PushButton</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -1 +1 @@
|
|||||||
^\[\]\[=\]\[\$\$\(MV\)-DSTR=" \[="\[;\]$
|
^\[\]\[=\]\[\$\$\(MV\)-DSTR=" \[="\[;\]\]\[$
|
||||||
|
@ -1 +1 @@
|
|||||||
message([] [=] [$ $(MV) -DSTR=" [=" [;])
|
message([] [=] [$ $(MV) -DSTR=" [=" [;] ] [)
|
||||||
|
@ -398,6 +398,10 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
|
|||||||
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
||||||
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||||
|
|
||||||
|
/* OpenRISC 1000 */
|
||||||
|
#elif defined(__or1k__)
|
||||||
|
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||||
|
|
||||||
/* RS/6000 */
|
/* RS/6000 */
|
||||||
#elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER)
|
#elif defined(__THW_RS600) || defined(_IBMR2) || defined(_POWER)
|
||||||
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user