Changeset 155788 in webkit
- Timestamp:
- Sep 14, 2013, 2:35:47 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r155772 r155788 1 2013-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 1 13 2013-09-14 Alberto Garcia <berto@igalia.com> 2 14 -
trunk/Tools/Scripts/check-for-webkit-framework-include-consistency
r136743 r155788 1 1 #!/usr/bin/env ruby 2 2 3 # Copyright (C) 2010 Apple Inc. All rights reserved.3 # Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 4 4 # 5 5 # Redistribution and use in source and binary forms, with or without … … 26 26 27 27 base_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"29 28 30 29 Dir.chdir base_directory … … 39 38 def print_error msg 40 39 $error_printed = true 41 STDERR.puts " ERROR: #{msg}"40 STDERR.puts "error: #{msg}" 42 41 end 43 42 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 43 def build_header_maps 44 all_headers = `find #{ENV['PUBLIC_HEADERS_FOLDER_PATH']} #{ENV['PRIVATE_HEADERS_FOLDER_PATH']} -type f -name '*.h'`.split 47 45 48 46 all_headers.each do |header| … … 93 91 end 94 92 95 build_header_maps is_shallow_bundle93 build_header_maps 96 94 97 95 $HEADERS_BY_TYPE.each do |header_type, headers|
Note:
See TracChangeset
for help on using the changeset viewer.