<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>196703</bug_id>
          
          <creation_ts>2019-04-08 13:01:40 -0700</creation_ts>
          <short_desc>[CMake] Audit uses of set_source_files_properties</short_desc>
          <delta_ts>2019-04-08 13:01:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1525304</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-04-08 13:01:40 -0700</bug_when>
    <thetext>We should audit all uses of set_source_files_properties as they&apos;re likely broken. They can only work for source files excluded from unified build (either with @no-unify or by not being listed in Sources.txt).

Source/JavaScriptCore/CMakeLists.txt:    set_source_files_properties(builtins/BuiltinNames.cpp PROPERTIES COMPILE_FLAGS -fno-var-tracking-assignments)
Source/JavaScriptCore/shell/PlatformMac.cmake:set_source_files_properties(${TESTAPI_OBJC_SOURCES} PROPERTIES COMPILE_FLAGS -fobjc-arc)
Source/ThirdParty/libwebrtc/Source/third_party/protobuf/cmake/protobuf-module.cmake.in:  set_source_files_properties(${${SRCS}} ${${HDRS}} PROPERTIES GENERATED TRUE)
Source/ThirdParty/openvr/src/CMakeLists.txt:    set_source_files_properties(vrcommon/pathtools_public.cpp vrcommon/vrpathregistry_public.cpp PROPERTIES COMPILE_FLAGS &quot;-x objective-c++&quot;)
Source/WebCore/ChangeLog-2015-11-21:        because CMake can only set COMPILE_FLAGS once with set_source_files_properties, and we want 
Source/WebCore/platform/GStreamer.cmake:    set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS &quot;GLIB_DISABLE_DEPRECATION_WARNINGS=1&quot;)
Source/WebKitLegacy/PlatformMac.cmake:        set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS &quot;-ObjC++ -std=c++17&quot;)
Source/WebKitLegacy/PlatformMac.cmake:        set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS -std=c99)
Source/WebKitLegacy/PlatformWin.cmake:    set_source_files_properties(${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}.h PROPERTIES GENERATED TRUE)
Source/WebKitLegacy/PlatformWin.cmake:    set_source_files_properties(${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}_i.c PROPERTIES GENERATED TRUE)
Source/cmake/WebKitMacros.cmake:            set_source_files_properties(${_sourceFileTmp} PROPERTIES HEADER_FILE_ONLY ON)
Source/cmake/WebKitMacros.cmake:    set_source_files_properties(${_source} PROPERTIES OBJECT_DEPENDS &quot;${_tmp}&quot;)
Source/cmake/WebKitMacros.cmake:            set_source_files_properties(${_cpp}
Source/cmake/WebKitMacros.cmake:            set_source_files_properties(${_cpp}
Source/cmake/WebKitMacros.cmake:        set_source_files_properties(${_sources}
Tools/DumpRenderTree/PlatformMac.cmake:    set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS &quot;-std=c99&quot;)
Tools/DumpRenderTree/PlatformMac.cmake:    set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS &quot;-std=c++17&quot;)
Tools/DumpRenderTree/PlatformMac.cmake:    set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS &quot;-ObjC++ -std=c++17&quot;)
Tools/Scripts/webkitpy/style/checkers/cmake.py:        &apos;set_source_files_properties&apos;, &apos;set_target_properties&apos;,

It&apos;s good we have a style checker rule for it, at least.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>