WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
90355
[CMAKE] Items of IDL list should be absolute path.
https://bugs.webkit.org/show_bug.cgi?id=90355
Summary
[CMAKE] Items of IDL list should be absolute path.
Ryuan Choi
Reported
2012-07-01 18:25:09 PDT
Because items of IDL list is relative path now, we append ${WEBCORE_DIR} before using it. I think that items of IDL lists should be absolute path in order to simplify and generalize related codes which uses IDL list.
Attachments
Patch
(61.88 KB, patch)
2012-07-01 18:33 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2012-07-01 18:33:23 PDT
Created
attachment 150352
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 2
2012-07-02 20:40:04 PDT
Comment on
attachment 150352
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=150352&action=review
Sorry, I didn't really understand your rationale for this change in
https://bugs.webkit.org/show_bug.cgi?id=90258#c3
or in this bug. It makes more sense to just adjust the ADD_CUSTOM_COMMAND calls somehow than do this hack (there shouldn't be a need for some files to be specified as absolute paths and other files not in the CMake files).
> Source/WebCore/PlatformBlackBerry.cmake:331 > -FOREACH (_idl ${WebCore_CPP_IDL_FILES}) > - SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n") > -ENDFOREACH () > +STRING(REPLACE ";" "\n" IDL_FILES_LIST "${WebCore_CPP_IDL_FILES}")
This looks wrong; you're treating the list as a string here. Is there any particular reason to change this code?
Ryuan Choi
Comment 3
2012-07-03 17:58:37 PDT
(In reply to
comment #2
)
> (From update of
attachment 150352
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=150352&action=review
> > Sorry, I didn't really understand your rationale for this change in
https://bugs.webkit.org/show_bug.cgi?id=90258#c3
or in this bug. It makes more sense to just adjust the ADD_CUSTOM_COMMAND calls somehow than do this hack (there shouldn't be a need for some files to be specified as absolute paths and other files not in the CMake files).
OK. I will close this. changing working directory is better. thank you.
> > Source/WebCore/PlatformBlackBerry.cmake:331 > > -FOREACH (_idl ${WebCore_CPP_IDL_FILES}) > > - SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n") > > -ENDFOREACH () > > +STRING(REPLACE ";" "\n" IDL_FILES_LIST "${WebCore_CPP_IDL_FILES}") > > This looks wrong; you're treating the list as a string here. Is there any particular reason to change this code?
As my curiosity, is list string which contains semicolons? I thought that this is the simplest way to make IDL_FILES_LIST if we don't need to insert ${WEBCORE_DIR}
Raphael Kubo da Costa (:rakuco)
Comment 4
2012-07-04 14:34:38 PDT
(In reply to
comment #3
)
> > > Source/WebCore/PlatformBlackBerry.cmake:331 > > > -FOREACH (_idl ${WebCore_CPP_IDL_FILES}) > > > - SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n") > > > -ENDFOREACH () > > > +STRING(REPLACE ";" "\n" IDL_FILES_LIST "${WebCore_CPP_IDL_FILES}") > > As my curiosity, is list string which contains semicolons? > I thought that this is the simplest way to make IDL_FILES_LIST if we don't need to insert ${WEBCORE_DIR}
According to CMake's documentation for the LIST() command, "A list in cmake is a ; separated group of strings" (so that code isn't really wrong). This might save a few lines compared to the original loop, but makes the meaning of the code less clear.
Ryuan Choi
Comment 5
2012-07-04 14:39:06 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > > > Source/WebCore/PlatformBlackBerry.cmake:331 > > > > -FOREACH (_idl ${WebCore_CPP_IDL_FILES}) > > > > - SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n") > > > > -ENDFOREACH () > > > > +STRING(REPLACE ";" "\n" IDL_FILES_LIST "${WebCore_CPP_IDL_FILES}") > > > > As my curiosity, is list string which contains semicolons? > > I thought that this is the simplest way to make IDL_FILES_LIST if we don't need to insert ${WEBCORE_DIR} > > According to CMake's documentation for the LIST() command, "A list in cmake is a ; separated group of strings" (so that code isn't really wrong). This might save a few lines compared to the original loop, but makes the meaning of the code less clear.
Thank you for your kind explanation. I agree with you.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug