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

Issue 12210017: Start of build config for custom user32 import libs. (Closed)

Created:
7 years, 10 months ago by Sigurður Ásgeirsson
Modified:
7 years, 9 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Start of build config for custom user32 import libs. BUG=None

Patch Set 1 #

Total comments: 12

Patch Set 2 : Build configuration and integration script. #

Patch Set 3 : Added a delay load hook. Sadly at this stage we delay load user32.dll in two stages. #

Patch Set 4 : Implement the delay load hook. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1992 lines, -2 lines) Patch
A chrome/app/delay_load_hook.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/app/delay_load_hook.cc View 1 2 3 1 chunk +94 lines, -0 lines 2 comments Download
M chrome/chrome_dll.gypi View 1 2 3 chunks +62 lines, -0 lines 0 comments Download
A chrome/imports/build_import_libraries.py View 1 1 chunk +212 lines, -0 lines 3 comments Download
A chrome/imports/filter_export_list.py View 1 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/imports/user32.imports.json View 1 chunk +768 lines, -0 lines 0 comments Download
A chrome/imports/user32.win8.exports.json View 1 chunk +747 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/views.gyp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
cpu_(ooo_6.6-7.5)
So to be clear the python script does not produce user32.imports.json ? https://codereview.chromium.org/12210017/diff/1/chrome/imports/filter_export_list.py File chrome/imports/filter_export_list.py ...
7 years, 10 months ago (2013-02-05 19:28:44 UTC) #1
Sigurður Ásgeirsson
On Tue, Feb 5, 2013 at 2:28 PM, <cpu@chromium.org> wrote: > So to be clear ...
7 years, 10 months ago (2013-02-05 19:39:58 UTC) #2
Sigurður Ásgeirsson
https://codereview.chromium.org/12210017/diff/1/chrome/imports/filter_export_list.py File chrome/imports/filter_export_list.py (right): https://codereview.chromium.org/12210017/diff/1/chrome/imports/filter_export_list.py#newcode42 chrome/imports/filter_export_list.py:42: # Slurp the master file. On 2013/02/05 19:28:44, cpu ...
7 years, 10 months ago (2013-02-05 19:48:51 UTC) #3
M-A Ruel
7 years, 10 months ago (2013-02-07 21:14:30 UTC) #4
Drive-by full of style nits to fake like I was still doing important code
reviews.

https://codereview.chromium.org/12210017/diff/6006/chrome/app/delay_load_hook.cc
File chrome/app/delay_load_hook.cc (right):

https://codereview.chromium.org/12210017/diff/6006/chrome/app/delay_load_hook...
chrome/app/delay_load_hook.cc:18: // object file (as opposed to indirectly
thruogh a library), these pointers
through

https://codereview.chromium.org/12210017/diff/6006/chrome/app/delay_load_hook...
chrome/app/delay_load_hook.cc:37: HMODULE dll =
::LoadLibraryA(dll_name.c_str());
return reinterpret_cast<FARPROC>(::LoadLibraryA(dll_name.c_str()));

Unless you wanted to increase your LoC for the month.

https://codereview.chromium.org/12210017/diff/6006/chrome/imports/build_impor...
File chrome/imports/build_import_libraries.py (right):

https://codereview.chromium.org/12210017/diff/6006/chrome/imports/build_impor...
chrome/imports/build_import_libraries.py:6: # A utility script to create minimal
import libs from an import description
Make that a docstring

https://codereview.chromium.org/12210017/diff/6006/chrome/imports/build_impor...
chrome/imports/build_import_libraries.py:22: Creates a pair of import libraries
from imports-file.
Often, I make this the docstring and then use:

optparse.OptionParser(
    usage='%prog [options] [imports-file]',
    description=sys.modules[__name__].__doc__)

So the description it taken right away from the module's docstring. Don't you
like that?

https://codereview.chromium.org/12210017/diff/6006/chrome/imports/build_impor...
chrome/imports/build_import_libraries.py:87: # For each library write an assmbly
file containing empty declarations
assembly

And I'd make the whole thing a docstring.

Powered by Google App Engine
This is Rietveld 408576698