Граф коммитов

58 Коммитов

Автор SHA1 Сообщение Дата
avi@chromium.org 87f23137c3 Make helper app, get closer to working content shell.
BUG=115784
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9656002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@125921 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-09 22:36:10 +00:00
avi@chromium.org 5e2aef47fc Fix tweak_info_plist.py to be explicit about arguments.
BUG=115784
TEST=none


Review URL: http://codereview.chromium.org/9617032

git-svn-id: http://src.chromium.org/svn/trunk/src/build@125349 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-07 06:25:17 +00:00
avi@chromium.org 96fe8e8ff1 First pass at content shell for the Mac. Doesn't work yet.
BUG=115784
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9513006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@125254 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-06 23:46:34 +00:00
maruel@chromium.org 628d2696f1 Fix python scripts in src/build/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

TBR=michaelbai@chromium.org
BUG=105108
TEST=

Review URL: http://codereview.chromium.org/8667008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@111385 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-23 19:13:44 +00:00
mark@chromium.org 2be5f582b1 Don't print the strip command line being executed in strip_save_dsym.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7850017

git-svn-id: http://src.chromium.org/svn/trunk/src/build@100150 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-09-08 15:33:22 +00:00
mark@chromium.org 94f879ec90 Turn off PIE when building for Valgrind.
BUG=90221, 93551
TEST=Valgrind
Review URL: http://codereview.chromium.org/7724002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@98046 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-24 14:59:13 +00:00
mark@chromium.org 33b38ff9ef Give plug-in processes an executable heap and disable PIE/ASLR for Native
Client loader processes.

Some plug-ins depend on having an executable heap. They write code to data
pages and attempt to execute it without calling mprotect to mark this code
as executable.

Native Client needs to allocate a contiguous 1GB of address space. ASLR may
interfere with there being a "hole" this large in the address space by the
time NaCl makes its request.

Non-executable heaps are only available in 10.7 and later for 32-bit
processes.

PIE/ASLR was formerly disabled for all processes other than the browser
process. This change reenables it for all processes other than the NaCl
loader. PIE/ASLR is available on 10.5 and later, although the implementation
is stronger in 10.7 than in earlier releases.

This change results in two new helpers in addition to the existing
Chromium Helper.app: Chromium Helper EH.app (for executable heaps) and
Chromium Helper NP.app (for no PIE). libplugin_carbon_interpose.dylib moves
out of the helper .app and directly into the versioned directory. The
InfoPlist.strings have been removed from the helper app, but empty .lproj
directories remain.

BUG=90221, 93551
TEST=everything
Review URL: http://codereview.chromium.org/7714018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@97984 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-24 03:33:36 +00:00
mark@chromium.org f4baa7662f Disable data page (heap) execution when running on Mac OS X 10.7 ("Lion").
BUG=91990
TEST=otool -h Whatever.app/Contents/MacOS/Whatever should show the 0x1000000
     bit set in the |flags| column
Review URL: http://codereview.chromium.org/7608027

git-svn-id: http://src.chromium.org/svn/trunk/src/build@96288 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-11 01:12:10 +00:00
mark@chromium.org 26b2210a6c Tom and I should OWN a couple more things.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6901101

git-svn-id: http://src.chromium.org/svn/trunk/src/build@83367 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-04-28 18:49:36 +00:00
thomasvl@chromium.org 8653389708 Update the strip wrapper for Xcode 3.2.6.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6683001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@77816 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-11 15:34:20 +00:00
jrg@chromium.org 4bf37fdb76 Exclude ChromeOS directories and files from mac win linux.
Extension of this change, applied more liberally:
http://src.chromium.org/viewvc/chrome/trunk/src/build/linux/chrome_linux.croc?r1=44710&r2=46647

Review URL: http://codereview.chromium.org/3540002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@61430 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-04 22:56:50 +00:00
thomasvl@chromium.org aa23cc9b08 [Mac] Remove the nacl clobber hook, GYP seems to have all the deps handing setup right for Xcode (when expressed in the .gyp files). So this shouldn't be needed any more.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2848030

git-svn-id: http://src.chromium.org/svn/trunk/src/build@51119 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-06-29 13:08:15 +00:00
mark@chromium.org 28513aa166 Add a missing [ that prevented strip_from_xcode from functioning properly with
GYP loadable_module-type targets (Xcode mh_bundle-type targets).

BUG=0
TEST=NULL
Review URL: http://codereview.chromium.org/2434003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@48655 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-06-01 20:49:50 +00:00
jhawkins@chromium.org 34ca68beb9 TTF: Don't include v8 in the coverage results. Also moves common rules to common.croc.
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/2022007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@47071 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-05-12 21:10:56 +00:00
jhawkins@chromium.org 47a49e08af [TFF] Coverage: Don't include any non-Linux platform directories in the Linux code coverage analysis.
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/2046002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@46647 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-05-07 01:00:12 +00:00
gregoryd@google.com 8db3187032 Measure coverage for NaCl code
Review URL: http://codereview.chromium.org/1618027

git-svn-id: http://src.chromium.org/svn/trunk/src/build@44710 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-04-15 22:01:47 +00:00
mark@chromium.org 08c968a353 Don't strip main from the browser or helper app executables. This helps
backtraces of stripped executables look more reasonable.

BUG=39232
TEST=gdb backtrace in a stripped executable with no symbols loaded should show
     thread 0 beginning in main
Review URL: http://codereview.chromium.org/1460001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@42817 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-03-26 20:46:06 +00:00
mark@chromium.org da8d569e8c Support Xcode 3.2.2 (prerelease) for release-mode builds.
The UUID format displayed by otool has changed.

BUG=35162
TEST=Build in release mode with Xcode 3.2.2 (prerelease)
Review URL: http://codereview.chromium.org/833001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@41200 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-03-10 20:29:33 +00:00
mark@chromium.org 59b033ea9c Move Mac build tool scripts only used by chrome.gyp from build/mac into
chrome/tools/build/mac.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/334049

git-svn-id: http://src.chromium.org/svn/trunk/src/build@30222 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-10-27 18:33:31 +00:00
mark@chromium.org 1b01f7d756 Official builds should be on the com.google.Chrome update product ID, not
com.google.Chrome.framework

BUG=24836
TEST=After running Google Chrome.app, run
     ~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin -p.
     You should see, at the very least, tickets for com.google.Keystone and
     com.google.Chrome, and they should appear to have valid data.  You should
     not see any tickets for com.google.Chrome.framework.  If you run ksadmin
     -l, you should not get any error output.
Review URL: http://codereview.chromium.org/273059

git-svn-id: http://src.chromium.org/svn/trunk/src/build@29033 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-10-14 22:01:20 +00:00
gregoryd@google.com 2dbc25a5dd Updating Native Client (should fix the Linux x64 build)
New script added to clobber generated headers on Mac.
BUG= http://code.google.com/p/nativeclient/issues/detail?id=104
TEST=none
Review URL: http://codereview.chromium.org/259019

git-svn-id: http://src.chromium.org/svn/trunk/src/build@27919 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-10-03 00:00:30 +00:00
mark@chromium.org 65635d241f Don't use --owner or --group in tar -c, these options are not present in
Mac OS X 10.6 ("Snow Leopard")'s tar.
Review URL: http://codereview.chromium.org/194078

git-svn-id: http://src.chromium.org/svn/trunk/src/build@25993 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-11 19:07:15 +00:00
thomasvl@chromium.org 901f6f4ce1 Fix arg error check (was expecting too many).
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/175047

git-svn-id: http://src.chromium.org/svn/trunk/src/build@25060 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-01 18:28:09 +00:00
thomasvl@chromium.org 240a3905a0 Put a proper info.plist into the framework so we can codesign it.
Update the tweak info.plist script to work on frameworks as well as apps.
Remove the bundle version since the script manages that.

BUG=20503
TEST=The framework should now have an valid info.plist file in it's resources folder.
Review URL: http://codereview.chromium.org/178055

git-svn-id: http://src.chromium.org/svn/trunk/src/build@25027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-01 13:29:07 +00:00
thomasvl@chromium.org b69ba18c89 Tweak the comment in the lproj fixup script to explain why we need an "en" folder.
Added a string for the products short name, this is current mac only, and is used for the application menu title via the infoplist.strings file.
Added source for a tool to build InfoPlist.strings files based on the values within the GRD files.
Run the InfoPlist.strings generation tool during the build.
Added a script to take a string and list of locale and generate all the versions of the string.
Wired up the string locale tool so GYP knows about all the inputs/outputs from the InfoPlist.strings generation tool.
Stop setting some of the Info.plist keys that are now covered by the InfoPlist.strings files.
Update the mac links script to stop creating a resources link.
Add a shim to nuke the helper's resource link so it can get a real folder.
Helper in in chrome_paths_mac to find the main app's bundle (that the helper lives in).
At startup, if not the browser, set the main bundle to be the parent of this bundle.
Fix up the breakpad init to use the mac_util helper for main bundle.

TEST=when runnining in the supported languages, Finder Get Info should show a localized copyright.  The process names in activity monitor should also be correct and show localized names once the TC work is done.
BUG=19019
Review URL: http://codereview.chromium.org/171040

git-svn-id: http://src.chromium.org/svn/trunk/src/build@24104 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-24 16:43:04 +00:00
mark@chromium.org 4982621d9c Tweak indentation
Review URL: http://codereview.chromium.org/165379

git-svn-id: http://src.chromium.org/svn/trunk/src/build@23182 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-12 13:48:20 +00:00
mark@chromium.org b5c815f48b Fix build/mac/tweak_app_infoplist build script for git users. Patch by Robert
Sesek <rsesek@gmail.com>.

Review URL: http://codereview.chromium.org/165314

git-svn-id: http://src.chromium.org/svn/trunk/src/build@23075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 21:27:35 +00:00
mark@chromium.org fe1f188ea8 Save debugging symbols for plugin_carbon_interpose.dylib.
BUG=18997
TEST=Release build produces plugin_carbon_interpose.dylib-*-i386.breakpad, and
     Google Chrome.dsym.tar.bz2 contains plugin_carbon_interpose.dylib.dSYM
Review URL: http://codereview.chromium.org/164325

git-svn-id: http://src.chromium.org/svn/trunk/src/build@23043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 17:40:03 +00:00
thomasvl@chromium.org bcf9afdf94 ObjC classes generated by the build and used in Xib files is already getting ugly, if they aren't built at build start, IB sometimes throws warnings about unknown things, so...
- Use one class for the localizer and generate the table that drives it.
  - Update the generator script to process a list of xib files and generate one header.
  - Update the data within the GYP file to do this.
  - This might actually help overall size since it helps force one set of strings for each different window.
  - Switch to bsearch for table lookup since we have one, larger table now.

TEST=none
BUG=none
Review URL: http://codereview.chromium.org/164260

git-svn-id: http://src.chromium.org/svn/trunk/src/build@23017 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 13:32:21 +00:00
mark@chromium.org d5ce141627 Re-commit r22981 after backout at r22992. Contains fixes to relocate
plugin_carbon_interpose.dylib from the outer browser app bundle to the inner
helper app bundle.

Provide a separate app bundle for subprocesses like the renderer on the Mac.
Remove LSUIElement and related hacks from the browser's app bundle.

BUG=8044
TEST=Observe one Chromium and one or more Chromium Helper processes in
     Activity Monitor
Review URL: http://codereview.chromium.org/164177
Review URL: http://codereview.chromium.org/164303

git-svn-id: http://src.chromium.org/svn/trunk/src/build@23006 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 03:12:01 +00:00
mark@chromium.org c5d29e83bd Back out r22981, it may have caused Windows test failures.
Review URL: http://codereview.chromium.org/164298

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22992 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 00:51:02 +00:00
mark@chromium.org dd9f7b7f77 Provide a separate app bundle for subprocesses like the renderer on the Mac.
Remove LSUIElement and related hacks from the browser's app bundle.

BUG=8044
TEST=Observe one Chromium and one or more Chromium Helper processes in
     Activity Monitor
Review URL: http://codereview.chromium.org/164177

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22981 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-11 00:23:19 +00:00
thomasvl@chromium.org 9bd2745ff5 Bounce through a set so we uniq the string list to avoid having something listed twice (a sub menu ends up with the same title as the menu item it hangs off, so it's easy to get dups within a xib file).
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/165133

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22734 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-07 17:43:01 +00:00
mark@chromium.org e2592b5378 Move the entire application into a dylib (framework)
Review URL: http://codereview.chromium.org/160538

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22506 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-05 19:26:07 +00:00
thomasvl@chromium.org 19c4aaba27 Add missing parens for format string to work.
When there are no strings to localize, but a stub value into the table to avoid a compile error from array_size.
Review URL: http://codereview.chromium.org/160645

git-svn-id: http://src.chromium.org/svn/trunk/src/build@22483 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-08-05 16:33:34 +00:00
thomasvl@chromium.org 3dcc8abb13 Put the common paths for localizers into variables so we don't have to repeat as much.
Merge in the missing app_strings resources.
Include app_strings.h in the generated localizers for the shared button titles in dialogs.


TEST=none
BUG=16764
Review URL: http://codereview.chromium.org/159219

git-svn-id: http://src.chromium.org/svn/trunk/src/build@21951 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-07-29 14:26:26 +00:00
thomasvl@chromium.org bb518cce38 Add a custom subclass of GTMUILocalizer that skips the bundle work so we can directly use these from nib files without some extra overhead.
Updated the generator to make things based off this subclass.

TEST=none
BUG=16764
Review URL: http://codereview.chromium.org/159197

git-svn-id: http://src.chromium.org/svn/trunk/src/build@21280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-07-22 16:47:54 +00:00
thomasvl@chromium.org aadbe274c9 Starting mac l10n:
Added a script to process a xib file and generate a localizer out of the resource constants it finds in the xib.
  Update the MainMenu.xib to use a generated localizer.
  Kill off the menu_localizer in favor of a generated one.
  ui_localizer is a helper so each "localizer" is as small as possible.
  Build some menus out of base strings and the product name like windows.
Added the dir generated for the localizers so we can load the header to directly create them (menubar one).
Enable the other 3 languages we were building to help test.
Made the context menu code use the new code for handling window's accelerators and ellipsis.
Added unittest for ui_localizer.
Opened http://crbug.com/17380 to track the problem with the menu titles so I can move on to other parts of the UI for now.

TEST=The main menu will have some items localized now (and more will be localizable in the TC).
BUG=16764
Review URL: http://codereview.chromium.org/155774

git-svn-id: http://src.chromium.org/svn/trunk/src/build@21272 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-07-22 14:04:27 +00:00
jrg@chromium.org dd7bb1c547 Add unit_tests (Chrome browser unit tests) to Mac/Linux coverage.
Minor fixes to coverage related scripts.

Review URL: http://codereview.chromium.org/118298

git-svn-id: http://src.chromium.org/svn/trunk/src/build@17785 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-05 22:47:32 +00:00
thomasvl@chromium.org 1fd7fe0dd1 Rename the breakpad file to match the app name instead of just branding name.
Build a tar.bz2 out of the .dsym for archiving.
Review URL: http://codereview.chromium.org/118129

git-svn-id: http://src.chromium.org/svn/trunk/src/build@17433 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-02 21:43:36 +00:00
jrg@chromium.org 9ec4348083 Tweak SVNVersion be happier (matches windows).
Fix about:version so "Developer build" says "Official build" when
relevant, and lists SVN version for developer builds.

BUG=12064


Review URL: http://codereview.chromium.org/118036

git-svn-id: http://src.chromium.org/svn/trunk/src/build@17337 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-06-01 18:27:27 +00:00
rspangler@google.com 5b0310bc95 Major refactoring of Croc.
Add support for scanning missing source files for executable lines.
Add support for HTML output.
Now reports percent coverage.

BUG=none
TEST=by hand on experimental buildbot
Review URL: http://codereview.chromium.org/113980

git-svn-id: http://src.chromium.org/svn/trunk/src/build@17141 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-29 00:05:27 +00:00
thomasvl@chromium.org de8ea8aaed 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.
Review URL: http://codereview.chromium.org/113652

git-svn-id: http://src.chromium.org/svn/trunk/src/build@16510 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-20 19:44:42 +00:00
thomasvl@chromium.org 0c7b4e0e5a Adding a general script to fetch values from the BRANDING files.
Update the scripts to fetch values from the BRANDING files instead of hardcoding the values.
Review URL: http://codereview.chromium.org/113555

git-svn-id: http://src.chromium.org/svn/trunk/src/build@16372 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-19 14:10:09 +00:00
thomasvl@chromium.org 36d748e055 Remove two todo's since the pref controls initializing breakpad, and if users opt in at that level, we just want to send the crashes.
Review URL: http://codereview.chromium.org/113553

git-svn-id: http://src.chromium.org/svn/trunk/src/build@16367 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-19 12:24:55 +00:00
thomasvl@chromium.org f5cfde9112 Rename official builds to "Google Chrome" on disk and "Chrome" in the menubar.
BUG=11826
Review URL: http://codereview.chromium.org/115474

git-svn-id: http://src.chromium.org/svn/trunk/src/build@16313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-18 21:10:55 +00:00
rspangler@google.com 8e8e673f06 Add croc code coverage tool. (Same change as yesterday, but now made in the
writable repository)

Review URL: http://codereview.chromium.org/113346

git-svn-id: http://src.chromium.org/svn/trunk/src/build@15974 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-13 18:31:04 +00:00
thomasvl@chromium.org 14bd772bb4 - Roll DEPS to pick up newer GYP
- Add script for running dump_syms on release builds if breakpad is enabled.
- Update the info.plist tweaks to add the breakpad keys if needed
- Add a var to check for breakpad support within the chrome.gyp instead of having the knowledge about breakpad being in official builds spread all around.
Review URL: http://codereview.chromium.org/113305

git-svn-id: http://src.chromium.org/svn/trunk/src/build@15948 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-13 13:11:19 +00:00
thomasvl@chromium.org fd68faef0c Pull the copyright info out of the branding file.
BUG=11762
Review URL: http://codereview.chromium.org/113268

git-svn-id: http://src.chromium.org/svn/trunk/src/build@15857 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-12 15:39:02 +00:00
thomasvl@chromium.org 1a928d5550 - Set the bundle name based on the executable name (since they both are the branding).
- Stop using CPP on the info.plist since we have to run a script anyways.
- Set the bundleid into a build setting for simple info.plist processing to pick up.
- Add a script for the chrome/app target to manually tweak the info.plist:
  - collect the version number from the build tree
  - collect the svn revision from the build tree
  - update the info.plist keys that need the version number based on collected data.
  - record the svn revision into the info.plist for trouble shooting.
Review URL: http://codereview.chromium.org/115187

git-svn-id: http://src.chromium.org/svn/trunk/src/build@15778 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-05-11 20:45:10 +00:00