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

Issue 1327033004: Allow building mojo_shell and non-graphical apps/services on a Mac (Closed)

Created:
5 years, 3 months ago by jamesr
Modified:
5 years ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Allow building mojo_shell and non-graphical apps/services on a Mac The goal of this patch is to allow hacking on some pieces of the system from a Mac, such as the generated bindings code and simple examples. It is not the goal of this patch to make everything (or even most things) work, or to support this as a development platform in general, just to get the easy things going so folks can do some useful work from their laptops on buses and whatnot. This fixes up several compilation and link errors that show up building on a Mac host and makes things that don't compile conditional in the build system. mojo_shell and many of our unit test binaries run with this patch if the current working directory is the out dir, but they're missing some piece of rpath magic in order to run from anywhere. mojob.py test doesn't do anything on a mac yet (and it's not clear what it should do). None of the graphics system is compiled in with this patch primiarily for two reasons: *) Lots of link errors in ui/ for events related code *) Some link errors for CGL symbols as we don't appear to have the right frameworks configured in the GPU targets. Depends on https://codereview.chromium.org/1313973005 to fix a linker error in dart about having zero source files. R=kulakowski@chromium.org, viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/04362acf2200aabb2280d5fe11b2c17665cd89dd

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 7

Patch Set 3 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -214 lines) Patch
M BUILD.gn View 2 chunks +7 lines, -2 lines 0 comments Download
M examples/BUILD.gn View 1 2 chunks +8 lines, -3 lines 0 comments Download
M gpu/config/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/BUILD.gn View 2 chunks +4 lines, -1 line 0 comments Download
M mojo/dart/embedder/BUILD.gn View 2 chunks +1 line, -8 lines 0 comments Download
D mojo/dart/embedder/io/internet_address_android.cc View 1 chunk +0 lines, -72 lines 0 comments Download
D mojo/dart/embedder/io/internet_address_linux.cc View 1 chunk +0 lines, -72 lines 0 comments Download
A + mojo/dart/embedder/io/internet_address_posix.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M services/BUILD.gn View 5 chunks +30 lines, -15 lines 0 comments Download
M services/dart/content_handler_app_service_connector.h View 1 chunk +1 line, -1 line 0 comments Download
M services/keyboard_native/predictor.h View 1 chunk +1 line, -1 line 0 comments Download
M services/keyboard_native/predictor.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/keyboard_native/text_update_key.h View 1 chunk +1 line, -1 line 0 comments Download
M services/keyboard_native/text_update_key.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/prediction/dictionary_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/prediction/input_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/prediction/proximity_info_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/prediction/touch_position_correction.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/view_manager/display_manager.cc View 4 chunks +7 lines, -10 lines 0 comments Download
M services/view_manager/view_manager_service_impl.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M shell/BUILD.gn View 4 chunks +20 lines, -2 lines 0 comments Download
M shell/application_manager/local_fetcher.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M shell/application_manager/network_fetcher.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M shell/context.cc View 2 chunks +6 lines, -1 line 0 comments Download
A + shell/pingable_app_dummy_empty.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/events/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
jamesr
5 years, 3 months ago (2015-09-10 01:11:24 UTC) #2
jamesr
https://codereview.chromium.org/1327033004/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1327033004/diff/1/BUILD.gn#newcode30 BUILD.gn:30: if (is_linux || is_android) { another way to do ...
5 years, 3 months ago (2015-09-10 01:13:29 UTC) #4
kulakowski
https://codereview.chromium.org/1327033004/diff/1/examples/BUILD.gn File examples/BUILD.gn (right): https://codereview.chromium.org/1327033004/diff/1/examples/BUILD.gn#newcode51 examples/BUILD.gn:51: "//examples/window_manager", nit: alphabetical order
5 years, 3 months ago (2015-09-10 15:58:40 UTC) #6
jamesr
D'oh, I always forget that 'gn format' doesn't do that. PTAL - the dart change ...
5 years, 3 months ago (2015-09-10 17:18:27 UTC) #7
kulakowski
lgtm https://codereview.chromium.org/1327033004/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1327033004/diff/1/BUILD.gn#newcode30 BUILD.gn:30: if (is_linux || is_android) { On 2015/09/10 01:13:29, ...
5 years, 3 months ago (2015-09-10 18:08:49 UTC) #8
viettrungluu
Probably you should also make pingable_app_dummy_empty.cc non-empty with a comment explaining the reason for its ...
5 years, 3 months ago (2015-09-10 18:11:09 UTC) #10
jamesr
On 2015/09/10 at 18:11:09, viettrungluu wrote: > https://codereview.chromium.org/1327033004/diff/20001/services/view_manager/display_manager.cc#oldcode20 > services/view_manager/display_manager.cc:20: using mojo::Rect; > Why? Some ...
5 years, 3 months ago (2015-09-10 19:59:56 UTC) #11
viettrungluu
lgtm w/nit https://codereview.chromium.org/1327033004/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/1327033004/diff/20001/shell/context.cc#newcode43 shell/context.cc:43: #if !defined(OS_MACOSX) On 2015/09/10 18:11:09, viettrungluu wrote: ...
5 years, 3 months ago (2015-09-14 16:35:33 UTC) #12
jamesr
5 years, 3 months ago (2015-09-19 01:23:59 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
04362acf2200aabb2280d5fe11b2c17665cd89dd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698