Merge lp:~abreu-alexandre/oxide/chromedriver-support into lp:~oxide-developers/oxide/oxide.trunk

Proposed by Alexandre Abreu
Status: Merged
Merged at revision: 659
Proposed branch: lp:~abreu-alexandre/oxide/chromedriver-support
Merge into: lp:~oxide-developers/oxide/oxide.trunk
Diff against target: 100 lines (+26/-3)
6 files modified
CMakeLists.txt (+6/-0)
build/all.gyp (+8/-0)
build/common.gypi (+1/-0)
build/gyp_oxide (+3/-0)
qt/CMakeLists.txt (+5/-0)
shared/shared.gyp (+3/-3)
To merge this branch: bzr merge lp:~abreu-alexandre/oxide/chromedriver-support
Reviewer Review Type Date Requested Status
Chris Coulson Approve
Review via email: mp+220216@code.launchpad.net

Commit message

Add chromedriver support

Description of the change

Add chromedriver support

To post a comment you must log in.
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks for this. I've left some comments inline. In addition to that:

- There should probably be a build-config option for enabling the chromedriver binary (ENABLE_CHROMEDRIVER ?)
- It's missing an install target.

review: Needs Fixing
626. By Alexandre Abreu

chromedriver support

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Updated

627. By Alexandre Abreu

chrome driver support

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

ping?

Revision history for this message
Chris Coulson (chrisccoulson) :
review: Needs Fixing
628. By Alexandre Abreu

updates

629. By Alexandre Abreu

nit

630. By Alexandre Abreu

updates

631. By Alexandre Abreu

fixes

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

updated

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks. I've just added one comment (wondering whether we need the extra chromedriver.gyp file now). Other than that, this looks good now

632. By Alexandre Abreu

remvoe chromedriver.gyp

Revision history for this message
Chris Coulson (chrisccoulson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-05-01 11:45:03 +0000
3+++ CMakeLists.txt 2014-07-10 18:43:42 +0000
4@@ -108,6 +108,12 @@
5 else()
6 list(APPEND GYP_COMMAND -Denable_plugins=1)
7 endif()
8+if(DEFINED ENABLE_CHROMEDRIVER AND ENABLE_CHROMEDRIVER EQUAL 1)
9+ list(APPEND GYP_COMMAND -Denable_chromedriver_build=1)
10+else()
11+ list(APPEND GYP_COMMAND -Denable_chromedriver_build=0)
12+endif()
13+
14
15 if(CMAKE_CROSSCOMPILING)
16 if(NOT CHROMIUM_C_HOST_COMPILER OR NOT CHROMIUM_CXX_HOST_COMPILER OR NOT CHROMIUM_HOST_AR)
17
18=== modified file 'build/all.gyp'
19--- build/all.gyp 2014-06-30 20:27:30 +0000
20+++ build/all.gyp 2014-07-10 18:43:42 +0000
21@@ -23,6 +23,14 @@
22 '<@(oxide_all_targets)',
23 '<(DEPTH)/sandbox/sandbox.gyp:chrome_sandbox',
24 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpegsumo',
25+ ],
26+ 'conditions': [
27+ ['enable_chromedriver_build==1', {
28+ 'dependencies': [
29+ '<(DEPTH)/chrome/chrome.gyp:chromedriver',
30+ ],
31+ }
32+ ]
33 ]
34 }
35 ]
36
37=== modified file 'build/common.gypi'
38--- build/common.gypi 2014-05-28 07:44:21 +0000
39+++ build/common.gypi 2014-07-10 18:43:42 +0000
40@@ -31,6 +31,7 @@
41 'toolkit_uses_gtk': 0,
42 'ozone_platform': 'oxide',
43 'ozone_auto_platforms': 0,
44+ 'remoting': 0,
45 'external_ozone_platforms': [
46 'oxide',
47 ],
48
49=== modified file 'build/gyp_oxide'
50--- build/gyp_oxide 2014-05-01 11:46:18 +0000
51+++ build/gyp_oxide 2014-07-10 18:43:42 +0000
52@@ -42,6 +42,9 @@
53 sys.path.insert(0, os.path.join(CHROMIUMSRCDIR, 'chrome', 'tools', 'build'))
54 sys.path.insert(0, os.path.join(CHROMIUMSRCDIR, 'third_party', 'WebKit', 'Source', 'build', 'scripts'))
55
56+## Needed to build chrome driver and as one of its deps pulls remoting.gyp or one of its deps
57+sys.path.insert(0, os.path.join(CHROMIUMSRCDIR, 'remoting', 'tools', 'build'))
58+
59 sys.path.insert(0, os.path.join(os.path.dirname(__file__), "scripts"))
60
61 def additional_include_files(args=[]):
62
63=== renamed file 'build/scripts/repack_locales.py' => 'build/scripts/oxide_repack_locales.py'
64=== modified file 'qt/CMakeLists.txt'
65--- qt/CMakeLists.txt 2014-04-16 08:34:12 +0000
66+++ qt/CMakeLists.txt 2014-07-10 18:43:42 +0000
67@@ -81,6 +81,11 @@
68 install(DIRECTORY ${CHROMIUM_PRODUCT_DIR}/locales
69 DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
70
71+if(DEFINED ENABLE_CHROMEDRIVER AND ENABLE_CHROMEDRIVER EQUAL 0)
72+ install(PROGRAMS ${CHROMIUM_PRODUCT_DIR}/chromedriver
73+ DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
74+endif()
75+
76 list(APPEND PACKAGE_FILES ${OXIDE_INSTALL_LIB_FILES})
77 list(APPEND PACKAGE_FILES ${OXIDE_INSTALL_LIBEXEC_FILES})
78 list(APPEND PACKAGE_PROGRAMS ${OXIDE_INSTALL_LIBEXEC_PROGRAMS})
79
80=== modified file 'shared/shared.gyp'
81--- shared/shared.gyp 2014-07-09 00:47:03 +0000
82+++ shared/shared.gyp 2014-07-10 18:43:42 +0000
83@@ -107,14 +107,14 @@
84 'action_name': 'repack_locales',
85 'variables': {
86 'pak_locales': '<(locales)',
87- 'repack_locales_path': '../build/scripts/repack_locales.py',
88+ 'repack_locales_path': '../build/scripts/oxide_repack_locales.py',
89 },
90 'inputs': [
91 '<(repack_locales_path)',
92- '<!@pymod_do_main(repack_locales -i -p <(OS) -b chromium -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))'
93+ '<!@pymod_do_main(oxide_repack_locales -i -p <(OS) -b chromium -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))'
94 ],
95 'outputs': [
96- '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))'
97+ '<!@pymod_do_main(oxide_repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pak_locales))'
98 ],
99 'action': [
100 'python',

Subscribers

People subscribed via source and target branches