Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 113652: Added a script to remove headers from the target.... (Closed)

Created:
11 years, 7 months ago by TVL
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Added a script to remove headers from the target. Added a default in common.gypi to remove headers from all mac applications that are bundles. Added a var to control the inclusion of keystone to chrome.gyp defaulted on branding and then honor it for the shipping work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16510

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -8 lines) Patch
M build/common.gypi View 1 chunk +14 lines, -0 lines 0 comments Download
A build/mac/remove_target_headers View 1 chunk +12 lines, -0 lines 2 comments Download
M build/mac/tweak_app_infoplist View 3 chunks +23 lines, -4 lines 4 comments Download
M chrome/chrome.gyp View 4 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
TVL
11 years, 7 months ago (2009-05-20 18:21:08 UTC) #1
Mark Mentovai
11 years, 7 months ago (2009-05-20 18:43:13 UTC) #2
otay.

http://codereview.chromium.org/113652/diff/1/4
File build/mac/remove_target_headers (right):

http://codereview.chromium.org/113652/diff/1/4#newcode11
Line 11: find "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" -iname 'Headers' -type d
-prune -delete
80

http://codereview.chromium.org/113652/diff/1/4#newcode12
Line 12: 
This blank line isn't really needed.

http://codereview.chromium.org/113652/diff/1/3
File build/mac/tweak_app_infoplist (right):

http://codereview.chromium.org/113652/diff/1/3#newcode11
Line 11: USE_KS=0
I would spell out KEYSTONE (like BREAKPAD).

http://codereview.chromium.org/113652/diff/1/3#newcode118
Line 118: if [ "${USE_BREAKPAD}" == "1" ] ; then
Strictly speaking, test/[ uses = for string equality, not ==.

http://codereview.chromium.org/113652/diff/1/3#newcode142
Line 142: if [ \( "${USE_KS}" == "1" \) -a \( "${CONFIGURATION}" == "Release" \)
] ; then
-a is ass.  That's what it stands for, in fact.  You're better off with:

if [ "${USE_KS}" = "1" ] && [ "${CONFIGURATION}" = "Release" ] ; then

-a doesn't short-circuit and is pretty much obsolete.

http://codereview.chromium.org/113652/diff/1/3#newcode146
Line 146: defaults write "${TMP_INFO_PLIST_DEFAULTS}" KSVersion -string
"${FULL_VERSION}"
80

Powered by Google App Engine
This is Rietveld 408576698