Changeset 155788 in webkit


Ignore:
Timestamp:
Sep 14, 2013 2:35:47 PM (11 years ago)
Author:
mitz@apple.com
Message:

[mac] Check For Framework Include Consistency build phase checks the wrong framework
https://bugs.webkit.org/show_bug.cgi?id=121215

Reviewed by Mark Rowe.

  • Scripts/check-for-webkit-framework-include-consistency: Replaced hard-coded paths to

WebKit.framework’s Headers and PrivateHeaders directories with the current target’s
public and private headers folder paths. Also tweaked the error messages’ format to make
Xcode recognize them as errors.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r155772 r155788  
     12013-09-14  Dan Bernstein  <mitz@apple.com>
     2
     3        [mac] Check For Framework Include Consistency build phase checks the wrong framework
     4        https://bugs.webkit.org/show_bug.cgi?id=121215
     5
     6        Reviewed by Mark Rowe.
     7
     8        * Scripts/check-for-webkit-framework-include-consistency: Replaced hard-coded paths to
     9        WebKit.framework’s Headers and PrivateHeaders directories with the current target’s
     10        public and private headers folder paths. Also tweaked the error messages’ format to make
     11        Xcode recognize them as errors.
     12
    1132013-09-14  Alberto Garcia  <berto@igalia.com>
    214
  • trunk/Tools/Scripts/check-for-webkit-framework-include-consistency

    r136743 r155788  
    11#!/usr/bin/env ruby
    22
    3 # Copyright (C) 2010 Apple Inc. All rights reserved.
     3# Copyright (C) 2010, 2013 Apple Inc. All rights reserved.
    44#
    55# Redistribution and use in source and binary forms, with or without
     
    2626
    2727base_directory = ENV['TARGET_BUILD_DIR'] or throw "Unable to find TARGET_BUILD_DIR in the environment!"
    28 is_shallow_bundle = (ENV['SHALLOW_BUNDLE'] || "NO").upcase == "YES"
    2928
    3029Dir.chdir base_directory
     
    3938def print_error msg
    4039  $error_printed = true
    41   STDERR.puts "ERROR: #{msg}"
     40  STDERR.puts "error: #{msg}"
    4241end
    4342
    44 def build_header_maps is_shallow_bundle
    45   current_version_path = is_shallow_bundle ? "" : "Versions/A/"
    46   all_headers = `find WebKit.framework/#{current_version_path}{,Private}Headers -type f -name '*.h'`.split
     43def build_header_maps
     44  all_headers = `find #{ENV['PUBLIC_HEADERS_FOLDER_PATH']} #{ENV['PRIVATE_HEADERS_FOLDER_PATH']} -type f -name '*.h'`.split
    4745
    4846  all_headers.each do |header|
     
    9391end
    9492
    95 build_header_maps is_shallow_bundle
     93build_header_maps
    9694
    9795$HEADERS_BY_TYPE.each do |header_type, headers|
Note: See TracChangeset for help on using the changeset viewer.