Bug 152664

Summary: [CMake] JSC shell sources should include JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
Product: WebKit Reporter: Konstantin Tokarev <annulen>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: achristensen, commit-queue, gyuyoung.kim, lforschler, ossy
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
gyuyoung.kim: review+, mcatanzaro: commit-queue-
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES) none

Description Konstantin Tokarev 2016-01-03 09:09:53 PST
JSC/CMskeLists.txt includes both JavaScriptCore_INCLUDE_DIRECTORIES and JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES, and JSC/shell/CMakeLists.txt should do it as well.

In my build setup ICU include paths happen to be in "system" include path, so JSC library builds fine and shells don't
Comment 1 Konstantin Tokarev 2016-01-03 09:27:22 PST
Created attachment 268140 [details]
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
Comment 2 Gyuyoung Kim 2016-01-03 17:07:00 PST
Comment on attachment 268140 [details]
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)

LGTM.
Comment 3 Michael Catanzaro 2016-01-03 17:41:27 PST
Comment on attachment 268140 [details]
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)

Sorry for breaking this!

I am going to give cq- since this same construct exists in PlatformWin.cmake in this directory. Please fix it there too!
Comment 4 Gyuyoung Kim 2016-01-03 19:10:39 PST
(In reply to comment #3)
> Comment on attachment 268140 [details]
> Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
> 
> Sorry for breaking this!
> 
> I am going to give cq- since this same construct exists in PlatformWin.cmake
> in this directory. Please fix it there too!

Do you mean that PlatformWin.cmake includes ${JavaScriptCore_INCLUDE_DIRECTORIES} ?

http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/shell/PlatformWin.cmake#L1

If so, I agree to remove it in PlatformWin.cmake although I don't know this patch is tightly related to remove it.
Comment 5 Konstantin Tokarev 2016-01-04 02:27:28 PST
(In reply to comment #3)
> Comment on attachment 268140 [details]
> Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
> 
> Sorry for breaking this!
> 
> I am going to give cq- since this same construct exists in PlatformWin.cmake
> in this directory. Please fix it there too!

I'm not building for Windows, but for me it seems like it includes ${JavaScriptCore_INCLUDE_DIRECTORIES} twice, first time in CMakeLists.txt and second time in PlatformWin.cmake. Other port don't do it
Comment 6 Gyuyoung Kim 2016-01-04 22:33:21 PST
(In reply to comment #5)
> (In reply to comment #3)
> > Comment on attachment 268140 [details]
> > Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
> > 
> > Sorry for breaking this!
> > 
> > I am going to give cq- since this same construct exists in PlatformWin.cmake
> > in this directory. Please fix it there too!
> 
> I'm not building for Windows, but for me it seems like it includes
> ${JavaScriptCore_INCLUDE_DIRECTORIES} twice, first time in CMakeLists.txt
> and second time in PlatformWin.cmake. Other port don't do it

yes, we meant it needs to be fixed in this patch together.
Comment 7 Konstantin Tokarev 2016-01-05 02:01:33 PST
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #3)
> > > Comment on attachment 268140 [details]
> > > Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
> > > 
> > > Sorry for breaking this!
> > > 
> > > I am going to give cq- since this same construct exists in PlatformWin.cmake
> > > in this directory. Please fix it there too!
> > 
> > I'm not building for Windows, but for me it seems like it includes
> > ${JavaScriptCore_INCLUDE_DIRECTORIES} twice, first time in CMakeLists.txt
> > and second time in PlatformWin.cmake. Other port don't do it
> 
> yes, we meant it needs to be fixed in this patch together.

Shouldn't JavaScriptCore_INCLUDE_DIRECTORIES be removed from PlatformWin.cmake instead?
Comment 8 Alex Christensen 2016-01-06 10:16:53 PST
(In reply to comment #7)
> Shouldn't JavaScriptCore_INCLUDE_DIRECTORIES be removed from
> PlatformWin.cmake instead?
No, it's needed because in PlatformWin.cmake we make jscLib, which isn't needed in non-windows ports.  jsc.exe is just a simple program that finds jscLib and starts it after possibly finding some other dlls.
I don't think it's critical to include JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES on Windows.  It wouldn't hurt, but I don't think it's needed.  Commit this adding it to Windows or not, but don't remove JavaScriptCore_INCLUDE_DIRECTORIES from PlatformWin.cmake.
Comment 9 Konstantin Tokarev 2016-01-07 09:34:29 PST
Created attachment 268456 [details]
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)
Comment 10 WebKit Commit Bot 2016-01-07 11:29:56 PST
Comment on attachment 268456 [details]
Added include_directories(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES)

Clearing flags on attachment: 268456

Committed r194705: <http://trac.webkit.org/changeset/194705>
Comment 11 WebKit Commit Bot 2016-01-07 11:30:00 PST
All reviewed patches have been landed.  Closing bug.