|
17 | 17 | [ |
18 | 18 | '../libcore/libcore.gyp:libCore', |
19 | 19 | '../libexternal/libexternal.gyp:libExternal', |
20 | | - '../prebuilt/libcef.gyp:libcef', |
21 | | - '../thirdparty/libcef/libcef.gyp:libcef_library_wrapper', |
22 | | - '../thirdparty/libcef/libcef.gyp:libcef_stubs', |
23 | 20 | ], |
24 | 21 |
|
25 | 22 | 'include_dirs': |
|
37 | 34 | 'src/revbrowser.rc.h', |
38 | 35 | 'src/signal_restore_posix.h', |
39 | 36 | 'src/w32browser.h', |
40 | | - 'src/WebAuthenticationPanel.h', |
41 | 37 |
|
42 | 38 | 'src/cefbrowser.cpp', |
43 | 39 | 'src/cefbrowser_lnx.cpp', |
44 | | - 'src/cefbrowser_osx.mm', |
45 | 40 | 'src/cefbrowser_w32.cpp', |
46 | 41 | 'src/cefshared_lnx.cpp', |
47 | | - 'src/cefshared_osx.cpp', |
48 | 42 | 'src/cefshared_w32.cpp', |
49 | 43 | 'src/lnxbrowser.cpp', |
50 | 44 | 'src/osxbrowser.mm', |
51 | 45 | 'src/revbrowser.cpp', |
52 | 46 | 'src/signal_restore_posix.cpp', |
53 | 47 | 'src/w32browser.cpp', |
54 | 48 | 'src/revbrowser.rc', |
55 | | - 'src/WebAuthenticationPanel.m', |
56 | 49 | ], |
57 | 50 |
|
58 | 51 | 'conditions': |
|
64 | 57 | 'type': 'none', |
65 | 58 | }, |
66 | 59 | ], |
| 60 | + # CEF only supported on Windows & Linux |
67 | 61 | [ |
68 | | - 'OS == "mac"', |
| 62 | + 'OS == "win" or OS == "linux"', |
69 | 63 | { |
70 | 64 | 'dependencies': |
71 | 65 | [ |
72 | | - 'revbrowser-cefprocess-helpers', |
| 66 | + '../prebuilt/libcef.gyp:libcef', |
| 67 | + '../thirdparty/libcef/libcef.gyp:libcef_library_wrapper', |
| 68 | + '../thirdparty/libcef/libcef.gyp:libcef_stubs', |
| 69 | + |
| 70 | + 'revbrowser-cefprocess', |
73 | 71 | ], |
74 | | - |
| 72 | + }, |
| 73 | + # else |
| 74 | + { |
| 75 | + 'sources!': |
| 76 | + [ |
| 77 | + 'src/cefbrowser.h', |
| 78 | + 'src/cefbrowser_msg.h', |
| 79 | + 'src/cefshared.h', |
| 80 | + |
| 81 | + 'src/cefbrowser.cpp', |
| 82 | + 'src/cefbrowser_lnx.cpp', |
| 83 | + 'src/cefbrowser_w32.cpp', |
| 84 | + 'src/cefshared_lnx.cpp', |
| 85 | + 'src/cefshared_w32.cpp', |
| 86 | + ], |
| 87 | + }, |
| 88 | + ], |
| 89 | + [ |
| 90 | + 'OS == "mac"', |
| 91 | + { |
75 | 92 | 'libraries': |
76 | 93 | [ |
77 | 94 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
78 | 95 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
79 | 96 | '$(SDKROOT)/System/Library/Frameworks/WebKit.framework', |
80 | 97 | ], |
81 | 98 |
|
82 | | - # Copy the CEF processes and framework into the expected place |
83 | | - 'copies': |
84 | | - [ |
85 | | - { |
86 | | - 'destination': '<(PRODUCT_DIR)/Frameworks', |
87 | | - 'files': |
88 | | - [ |
89 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess.app', |
90 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess EH.app', |
91 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess NP.app', |
92 | | - '$(SOLUTION_DIR)/prebuilt/lib/mac/Chromium Embedded Framework.framework', |
93 | | - ], |
94 | | - }, |
95 | | - ], |
96 | | - |
97 | 99 | 'all_dependent_settings': |
98 | 100 | { |
99 | 101 | 'variables': |
100 | 102 | { |
101 | 103 | 'dist_files': [ '<(PRODUCT_DIR)/<(_product_name).bundle' ], |
102 | | - 'dist_aux_files': [ '<(PRODUCT_DIR)/Frameworks' ], |
103 | 104 | }, |
104 | 105 | }, |
105 | 106 | }, |
|
155 | 156 | }, |
156 | 157 | }, |
157 | 158 |
|
158 | | - 'mac_bundle_resources': |
159 | | - [ |
160 | | - 'src/com_runrev_livecode_WebAuthenticationPanel.nib', |
161 | | - ], |
162 | 159 |
|
163 | 160 | 'xcode_settings': |
164 | 161 | { |
|
170 | 167 | { |
171 | 168 | 'target_name': 'revbrowser-cefprocess', |
172 | 169 | 'type': 'executable', |
173 | | - 'mac_bundle': 1, |
174 | 170 | 'product_name': 'revbrowser-cefprocess', |
175 | 171 |
|
176 | | - # OSX, Windows and Linux only |
| 172 | + # Windows and Linux only |
177 | 173 | 'conditions': |
178 | 174 | [ |
179 | 175 | [ |
180 | | - 'OS != "mac" and OS != "win" and OS != "linux"', |
| 176 | + 'OS != "win" and OS != "linux"', |
181 | 177 | { |
182 | 178 | 'type': 'none', |
183 | 179 | }, |
|
209 | 205 | [ |
210 | 206 | 'src/cefprocess.cpp', |
211 | 207 | 'src/cefprocess_lnx.cpp', |
212 | | - 'src/cefprocess_osx.mm', |
213 | 208 | 'src/cefprocess_w32.cpp', |
214 | 209 | 'src/cefshared_lnx.cpp', |
215 | | - 'src/cefshared_osx.cpp', |
216 | 210 | 'src/cefshared_w32.cpp', |
217 | 211 | ], |
218 | | - |
219 | | - 'xcode_settings': |
220 | | - { |
221 | | - 'INFOPLIST_FILE': 'revbrowser-cefprocess-Info.plist', |
222 | | - }, |
223 | 212 | }, |
224 | 213 | ], |
225 | | - |
226 | | - 'conditions': |
227 | | - [ |
228 | | - # CEF on OSX needs some helper applications |
229 | | - [ |
230 | | - 'OS == "mac"', |
231 | | - { |
232 | | - 'targets': |
233 | | - [ |
234 | | - { |
235 | | - 'target_name': 'revbrowser-cefprocess-helpers', |
236 | | - 'type': 'none', |
237 | | - |
238 | | - 'dependencies': |
239 | | - [ |
240 | | - 'revbrowser-cefprocess', |
241 | | - ], |
242 | | - |
243 | | - 'actions': |
244 | | - [ |
245 | | - # Create the EH and NP variants of the CEF process |
246 | | - { |
247 | | - 'action_name': 'create_cefprocess_variants', |
248 | | - 'inputs': |
249 | | - [ |
250 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess.app', |
251 | | - 'tools/make_more_helpers.sh', |
252 | | - ], |
253 | | - 'outputs': |
254 | | - [ |
255 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess EH.app', |
256 | | - '<(PRODUCT_DIR)/revbrowser-cefprocess NP.app', |
257 | | - ], |
258 | | - |
259 | | - 'action': |
260 | | - [ |
261 | | - 'tools/make_more_helpers.sh', |
262 | | - '<(PRODUCT_DIR)', |
263 | | - 'revbrowser-cefprocess', |
264 | | - ], |
265 | | - }, |
266 | | - ], |
267 | | - }, |
268 | | - ], |
269 | | - }, |
270 | | - ], |
271 | | - ], |
272 | 214 | } |
0 commit comments